{"$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":"D10","name":"Test Quality","shortDescription":{"text":"Test Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D10"},{"id":"D12","name":"Dependency Hygiene","shortDescription":{"text":"Dependency Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/D12"},{"id":"D13","name":"Secret Scanning","shortDescription":{"text":"Secret Scanning"},"helpUri":"https://codehealth.canine.dev/dimensions/D13","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D14","name":"License Compliance","shortDescription":{"text":"License Compliance"},"helpUri":"https://codehealth.canine.dev/dimensions/D14"},{"id":"D15","name":"Churn \u00D7 Complexity Hotspots","shortDescription":{"text":"Churn \u00D7 Complexity Hotspots"},"helpUri":"https://codehealth.canine.dev/dimensions/D15"},{"id":"D16","name":"Bus Factor","shortDescription":{"text":"Bus Factor"},"helpUri":"https://codehealth.canine.dev/dimensions/D16"},{"id":"D17","name":"Explicit Debt","shortDescription":{"text":"Explicit Debt"},"helpUri":"https://codehealth.canine.dev/dimensions/D17"},{"id":"D19","name":"Documentation Quality","shortDescription":{"text":"Documentation Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D19"},{"id":"D20","name":"ADR Quality","shortDescription":{"text":"ADR Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D20"},{"id":"D21","name":"Naming Consistency","shortDescription":{"text":"Naming Consistency"},"helpUri":"https://codehealth.canine.dev/dimensions/D21"},{"id":"D24","name":"Comment Value","shortDescription":{"text":"Comment Value"},"helpUri":"https://codehealth.canine.dev/dimensions/D24"},{"id":"D26","name":"Project Cohesion","shortDescription":{"text":"Project Cohesion"},"helpUri":"https://codehealth.canine.dev/dimensions/D26"},{"id":"D28","name":"Secrets (history)","shortDescription":{"text":"Secrets (history)"},"helpUri":"https://codehealth.canine.dev/dimensions/D28","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D29","name":"Static Analysis (SAST)","shortDescription":{"text":"Static Analysis (SAST)"},"helpUri":"https://codehealth.canine.dev/dimensions/D29","relationships":[{"target":{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-94","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-77","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-79","CWE-89","CWE-78","CWE-94","CWE-77"],"owasp":"A05:2025"}},{"id":"D30","name":"Dependency Vulnerabilities","shortDescription":{"text":"Dependency Vulnerabilities"},"helpUri":"https://codehealth.canine.dev/dimensions/D30","relationships":[{"target":{"id":"CWE-1395","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-937","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1395","CWE-937"],"owasp":"A03:2025"}},{"id":"D31","name":"IaC \u0026 Container Security","shortDescription":{"text":"IaC \u0026 Container Security"},"helpUri":"https://codehealth.canine.dev/dimensions/D31","relationships":[{"target":{"id":"CWE-1032","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-732","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-16","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A02:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1032","CWE-732","CWE-16"],"owasp":"A02:2025"}},{"id":"D34","name":"Knowledge Freshness","shortDescription":{"text":"Knowledge Freshness"},"helpUri":"https://codehealth.canine.dev/dimensions/D34"},{"id":"D35","name":"Change Coupling","shortDescription":{"text":"Change Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D35"},{"id":"D36","name":"Supply-chain Provenance \u0026 Signing","shortDescription":{"text":"Supply-chain Provenance \u0026 Signing"},"helpUri":"https://codehealth.canine.dev/dimensions/D36","relationships":[{"target":{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-494","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1357","CWE-494"],"owasp":"A03:2025"}},{"id":"D43","name":"Malicious Dependencies","shortDescription":{"text":"Malicious Dependencies"},"helpUri":"https://codehealth.canine.dev/dimensions/D43","relationships":[{"target":{"id":"CWE-506","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-506"],"owasp":"A08:2025"}},{"id":"D44","name":"Platform End-of-Life","shortDescription":{"text":"Platform End-of-Life"},"helpUri":"https://codehealth.canine.dev/dimensions/D44"},{"id":"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":"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":"C1","name":"Data Protection","shortDescription":{"text":"Data Protection"},"helpUri":"https://codehealth.canine.dev/dimensions/C1"},{"id":"C4","name":"Data Retention","shortDescription":{"text":"Data Retention"},"helpUri":"https://codehealth.canine.dev/dimensions/C4"},{"id":"ED5","name":"Idempotency","shortDescription":{"text":"Idempotency"},"helpUri":"https://codehealth.canine.dev/dimensions/ED5"},{"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":"R11","name":"Import Boundaries","shortDescription":{"text":"Import Boundaries"},"helpUri":"https://codehealth.canine.dev/dimensions/R11"},{"id":"R2","name":"Cyclomatic Complexity","shortDescription":{"text":"Cyclomatic Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/R2"},{"id":"R3","name":"Large Files","shortDescription":{"text":"Large Files"},"helpUri":"https://codehealth.canine.dev/dimensions/R3"},{"id":"R4","name":"Test Coverage","shortDescription":{"text":"Test Coverage"},"helpUri":"https://codehealth.canine.dev/dimensions/R4"},{"id":"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":"X1","name":"Async correctness","shortDescription":{"text":"Async correctness"},"helpUri":"https://codehealth.canine.dev/dimensions/X1"},{"id":"X10","name":"Duplicated predicate","shortDescription":{"text":"Duplicated predicate"},"helpUri":"https://codehealth.canine.dev/dimensions/X10"},{"id":"X13","name":"Undrained process stream","shortDescription":{"text":"Undrained process stream"},"helpUri":"https://codehealth.canine.dev/dimensions/X13"},{"id":"X14","name":"Bypassable address classification","shortDescription":{"text":"Bypassable address classification"},"helpUri":"https://codehealth.canine.dev/dimensions/X14"},{"id":"X15","name":"Unvalidated length from an untrusted reader","shortDescription":{"text":"Unvalidated length from an untrusted reader"},"helpUri":"https://codehealth.canine.dev/dimensions/X15"},{"id":"X17","name":"Uncapped recursion over a caller-supplied document","shortDescription":{"text":"Uncapped recursion over a caller-supplied document"},"helpUri":"https://codehealth.canine.dev/dimensions/X17"},{"id":"X18","name":"Disposal-pattern correctness","shortDescription":{"text":"Disposal-pattern correctness"},"helpUri":"https://codehealth.canine.dev/dimensions/X18"},{"id":"X19","name":"Unrestored process-global state","shortDescription":{"text":"Unrestored process-global state"},"helpUri":"https://codehealth.canine.dev/dimensions/X19"},{"id":"X2","name":"Cancellation propagation","shortDescription":{"text":"Cancellation propagation"},"helpUri":"https://codehealth.canine.dev/dimensions/X2"},{"id":"X20","name":"Mistyped argument guard","shortDescription":{"text":"Mistyped argument guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X20"},{"id":"X21","name":"Side-effecting pattern guard","shortDescription":{"text":"Side-effecting pattern guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X21"},{"id":"X22","name":"Contradicted release guard","shortDescription":{"text":"Contradicted release guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X22"},{"id":"X23","name":"Unguarded diagnostic materialisation","shortDescription":{"text":"Unguarded diagnostic materialisation"},"helpUri":"https://codehealth.canine.dev/dimensions/X23"},{"id":"X26","name":"Unsynchronised callback handoff","shortDescription":{"text":"Unsynchronised callback handoff"},"helpUri":"https://codehealth.canine.dev/dimensions/X26"},{"id":"X27","name":"Collection changed while being enumerated","shortDescription":{"text":"Collection changed while being enumerated"},"helpUri":"https://codehealth.canine.dev/dimensions/X27"},{"id":"X28","name":"Index access outside its own emptiness guard","shortDescription":{"text":"Index access outside its own emptiness guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X28"},{"id":"X29","name":"Per-element action decided by a fixed element","shortDescription":{"text":"Per-element action decided by a fixed element"},"helpUri":"https://codehealth.canine.dev/dimensions/X29"},{"id":"X30","name":"Support guard that admits what it rejects","shortDescription":{"text":"Support guard that admits what it rejects"},"helpUri":"https://codehealth.canine.dev/dimensions/X30"},{"id":"X32","name":"Type resolved by simple name across every loaded assembly","shortDescription":{"text":"Type resolved by simple name across every loaded assembly"},"helpUri":"https://codehealth.canine.dev/dimensions/X32"},{"id":"X4","name":"Structured logging","shortDescription":{"text":"Structured logging"},"helpUri":"https://codehealth.canine.dev/dimensions/X4"},{"id":"X5","name":"Nullable reference types","shortDescription":{"text":"Nullable reference types"},"helpUri":"https://codehealth.canine.dev/dimensions/X5"},{"id":"X6","name":"Hand-rolled structured-format parsing","shortDescription":{"text":"Hand-rolled structured-format parsing"},"helpUri":"https://codehealth.canine.dev/dimensions/X6"},{"id":"X7","name":"Silent fallback defaults","shortDescription":{"text":"Silent fallback defaults"},"helpUri":"https://codehealth.canine.dev/dimensions/X7"},{"id":"X9","name":"Subsumed condition operand","shortDescription":{"text":"Subsumed condition operand"},"helpUri":"https://codehealth.canine.dev/dimensions/X9"}]}},"results":[{"ruleId":"D1","level":"warning","message":{"text":"tokscale_core::parse_all_messages_streaming (cyclomatic 178): tokscale_core::parse_all_messages_streaming has cyclomatic complexity 178 (threshold 15). To reduce it, separate the cases: extract each independent 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: 2 other methods here (tokscale_core::parse_all_messages_streaming::load_or_parse_resumable_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 3 times rather than 3 independent problems. Splitting this body alone leaves the other 2 exactly as they are. Where these are variations on one operation, the change that clears all 3 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":1904}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad7322b7f8bed75d12fa585c347a470454e91f44d816c186f86d0c2afb650147"}},{"ruleId":"D1","level":"warning","message":{"text":"tokscale_core::scanner::scan_all_clients_with_env_strategy_inner (cyclomatic 162): tokscale_core::scanner::scan_all_clients_with_env_strategy_inner has cyclomatic complexity 162 (threshold 15). Of this number, 160 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":2240}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa1342c087c2d72496a462a5da555a9e2acb8be0e6848955fa6ed06a1279765e"}},{"ruleId":"D1","level":"warning","message":{"text":"tokscale_core::sessions::codex::parse_codex_reader_with_record_limit (cyclomatic 122): tokscale_core::sessions::codex::parse_codex_reader_with_record_limit has cyclomatic complexity 122 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own 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":1077}}}],"partialFingerprints":{"codehealthFindingId/v1":"de671fcd64947b488f868563905c308dffd2b9bab4279c9050f2aa85e70aa736"}},{"ruleId":"D1","level":"warning","message":{"text":"tokscale_core::parse_local_clients (cyclomatic 86): tokscale_core::parse_local_clients has cyclomatic complexity 86 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own 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":7703}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1146cb361742284da2567b264faae6d5e40a535e73a4074a99811ae8707241c"}},{"ruleId":"D1","level":"warning","message":{"text":"tokscale_core::scanner::scan_directory (cyclomatic 84): tokscale_core::scanner::scan_directory has cyclomatic complexity 84 (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":519}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f3484d1f08789e8638adac43f0190a15c4bdc7f45344476aea265386dcb328f"}},{"ruleId":"D1","level":"warning","message":{"text":"DataLoader::aggregate_messages (cyclomatic 79): DataLoader::aggregate_messages has cyclomatic complexity 79 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/data/mod.rs"},"region":{"startLine":801}}}],"partialFingerprints":{"codehealthFindingId/v1":"42b46986e571e2e725ff863a761c364b51660a2d9a599350443c4ab5e779d018"}},{"ruleId":"D1","level":"warning","message":{"text":"tokscale_core::sessions::claudecode::parse_claude_lines (cyclomatic 62): tokscale_core::sessions::claudecode::parse_claude_lines has cyclomatic complexity 62 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/sessions/claudecode.rs"},"region":{"startLine":809}}}],"partialFingerprints":{"codehealthFindingId/v1":"9759f6bc6888a717aa8451be8bfd7625a27f7113fcca32c1f514700a24802d87"}},{"ruleId":"D1","level":"warning","message":{"text":"App::handle_key_event (cyclomatic 59): App::handle_key_event has cyclomatic complexity 59 (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":896}}}],"partialFingerprints":{"codehealthFindingId/v1":"264d3c3710058a57eddc85a87eea59fe64565d678e1af02911c399934cb083bf"}},{"ruleId":"D1","level":"warning","message":{"text":"tokscale_core::message_cache::read_shard_with_limit_unchecked (cyclomatic 59): tokscale_core::message_cache::read_shard_with_limit_unchecked has cyclomatic complexity 59 (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/message_cache.rs"},"region":{"startLine":4272}}}],"partialFingerprints":{"codehealthFindingId/v1":"6351bc5ecb5f4d5e134983b0880e807a790092e65422998a5976b1463482e0cd"}},{"ruleId":"D1","level":"warning","message":{"text":"PricingLookup::lookup_auto (cyclomatic 58): PricingLookup::lookup_auto has cyclomatic complexity 58 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own 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":909}}}],"partialFingerprints":{"codehealthFindingId/v1":"1dbf1937038546669d9122c53fc676ada580d984134533a6a58a6b1733cc9755"}},{"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":1478}}}],"partialFingerprints":{"codehealthFindingId/v1":"0964001dd015b7f9fc8fdaced830f7f3f93bf51cbe0d9b8b2c6f893b87ae63c2"}},{"ruleId":"D1","level":"warning","message":{"text":"tokscale_core::sessions::pi::parse_pi_format_file_inner (cyclomatic 52): tokscale_core::sessions::pi::parse_pi_format_file_inner has cyclomatic complexity 52 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/sessions/pi.rs"},"region":{"startLine":815}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1406e1767eb28216ca3a1fbf5eaa17d4c1eb3ab738e37e64d0bdd2bf8906cd8"}},{"ruleId":"D1","level":"warning","message":{"text":"tokscale_cli::main (cyclomatic 51): tokscale_cli::main 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. This is NOT this file\u0027s highest cyclomatic complexity: ClientFilter::as_filter_str (cyclomatic 63) 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":695}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa4a99b3af5226fbacdd03e3dcc3dc059ab3af7f93e958f5b8eee04f2fd7e48f"}},{"ruleId":"D1","level":"warning","message":{"text":"tokscale_core::sessions::qoder::parse_qoder_file (cyclomatic 50): tokscale_core::sessions::qoder::parse_qoder_file has cyclomatic complexity 50 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own 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/qoder.rs"},"region":{"startLine":503}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d4276cd513de2eda334f698519fde23bd5186bd780397c1ab9487468b1b0fee"}},{"ruleId":"D1","level":"warning","message":{"text":"tokscale_cli::run_pricing_lookup (cyclomatic 47): tokscale_cli::run_pricing_lookup has cyclomatic complexity 47 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This is NOT this file\u0027s highest cyclomatic complexity: ClientFilter::as_filter_str (cyclomatic 63) 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":3927}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7fe5b43bdafa0a7bcc68a5576342e3f7d119c3a7ca356950a93168eff4084a7"}},{"ruleId":"D1","level":"warning","message":{"text":"tokscale_core::sessions::dsh::parse_dsh_lines (cyclomatic 42): tokscale_core::sessions::dsh::parse_dsh_lines has cyclomatic complexity 42 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/sessions/dsh.rs"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"d225ec07c3458086b8335efd5ec4d8e910b2a6b7492077502cb18b77e1579595"}},{"ruleId":"D1","level":"warning","message":{"text":"tokscale_cli::run_models_report (cyclomatic 39): tokscale_cli::run_models_report 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. This is NOT this file\u0027s highest cyclomatic complexity: ClientFilter::as_filter_str (cyclomatic 63) 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":2389}}}],"partialFingerprints":{"codehealthFindingId/v1":"c28bd395f09390570d303f54b1553146244b02ee2e8be67092be9d0567af571c"}},{"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":714}}}],"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":612}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a6d7221b4eecf0b4f51a5572cbcb3a6211ebbe682aa6a5ceb32692093cc50a5"}},{"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 63) 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":4664}}}],"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":1756}}}],"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":850}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b9f502ddbd649f6ef03b24121b99d47745d143a25340998098b0f0fbb5de2e9"}},{"ruleId":"D1","level":"warning","message":{"text":"tokscale_core::sessions::grok::parse_grok_updates_file (cyclomatic 33): tokscale_core::sessions::grok::parse_grok_updates_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/grok.rs"},"region":{"startLine":487}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0d55d043121d3dc06e5f83caaff86d870b23ff00053eb6719931e514bc79723"}},{"ruleId":"D1","level":"warning","message":{"text":"tokscale_core::sessions::kiro::parse_kiro_file (cyclomatic 33): tokscale_core::sessions::kiro::parse_kiro_file has cyclomatic complexity 33 (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::run_submit_command (cyclomatic 32): tokscale_cli::run_submit_command has cyclomatic complexity 32 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This is NOT this file\u0027s highest cyclomatic complexity: ClientFilter::as_filter_str (cyclomatic 63) 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":7228}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee9f5d697cefe0d42b8e7a795a876fa5787c3d665d8bd427de4021315b32cb1d"}},{"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":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ec34c3c8a82b608f9663309b40cee0c754bd27288671fe62becd59756eed52d"}},{"ruleId":"D1","level":"warning","message":{"text":"SchemaAccumulator::ingest (cyclomatic 32): SchemaAccumulator::ingest has cyclomatic complexity 32 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/sessions/opencode_schema.rs"},"region":{"startLine":906}}}],"partialFingerprints":{"codehealthFindingId/v1":"191578f049623a4a04aea946b11ff5cf433c5a290c6d00f749c047c6983e7ff6"}},{"ruleId":"D1","level":"warning","message":{"text":"tokscale_cli::tui::ui::bar_chart::render_stacked_bar_chart (cyclomatic 31): tokscale_cli::tui::ui::bar_chart::render_stacked_bar_chart 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/bar_chart.rs"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"2dec5feb2283a51a4ef158e001f84dabbee9a1ffa4d6eaf6767fc27558ecc169"}},{"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":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b27c54792e4590979884bcf720887b3578da74b803b6fdf0232ebfd2dd92dc0"}},{"ruleId":"D1","level":"warning","message":{"text":"tokscale_cli::tui::ui::footer::render_help_row (cyclomatic 30): tokscale_cli::tui::ui::footer::render_help_row 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/footer.rs"},"region":{"startLine":246}}}],"partialFingerprints":{"codehealthFindingId/v1":"75506a511a52176e47dc0d35e0dbddc857df5a64ba3715cf72bd5d4faa58a0c2"}},{"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":386}}}],"partialFingerprints":{"codehealthFindingId/v1":"a23ab7fa0a5f5c2465ccd10a7bf0bc7ba36babf97779d34f83db0bf45864fe60"}},{"ruleId":"D1","level":"warning","message":{"text":"tokscale_core::pricing::lookup::uncovered_required_request_tiers (cyclomatic 30): tokscale_core::pricing::lookup::uncovered_required_request_tiers 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-core/src/pricing/lookup.rs"},"region":{"startLine":2348}}}],"partialFingerprints":{"codehealthFindingId/v1":"1737c93888fc341d86a14a9bfff07b548e8b100e977a1e4d47486d1edd13b603"}},{"ruleId":"D1","level":"warning","message":{"text":"tokscale_cli::cursor::fetch_cursor_usage_events_json_merging (cyclomatic 29): tokscale_cli::cursor::fetch_cursor_usage_events_json_merging 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-cli/src/cursor.rs"},"region":{"startLine":2074}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0ea3c1e190d6f48f1f35a8b7eafc372a1775ebe7eba3303813f8b34827d94eb"}},{"ruleId":"D1","level":"warning","message":{"text":"SourceMessageCache::save_if_dirty_with_limit (cyclomatic 29): SourceMessageCache::save_if_dirty_with_limit 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. This is NOT this file\u0027s highest cyclomatic complexity: tokscale_core::message_cache::parser_version (cyclomatic 44) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded 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":3966}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8bac0d790e99c7382ec01f1f1ce51045a1edbd501877c9e9d27bf134e43f146"}},{"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":707}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebac9103ec13023f7f1857ef5c0c691eb79947797e0ad423a25c366c66a48bc8"}},{"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_core::sessions::magpie::attribute_client_responses (cyclomatic 28): tokscale_core::sessions::magpie::attribute_client_responses 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-core/src/sessions/magpie.rs"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa75de868c27beefdb4eec67c48e0f6362779b752550fb15fd1f057f27c619b9"}},{"ruleId":"D1","level":"warning","message":{"text":"SourceMessageCache::ensure_namespace_loaded (cyclomatic 27): SourceMessageCache::ensure_namespace_loaded has cyclomatic complexity 27 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This is NOT this file\u0027s highest cyclomatic complexity: tokscale_core::message_cache::parser_version (cyclomatic 44) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded 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":3645}}}],"partialFingerprints":{"codehealthFindingId/v1":"c176882408ca82dcaafec315daacbcd9b7bd5fcb7fb962d95e98884b00cd226e"}},{"ruleId":"D1","level":"warning","message":{"text":"tokscale_core::parse_all_messages_streaming::load_or_parse_resumable_source (cyclomatic 27): tokscale_core::parse_all_messages_streaming::load_or_parse_resumable_source has cyclomatic complexity 27 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This shape REPEATS in the file: 2 other methods here (tokscale_core::parse_all_messages_streaming, 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 3 times rather than 3 independent problems. Splitting this body alone leaves the other 2 exactly as they are. Where these are variations on one operation, the change that clears all 3 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":2201}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a9e954ddba25ca5727bc5c5ee20b22df980e3dd29459724089c548bf005b51d"}},{"ruleId":"D1","level":"warning","message":{"text":"tokscale_core::sessions::copilot_session_state::parse_copilot_session_state_file_into (cyclomatic 27): tokscale_core::sessions::copilot_session_state::parse_copilot_session_state_file_into has cyclomatic complexity 27 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/sessions/copilot_session_state.rs"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"09e0d57adaf3787d1aecb39f6d12c9e1e25ee6e0ff0f2418ebb2b813ee16e41c"}},{"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":"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":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9ab0f66e1f3ecb1e8465bb07b4a2838f9c5604649105ae6c058700290a49467"}},{"ruleId":"D1","level":"warning","message":{"text":"tokscale_core::sessions::grok::prefer_unified_log_messages (cyclomatic 26): tokscale_core::sessions::grok::prefer_unified_log_messages 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-core/src/sessions/grok.rs"},"region":{"startLine":1150}}}],"partialFingerprints":{"codehealthFindingId/v1":"a73a3865252910a39b8640464643ffd90b923cfc3dd3fa44cf96e6a57234b616"}},{"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":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"af76e552b2665930662f2c9f1687fad6a1927264a0f92e5abdfb9d5e5ec5f6a6"}},{"ruleId":"D1","level":"warning","message":{"text":"tokscale_core::provider_identity::inferred_provider_from_model_inner (cyclomatic 25): tokscale_core::provider_identity::inferred_provider_from_model_inner has cyclomatic complexity 25 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/provider_identity.rs"},"region":{"startLine":268}}}],"partialFingerprints":{"codehealthFindingId/v1":"aebe4dc0a84bab2d5092f38ae01684dcb334764aff579ed384542ebf5396ef1b"}},{"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":"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 63) 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":6343}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c6115e36c23b7311d7a28cccc3e15a700b6a9fb017aca8851140c6539e739b6"}},{"ruleId":"D1","level":"warning","message":{"text":"tokscale_cli::tui::data::accumulate_session_entry (cyclomatic 24): tokscale_cli::tui::data::accumulate_session_entry 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-cli/src/tui/data/mod.rs"},"region":{"startLine":288}}}],"partialFingerprints":{"codehealthFindingId/v1":"23572284e446ace71427728c8b94f29f7ac884c60215f37b38416f12b6e3d447"}},{"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":"tokscale_cli::tui::ui::stats::render_graph (cyclomatic 23): tokscale_cli::tui::ui::stats::render_graph 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-cli/src/tui/ui/stats.rs"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"0931a612241fa00aa6e07aa7ea0743091cf13eee1a4a9695d5acd0a2dfab4575"}},{"ruleId":"D1","level":"warning","message":{"text":"tokscale_cli::tui::ui::stats::render_stats_panel (cyclomatic 23): tokscale_cli::tui::ui::stats::render_stats_panel has cyclomatic complexity 23 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/ui/stats.rs"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"472289788fb8b4faf0431890074547ef3a818e85741ab72e0bbef27dd3fbfed9"}},{"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":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"85af0d1cff735f7be2f484f9566197fe55d57388e766a0c9073d15233a4e26b5"}},{"ruleId":"D1","level":"warning","message":{"text":"tokscale_core::sessions::bb::scan_bb_sqlite (cyclomatic 23): tokscale_core::sessions::bb::scan_bb_sqlite has cyclomatic complexity 23 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/sessions/bb.rs"},"region":{"startLine":546}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5966c95994936c4eed4381542312add71025921a9b696916d8b387a08b8e950"}},{"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_cli::tui::ui::footer::render_status_row (cyclomatic 22): tokscale_cli::tui::ui::footer::render_status_row 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/footer.rs"},"region":{"startLine":592}}}],"partialFingerprints":{"codehealthFindingId/v1":"3da5f20b7a325192087f9d89a53f75ae1536cc4ed6b1ddb5a8c243605e36b410"}},{"ruleId":"D1","level":"warning","message":{"text":"tokscale_cli::tui::ui::usage::render_selected_account (cyclomatic 22): tokscale_cli::tui::ui::usage::render_selected_account 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/tui/ui/usage.rs"},"region":{"startLine":1656}}}],"partialFingerprints":{"codehealthFindingId/v1":"2620f1a360718b7431b5870d9ca121bd76bf43f69c14a0450d5a556319984039"}},{"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":374}}}],"partialFingerprints":{"codehealthFindingId/v1":"c40e507be38657041d9f68515a0ce35dc40f342c7a73d7657065b4ff5297854c"}},{"ruleId":"D1","level":"warning","message":{"text":"tokscale_core::sessions::opencode_schema::scan_opencode_schema_sqlite_with_session_clients (cyclomatic 22): tokscale_core::sessions::opencode_schema::scan_opencode_schema_sqlite_with_session_clients 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/sessions/opencode_schema.rs"},"region":{"startLine":1570}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9be93448a6a45de76f9910aff5078ef12dc9bd55a485463d11b5fa9da12ad72"}},{"ruleId":"D1","level":"warning","message":{"text":"tokscale_cli::commands::wrapped::load_wrapped_data (cyclomatic 21): tokscale_cli::commands::wrapped::load_wrapped_data 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-cli/src/commands/wrapped.rs"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"5be93ccb103a3cac9ac28a41015a0cd4ab748c1e2d8ba03ef1f99cb12b4fdfb9"}},{"ruleId":"D1","level":"warning","message":{"text":"tokscale_cli::tui::ui::models::render (cyclomatic 21): tokscale_cli::tui::ui::models::render has cyclomatic complexity 21 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/ui/models.rs"},"region":{"startLine":249}}}],"partialFingerprints":{"codehealthFindingId/v1":"71258862c000c03c10e6c8370f582c17f9647d7cacad06baa65dba93a20df3af"}},{"ruleId":"D1","level":"warning","message":{"text":"CustomPricing::load_from_str (cyclomatic 21): CustomPricing::load_from_str 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/pricing/custom.rs"},"region":{"startLine":412}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e2b36bb6f5c8c6d7410927ee09360cb2fc3b389d56fce6f0b962fe638eea424"}},{"ruleId":"D1","level":"warning","message":{"text":"tokscale_core::claude_desktop::parse_tree (cyclomatic 21): tokscale_core::claude_desktop::parse_tree 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/claude_desktop/mod.rs"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5d78867d14e408bceb69bb7f138e19c45f5a897019382ec1135716383c46669"}},{"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":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3f5b9daff296da647018ea0412fa375e328cc3d3cd51ef74de3043bba1d3bb3"}},{"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":633}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1c9ff174372d64af36f9ad2d65ec697db74ae66ad2328bff418c01c85c01da0"}},{"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":711}}}],"partialFingerprints":{"codehealthFindingId/v1":"269c50cdf21173899c9c60766d3f7c3bde34079616968139f922305f50f4e697"}},{"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":4330}}}],"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":"tokscale_cli::amp::sync_amp_cache_with (cyclomatic 19): tokscale_cli::amp::sync_amp_cache_with has cyclomatic complexity 19 (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/amp.rs"},"region":{"startLine":276}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a9714dafbe22ff2455a82ab5a313be8c850d6dd69c435e66645d38c474ec887"}},{"ruleId":"D1","level":"warning","message":{"text":"tokscale_cli::tui::ui::daily::render_detail (cyclomatic 19): tokscale_cli::tui::ui::daily::render_detail 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/daily.rs"},"region":{"startLine":445}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a004cb7337fe81b426574b6848b2b8e072e0a9ce017280ec33e1fc8026c9816"}},{"ruleId":"D1","level":"warning","message":{"text":"tokscale_cli::tui::ui::overview::render_top_models (cyclomatic 19): tokscale_cli::tui::ui::overview::render_top_models 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/overview.rs"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c7da173c94f5d612b573d665c9135ad9ea940dcf094fb1f434b64329c89f1d0"}},{"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":591}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b1ca4f42d2a3244fde74f8553073b637cd23d5dc3619567d5807af0c937db99"}},{"ruleId":"D1","level":"warning","message":{"text":"PathRoot::resolve_with_env_strategy (cyclomatic 19): PathRoot::resolve_with_env_strategy 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/clients.rs"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"4996ec8ac63ba829a2b9d43f98229844933786f4ff2b01b12ce64ebd17b57aa7"}},{"ruleId":"D1","level":"warning","message":{"text":"ModelUsageFold::add (cyclomatic 19): ModelUsageFold::add 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/lib.rs"},"region":{"startLine":5979}}}],"partialFingerprints":{"codehealthFindingId/v1":"89482723d13b7d50abbdce92dda8184b5305a40b4a72c1ea88fcb6d13ac66755"}},{"ruleId":"D1","level":"warning","message":{"text":"tokscale_core::parse_all_messages_streaming::load_or_parse_codex_source (cyclomatic 19): tokscale_core::parse_all_messages_streaming::load_or_parse_codex_source has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This shape REPEATS in the file: 2 other methods here (tokscale_core::parse_all_messages_streaming, tokscale_core::parse_all_messages_streaming::load_or_parse_resumable_source) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 3 times rather than 3 independent problems. Splitting this body alone leaves the other 2 exactly as they are. Where these are variations on one operation, the change that clears all 3 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":3200}}}],"partialFingerprints":{"codehealthFindingId/v1":"897a2a1cbcfc24823d089ad785ea747b6cdfaf84d9a5b53122cc36aa86b59fe9"}},{"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":3136}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d1bec517cd8b31bbd9d848e16807542ddff00d4b6c46220cb500ee05d6e161c"}},{"ruleId":"D1","level":"warning","message":{"text":"tokscale_core::scanner::discover_copilot_vscode_sessions (cyclomatic 19): tokscale_core::scanner::discover_copilot_vscode_sessions 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/scanner.rs"},"region":{"startLine":2077}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d03bc98f1803742e3912bb3d84757b01a08332f3113b9311a0a82c5daff6804"}},{"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":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0e8660c66d2c74bf145faf4ce0d8780685a0897577d8cd736c3d431492cb4ed"}},{"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":632}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e1892c398bbb5f4fe22e07a84f407a1673c08000642a22b467d4fcf2f51b265"}},{"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::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":749}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d5eecbe9d303ce3f966f7fb697ca4cd5ec4c94c50c50150ba216cfe788d139d"}},{"ruleId":"D1","level":"warning","message":{"text":"tokscale_core::sessions::proma::reconcile_sources (cyclomatic 19): tokscale_core::sessions::proma::reconcile_sources 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/proma.rs"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"311d496b2e61268f2434693061176a5e11d81375afaf29db2f97f5dc9731ecc1"}},{"ruleId":"D1","level":"warning","message":{"text":"tokscale_cli::antigravity::sync_antigravity_cache_impl_with_deadline (cyclomatic 18): tokscale_cli::antigravity::sync_antigravity_cache_impl_with_deadline 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/antigravity.rs"},"region":{"startLine":357}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce9c495c4c9489be79a35c44e53fa88802dedf706878a48058f0c0b4d57ac6ed"}},{"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::parse_antigravity_family_messages_with_recount_proofs (cyclomatic 18): tokscale_core::parse_antigravity_family_messages_with_recount_proofs has cyclomatic complexity 18 (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/lib.rs"},"region":{"startLine":9372}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddc017ceab4f07be172dbe94c1bca2a43d2f82eecfa77f5587bbcf6d4e4dbbf4"}},{"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":"tokscale_core::sessions::hermes::allocate_row_by_days (cyclomatic 18): tokscale_core::sessions::hermes::allocate_row_by_days 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-core/src/sessions/hermes.rs"},"region":{"startLine":444}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba397a10c158fc142a194d084c96da6cbe8c37b14462e0efe9d57fbe6fb3e13d"}},{"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::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":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ead07220ed25065f9ac9a6567b65c79efd5dbda0b6e943451cb5f99e0008d67"}},{"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":626}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b36ffac9206d294a517aa56413eb8ff035443f7b24a87a5d4ed79eac6241df4"}},{"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":1661}}}],"partialFingerprints":{"codehealthFindingId/v1":"717d79de0423226803ecff507e30a197470564d982ff595c70711d853339c4b8"}},{"ruleId":"D1","level":"warning","message":{"text":"tokscale_cli::cursor::cursor_usage_cache_is_fresh_in_at (cyclomatic 17): tokscale_cli::cursor::cursor_usage_cache_is_fresh_in_at 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":1802}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbf21c226e59c65ac699cb41fc4ba32be048738fc3e81351d3ad2256617d53d3"}},{"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_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::tui::ui::footer::render_main_row (cyclomatic 17): tokscale_cli::tui::ui::footer::render_main_row 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/tui/ui/footer.rs"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"ccf0e7a52cedef0bae8671b2cb5c6b3b46e68eda3a95892f24126f3c6ffc31f8"}},{"ruleId":"D1","level":"warning","message":{"text":"PricingLookup::resolve_for_usage (cyclomatic 17): PricingLookup::resolve_for_usage 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-core/src/pricing/lookup.rs"},"region":{"startLine":2069}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9e027524cddb561e8146c4094ce941a82c29a1a5d68a8b3f851a1f698aaca96"}},{"ruleId":"D1","level":"warning","message":{"text":"PricingService::explain_message (cyclomatic 17): PricingService::explain_message 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-core/src/pricing/mod.rs"},"region":{"startLine":866}}}],"partialFingerprints":{"codehealthFindingId/v1":"3faa9a569bbeab2ea8a5979d9c594b6914f3baf2e95fb7652bafb1af14c634ca"}},{"ruleId":"D1","level":"warning","message":{"text":"tokscale_core::claude_desktop::read (cyclomatic 17): tokscale_core::claude_desktop::read 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/claude_desktop/mod.rs"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"3241aa6764b56812260128989bc94162d1a82f7bd86d28a13de2165d4583a907"}},{"ruleId":"D1","level":"warning","message":{"text":"tokscale_core::claude_desktop::indexeddb::decode (cyclomatic 17): tokscale_core::claude_desktop::indexeddb::decode 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/claude_desktop/indexeddb.rs"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4944c6d73d307233aafe8de916d883bb53daa6692ab30ddc21c29e6e870ffae"}},{"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":258}}}],"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":976}}}],"partialFingerprints":{"codehealthFindingId/v1":"62ae43e63cf87b26db6f0a7c0f4db68c606ccdd1c327c7b0821a36aaddf6eff2"}},{"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 63) 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":7571}}}],"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 63) 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":7932}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3c239ef1182efa562294dda171411d51c4b3decab73fb1f5f5fde4beab303f2"}},{"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":363}}}],"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":1220}}}],"partialFingerprints":{"codehealthFindingId/v1":"0161139f189c662b307a5b103390e32d5a621a6b7a81de84296a99f4fcb34804"}},{"ruleId":"D1","level":"warning","message":{"text":"tokscale_cli::commands::usage::copilot::parse_usage_response (cyclomatic 16): tokscale_cli::commands::usage::copilot::parse_usage_response 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/usage/copilot.rs"},"region":{"startLine":778}}}],"partialFingerprints":{"codehealthFindingId/v1":"39457752a4e84d266e159b8175f4164e79b3122291302beff081c3a77b85da30"}},{"ruleId":"D1","level":"warning","message":{"text":"tokscale_cli::cursor::sync_cursor_cache_with_fetcher_in_home (cyclomatic 16): tokscale_cli::cursor::sync_cursor_cache_with_fetcher_in_home 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/cursor.rs"},"region":{"startLine":2401}}}],"partialFingerprints":{"codehealthFindingId/v1":"69e0db7cdee05fd3c3595694583ba7903e929f947a3daf2bb923b81768897391"}},{"ruleId":"D1","level":"warning","message":{"text":"DesktopUsage::merge_into (cyclomatic 16): DesktopUsage::merge_into 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-core/src/claude_desktop/mod.rs"},"region":{"startLine":421}}}],"partialFingerprints":{"codehealthFindingId/v1":"76bd4c353cffe0f6d4df4b37129909b92a38471e07967bf8882c3e2803dcbf5b"}},{"ruleId":"D1","level":"warning","message":{"text":"tokscale_core::sessions::codex::read_bounded_jsonl_line (cyclomatic 16): tokscale_core::sessions::codex::read_bounded_jsonl_line 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-core/src/sessions/codex.rs"},"region":{"startLine":974}}}],"partialFingerprints":{"codehealthFindingId/v1":"5172dbbed3cb64fc1ffa401b1e9c20fbd904bbf3f194655b8d34a047d89ab59f"}},{"ruleId":"D1","level":"warning","message":{"text":"tokscale_core::sessions::openclaw::ingest_openclaw_entry (cyclomatic 16): tokscale_core::sessions::openclaw::ingest_openclaw_entry 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-core/src/sessions/openclaw.rs"},"region":{"startLine":331}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ae534a9d644a8b5513b2d58e24482f6518b605067b792dc7119dd00806950df"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_core::sessions::codex::parse_codex_reader_with_record_limit (cognitive 413): tokscale_core::sessions::codex::parse_codex_reader_with_record_limit has cognitive complexity 413 (threshold 15). Drivers by points: if/else 93 (369 pts), boolean chains 22, match/switch 5 (21 pts), loops 1 (nesting depth added 292). 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":1077}}}],"partialFingerprints":{"codehealthFindingId/v1":"796723211bfaeaf228d3432a0c1cac2cba702f7fb1a8241e9df8dab7397f4185"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_core::scanner::scan_all_clients_with_env_strategy_inner (cognitive 332): tokscale_core::scanner::scan_all_clients_with_env_strategy_inner has cognitive complexity 332 (threshold 15). Drivers by points: if/else 130 (251 pts), loops 31 (65 pts), boolean chains 13, match/switch 2 (3 pts) (nesting depth added 156). Of this number, 328 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":2240}}}],"partialFingerprints":{"codehealthFindingId/v1":"502a99c32760022dfc81ecb465cbf4e1c27059b1a1f5e4d83e098ba67fb46bce"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_core::parse_all_messages_streaming (cognitive 304): tokscale_core::parse_all_messages_streaming has cognitive complexity 304 (threshold 15). Drivers by points: if/else 175 (343 pts), loops 63 (81 pts), boolean chains 40, match/switch 12 (20 pts) (nesting depth added 194). To reduce it, split the body into named stages: move each independent 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: 5 other methods here (tokscale_core::parse_all_messages_streaming::load_or_parse_resumable_source, tokscale_core::parse_all_messages_streaming::load_or_parse_prime_source, tokscale_core::parse_all_messages_streaming::load_or_parse_micode_source, \u2026) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 6 times rather than 6 independent problems. Splitting this body alone leaves the other 5 exactly as they are. Where these are variations on one operation, the change that clears all 6 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":1904}}}],"partialFingerprints":{"codehealthFindingId/v1":"e241eba90a304faf1cfdbb6b7e49f707185ce5543937aa033d0034d3191805e9"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_core::sessions::claudecode::parse_claude_lines (cognitive 194): tokscale_core::sessions::claudecode::parse_claude_lines has cognitive complexity 194 (threshold 15). Drivers by points: if/else 44 (159 pts), match/switch 5 (19 pts), boolean chains 9, loops 4 (7 pts) (nesting depth added 132). 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":809}}}],"partialFingerprints":{"codehealthFindingId/v1":"db0edf45d7de5c557c45793a6fdbee1c81671f22633c07a446b9099fbc8370ef"}},{"ruleId":"D2","level":"warning","message":{"text":"DataLoader::aggregate_messages (cognitive 164): DataLoader::aggregate_messages has cognitive complexity 164 (threshold 15). Drivers by points: if/else 66 (132 pts), boolean chains 12, loops 9 (12 pts), match/switch 3 (8 pts) (nesting depth added 74). To reduce it, split the body into named stages: move each independent step or branch into 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":801}}}],"partialFingerprints":{"codehealthFindingId/v1":"8162eeef85e9b1a894140218b934ef1691e664720d2e506e930a1b22186ef488"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_core::parse_local_clients (cognitive 129): tokscale_core::parse_local_clients has cognitive complexity 129 (threshold 15). Drivers by points: if/else 51 (82 pts), loops 18 (24 pts), boolean chains 21, match/switch 1 (2 pts) (nesting depth added 38). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/lib.rs"},"region":{"startLine":7703}}}],"partialFingerprints":{"codehealthFindingId/v1":"61790604c94ae0d28a0d60e0c56d4a2947d003a0361c696857eb6d435da1c5be"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_cli::run_models_report (cognitive 111): tokscale_cli::run_models_report has cognitive complexity 111 (threshold 15). Drivers by points: if/else 32 (66 pts), loops 9 (36 pts), match/switch 3 (8 pts), boolean chains 1 (nesting depth added 66). To reduce it, split the body into named stages: move each independent step or branch into 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":2389}}}],"partialFingerprints":{"codehealthFindingId/v1":"84b834fd9abf8ce9fe48817aaebd63e278f9d0c739c44aafec8b622b7db04bfd"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_core::sessions::dsh::parse_dsh_lines (cognitive 108): tokscale_core::sessions::dsh::parse_dsh_lines has cognitive complexity 108 (threshold 15). Drivers by points: if/else 37 (95 pts), match/switch 3 (8 pts), boolean chains 4, loops 1 (nesting depth added 63). To reduce it, split the body into named stages: move each independent step or branch into 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":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"18049e6435235f3e48942afcff40325551daa95fab972a4042bdcad94b4abc16"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_core::sessions::pi::parse_pi_format_file_inner (cognitive 96): tokscale_core::sessions::pi::parse_pi_format_file_inner has cognitive complexity 96 (threshold 15). Drivers by points: if/else 42 (76 pts), boolean chains 12, match/switch 4 (8 pts) (nesting depth added 38). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/sessions/pi.rs"},"region":{"startLine":815}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4aeba93b38ec950d53580fa15c58a5128314397cfdc053a7628e39eb331208f"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_cli::run_pricing_lookup (cognitive 93): tokscale_cli::run_pricing_lookup has cognitive complexity 93 (threshold 15). Drivers by points: if/else 41 (74 pts), match/switch 4 (8 pts), loops 2 (6 pts), boolean chains 5 (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/main.rs"},"region":{"startLine":3927}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b38e82129b3c4a6229c5ad374890185ff6fb8fcd979da0f2b88b859072ffe14"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_core::sessions::qoder::parse_qoder_file (cognitive 93): tokscale_core::sessions::qoder::parse_qoder_file has cognitive complexity 93 (threshold 15). Drivers by points: if/else 39 (79 pts), match/switch 5 (9 pts), boolean chains 5 (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/qoder.rs"},"region":{"startLine":503}}}],"partialFingerprints":{"codehealthFindingId/v1":"5495636ede2347a1a03c8520038d50ae273742233bbb62ef4c75d305dca9e1f3"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_core::message_cache::read_shard_with_limit_unchecked (cognitive 92): tokscale_core::message_cache::read_shard_with_limit_unchecked has cognitive complexity 92 (threshold 15). Drivers by points: if/else 22 (41 pts), match/switch 16 (29 pts), loops 4 (14 pts), boolean chains 8 (nesting depth added 42). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/message_cache.rs"},"region":{"startLine":4272}}}],"partialFingerprints":{"codehealthFindingId/v1":"adc306c30134a13ca50bdebf225c738164ada25ac6456d5b53834e77bc7a9dd9"}},{"ruleId":"D2","level":"warning","message":{"text":"PricingLookup::lookup_auto (cognitive 83): PricingLookup::lookup_auto has cognitive complexity 83 (threshold 15). Drivers by points: if/else 52 (77 pts), boolean chains 6 (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":909}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e90c2d85f7e70ba0c0a6f69281915c8f2a7f8a038fb91292c2a54649515cfb4"}},{"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":714}}}],"partialFingerprints":{"codehealthFindingId/v1":"46616ed61353595c3f4c8a58a82f6c867ee44615b858b27cc0734541e46495b4"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_cli::tui::ui::bar_chart::render_stacked_bar_chart (cognitive 76): tokscale_cli::tui::ui::bar_chart::render_stacked_bar_chart has cognitive complexity 76 (threshold 15). Drivers by points: if/else 25 (51 pts), loops 8 (17 pts), match/switch 1 (5 pts), boolean chains 3 (nesting depth added 39). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/ui/bar_chart.rs"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"866e50068de9bb5e57505b2f7935d3850f24c645cc72726f5e52c2693d04d57f"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_core::claude_desktop::parse_tree (cognitive 75): tokscale_core::claude_desktop::parse_tree has cognitive complexity 75 (threshold 15). Drivers by points: if/else 15 (58 pts), loops 5 (16 pts), boolean chains 1 (nesting depth added 54). 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/claude_desktop/mod.rs"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"664557c99c444ef1c625ce82e239ebedb933f8a3a0b9f8dbb1f3674580124a5a"}},{"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":612}}}],"partialFingerprints":{"codehealthFindingId/v1":"09122571b1ecb1b349ae158dcb459eab7b2f30f469e2f6302eb881fa9430fb7c"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_core::sessions::grok::parse_grok_updates_file (cognitive 72): tokscale_core::sessions::grok::parse_grok_updates_file has cognitive complexity 72 (threshold 15). Drivers by points: if/else 29 (67 pts), match/switch 2 (3 pts), boolean chains 1, loops 1 (nesting depth added 39). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/sessions/grok.rs"},"region":{"startLine":487}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0bdf3dd006db8d0d471f330200cad30eea98b761dbdfcccdd7093195b6098b3"}},{"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":1756}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fec709c86b245b4c1fe8dd4d28251da61408a3a3c93dfe0f396d7f8fa5c2c7d"}},{"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 11 (28 pts), match/switch 2 (5 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":850}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e88c7c8d31bc37a284ba8dc72df59fa00ba7bc80af2e1c5f9ad0502e7ec7aea"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_cli::cursor::fetch_cursor_usage_events_json_merging (cognitive 63): tokscale_cli::cursor::fetch_cursor_usage_events_json_merging has cognitive complexity 63 (threshold 15). Drivers by points: if/else 22 (49 pts), match/switch 5 (10 pts), boolean chains 3, loops 1 (nesting depth added 32). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/cursor.rs"},"region":{"startLine":2074}}}],"partialFingerprints":{"codehealthFindingId/v1":"15b7a9f1f83c7115c75655f850e9857431fa344245d04390dedc1bc7c7cb54b2"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_cli::run_clients_command (cognitive 59): tokscale_cli::run_clients_command has cognitive complexity 59 (threshold 15). Drivers by points: if/else 23 (44 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":4664}}}],"partialFingerprints":{"codehealthFindingId/v1":"0000baf3fb9d56479f130742e5239141c889a61cd045396afb2f36d88ebcfc3f"}},{"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":1478}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f6cf6fc10b7873e777a7078a52e9929dc7c64314d1a2d4d99526c4f23a6b19d"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_cli::tui::ui::footer::render_help_row (cognitive 57): tokscale_cli::tui::ui::footer::render_help_row has cognitive complexity 57 (threshold 15). Drivers by points: if/else 45 (55 pts), match/switch 1 (2 pts) (nesting depth added 11). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, 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":246}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf094a9e309dc2883263ea1a1c95c1c160acbb7b87e1b81a17930e292e497daf"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_core::sessions::copilot_session_state::parse_copilot_session_state_file_into (cognitive 52): tokscale_core::sessions::copilot_session_state::parse_copilot_session_state_file_into has cognitive complexity 52 (threshold 15). Drivers by points: if/else 15 (38 pts), loops 4 (9 pts), match/switch 2 (3 pts), boolean chains 2 (nesting depth added 29). 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_session_state.rs"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"115e44e8dc3eb5e92573e540a84abcecf341e2e9462326d85e75711cd7218505"}},{"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":633}}}],"partialFingerprints":{"codehealthFindingId/v1":"14325bd9c3053b007ee9d2edb0c0c1016de6ece75958bc537813f0e7386630d0"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_core::scanner::scan_directory (cognitive 50): tokscale_core::scanner::scan_directory has cognitive complexity 50 (threshold 15). Drivers by points: boolean chains 26, if/else 17 (21 pts), match/switch 2 (3 pts) (nesting depth added 5). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/scanner.rs"},"region":{"startLine":519}}}],"partialFingerprints":{"codehealthFindingId/v1":"804a823377b7ca4fb4d524ce447c1367c67268b7aaa5fd03282543465c05c9a2"}},{"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":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b2dd2b6004fd24a065a5c877158938c636d6e89302d8372ab32a53890c04fbe"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_core::sessions::grok::prefer_unified_log_messages (cognitive 49): tokscale_core::sessions::grok::prefer_unified_log_messages has cognitive complexity 49 (threshold 15). Drivers by points: if/else 17 (35 pts), boolean chains 5, match/switch 2 (5 pts), loops 4 (nesting depth added 21). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/sessions/grok.rs"},"region":{"startLine":1150}}}],"partialFingerprints":{"codehealthFindingId/v1":"77aced8f859cdaaaa37e1fd5a96f24d510bf27b3aacc2e016841484925213ad3"}},{"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":3607}}}],"partialFingerprints":{"codehealthFindingId/v1":"0af49a96f7f466c9a51a22087980d37f7be307a7252c440720515b29d6990887"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_cli::run_submit_command (cognitive 47): tokscale_cli::run_submit_command has cognitive complexity 47 (threshold 15). Drivers by points: if/else 26 (39 pts), boolean chains 4, match/switch 3 (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-cli/src/main.rs"},"region":{"startLine":7228}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f08d6d47b567eb99183872426e05e46de3bf29ea418938936e8ea1d8149caba"}},{"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":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3ded78232c7066e38e0ebc482519d88d9e7631d451b459f16c002c94d8c7c50"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_core::sessions::kiro::parse_kiro_file (cognitive 47): tokscale_core::sessions::kiro::parse_kiro_file has cognitive complexity 47 (threshold 15). Drivers by points: if/else 27 (35 pts), match/switch 5, loops 3 (4 pts), boolean chains 3 (nesting depth added 9). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/sessions/kiro.rs"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"a42510bf2c1bd471e8e5475f200670b3894c49dd4489c15c1549a0b0489feeed"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_core::sessions::proma::reconcile_sources (cognitive 47): tokscale_core::sessions::proma::reconcile_sources has cognitive complexity 47 (threshold 15). Drivers by points: if/else 8 (33 pts), loops 4 (6 pts), match/switch 2 (6 pts), boolean chains 2 (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/proma.rs"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1b7c5dab9a0596fef4311675968bf2d6e3cc9e52359545072ecbdd385d76314"}},{"ruleId":"D2","level":"warning","message":{"text":"SchemaAccumulator::ingest (cognitive 46): SchemaAccumulator::ingest has cognitive complexity 46 (threshold 15). Drivers by points: if/else 28 (40 pts), match/switch 5, 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":906}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9b46f35bdea65b16e9d0ec5fb183d477026ad0518ace690b77aaa5a292a44ef"}},{"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 44): SourceMessageCache::save_if_dirty_with_limit has cognitive complexity 44 (threshold 15). Drivers by points: if/else 16 (28 pts), loops 6 (8 pts), match/switch 4 (7 pts), boolean chains 1 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/message_cache.rs"},"region":{"startLine":3966}}}],"partialFingerprints":{"codehealthFindingId/v1":"92d318a53ad71c8c9312992f6413d8918bd74758b04d1898058b3349ca2a9557"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_core::scanner::discover_copilot_vscode_sessions (cognitive 44): tokscale_core::scanner::discover_copilot_vscode_sessions has cognitive complexity 44 (threshold 15). Drivers by points: if/else 9 (27 pts), loops 5 (9 pts), match/switch 3 (7 pts), boolean chains 1 (nesting depth added 26). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/scanner.rs"},"region":{"startLine":2077}}}],"partialFingerprints":{"codehealthFindingId/v1":"e30e0baf28c71c28a21120670d3c6562e53f8b1cf13e642fa8a09bd225ee4c1e"}},{"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_cli::tui::ui::stats::render_graph (cognitive 43): tokscale_cli::tui::ui::stats::render_graph has cognitive complexity 43 (threshold 15). Drivers by points: if/else 13 (31 pts), loops 5 (6 pts), match/switch 3 (5 pts), boolean chains 1 (nesting depth added 21). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/ui/stats.rs"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c88a466152cea91ed89ad78256880f6954e2abc7c71c8830e1e107f36515126"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_core::parse_all_messages_streaming::load_or_parse_resumable_source (cognitive 43): tokscale_core::parse_all_messages_streaming::load_or_parse_resumable_source has cognitive complexity 43 (threshold 15). Drivers by points: if/else 18 (33 pts), boolean chains 6, match/switch 3 (4 pts) (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: 5 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_micode_source, \u2026) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 6 times rather than 6 independent problems. Splitting this body alone leaves the other 5 exactly as they are. Where these are variations on one operation, the change that clears all 6 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":2201}}}],"partialFingerprints":{"codehealthFindingId/v1":"95db144dde13f1054bb1288d30ae54cfc46cdccfaa22f23a7229d3dae365e37c"}},{"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_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_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_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_cli::commands::usage::copilot::parse_usage_response (cognitive 39): tokscale_cli::commands::usage::copilot::parse_usage_response has cognitive complexity 39 (threshold 15). Drivers by points: if/else 11 (24 pts), match/switch 2 (8 pts), loops 2 (5 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/commands/usage/copilot.rs"},"region":{"startLine":778}}}],"partialFingerprints":{"codehealthFindingId/v1":"f44fb1216024ad01b9a64eb426c7a894226ebf08d713dffa8c41d537ec597e41"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_core::parse_all_messages_streaming::load_or_parse_codex_source (cognitive 39): tokscale_core::parse_all_messages_streaming::load_or_parse_codex_source has cognitive complexity 39 (threshold 15). Drivers by points: if/else 13 (34 pts), boolean chains 4, match/switch 1 (nesting depth added 21). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function. This shape REPEATS in the file: 5 other methods here (tokscale_core::parse_all_messages_streaming, tokscale_core::parse_all_messages_streaming::load_or_parse_resumable_source, tokscale_core::parse_all_messages_streaming::load_or_parse_prime_source, \u2026) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 6 times rather than 6 independent problems. Splitting this body alone leaves the other 5 exactly as they are. Where these are variations on one operation, the change that clears all 6 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":3200}}}],"partialFingerprints":{"codehealthFindingId/v1":"f490628b9d930fd6e109c94cb581265edad810eed2b7b360d4732ccaca4f3b83"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_cli::commands::wrapped::generate_wrapped_image (cognitive 38): tokscale_cli::commands::wrapped::generate_wrapped_image has cognitive complexity 38 (threshold 15). Drivers by points: if/else 13 (33 pts), loops 3 (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/commands/wrapped.rs"},"region":{"startLine":411}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e46f88ac767a717b69f1468ef4a3199976d830b4f37f0d218cd4c951b9391b7"}},{"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":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"6955783deb7d5c2e9182d76b20d7602f526a50122668b095565cf7acfb1c55e5"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_cli::cursor::remove_account_in_home (cognitive 37): tokscale_cli::cursor::remove_account_in_home 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":1373}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3542dd80ab07c474b35a7a62c474f272736e095d9ea9580ee0737bf6e26e9a8"}},{"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":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"f82187e7c02842f32c99b0b5ca85b3f5cc26a0fd703084c51f117f0a2f30ca2a"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_core::claude_desktop::read (cognitive 37): tokscale_core::claude_desktop::read has cognitive complexity 37 (threshold 15). Drivers by points: if/else 8 (24 pts), loops 4 (8 pts), boolean chains 3, match/switch 1 (2 pts) (nesting depth added 21). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/claude_desktop/mod.rs"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc93a7d62f9a00a557e8c016a696da11283179ec003164f9e212857bf2838e45"}},{"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":374}}}],"partialFingerprints":{"codehealthFindingId/v1":"48b08fcb15ad50a0cfe77b7b3e8b578de03d2fcd55f893aae5127376c0aee403"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_core::sessions::magpie::attribute_client_responses (cognitive 37): tokscale_core::sessions::magpie::attribute_client_responses has cognitive complexity 37 (threshold 15). Drivers by points: if/else 13 (24 pts), boolean chains 8, loops 3, match/switch 1 (2 pts) (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/sessions/magpie.rs"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac3d0600966fe010443a5ee7fd590a94886733c7e6db404ae28e31b969464017"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_core::sessions::opencode_schema::scan_opencode_schema_sqlite_with_session_clients (cognitive 37): tokscale_core::sessions::opencode_schema::scan_opencode_schema_sqlite_with_session_clients has cognitive complexity 37 (threshold 15). Drivers by points: if/else 11 (22 pts), loops 6 (8 pts), match/switch 2 (5 pts), boolean chains 2 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/sessions/opencode_schema.rs"},"region":{"startLine":1570}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f55e7954e3bb025318e16a1d09af3da5af8d6a02788eb115cdcf4b35498bfe7"}},{"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":626}}}],"partialFingerprints":{"codehealthFindingId/v1":"6273cea5849be9bdca69e441cde99fb6c03bea6cb4187004061d4a371d468f45"}},{"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":7571}}}],"partialFingerprints":{"codehealthFindingId/v1":"934195e054b8401d8c3e4fa7b947d9d28095808ff901b0b204ac05e11e246963"}},{"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":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5b4e247322d0adec3cc504deeb4683b6139cba77d7379fec59811dc112840f8"}},{"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":386}}}],"partialFingerprints":{"codehealthFindingId/v1":"2179ea0d89a7571ab83aaf538122593ef9bd08d0a37c4ff3cc9e4022d2e68e78"}},{"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":258}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d81ac8e35e5f01cb5872feadad02d3fd54f5d99caee2abefc47c989dd68dbb0"}},{"ruleId":"D2","level":"warning","message":{"text":"PathRoot::resolve_with_env_strategy (cognitive 34): PathRoot::resolve_with_env_strategy has cognitive complexity 34 (threshold 15). Drivers by points: if/else 15 (32 pts), boolean chains 1, match/switch 1 (nesting depth added 17). 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":"SourceMessageCache::ensure_namespace_loaded (cognitive 34): SourceMessageCache::ensure_namespace_loaded has cognitive complexity 34 (threshold 15). Drivers by points: if/else 12 (22 pts), boolean chains 5, match/switch 3 (4 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-core/src/message_cache.rs"},"region":{"startLine":3645}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bce054cf474eaf4a8d673e5521f02aa9823be2b5317810ccb74b4b05c8a05df"}},{"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":154}}}],"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":711}}}],"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":7932}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf1dbc5427b8cfafbbf76dbb2fa3be0a55f328e29e1005ae3adbbe0dbcfe6392"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_cli::commands::wrapped::load_wrapped_data (cognitive 33): tokscale_cli::commands::wrapped::load_wrapped_data has cognitive complexity 33 (threshold 15). Drivers by points: if/else 17 (24 pts), boolean chains 6, loops 2 (3 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/commands/wrapped.rs"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"e48f52e1efc550a5992854fbf2e2b965a3c3ff2fcc6ef5d2e3ccdfc9230e49eb"}},{"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":"tokscale_cli::tui::ui::overview::render_top_models (cognitive 33): tokscale_cli::tui::ui::overview::render_top_models has cognitive complexity 33 (threshold 15). Drivers by points: if/else 23 (29 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":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd34bb9f8c62ca3bab2f43fccaf0d5a9cf0e47394abac10e429ec175c69657ec"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_core::claude_desktop::indexeddb::decode (cognitive 33): tokscale_core::claude_desktop::indexeddb::decode has cognitive complexity 33 (threshold 15). Drivers by points: if/else 9 (25 pts), boolean chains 4, loops 2, match/switch 1 (2 pts) (nesting depth added 17). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/claude_desktop/indexeddb.rs"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"0129488a8fee23ac47e4cffc672251b88b1a5443011e1ac9002a5c3f19efc35a"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_core::sessions::codex::read_bounded_jsonl_line (cognitive 33): tokscale_core::sessions::codex::read_bounded_jsonl_line has cognitive complexity 33 (threshold 15). Drivers by points: if/else 12 (25 pts), match/switch 1 (4 pts), boolean chains 3, 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-core/src/sessions/codex.rs"},"region":{"startLine":974}}}],"partialFingerprints":{"codehealthFindingId/v1":"87135a11c9c1629616755bccb67604b77271468f70a165ff0da971051186bcab"}},{"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":"DesktopUsage::merge_into (cognitive 32): DesktopUsage::merge_into has cognitive complexity 32 (threshold 15). Drivers by points: if/else 6 (16 pts), loops 7 (13 pts), boolean chains 3 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/claude_desktop/mod.rs"},"region":{"startLine":421}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c55d09f57cca50f31c68e114253a7a981bd8ae5f7496a4695fb810f1d4820f1"}},{"ruleId":"D2","level":"warning","message":{"text":"CustomPricing::load_from_str (cognitive 32): CustomPricing::load_from_str has cognitive complexity 32 (threshold 15). Drivers by points: if/else 10 (19 pts), match/switch 4 (7 pts), loops 4, 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-core/src/pricing/custom.rs"},"region":{"startLine":412}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1381070aeb3a9f8f7a2e0c519233b4370d9027a0bce08c03053ac39f64290cb"}},{"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_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":749}}}],"partialFingerprints":{"codehealthFindingId/v1":"d707749efa6a07454deb15930385f21a94e0aa592379959fcccd31710f0e576e"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_cli::main (cognitive 31): tokscale_cli::main has cognitive complexity 31 (threshold 15). Drivers by points: if/else 12 (16 pts), boolean chains 10, match/switch 3 (5 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/main.rs"},"region":{"startLine":695}}}],"partialFingerprints":{"codehealthFindingId/v1":"6afb38481018776494a1ad8d66b839de3ea8fec4c9e39de47eb8ecc752ce5496"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_cli::antigravity::sync_antigravity_cache_impl_with_deadline (cognitive 31): tokscale_cli::antigravity::sync_antigravity_cache_impl_with_deadline has cognitive complexity 31 (threshold 15). Drivers by points: if/else 11 (24 pts), match/switch 2 (5 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/antigravity.rs"},"region":{"startLine":357}}}],"partialFingerprints":{"codehealthFindingId/v1":"f17c6862348c67534bbdd764303f463e8dc79950f6d198a0e5602658594353f4"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_cli::tui::data::accumulate_session_entry (cognitive 31): tokscale_cli::tui::data::accumulate_session_entry has cognitive complexity 31 (threshold 15). Drivers by points: if/else 16 (23 pts), boolean chains 8 (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/data/mod.rs"},"region":{"startLine":288}}}],"partialFingerprints":{"codehealthFindingId/v1":"e036e352672fb8a1c852da6db9125ad9472331f9335ed4bf96b324f0bd9596d3"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_core::pricing::lookup::uncovered_required_request_tiers (cognitive 31): tokscale_core::pricing::lookup::uncovered_required_request_tiers has cognitive complexity 31 (threshold 15). Drivers by points: if/else 15 (17 pts), boolean chains 14 (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":"crates/tokscale-core/src/pricing/lookup.rs"},"region":{"startLine":2348}}}],"partialFingerprints":{"codehealthFindingId/v1":"35d04ff2153f40a8ec865e49e48ff3fcf1bb003371cdd66791e1d9c955749500"}},{"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":3295}}}],"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":6343}}}],"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":1220}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe7842f3a65ed04cad5761ba674aae791480be21c882b26469032970da0f24bf"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_cli::tui::ui::usage::render_selected_account (cognitive 30): tokscale_cli::tui::ui::usage::render_selected_account has cognitive complexity 30 (threshold 15). Drivers by points: if/else 19 (26 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-cli/src/tui/ui/usage.rs"},"region":{"startLine":1656}}}],"partialFingerprints":{"codehealthFindingId/v1":"96547d36b46b4b1193f0b5d82a40e54f6bb44170a2867abfe3b30b498b6160c4"}},{"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":707}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffb5d5d674872a81a4652bc7d92b4c6a825c541a5474d77921f846ed8c1b2c6d"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_core::select_best_covered_hermes_groups (cognitive 30): tokscale_core::select_best_covered_hermes_groups has cognitive complexity 30 (threshold 15). Drivers by points: if/else 7 (17 pts), loops 8 (13 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/lib.rs"},"region":{"startLine":7527}}}],"partialFingerprints":{"codehealthFindingId/v1":"76f0769643e076c6ff364c1a8ac709756187d375c0b56bd92ff9cf4e852b23c6"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_core::parse_antigravity_family_messages_with_recount_proofs (cognitive 30): tokscale_core::parse_antigravity_family_messages_with_recount_proofs has cognitive complexity 30 (threshold 15). Drivers by points: loops 11 (19 pts), if/else 6 (11 pts) (nesting depth added 13). 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/lib.rs"},"region":{"startLine":9372}}}],"partialFingerprints":{"codehealthFindingId/v1":"196cd1488bf151847c2a67b2f4e9adbe0d68429d840755a04c8f27a34c2bfb80"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_core::sessions::bb::scan_bb_sqlite (cognitive 30): tokscale_core::sessions::bb::scan_bb_sqlite has cognitive complexity 30 (threshold 15). Drivers by points: if/else 22 (25 pts), match/switch 4, boolean chains 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/sessions/bb.rs"},"region":{"startLine":546}}}],"partialFingerprints":{"codehealthFindingId/v1":"a635fb4fc6f092ab9df20243f64de7218b6c270323fa4835a9514fc65ba8931f"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_cli::cursor::sync_cursor_cache_with_fetcher_in_home (cognitive 29): tokscale_cli::cursor::sync_cursor_cache_with_fetcher_in_home has cognitive complexity 29 (threshold 15). Drivers by points: if/else 12 (20 pts), match/switch 3 (6 pts), boolean chains 2, 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/cursor.rs"},"region":{"startLine":2401}}}],"partialFingerprints":{"codehealthFindingId/v1":"03541a030f72986d2e6d64bb8ab53be84ce26ddef8f55514dc5bcdf9a2b54116"}},{"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":591}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4d8b977d4907a8a3bb35a35771e30a92026c3ed4d013aaa84a38a9170cf24af"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_cli::tui::ui::stats::render_stats_panel (cognitive 29): tokscale_cli::tui::ui::stats::render_stats_panel has cognitive complexity 29 (threshold 15). Drivers by points: if/else 25, 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":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"2cccc703693a2872f92978447776933f76327a7e8b83554e23e5d9ba1cfaed4f"}},{"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":638}}}],"partialFingerprints":{"codehealthFindingId/v1":"414c71a6524185dbbeb0386810626aec94fbc517dd518965a01ec1ca84433e44"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_core::sessions::qoder::workspace_key_from_qoder_path (cognitive 29): tokscale_core::sessions::qoder::workspace_key_from_qoder_path has cognitive complexity 29 (threshold 15). Drivers by points: if/else 7 (25 pts), boolean chains 2, loops 2 (nesting depth added 18). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/sessions/qoder.rs"},"region":{"startLine":461}}}],"partialFingerprints":{"codehealthFindingId/v1":"e32770e0531c084e473cdc4cf330d4311a66afabed1ab0f8fae0d08b9d4abc7e"}},{"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":2096}}}],"partialFingerprints":{"codehealthFindingId/v1":"aaf22bee0969e35076c96d0aed06597f33311ce0d3acd9202e5825e89123480d"}},{"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":397}}}],"partialFingerprints":{"codehealthFindingId/v1":"da4f53b4bbd62b30c70e63bc799abe327d1979220990ce3869866580912a26bb"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_core::sessions::antigravity::parse_antigravity_file_inner (cognitive 28): tokscale_core::sessions::antigravity::parse_antigravity_file_inner has cognitive complexity 28 (threshold 15). Drivers by points: if/else 9 (23 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/sessions/antigravity.rs"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9c74e20523d9122f237948436bc2aad4799a107f8e93632e217eb1a97ed53c2"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_core::sessions::opencodex::read_bounded_line (cognitive 28): tokscale_core::sessions::opencodex::read_bounded_line has cognitive complexity 28 (threshold 15). Drivers by points: if/else 11 (27 pts), loops 1 (nesting depth added 16). 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/opencodex.rs"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec946689e1da630ed9690b740b97473cc04138d5f625dc88e62f9e8863fae62b"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_cli::cursor::reconcile_cache_files_in_dir (cognitive 27): tokscale_cli::cursor::reconcile_cache_files_in_dir has cognitive complexity 27 (threshold 15). Drivers by points: if/else 10 (26 pts), loops 1 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/cursor.rs"},"region":{"startLine":1547}}}],"partialFingerprints":{"codehealthFindingId/v1":"ccafce07b84a57ae581ff5cd04ee139abdd4690c6530382119dfcfb5db41d9c4"}},{"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":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3aa8a10e967a78c6089e1d114c91c832ef570f8661b824761625a619965f53e"}},{"ruleId":"D2","level":"warning","message":{"text":"ClaudeTurnCoverage::resolve_legacy_rows (cognitive 27): ClaudeTurnCoverage::resolve_legacy_rows has cognitive complexity 27 (threshold 15). Drivers by points: if/else 6 (20 pts), loops 3 (6 pts), boolean chains 1 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/lib.rs"},"region":{"startLine":1460}}}],"partialFingerprints":{"codehealthFindingId/v1":"eeda6e33a80cb6ed3e260d39fdbaa79428d450c046b58217590ceed7462eb2d1"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_core::sessions::cline::parse_cline_cli_file (cognitive 27): tokscale_core::sessions::cline::parse_cline_cli_file has cognitive complexity 27 (threshold 15). Drivers by points: if/else 13 (25 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::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":976}}}],"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":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"33fd64258c961dd0cbed64387e93286cb04996e2d8bba51954163cf054e9fb8d"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_cli::cursor::cursor_usage_cache_is_fresh_in_at (cognitive 26): tokscale_cli::cursor::cursor_usage_cache_is_fresh_in_at has cognitive complexity 26 (threshold 15). Drivers by points: if/else 10 (19 pts), boolean chains 5, loops 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-cli/src/cursor.rs"},"region":{"startLine":1802}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f4d9fcf566bbf4a95ffbb3516f6a80bd66240612936484b2b5a3d6b25527d1f"}},{"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":439}}}],"partialFingerprints":{"codehealthFindingId/v1":"7337f19460c34df5b44b857c426ee1dbe34ecc72a843d9ce7beb2c19c9cf4321"}},{"ruleId":"D2","level":"warning","message":{"text":"PricingService::explain_message (cognitive 26): PricingService::explain_message has cognitive complexity 26 (threshold 15). Drivers by points: if/else 22 (23 pts), boolean chains 3 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/pricing/mod.rs"},"region":{"startLine":866}}}],"partialFingerprints":{"codehealthFindingId/v1":"205a9c86296f051447865346c7cd8b97838f578c3dd71c184486c1880c2c0eef"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_core::claude_desktop::transcript_roots (cognitive 26): tokscale_core::claude_desktop::transcript_roots has cognitive complexity 26 (threshold 15). Drivers by points: if/else 3 (14 pts), loops 4 (11 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/claude_desktop/mod.rs"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7254b6dacbc121257f5b2441591f3663e961db3fe9aaca35dcd427d908b0f92"}},{"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::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::sessions::openclaw::ingest_openclaw_entry (cognitive 26): tokscale_core::sessions::openclaw::ingest_openclaw_entry has cognitive complexity 26 (threshold 15). Drivers by points: if/else 12 (24 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/openclaw.rs"},"region":{"startLine":331}}}],"partialFingerprints":{"codehealthFindingId/v1":"93df458169d2b3f5799d0a054d80f2389a9e19d243bba34e7d867a4774418fee"}},{"ruleId":"D2","level":"warning","message":{"text":"EventHandler::new_with_pending_keys (cognitive 25): EventHandler::new_with_pending_keys has cognitive complexity 25 (threshold 15). Drivers by points: if/else 6 (19 pts), match/switch 1 (3 pts), loops 2, 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-cli/src/tui/event.rs"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"84b200a20ee9d04e5ff994fce851554bbcbe35d1cddcddea7ac2b66dd1ec7774"}},{"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_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_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":"SessionDetailDialog::build_lines (cognitive 24): SessionDetailDialog::build_lines has cognitive complexity 24 (threshold 15). Drivers by points: if/else 18 (22 pts), loops 1 (2 pts) (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, 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/dialog/session_detail.rs"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cc8746a5144c9275998d12d991cd7e615ae375d219130c44e2a65340f714436"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_cli::commands::usage::antigravity::parse_session_content (cognitive 24): tokscale_cli::commands::usage::antigravity::parse_session_content has cognitive complexity 24 (threshold 15). Drivers by points: if/else 8 (19 pts), boolean chains 2, match/switch 1 (2 pts), 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/commands/usage/antigravity.rs"},"region":{"startLine":474}}}],"partialFingerprints":{"codehealthFindingId/v1":"2979e2f8749b79d0bf9fdfcf0b0fbeb3ea00fe5701977cb69f1d39faba5ca561"}},{"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":1225}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f8beb68c08edc4b11c8ac6f7e4e1a491d082692c4078f48be17d123f8f9bca7"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_cli::tui::ui::footer::render_main_row (cognitive 24): tokscale_cli::tui::ui::footer::render_main_row has cognitive complexity 24 (threshold 15). Drivers by points: if/else 10 (16 pts), match/switch 1 (4 pts), boolean chains 2, loops 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-cli/src/tui/ui/footer.rs"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d1f8667cf295a9d09cca7a6079aebe7f89d36b157c2de5b71f9e2fbf511ccbd"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_core::claude_desktop::indexeddb::unwrap_value (cognitive 24): tokscale_core::claude_desktop::indexeddb::unwrap_value has cognitive complexity 24 (threshold 15). Drivers by points: if/else 8 (19 pts), boolean chains 2, loops 1 (2 pts), 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/claude_desktop/indexeddb.rs"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"86db4ebad31d74436c73a939c6cfbfb24f241aa2993815474882fccdb22316e7"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_core::provider_identity::inferred_provider_from_model_inner (cognitive 24): tokscale_core::provider_identity::inferred_provider_from_model_inner has cognitive complexity 24 (threshold 15). Drivers by points: if/else 15, boolean chains 9. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/provider_identity.rs"},"region":{"startLine":268}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a2fa74d5c68f84ff956fd0ec202c37a15f0c26a662601cc66550615999fe82d"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_core::sessions::copilot::ambiguous_contexts (cognitive 24): tokscale_core::sessions::copilot::ambiguous_contexts has cognitive complexity 24 (threshold 15). Drivers by points: if/else 6 (16 pts), loops 4 (7 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/copilot.rs"},"region":{"startLine":970}}}],"partialFingerprints":{"codehealthFindingId/v1":"9118e920c5b37db6e534754d94ca9900a3f6d78b5692311aba1a27e504fc83c8"}},{"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":"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":1340}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3c9b71d38b4f251c5920429317a8f8b78d013e01cabb3c893799ce148dd0280"}},{"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":"App::handle_key_event (cognitive 23): App::handle_key_event has cognitive complexity 23 (threshold 15). Drivers by points: if/else 8 (10 pts), match/switch 4 (7 pts), boolean chains 6 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/app.rs"},"region":{"startLine":896}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a06529325b0cd6d9c0f384d4bea0925e6290788d261cf14df6ecd8b5218c976"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_cli::amp::sync_amp_cache_with (cognitive 23): tokscale_cli::amp::sync_amp_cache_with has cognitive complexity 23 (threshold 15). Drivers by points: if/else 9 (11 pts), match/switch 4 (7 pts), loops 2 (3 pts), boolean chains 2 (nesting depth added 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-cli/src/amp.rs"},"region":{"startLine":276}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5b93c316c56809eb4838c5424091ea4f4a5d2dee63bca6729fba91e03d05652"}},{"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_cli::tui::ui::models::render (cognitive 23): tokscale_cli::tui::ui::models::render has cognitive complexity 23 (threshold 15). Drivers by points: if/else 17 (18 pts), match/switch 2 (3 pts), boolean chains 2 (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/models.rs"},"region":{"startLine":249}}}],"partialFingerprints":{"codehealthFindingId/v1":"40f13b623093dca0e95944cd167a2b226b0e0d966b08f061fb9cafabb989e097"}},{"ruleId":"D2","level":"warning","message":{"text":"ModelUsageFold::add (cognitive 23): ModelUsageFold::add has cognitive complexity 23 (threshold 15). Drivers by points: if/else 17 (21 pts), boolean chains 1, 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, 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/lib.rs"},"region":{"startLine":5979}}}],"partialFingerprints":{"codehealthFindingId/v1":"160f5a332e4c8d332aa717f6af51368c7405ad86cda4ea8fd036056068af6913"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_core::parse_all_messages_streaming::load_or_parse_prime_source (cognitive 23): tokscale_core::parse_all_messages_streaming::load_or_parse_prime_source has cognitive complexity 23 (threshold 15). Drivers by points: if/else 8 (13 pts), match/switch 3 (9 pts), boolean chains 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: 5 other methods here (tokscale_core::parse_all_messages_streaming, tokscale_core::parse_all_messages_streaming::load_or_parse_resumable_source, tokscale_core::parse_all_messages_streaming::load_or_parse_micode_source, \u2026) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 6 times rather than 6 independent problems. Splitting this body alone leaves the other 5 exactly as they are. Where these are variations on one operation, the change that clears all 6 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":2749}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e0e587373151674daa5e31343ff1f2cc81a649cf9f27cb8ed885d67d55560ff"}},{"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":632}}}],"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":947}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3211d828cbd94293e69f9b2d4fffe74f6914db929398ca363b00ca7e3abc4b2"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_core::sessions::hermes::allocate_row_by_days (cognitive 23): tokscale_core::sessions::hermes::allocate_row_by_days has cognitive complexity 23 (threshold 15). Drivers by points: if/else 12 (15 pts), boolean chains 4, loops 3 (4 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-core/src/sessions/hermes.rs"},"region":{"startLine":444}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c36d7db751d014faec7eaf69b837daeef93cb6116991e04e1a220d3aa7031b9"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_core::sessions::qoder::count_content_chars (cognitive 23): tokscale_core::sessions::qoder::count_content_chars has cognitive complexity 23 (threshold 15). Drivers by points: if/else 9 (20 pts), match/switch 1 (2 pts), 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/qoder.rs"},"region":{"startLine":272}}}],"partialFingerprints":{"codehealthFindingId/v1":"e87519a48b4224cacc97bd2fee07b333b3f0875cb662579b6f4506335080a0eb"}},{"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":"tokscale_cli::to_ts_token_contribution_data (cognitive 22): tokscale_cli::to_ts_token_contribution_data has cognitive complexity 22 (threshold 15). Drivers by points: if/else 8 (15 pts), loops 2 (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":"crates/tokscale-cli/src/main.rs"},"region":{"startLine":5539}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6a71020a348cf9a4da94c7bb243ecdcdf609a0422d11733f90e98ab3906fdc6"}},{"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":2101}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5a4aefb7043a8b2d52617023111c20dd08712e01fc1e902d56dfb7c2c29706a"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_cli::cursor::upsert_credentials_in_home (cognitive 22): tokscale_cli::cursor::upsert_credentials_in_home 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":854}}}],"partialFingerprints":{"codehealthFindingId/v1":"30a74aa862f305676dd5d96d9df81af96a69dd1fd59b6d304648cb14e2a9f7fa"}},{"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":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"b67a4bae83ed1bfdadcd632a7d293dd9b72db46110c1b163021b8fb4ef481406"}},{"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":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"008207d912f1bfe0bec2eca3d47482dcfeeb8e01e0c82f345a856465dad9adbe"}},{"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":4330}}}],"partialFingerprints":{"codehealthFindingId/v1":"d670b40912096f6f232db03f9130180bc6dddece01a1542f50c13071d45483c5"}},{"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":573}}}],"partialFingerprints":{"codehealthFindingId/v1":"a669345b0875ee8947445e24d467a1f17849748426a4bce5ff757e5ad8d2e02f"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_core::sessions::cherrystudio::build_usage_query (cognitive 22): tokscale_core::sessions::cherrystudio::build_usage_query has cognitive complexity 22 (threshold 15). Drivers by points: if/else 20, boolean chains 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-core/src/sessions/cherrystudio.rs"},"region":{"startLine":464}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d2c4b828c706a54d19b720f7e5b235b2d51ba19f35000e7ad16b344aaf1d02b"}},{"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":"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":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"82645dd8c4716fd60dc607af0e1c4134820d624196ad85064bc9bda01a3a614c"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_core::sessions::qoder::resolve_subagent_name (cognitive 22): tokscale_core::sessions::qoder::resolve_subagent_name has cognitive complexity 22 (threshold 15). Drivers by points: if/else 9 (20 pts), boolean chains 2 (nesting depth added 11). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/sessions/qoder.rs"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"b46d2ff071f502b1efaaa0d332031b26500d79ff4a1abc2e9ed6df5bbe493e75"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_cli::tui::ui::daily::render_detail (cognitive 21): tokscale_cli::tui::ui::daily::render_detail has cognitive complexity 21 (threshold 15). Drivers by points: if/else 15 (17 pts), match/switch 2 (3 pts), boolean chains 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/ui/daily.rs"},"region":{"startLine":445}}}],"partialFingerprints":{"codehealthFindingId/v1":"b454c59b111ca8ddeea560d68966868b038117b3851c8316b01d221915d808c2"}},{"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":226}}}],"partialFingerprints":{"codehealthFindingId/v1":"56bac567754a25b300668c612ebc522174865a90817f1290eac07a79428cf863"}},{"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":408}}}],"partialFingerprints":{"codehealthFindingId/v1":"27e0d6fd0a3bf0d210e27f9a479c83fbd0536e0e504b4764a93ca820cde994b5"}},{"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":809}}}],"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":6241}}}],"partialFingerprints":{"codehealthFindingId/v1":"af0f652efbc490b1cd6fff9970211093dad66a70617a11bfff8cb6389bc4ae6f"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_cli::commands::report::run_command_async (cognitive 20): tokscale_cli::commands::report::run_command_async has cognitive complexity 20 (threshold 15). Drivers by points: match/switch 5 (10 pts), if/else 5 (9 pts), loops 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/commands/report.rs"},"region":{"startLine":1090}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f9425e47a444b19c1f3d64f4bd76fa941021eda8c7395ab1922160e80d21820"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_cli::tui::ui::footer::render_status_row (cognitive 20): tokscale_cli::tui::ui::footer::render_status_row has cognitive complexity 20 (threshold 15). Drivers by points: if/else 12 (15 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":592}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7b651e379d292f8dfe72f0612d899187d07be36692652a5b996dc46d64f58c8"}},{"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":278}}}],"partialFingerprints":{"codehealthFindingId/v1":"f70117e9e6d825ad027706e9e292a4f04ccb20f7509daeb6beb7ea26d0687763"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_core::parse_all_messages_streaming::load_or_parse_micode_source (cognitive 20): tokscale_core::parse_all_messages_streaming::load_or_parse_micode_source has cognitive complexity 20 (threshold 15). Drivers by points: if/else 6 (8 pts), loops 2 (6 pts), boolean chains 5, 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. This shape REPEATS in the file: 5 other methods here (tokscale_core::parse_all_messages_streaming, tokscale_core::parse_all_messages_streaming::load_or_parse_resumable_source, tokscale_core::parse_all_messages_streaming::load_or_parse_prime_source, \u2026) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 6 times rather than 6 independent problems. Splitting this body alone leaves the other 5 exactly as they are. Where these are variations on one operation, the change that clears all 6 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":2954}}}],"partialFingerprints":{"codehealthFindingId/v1":"c13fc7119bd30f16130dd2c0864b760276d9f7770c093dbfa4a5250a7387288f"}},{"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":5800}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a0b8f664dc83bfb9706262fb425f9634d9c3538aaa24f2fc7f5344e488fe21d"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_core::claude_desktop::manifest::log_records (cognitive 20): tokscale_core::claude_desktop::manifest::log_records has cognitive complexity 20 (threshold 15). Drivers by points: if/else 5 (13 pts), loops 2 (3 pts), match/switch 1 (3 pts), boolean chains 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/claude_desktop/manifest.rs"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5a81a3742f94c50f67c3e2f8538f20c952bd1452eb85a2bfe0e4e49a6c44029"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_core::scanner::built_in_extra_scan_paths_for (cognitive 20): tokscale_core::scanner::built_in_extra_scan_paths_for has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9 (17 pts), loops 1 (3 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/scanner.rs"},"region":{"startLine":888}}}],"partialFingerprints":{"codehealthFindingId/v1":"93cc7017c8f4d45b6d394d5cd6947481ed5e1bcb97e91d8c127a94b07c750bc6"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_core::sessions::codex::parse_codex_file_incremental (cognitive 20): tokscale_core::sessions::codex::parse_codex_file_incremental has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9 (14 pts), match/switch 3 (5 pts), boolean chains 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/sessions/codex.rs"},"region":{"startLine":2389}}}],"partialFingerprints":{"codehealthFindingId/v1":"f90cd737a7c845725b1439ea98fe2e6bf699a574d246d57c856a90870a38670b"}},{"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":1060}}}],"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":1512}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a53742df676ea9d925c251299e496b322beca6369d2302971ab516f2251dfb4"}},{"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_cli::commands::report::run_report (cognitive 19): tokscale_cli::commands::report::run_report has cognitive complexity 19 (threshold 15). Drivers by points: if/else 11 (13 pts), boolean chains 6 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/commands/report.rs"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f060a1f140d26b7eb290602cd259e86d543430d802c47c1b695832fddfd7ff7"}},{"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":568}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e2a7942cfb701affc7d3dd19385a68103a261cbddc25bd1b94eba0c56e1a680"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_cli::cursor::remove_all_accounts_in_home (cognitive 19): tokscale_cli::cursor::remove_all_accounts_in_home has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (13 pts), loops 3 (6 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/cursor.rs"},"region":{"startLine":1457}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5f8f4dd64ac0c55d11d0ffd309bf9f7cce792450fedaa4b9140ff47a45018b8"}},{"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":691}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c1eeb10bd16049f243ef508c5886ece1a0a6b21d8916338321744cc1b201c4f"}},{"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":307}}}],"partialFingerprints":{"codehealthFindingId/v1":"9aa97289b3689d50fec845cfccf42ed663b55afac2ad255c6f4c4f6f09ed3697"}},{"ruleId":"D2","level":"warning","message":{"text":"PricingLookup::resolve_for_usage (cognitive 19): PricingLookup::resolve_for_usage has cognitive complexity 19 (threshold 15). Drivers by points: if/else 12 (14 pts), boolean chains 5 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, 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/pricing/lookup.rs"},"region":{"startLine":2069}}}],"partialFingerprints":{"codehealthFindingId/v1":"03d118faa94f02ecaced22bf9232a99f1ebd3aeb7a4e40740376eb0346d57940"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_core::prepare_submission_pricing (cognitive 19): tokscale_core::prepare_submission_pricing has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (13 pts), match/switch 1 (4 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/lib.rs"},"region":{"startLine":6926}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0b05f5aa5b5a3ec606a2d1b38a6ca5ee520b55a00a59a4f8deaa23b3809a893"}},{"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::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::commands::usage::grok::fetch_network_usage (cognitive 18): tokscale_cli::commands::usage::grok::fetch_network_usage has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (11 pts), match/switch 3 (6 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/commands/usage/grok.rs"},"region":{"startLine":599}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe28ca382d4e5dbc6d860fcdd4d4db959118c6361c15c17cf315efcdbb84f88e"}},{"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::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_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":1751}}}],"partialFingerprints":{"codehealthFindingId/v1":"013c3e9f7c24b6fda32ce0d0cbdf916996a32d45881891d3c250786fdaa79537"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_cli::submission_warnings::compact (cognitive 18): tokscale_cli::submission_warnings::compact has cognitive complexity 18 (threshold 15). Drivers by points: if/else 4 (11 pts), loops 3 (7 pts) (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/submission_warnings.rs"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"eace58070f0fe629831532a37bd360c9e7e6aa3b2bda0d7ddf81fe51291c15b3"}},{"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":1247}}}],"partialFingerprints":{"codehealthFindingId/v1":"84ce10176247fe9dd08b403b677036d069261f4580cf5fb11ea953e6b8e41595"}},{"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":678}}}],"partialFingerprints":{"codehealthFindingId/v1":"923216ebddc42a8ab700e91dce6eac686f541c5b6c58ce73547ef57e4f68ff11"}},{"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::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":959}}}],"partialFingerprints":{"codehealthFindingId/v1":"be3ac30f9415d8972d3be7b8a0d5e475bb5ad6180e7242d3e8ff8ce42b524fee"}},{"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":3136}}}],"partialFingerprints":{"codehealthFindingId/v1":"08928fc22b176b0c49bd1b9105312ceb355fa43bdf406123e772a8bfd1869ce6"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_core::sessionize::compute_time_metrics (cognitive 18): tokscale_core::sessionize::compute_time_metrics has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (14 pts), loops 2 (3 pts), boolean chains 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/sessionize.rs"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3f06ec04e6615cf6268db622172ffb824ccff96d7a40bbe907f6ee81e29e421"}},{"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":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a4723b3a4af7da6814c0704ef7ac1dd0c347f26de61779e39828e6ef63cb4b2"}},{"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":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"769e43625c6c58a4bb6390d57f4eb400bebf567712a8bba2ed063e5e4e639ccb"}},{"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::sessions::cursor::try_parse_cursor_csv_file (cognitive 18): tokscale_core::sessions::cursor::try_parse_cursor_csv_file has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10 (15 pts), boolean chains 2, loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/sessions/cursor.rs"},"region":{"startLine":668}}}],"partialFingerprints":{"codehealthFindingId/v1":"586d0fdd9af06fa83753d880a2466331fcebfbde75929158a101ec5b0fc6b8bb"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_core::sessions::hermes::parse_hermes_sqlite_in (cognitive 18): tokscale_core::sessions::hermes::parse_hermes_sqlite_in has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (10 pts), match/switch 3 (5 pts), loops 2, boolean chains 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/sessions/hermes.rs"},"region":{"startLine":759}}}],"partialFingerprints":{"codehealthFindingId/v1":"f293d87e86cfe69710f04d04a8b229b7d15b487797bac3cf4a9826fab1f00af6"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_core::sessions::opencodex::attribute_codex_messages_with_claims (cognitive 18): tokscale_core::sessions::opencodex::attribute_codex_messages_with_claims has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (12 pts), boolean chains 4, loops 2 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/sessions/opencodex.rs"},"region":{"startLine":571}}}],"partialFingerprints":{"codehealthFindingId/v1":"4312f44b9090276346cd6fed946530df8e6de915c28064f8177e98c5efed1dc3"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_core::sessions::roocode::parse_roo_kilo_file (cognitive 18): tokscale_core::sessions::roocode::parse_roo_kilo_file has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (8 pts), match/switch 4 (7 pts), boolean chains 2, loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/sessions/roocode.rs"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"70c7bc781383822f7ffada4d1b706701accf175cda9bacae0101f332b6348d88"}},{"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":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"574e463997a0939788fd84261fa8ab73b29ec21f3ff19f2f418629ef7cfe396f"}},{"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":639}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fd9c6e99a1e53f3176a60994c616e5c8d11adeb2b6a96a91472992f78da5017"}},{"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":1776}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc61c646209fb5f07eb675719b0d83eb9e9810d954f63a75a617558bca4d5b0b"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_cli::commands::usage::grok::fetch (cognitive 17): tokscale_cli::commands::usage::grok::fetch has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (14 pts), match/switch 1 (2 pts), loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/commands/usage/grok.rs"},"region":{"startLine":890}}}],"partialFingerprints":{"codehealthFindingId/v1":"008239d3498aaa977806813a51901eddc9a867a0bee0fd5ac380ad398c504705"}},{"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":1334}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3ec72145abe57f4c26f663b6b0050715eace1c5fcd587a46860115e524715c7"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_cli::cursor::prepare_cursor_cache_layout (cognitive 17): tokscale_cli::cursor::prepare_cursor_cache_layout has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (14 pts), boolean chains 2, loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/cursor.rs"},"region":{"startLine":1157}}}],"partialFingerprints":{"codehealthFindingId/v1":"a39086a8f9b456cfd63060bb26b8c80ae902584f1059457c10c7dea3e2a5b263"}},{"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":223}}}],"partialFingerprints":{"codehealthFindingId/v1":"673ab14e468abda350f91ae9a43c01a1f1fbf3f86258d304c9eb738556d13884"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_cli::tui::ui::model_trend::render (cognitive 17): tokscale_cli::tui::ui::model_trend::render has cognitive complexity 17 (threshold 15). Drivers by points: if/else 14, match/switch 2 (3 pts) (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/ui/model_trend.rs"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9a610b1557e38b7661d0b37accfca5d3d1e00cdaf9f0389ded3aa85236f92e1"}},{"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":1035}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b00ea3e87e431d8963fc63f243a0f0a1748bc7d43e5a5b76d2fd090d04649ed"}},{"ruleId":"D2","level":"warning","message":{"text":"GraphSink::drain_batch (cognitive 17): GraphSink::drain_batch has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (13 pts), loops 2 (3 pts), match/switch 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/lib.rs"},"region":{"startLine":6678}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c4a22696a7586b5f8cd16a0ea733ccc9a1f5db616b32770c1e44024e892a66a"}},{"ruleId":"D2","level":"warning","message":{"text":"AttributionIndex::load (cognitive 17): AttributionIndex::load has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (12 pts), loops 2, match/switch 1 (2 pts), boolean chains 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/sessions/opencodex.rs"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d0d3e16e42a2ecd1100583f920a124180accd88987a77812a8f9309ade57c84"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_core::parse_all_messages_streaming::load_or_parse_opencode_sqlite_source (cognitive 17): tokscale_core::parse_all_messages_streaming::load_or_parse_opencode_sqlite_source has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (13 pts), boolean chains 3, 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. This shape REPEATS in the file: 5 other methods here (tokscale_core::parse_all_messages_streaming, tokscale_core::parse_all_messages_streaming::load_or_parse_resumable_source, tokscale_core::parse_all_messages_streaming::load_or_parse_prime_source, \u2026) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 6 times rather than 6 independent problems. Splitting this body alone leaves the other 5 exactly as they are. Where these are variations on one operation, the change that clears all 6 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":3059}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e283a1cebd174eef8c06221ae0a26e5a437895f1bfbd6eac9f791bcaf99cce0"}},{"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::pricing::lookup::compute_cost_for_lookup_inner (cognitive 17): tokscale_core::pricing::lookup::compute_cost_for_lookup_inner has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (9 pts), loops 3 (6 pts), boolean chains 2 (nesting depth added 4). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/pricing/lookup.rs"},"region":{"startLine":2865}}}],"partialFingerprints":{"codehealthFindingId/v1":"d289f66e6d19a06b3fc838d687799f6ef406cee9dda789d3af6e5bf4c107bc89"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_core::sessions::antigravity_cli::parse_antigravity_db_file_inner (cognitive 17): tokscale_core::sessions::antigravity_cli::parse_antigravity_db_file_inner has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (15 pts), loops 1, match/switch 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/sessions/antigravity_cli.rs"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"45b4d674daa09c87ec751c37c5ede945d3776203bcc7469f43b0043aec3fd694"}},{"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":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"df4851b9d5ce4a68611623cb4ef1531e921f8239b63a9e6ff63ed49e6e25befc"}},{"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::sessions::vibe::parse_vibe_file (cognitive 17): tokscale_core::sessions::vibe::parse_vibe_file has cognitive complexity 17 (threshold 15). Drivers by points: if/else 15 (17 pts) (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/sessions/vibe.rs"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"7641366bd2ef571fdb5918a71e39bddfe0518b198ccfd65427411e755de7647d"}},{"ruleId":"D2","level":"warning","message":{"text":"App::new_with_cached_data_and_ambient_width (cognitive 16): App::new_with_cached_data_and_ambient_width 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":444}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c08bbad99d6c5bf23c27141dcc5599c488d6bac2e5563f692984d45c9f542be"}},{"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":1317}}}],"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":2736}}}],"partialFingerprints":{"codehealthFindingId/v1":"43491385e138c22336641da47edb8d2726aa850e7dd50ee3a3cc20d3be473d2a"}},{"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":363}}}],"partialFingerprints":{"codehealthFindingId/v1":"acd970127f5eaffa3ad2b7d69318f23ae799f16d77e610a73e00b2fbcf7b370d"}},{"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::commands::usage::codex::fetch_with_auth_async (cognitive 16): tokscale_cli::commands::usage::codex::fetch_with_auth_async has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (11 pts), boolean chains 3, loops 1, match/switch 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/commands/usage/codex.rs"},"region":{"startLine":1382}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a3a4127bda9d6aef4cddd05d8fb0bfd60ee732ee68ba0a414ca50a4e2fff66f"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_cli::tui::run_loop_with_background (cognitive 16): tokscale_cli::tui::run_loop_with_background has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (12 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-cli/src/tui/mod.rs"},"region":{"startLine":490}}}],"partialFingerprints":{"codehealthFindingId/v1":"23f67e4e8240c47a97a1b8879c969577a0914148e48360d823bd05c216127377"}},{"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":1872}}}],"partialFingerprints":{"codehealthFindingId/v1":"b026695b4726ad3b88180dafbf4d09f08dbf9b457d7bddccef66eaef4e622dc8"}},{"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::tui::ui::usage::action_bar_buttons (cognitive 16): tokscale_cli::tui::ui::usage::action_bar_buttons has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10 (14 pts), match/switch 1 (2 pts) (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/ui/usage.rs"},"region":{"startLine":427}}}],"partialFingerprints":{"codehealthFindingId/v1":"dff905ec0dbff1fccc8cb4177beee6334dd49a4ed0fdc11bb40e0842c0c8fd31"}},{"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":1387}}}],"partialFingerprints":{"codehealthFindingId/v1":"37bb825cc0df42fcb6f5048ec989851d1e4ba276bbf00f995ccf48cfd95256e9"}},{"ruleId":"D2","level":"warning","message":{"text":"TranscriptLines::read_record (cognitive 16): TranscriptLines::read_record 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-core/src/sessions/dsh_reader.rs"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdd1ef15616fb6c63ea93f7d0b545d035aa367a53faf8fe476ecdd48a3f644ac"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_core::merge_claude_cross_file_duplicate (cognitive 16): tokscale_core::merge_claude_cross_file_duplicate has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (10 pts), boolean chains 4, 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-core/src/lib.rs"},"region":{"startLine":7433}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb0e538ff4d25ede9f6d3ce7d4c0ee30b8b240e910691f14642562eb2798ab93"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_core::scanner::scan_aside_accounts (cognitive 16): tokscale_core::scanner::scan_aside_accounts has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (13 pts), loops 2 (3 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/scanner.rs"},"region":{"startLine":488}}}],"partialFingerprints":{"codehealthFindingId/v1":"94c10484e745c078ee54a3e862444f1d03ff39ad5b0533ec74dc61260075e6f2"}},{"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::droid::transcript_turns_bounded (cognitive 16): tokscale_core::sessions::droid::transcript_turns_bounded has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10 (15 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-core/src/sessions/droid.rs"},"region":{"startLine":351}}}],"partialFingerprints":{"codehealthFindingId/v1":"96fc90ff6007d0bd54d0db5c25ff60eaa217b87f7182fa6388281d66b5b1cea6"}},{"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":"tokscale_core::sessions::grok::unified_turn_coverage (cognitive 16): tokscale_core::sessions::grok::unified_turn_coverage has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (12 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":"crates/tokscale-core/src/sessions/grok.rs"},"region":{"startLine":1101}}}],"partialFingerprints":{"codehealthFindingId/v1":"59bf9e8a34cb1e2dfdc36578e4b7b7e313cd2cdebd87a23a41f42abb27889ed5"}},{"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":1663}}}],"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":1193}}}],"partialFingerprints":{"codehealthFindingId/v1":"25db83211ffb695692146b500defeffd3570ccd968d8725a4fc6eb1c04920c38"}},{"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":437}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ea48f7704a2c5ef11171aab705b64e0f5c52cd7c5398a3c85baf4bf72fbe9da"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_core::sessions::tencent_buddy::parse_jsonl_file (cognitive 16): tokscale_core::sessions::tencent_buddy::parse_jsonl_file has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (12 pts), boolean chains 3, match/switch 1 (nesting depth added 3). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/sessions/tencent_buddy.rs"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ba576a3008c99eb8e7db9d336ef0d4750684b4e67d57a02d56149649024ab3a"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_core::sessions::utils::for_each_archive_line (cognitive 16): tokscale_core::sessions::utils::for_each_archive_line has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (12 pts), match/switch 1 (2 pts), boolean chains 1, loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/sessions/utils.rs"},"region":{"startLine":567}}}],"partialFingerprints":{"codehealthFindingId/v1":"b65c6d7f50cbbf2c01ae079b04a84b87de337be1134ac8a80fee0eda7607c179"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: tokscale_core::parse_all_messages_streaming: FunctionTooLong \u2014 tokscale_core::parse_all_messages_streaming runs 2418 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 2318 over it, 24.18\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/lib.rs"},"region":{"startLine":1904}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca243cd7292df576045356060fbdb3ce74a6d94b4553ad20723aef9fe43d7826"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/lib.rs: FileTooLong \u2014 6313 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 100 free functions. The bar is 500 significant lines; this is 5813 over it, 12.63\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/lib.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3d523b934264f8d4b81597b79ee6a95432359de0dbb895a952ba9617982ac60"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/main.rs: FileTooLong \u2014 6015 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 119 free functions. The bar is 500 significant lines; this is 5515 over it, 12.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/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 1120 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 1020 over it, 11.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-core/src/lib.rs"},"region":{"startLine":7703}}}],"partialFingerprints":{"codehealthFindingId/v1":"d693d4125fbc30d9e40d60ac40c2139595159132d23e34c1fab0fa74d94c2c80"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: tokscale_cli::run_models_report: FunctionTooLong \u2014 tokscale_cli::run_models_report runs 753 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 653 over it, 7.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":"crates/tokscale-cli/src/main.rs"},"region":{"startLine":2389}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0900be2062063ac1d1004898f1736fd3d85f9bf0f144d410f2e74a1c74885ac"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: DataLoader.aggregate_messages: MethodTooLong \u2014 aggregate_messages runs 744 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 644 over it, 7.44\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/data/mod.rs"},"region":{"startLine":801}}}],"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 707 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 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":"crates/tokscale-core/src/scanner.rs"},"region":{"startLine":2240}}}],"partialFingerprints":{"codehealthFindingId/v1":"1679b782efd9712f60557b93abeba6d8596645cacd267775130c2a34d7b6df7d"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/message_cache.rs: FileTooLong \u2014 2593 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 2093 over it, 5.19\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/message_cache.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef343577b03f4a6fb2431da7a377eebfd881c8ee0a69e55b952b3c8c47b4c412"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: pricing/lookup.rs: FileTooLong \u2014 2579 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 89 free functions. The bar is 500 significant lines; this is 2079 over it, 5.16\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/pricing/lookup.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"de04a442732d1a586d641f6746c611c4004a8fd003c3fa7263dabec0f6e35d1a"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: tokscale_core::sessions::codex::parse_codex_reader_with_record_limit: FunctionTooLong \u2014 tokscale_core::sessions::codex::parse_codex_reader_with_record_limit runs 505 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 405 over it, 5.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":"crates/tokscale-core/src/sessions/codex.rs"},"region":{"startLine":1077}}}],"partialFingerprints":{"codehealthFindingId/v1":"009940a3b0ecb1a78bc8abb8d02f8c1e5bbc47e4c315fd0d5d21cc13d337e360"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/antigravity.rs: FileTooLong \u2014 2331 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 1831 over it, 4.66\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 1823 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), 114 methods, 2 blocks, lines 318-3014. The bar is 400 significant lines; this is 1423 over it, 4.56\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":318}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbe450c59a04df6981d2fbf03e8644fa314044246e1ef0f7253ed9658508270e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: ui/usage.rs: FileTooLong \u2014 2252 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 116 free functions. The bar is 500 significant lines; this is 1752 over it, 4.50\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/ui/usage.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"53125205bcfe5052d12d341900bce331a6fc1f6f072aa87a3f619226fcada027"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: tui/app.rs: FileTooLong \u2014 2095 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 87% of them inside a single declaration: App (2 blocks, 318-3014). The bar is 500 significant lines; this is 1595 over it, 4.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":"crates/tokscale-cli/src/tui/app.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"edc1b294d2460c20b0714dbe564806fee2af7219cf11a664d36dcdfaadb0f51a"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: App: TooManyMethods \u2014 114 methods. The bar is 30 methods; this is 84 over it, 3.80\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/app.rs"},"region":{"startLine":318}}}],"partialFingerprints":{"codehealthFindingId/v1":"be7878bd725617560e5484eb5fcfbaa7d43c7708ad0fa1043aa837259519290f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/scanner.rs: FileTooLong \u2014 1900 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 64 free functions. The bar is 500 significant lines; this is 1400 over it, 3.80\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/scanner.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"94488c021a4bc86a85b94397564191e7f30c5b80e0282ca78d2767f9835c406e"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: tokscale_core::sessions::claudecode::parse_claude_lines: FunctionTooLong \u2014 tokscale_core::sessions::claudecode::parse_claude_lines runs 372 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 272 over it, 3.72\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/sessions/claudecode.rs"},"region":{"startLine":809}}}],"partialFingerprints":{"codehealthFindingId/v1":"68c33818b190b239215f784e935b4f047fb4a0fcb13bf2aa90b09446f7d5caa0"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/cursor.rs: FileTooLong \u2014 1857 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 117 free functions. The bar is 500 significant lines; this is 1357 over it, 3.71\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":"FunctionTooLong: tokscale_cli::main: FunctionTooLong \u2014 tokscale_cli::main runs 370 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 270 over it, 3.70\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/main.rs"},"region":{"startLine":695}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc6276e1bd9316dbecccd372f29e905fa371681c1d7d79c41ca423f1f9e81599"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: tokscale_cli::run_clients_command: FunctionTooLong \u2014 tokscale_cli::run_clients_command runs 356 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 256 over it, 3.56\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/main.rs"},"region":{"startLine":4664}}}],"partialFingerprints":{"codehealthFindingId/v1":"4eea57e6a1abda68f6dcbf50e07c6c8d7a1255ce9bd7901c6ffac17334fed9f3"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: tokscale_core::sessions::qoder::parse_qoder_file: FunctionTooLong \u2014 tokscale_core::sessions::qoder::parse_qoder_file runs 338 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 238 over it, 3.38\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/sessions/qoder.rs"},"region":{"startLine":503}}}],"partialFingerprints":{"codehealthFindingId/v1":"14544bc5891d7560d3b092f9b194b5d3bc92e18a875f832510aa58a5d7ea10d3"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: sessions/claudecode.rs: FileTooLong \u2014 1603 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 62 free functions. The bar is 500 significant lines; this is 1103 over it, 3.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":"FileTooLong: sessions/codex.rs: FileTooLong \u2014 1548 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 49 free functions. The bar is 500 significant lines; this is 1048 over it, 3.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-core/src/sessions/codex.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d0c019cd5b98b3823bccf181871324c5506f8fe82544103b1698ad5a713be8f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: data/mod.rs: FileTooLong \u2014 1452 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 952 over it, 2.90\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/data/mod.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b9fccd7c47542ddbbbf9302b07f62fb3635b5a4e81a68e0cada3f580f439972"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: tokscale_cli::run_pricing_lookup: FunctionTooLong \u2014 tokscale_cli::run_pricing_lookup runs 289 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 189 over it, 2.89\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/main.rs"},"region":{"startLine":3927}}}],"partialFingerprints":{"codehealthFindingId/v1":"2911f3a0b8ccfcdb96a0b442eb77e5722d64be95796c773c4ab2f03079cb81f6"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: usage/codex.rs: FileTooLong \u2014 1425 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 82 free functions. The bar is 500 significant lines; this is 925 over it, 2.85\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":"FileTooLong: commands/wrapped.rs: FileTooLong \u2014 1357 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 47 free functions. The bar is 500 significant lines; this is 857 over it, 2.71\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::commands::wrapped::generate_wrapped_image: FunctionTooLong \u2014 tokscale_cli::commands::wrapped::generate_wrapped_image runs 270 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 170 over it, 2.70\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/commands/wrapped.rs"},"region":{"startLine":411}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1740e409c35ab6cbadfbce747a79e4da94e2243ac447667d06ecbe09dc40f81"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: PricingLookup: ClassTooLong \u2014 1054 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), 45 methods, 2 blocks, lines 127-2146. The bar is 400 significant lines; this is 654 over it, 2.64\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/pricing/lookup.rs"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"c45b5e54d21e37b1b4ee55ebb71ddcab212272e1935799b050d05b6cc9d1220e"}},{"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":3295}}}],"partialFingerprints":{"codehealthFindingId/v1":"e38781961f13636d31fc8e71c99f0f8059cd06a4b488a561511ed0fd50bc5d82"}},{"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 252 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 152 over it, 2.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":815}}}],"partialFingerprints":{"codehealthFindingId/v1":"389ee0c3a3686f4ed525a2036cd47da875f19e567163d36b41a06c5b0ba98359"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: tokscale_cli::run_submit_command: FunctionTooLong \u2014 tokscale_cli::run_submit_command runs 240 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 140 over it, 2.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":"crates/tokscale-cli/src/main.rs"},"region":{"startLine":7228}}}],"partialFingerprints":{"codehealthFindingId/v1":"24967aa75368570cdcad3e58b649bbf2b64d79898fc349d29c0324f92bf8477b"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: tokscale_core::sessions::dsh::parse_dsh_lines: FunctionTooLong \u2014 tokscale_core::sessions::dsh::parse_dsh_lines runs 239 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 139 over it, 2.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-core/src/sessions/dsh.rs"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"e21bd16e8019a8f1854de4523eed4dcdd20f3607191377f041ecb30f8bc40a77"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: sessions/grok.rs: FileTooLong \u2014 1189 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 58 free functions. The bar is 500 significant lines; this is 689 over it, 2.38\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/sessions/grok.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"84ad35bdcabe487c8ad18aa4c7037f1ca2196262e49436ab5f815b08ba71eb2c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: sessions/opencode_schema.rs: FileTooLong \u2014 1187 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 687 over it, 2.37\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/sessions/opencode_schema.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e4e5ca40719d3fcb02ac9bf452a3f71c8077bd728d6a9af0288f43085859787"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFields: App: TooManyFields \u2014 71 stored fields beside 114 methods. The bar is 30 stored fields; this is 41 over it, 2.37\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":318}}}],"partialFingerprints":{"codehealthFindingId/v1":"8502809009b2d4c01c5ab5c3b94db867a57b62a024679ce4d5052ca0f2e0224c"}},{"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 235 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 135 over it, 2.35\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/ui/footer.rs"},"region":{"startLine":246}}}],"partialFingerprints":{"codehealthFindingId/v1":"6bb3278f5a1075ec0b0a6d5c8b2637b63009d581adf105779819094e8b5846b4"}},{"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 235 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 135 over it, 2.35\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/ui/stats.rs"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"a160ef127fc86fbfeb0eb4c1c29b92b2fd6a4a2b3811a1f03916aa386267247f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: sessions/kiro.rs: FileTooLong \u2014 1174 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 674 over it, 2.35\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/sessions/kiro.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9857f647ff5fb0c7154740efc80dad1f6275d6da4008a93b7cc7bf86d6e9d4e3"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: tokscale_core::message_cache::read_shard_with_limit_unchecked: FunctionTooLong \u2014 tokscale_core::message_cache::read_shard_with_limit_unchecked runs 230 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 130 over it, 2.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/message_cache.rs"},"region":{"startLine":4272}}}],"partialFingerprints":{"codehealthFindingId/v1":"d008bb768d71b40ef1eca3a0d4d67ad43d75a09087a06aa24b3c0df75542d3eb"}},{"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":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"836fd5ba291fd89b25add4768b8166850e8f989ddc672f580438a0f76baabc67"}},{"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":3607}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2c4c6aa587f9623c0efd5a9ecc914c83303d5c7a71fae4ed932ab43a1b0574c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: commands/report.rs: FileTooLong \u2014 1088 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), declaring 36 free functions. The bar is 500 significant lines; this is 588 over it, 2.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":"crates/tokscale-cli/src/commands/report.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd5ce4c834c783a2622f6d5637f4fc86c79715486dc81f755feb7deaa77482ee"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: DataLoader: ClassTooLong \u2014 859 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), 8 methods, 2 blocks, lines 461-1776. The bar is 400 significant lines; this is 459 over it, 2.15\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/data/mod.rs"},"region":{"startLine":461}}}],"partialFingerprints":{"codehealthFindingId/v1":"31afdeb765c434a2fde559649df299ca4687a799b84e80794eae7bca1f0f2a27"}},{"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":612}}}],"partialFingerprints":{"codehealthFindingId/v1":"a193822401fab1401f51250695ff8f8764bb2d67689e6d91588e25cc6eec09e2"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: PricingLookup.lookup_auto: MethodTooLong \u2014 lookup_auto runs 211 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 111 over it, 2.11\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/pricing/lookup.rs"},"region":{"startLine":909}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e483f4881e049a5d6f28b3e8d829912ec6ab5904b677ccd97cc3e63e0196a9d"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: tokscale_core::sessions::bb::scan_bb_sqlite: FunctionTooLong \u2014 tokscale_core::sessions::bb::scan_bb_sqlite runs 209 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 109 over it, 2.09\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/sessions/bb.rs"},"region":{"startLine":546}}}],"partialFingerprints":{"codehealthFindingId/v1":"0918f6cf31cd269dc07d472f4177649a2f5d3a7b9d64c51739f2f70ae26520ff"}},{"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":6343}}}],"partialFingerprints":{"codehealthFindingId/v1":"de9563a625b01ef035440c398582e81a6bfd65a2518c40c48f39d03be59833da"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: tokscale_cli::tui::ui::hourly_profile::render: FunctionTooLong \u2014 tokscale_cli::tui::ui::hourly_profile::render 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/tui/ui/hourly_profile.rs"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c6098a74ef3d60f30460b4c02a7c981e9a1a6c3d3131e617f022ca90059e3ee"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: SessionDetailDialog.build_lines: MethodTooLong \u2014 build_lines 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/dialog/session_detail.rs"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcb36a00976439919d14c4b7b52f299ebbef87e281f019b2b7db0b2e8f9a5a8f"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: tokscale_cli::tui::ui::models::render: FunctionTooLong \u2014 tokscale_cli::tui::ui::models::render runs 195 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 95 over it, 1.95\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values 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":249}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fbd1e854c9eab7a12f032ccac5806e4ef631fa6c979e9fe9257013f43598921"}},{"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 190 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 90 over it, 1.90\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/ui/overview.rs"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbc756c26b2240a6555a1a1d9103798a5cb744780be28b029740b8203bcc7403"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: tokscale_cli::tui::ui::hourly::render_table: FunctionTooLong \u2014 tokscale_cli::tui::ui::hourly::render_table runs 184 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 84 over it, 1.84\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/ui/hourly.rs"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b04abd4f1fb143cef8264f70fe0d0a857d72bd02419a968f89e0dbcf7fdf571"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: tokscale_cli::tui::ui::daily::render: FunctionTooLong \u2014 tokscale_cli::tui::ui::daily::render runs 181 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 81 over it, 1.81\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/ui/daily.rs"},"region":{"startLine":162}}}],"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 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/minutely.rs"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc1b586965b932f53513171bd2d47fff6e85612be23cd00b88014b2ffdbff493"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: sessions/copilot.rs: FileTooLong \u2014 870 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 42 free functions. The bar is 500 significant lines; this is 370 over it, 1.74\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":"FunctionTooLong: tokscale_cli::tui::ui::stats::render_breakdown_panel: FunctionTooLong \u2014 tokscale_cli::tui::ui::stats::render_breakdown_panel runs 174 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 74 over it, 1.74\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/ui/stats.rs"},"region":{"startLine":638}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae7a64774ba866216e499bce7b5f5c2f66b74567673db4a3513fa0a714abf92c"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: tokscale_core::sessions::kiro::parse_kiro_file: FunctionTooLong \u2014 tokscale_core::sessions::kiro::parse_kiro_file runs 174 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 74 over it, 1.74\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/sessions/kiro.rs"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fe0cbf520a2ee1baf63f455a4d78c696417d8444f80115714d4a8691441f349"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: SchemaAccumulator.ingest: MethodTooLong \u2014 ingest runs 174 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 74 over it, 1.74\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/sessions/opencode_schema.rs"},"region":{"startLine":906}}}],"partialFingerprints":{"codehealthFindingId/v1":"f19610ad739d285c0445ba1c045332a481c5b9432048dcd4bd2bfb35569c6caa"}},{"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 169 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 69 over it, 1.69\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values 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":714}}}],"partialFingerprints":{"codehealthFindingId/v1":"d587d259203d8bf6472daf47670b320e8e7ee0dbf9a1a64cf255a5c168e33503"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: tokscale_core::sessions::zcode::parse_zcode_sqlite: FunctionTooLong \u2014 tokscale_core::sessions::zcode::parse_zcode_sqlite runs 169 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 69 over it, 1.69\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values 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::commands::wrapped::load_wrapped_data: FunctionTooLong \u2014 tokscale_cli::commands::wrapped::load_wrapped_data runs 168 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 68 over it, 1.68\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/commands/wrapped.rs"},"region":{"startLine":154}}}],"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 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/monthly.rs"},"region":{"startLine":386}}}],"partialFingerprints":{"codehealthFindingId/v1":"93245c1ee3ed35b65e04a7743c7e7a30ec40cd434a501751df8a54111fde14a9"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/clients.rs: FileTooLong \u2014 834 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 334 over it, 1.67\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: 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::tui::ui::daily::render_detail: FunctionTooLong \u2014 tokscale_cli::tui::ui::daily::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/daily.rs"},"region":{"startLine":445}}}],"partialFingerprints":{"codehealthFindingId/v1":"595a63a766fc9c5b0b97dfbf70dbe006f570815c35615cfd449c3779f87a9e87"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: tokscale_cli::tui::ui::sessions::render: FunctionTooLong \u2014 tokscale_cli::tui::ui::sessions::render runs 161 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 61 over it, 1.61\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/ui/sessions.rs"},"region":{"startLine":591}}}],"partialFingerprints":{"codehealthFindingId/v1":"d50705c5ce913c87980fa68b89e311a98b0521611febf2db91e11cbb247dfb48"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: tokscale_cli::cursor::fetch_cursor_usage_events_json_merging: FunctionTooLong \u2014 tokscale_cli::cursor::fetch_cursor_usage_events_json_merging runs 160 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 60 over it, 1.60\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/cursor.rs"},"region":{"startLine":2074}}}],"partialFingerprints":{"codehealthFindingId/v1":"27e625355f9eedd2d4055811019d93d09c52730f3f751987eaa327344d5c1b84"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: tokscale_cli::tui::ui::monthly::render: FunctionTooLong \u2014 tokscale_cli::tui::ui::monthly::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/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 155 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 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":"crates/tokscale-core/src/sessions/opencode_schema.rs"},"region":{"startLine":1756}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfd614acca219b7287bbb95da78cd7a1afc0f15638699026497c60806e4e38d3"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: App.handle_key_event: MethodTooLong \u2014 handle_key_event 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/app.rs"},"region":{"startLine":896}}}],"partialFingerprints":{"codehealthFindingId/v1":"b69a905314b0aa84f52c0bcbff7e6ea75b00612c7b130de4ccb71aa4a4050965"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: tokscale_core::scanner::scan_directory: FunctionTooLong \u2014 tokscale_core::scanner::scan_directory runs 153 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 53 over it, 1.53\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/scanner.rs"},"region":{"startLine":519}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3b12aa3e049a6e2772ff29414c650dd1ed8bcb06efa912c9b2e328459cf959b"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: PricingLookup: TooManyMethods \u2014 45 methods. The bar is 30 methods; this is 15 over it, 1.50\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/pricing/lookup.rs"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"91fbc8ff373cf2a5e513ff534cdca989bbcc38878e545468ec5c7e4278c8b786"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: tokscale_cli::antigravity::sync_antigravity_cache_impl_with_deadline: FunctionTooLong \u2014 tokscale_cli::antigravity::sync_antigravity_cache_impl_with_deadline runs 150 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 50 over it, 1.50\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/antigravity.rs"},"region":{"startLine":357}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff29c153fec5f86e4b66d4ce78d56c397cf8cc8515ff3237ca873403b5d146d0"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/trae.rs: FileTooLong \u2014 723 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 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":"crates/tokscale-cli/src/trae.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d923ed1c9ae64d9a54acf6610c490eac7d53e8726c52f8408f2bab126a757340"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: sessions/pi.rs: FileTooLong \u2014 705 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 205 over it, 1.41\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/sessions/pi.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"93ccb0323a7db5b89c0115ff3a2d8c1c5658f2fd76268b482233bf4ca4f417ff"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: App.new_with_cached_data_and_ambient_width: MethodTooLong \u2014 new_with_cached_data_and_ambient_width runs 140 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 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":"crates/tokscale-cli/src/tui/app.rs"},"region":{"startLine":444}}}],"partialFingerprints":{"codehealthFindingId/v1":"4eab7cb1d0cf7abffb5405412dbfacf7610986e840df2ae6d23eacd0363cb144"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: sessions/mod.rs: FileTooLong \u2014 697 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 38 free functions. The bar is 500 significant lines; this is 197 over it, 1.39\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_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: usage/grok.rs: FileTooLong \u2014 690 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 190 over it, 1.38\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"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::ui::usage::usage_status_summary_lines: FunctionTooLong \u2014 tokscale_cli::tui::ui::usage::usage_status_summary_lines runs 138 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 38 over it, 1.38\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/ui/usage.rs"},"region":{"startLine":1125}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae23d6be64d9ac724ae82adcffbcf8b066f8f218b53557c474d71de290f516e0"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: tokscale_core::sessions::magpie::attribute_client_responses: FunctionTooLong \u2014 tokscale_core::sessions::magpie::attribute_client_responses runs 138 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 38 over it, 1.38\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/sessions/magpie.rs"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe875cf91040caf07ee6ef06adf05ad0bd861b2ecd8692fc9c4951abc04c85a3"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: usage/cursor.rs: FileTooLong \u2014 681 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), declaring 44 free functions. The bar is 500 significant lines; this is 181 over it, 1.36\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/commands/usage/cursor.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"43f0d51fe81599b265cf71b9d094dd5270ccf2891e5d3baa367b9cfacc7246ad"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: tui/cache.rs: FileTooLong \u2014 680 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 180 over it, 1.36\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/cache.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e134049b815753df8e92fef292e173dbfd5105fe780a2058f9f2129644f6821"}},{"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 136 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 36 over it, 1.36\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/sessions/prime_agent.rs"},"region":{"startLine":850}}}],"partialFingerprints":{"codehealthFindingId/v1":"68735da6601146a861fd3c3ac54837059f61de2baa7657d87b50e2ef9eca9fbe"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: sessions/qoder.rs: FileTooLong \u2014 668 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 168 over it, 1.34\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/sessions/qoder.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc87ebb86f0562373b18a91ffcb0c868c022615785fc434fd03c87b7470114f3"}},{"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 133 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 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":"crates/tokscale-core/src/sessions/grok.rs"},"region":{"startLine":487}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bfa41ddad235e5c137c450e23e466e99943202694c1884454716df29846626d"}},{"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":"FunctionTooLong: tokscale_cli::tui::ui::model_trend::render: FunctionTooLong \u2014 tokscale_cli::tui::ui::model_trend::render 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-cli/src/tui/ui/model_trend.rs"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"25d5a9cc00e68d1e3238c0d1844408fcb23cb376a7da7629bd427582dc59f33b"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: commands/import.rs: FileTooLong \u2014 645 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 145 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":"FileTooLong: src/aggregator.rs: FileTooLong \u2014 640 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 140 over it, 1.28\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/aggregator.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"54bddcb37c2dd22d26ad331fbf865ae6258f7d2af9ca89281ee61b32b12afc9c"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: SourceMessageCache.save_if_dirty_with_limit: MethodTooLong \u2014 save_if_dirty_with_limit runs 128 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 28 over it, 1.28\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/message_cache.rs"},"region":{"startLine":3966}}}],"partialFingerprints":{"codehealthFindingId/v1":"becff5572a45cd848602eaf8aa23e098a3adea34a89a6bdffd5a938d3e4f6db9"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: ui/stats.rs: FileTooLong \u2014 634 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 134 over it, 1.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/stats.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"30baf7fc32f43bb42cae5d40fe6d151f17f09dc429ff5add74ca6f1b473cbce2"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: tokscale_cli::tui::ui::usage::render_selected_account: FunctionTooLong \u2014 tokscale_cli::tui::ui::usage::render_selected_account runs 126 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 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":"crates/tokscale-cli/src/tui/ui/usage.rs"},"region":{"startLine":1656}}}],"partialFingerprints":{"codehealthFindingId/v1":"806c018b166d9cb797be8a2dee9b2df43f269161def57bcdfb7d35e0fe20435d"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: CustomPricing.load_from_str: MethodTooLong \u2014 load_from_str 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/pricing/custom.rs"},"region":{"startLine":412}}}],"partialFingerprints":{"codehealthFindingId/v1":"1356e92b7a9db6f04cc60b05aef0175827d90ba023e1c68899a985049f7fb003"}},{"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":1478}}}],"partialFingerprints":{"codehealthFindingId/v1":"405ebd2ac5c632e5427b1039d69ba6ac53653127063c6f73dac70b926d641283"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: pricing/mod.rs: FileTooLong \u2014 616 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 116 over it, 1.23\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/pricing/mod.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfd334abba6f0b0063bdefd0a5a65b2866728b84f35e5c342ef48946a4532a8f"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: tokscale_core::sessions::fx::parse_fx_file: FunctionTooLong \u2014 tokscale_core::sessions::fx::parse_fx_file runs 123 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 23 over it, 1.23\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/sessions/fx.rs"},"region":{"startLine":264}}}],"partialFingerprints":{"codehealthFindingId/v1":"065234e852a39653a17f9454491fe2f372ca34fc3b8fbe5fa285ddc29e0c1a78"}},{"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":632}}}],"partialFingerprints":{"codehealthFindingId/v1":"919333899e9dda757198e4bc4f7561de438b186e2b79c96c40574e7b14108ff8"}},{"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 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/ui/bar_chart.rs"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a7e328d6c088197111f6cbd61c80da6e0e706162a5c4878d52426578a118490"}},{"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_core::sessions::cline::parse_cline_cli_file: FunctionTooLong \u2014 tokscale_core::sessions::cline::parse_cline_cli_file 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-core/src/sessions/cline.rs"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"216d699083b92bf0354a9a7068bcf9bfc1f0ac0081f2032c0cd7ee32cd29c95c"}},{"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":307}}}],"partialFingerprints":{"codehealthFindingId/v1":"99456aae2d8fa577e78d96c9936fa93bd4c56f917cf8f1f4975747b9e434e543"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: tokscale_cli::tui::run: FunctionTooLong \u2014 tokscale_cli::tui::run runs 118 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 18 over it, 1.18\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/mod.rs"},"region":{"startLine":268}}}],"partialFingerprints":{"codehealthFindingId/v1":"f22ca506c46f80d0a5fc18e1cc2730d33e581aa5c5beed50f9bc93bb8bb608b6"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: ui/widgets.rs: FileTooLong \u2014 589 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 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":"crates/tokscale-cli/src/tui/ui/widgets.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c265d585d99a3d1a4470e2b01dbe20bc3dbf83c5c844965d401bf9721954ac73"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: usage/antigravity.rs: FileTooLong \u2014 588 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), declaring 36 free functions. The bar is 500 significant lines; this is 88 over it, 1.18\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/commands/usage/antigravity.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"808fbcfc10643e87e67f3d617a83f331a26be1ba400ec6b69c90fa498b12ac45"}},{"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":1220}}}],"partialFingerprints":{"codehealthFindingId/v1":"d37cfc35c6b32016b57438777478d4222326dff165aa4baa502dfd25e3bcf09e"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: tokscale_core::sessions::mcode::parse_mcode_file: FunctionTooLong \u2014 tokscale_core::sessions::mcode::parse_mcode_file 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-core/src/sessions/mcode.rs"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"8873c8ca900c23e5b642e24e881abf01f04729491844e0b4bc1699a2d65fb8ae"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFields: CodexParseState: TooManyFields \u2014 35 stored fields beside 6 methods. The bar is 30 stored fields; this is 5 over it, 1.17\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/sessions/codex.rs"},"region":{"startLine":305}}}],"partialFingerprints":{"codehealthFindingId/v1":"4aa507f999a5cf954aab45505ca3ab701724b7c6f7a5455caf254c857f95004f"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFields: CustomModelPricing: TooManyFields \u2014 35 stored fields beside 2 methods. The bar is 30 stored fields; this is 5 over it, 1.17\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":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"53c832f73b74867876a9a75fae63ef6e03e35359486bc12820ae8fa7ba881107"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: tokscale_core::parse_antigravity_family_messages_with_recount_proofs: FunctionTooLong \u2014 tokscale_core::parse_antigravity_family_messages_with_recount_proofs runs 115 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 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":"crates/tokscale-core/src/lib.rs"},"region":{"startLine":9372}}}],"partialFingerprints":{"codehealthFindingId/v1":"4171826877960edac62edce6a64ba25e04d6ebea325bec5889c7a95858f48907"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: ui/sessions.rs: FileTooLong \u2014 574 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 74 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/sessions.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f5bc81d80dbd86ab804551a6b9c7768528c28cf1d7805025f3feb8526134a7a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: sessions/prime_agent.rs: FileTooLong \u2014 574 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 74 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/prime_agent.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3be029f3c4beb96cf6b65c886038a50307ce55c42863577132cdd493ea5bcfa"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: sessions/hermes.rs: FileTooLong \u2014 572 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 72 over it, 1.14\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/sessions/hermes.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"630006064a4b63ebd7cdf19aa0b57b2a2564250fab36af71c51961daf229ed47"}},{"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":374}}}],"partialFingerprints":{"codehealthFindingId/v1":"51a5bcfe50f6f821c1203240c401973657e29af18508cfb6e12c172e8df9c547"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: PricingService: TooManyMethods \u2014 34 methods. The bar is 30 methods; this is 4 over it, 1.13\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/pricing/mod.rs"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"8168ceba4717224d513ef395e13e99b6702c00b164eca77993ae8b376e6d398c"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFields: Glyphs: TooManyFields \u2014 34 stored fields beside 4 methods. 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-cli/src/ui_glyphs.rs"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8cb3d1493751973e1c3fa87207a03ae558de9798f714d9c70a2c5ddf4567842"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: CustomModelPricing.into_model_pricing: MethodTooLong \u2014 into_model_pricing 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/pricing/custom.rs"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"45b00363b83291248bd60c48ad725e9193f174f5b4384addcb4812320ac2632f"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: tokscale_core::pricing::lookup::select_best_match: FunctionTooLong \u2014 tokscale_core::pricing::lookup::select_best_match 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/pricing/lookup.rs"},"region":{"startLine":3984}}}],"partialFingerprints":{"codehealthFindingId/v1":"479eeb618d9df3aff32d8a56e22ecd5804da8e854f79d486712864975642f949"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: tokscale_cli::amp::sync_amp_cache_with: FunctionTooLong \u2014 tokscale_cli::amp::sync_amp_cache_with 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-cli/src/amp.rs"},"region":{"startLine":276}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f3fc40c1fa78424d1bfa927736f21c660b3d93aaefcbddaf33906ad1a34ab2b"}},{"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":1193}}}],"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":1512}}}],"partialFingerprints":{"codehealthFindingId/v1":"4556f6b33646946136099fb5a3d99a62f874b476a086fb89bc2c6d79580d0be0"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: usage/mod.rs: FileTooLong \u2014 556 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 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":"crates/tokscale-cli/src/commands/usage/mod.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"47013df85a628872f9d4374737b9ce33b1322b33b279f2923419a39f6782fcd3"}},{"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":"FunctionTooLong: tokscale_cli::commands::usage::codex::fetch_with_auth_async: FunctionTooLong \u2014 tokscale_cli::commands::usage::codex::fetch_with_auth_async 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/usage/codex.rs"},"region":{"startLine":1382}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc6d32a6a6f6466683e082fbb7e094b6a33daa75eae981f9e03f74ce3c90a98b"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: tokscale_cli::to_ts_token_contribution_data: FunctionTooLong \u2014 tokscale_cli::to_ts_token_contribution_data 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/main.rs"},"region":{"startLine":5539}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5bb6f15fe237b8881ae548183459f647c17ef6965e0b3c26ce075a974641cd8"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: tui/themes.rs: FileTooLong \u2014 552 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 68% of them inside a single declaration: Theme (2 blocks, 204-689). The bar is 500 significant lines; this is 52 over it, 1.10\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":"TooManyFields: LegacyCodexStateV19: TooManyFields \u2014 33 stored fields. The bar is 30 stored fields; this is 3 over it, 1.10\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/message_cache.rs"},"region":{"startLine":1294}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f8e9c08643bbfc5562ef7011d0a58185c558b7715f3c1e7a307af6a80507c4c"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: tokscale_core::claude_desktop::parse_tree: FunctionTooLong \u2014 tokscale_core::claude_desktop::parse_tree 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/claude_desktop/mod.rs"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bf3d05941a8f8d1b4e1ba21f6c94807782a3408dc351f5e04ec32f89b01b5a4"}},{"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":259}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3d5c8c44af20084e0ceade4908943c37d76e194f8a87a7a4be52a6c4d226c33"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: tokscale_cli::tui::ui::footer::render_main_row: FunctionTooLong \u2014 tokscale_cli::tui::ui::footer::render_main_row 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-cli/src/tui/ui/footer.rs"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e419df9f6add16fd4dd68e6790177ed17ff5eedab189661d4d68cfe7c890665"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFunctions: tokscale_core::sessions::antigravity_cli: TooManyFunctions \u2014 32 free functions. The bar is 30 free functions; this is 2 over it, 1.07\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/sessions/antigravity_cli.rs"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"022fc2dead95076a09d97a8d5459eaba9b9e060d438dd0a190910d76ce13fde1"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: sessions/bb.rs: FileTooLong \u2014 528 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 28 over it, 1.06\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/sessions/bb.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8592422da8faf90b3e657ed044eaab2b3bb10c72c7ec057a4b40ae77ef318601"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: sessions/openclaw.rs: FileTooLong \u2014 525 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 25 over it, 1.05\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/sessions/openclaw.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa373d41daa9b421ff533825d355ac2c0ef43a37060bed8088a02d13b4633a25"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: tokscale_cli::antigravity::https_rpc_request: FunctionTooLong \u2014 tokscale_cli::antigravity::https_rpc_request runs 105 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 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":"crates/tokscale-cli/src/antigravity.rs"},"region":{"startLine":2433}}}],"partialFingerprints":{"codehealthFindingId/v1":"592cae14d060e4ae6e4fec2c3ebfbe6f7e001aa31ee75464789f7af996889a23"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: usage/claude.rs: FileTooLong \u2014 523 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), declaring 36 free functions. The bar is 500 significant lines; this is 23 over it, 1.05\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/commands/usage/claude.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d061bbb7336f802b140b1620f1132c015fe064389b64ab74e35be462f676e18"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: tokscale_core::sessions::hermes::allocate_row_by_days: FunctionTooLong \u2014 tokscale_core::sessions::hermes::allocate_row_by_days 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/sessions/hermes.rs"},"region":{"startLine":444}}}],"partialFingerprints":{"codehealthFindingId/v1":"d03ce1dd4ba5b50385c40d8471383169ad5311e1dc46ca0a760d89c0b1c5b85e"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFields: LegacyCodexStateV15: TooManyFields \u2014 31 stored fields. The bar is 30 stored fields; this is 1 over it, 1.03\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/message_cache.rs"},"region":{"startLine":1152}}}],"partialFingerprints":{"codehealthFindingId/v1":"28e4cbdd84574db61ba2f568c9bded80b16769aaf1c015206f5475272f1b07de"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: tokscale_core::sessions::vibe::parse_vibe_file: FunctionTooLong \u2014 tokscale_core::sessions::vibe::parse_vibe_file 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-core/src/sessions/vibe.rs"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0bb298dee25f80feae0aac249235fa5c76c19ab7beea7e8b629b5896fc8158e"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: tokscale_core::sessions::qoder::extract_usage_breakdown: FunctionTooLong \u2014 tokscale_core::sessions::qoder::extract_usage_breakdown 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-core/src/sessions/qoder.rs"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"54782a40530bcf6a9e1151c585c49d20a5f0d63a9d8f49280f8e6464a7c6ed9f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: pricing/custom.rs: FileTooLong \u2014 506 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 6 over it, 1.01\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/pricing/custom.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9bac750867a567aab6e40da82cd5d791ed81bea1239cb14abdc70587a14d5ed"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: tokscale_core::sessions::cherrystudio::parse_cherrystudio_sqlite: FunctionTooLong \u2014 tokscale_core::sessions::cherrystudio::parse_cherrystudio_sqlite runs 101 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 1 over it, 1.01\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/sessions/cherrystudio.rs"},"region":{"startLine":638}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c6d60b9de66bc84612ad0a61853859db9ab0f3490656e111a68b1eec57433db"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: usage/copilot.rs: FileTooLong \u2014 504 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 4 over it, 1.01\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/commands/usage/copilot.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"62c1448cc994d574a3987a14d4b47927cd5deea578c07e4d338cba72ed872e36"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: ui/footer.rs: FileTooLong \u2014 504 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 4 over it, 1.01\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/ui/footer.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b44d4675390b6b6cb37473426ae45f4baf5fbc9ebc58de8a0ee37665b4dffeed"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 19 shared lines): crates/tokscale-cli/src/tui/app.rs:2571-2608 | crates/tokscale-cli/src/tui/app.rs:2610-2644 | crates/tokscale-cli/src/tui/app.rs:2697-2728 | crates/tokscale-cli/src/tui/app.rs:2754-2812 \u2014 These 4 members are variants of one another: a block of 19 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 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-cli/src/tui/app.rs"},"region":{"startLine":2571}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7407333e0b66c8a505a9e905297eb20d08c9688831c3ae12fa9b0e78cae453a"}},{"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:112-209 | crates/tokscale-cli/src/tui/ui/dialog/language_picker.rs:55-134 | crates/tokscale-cli/src/tui/ui/dialog/source_picker.rs:136-244 \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":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a4c7b749414c5ca3b18a8d7cbef665dfffbf58328f6a6e3713e7ef6b9ace61f"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (63 shared lines): crates/tokscale-cli/src/main.rs:3303-3605 | crates/tokscale-cli/src/main.rs:3615-3884 \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":3303}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fa445ff6784248a6106f21fb01e23a833bf58662ab91a277b769835d538c886"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (23 shared lines): crates/tokscale-cli/src/tui/ui/usage.rs:2317-2377 | crates/tokscale-cli/src/tui/ui/usage.rs:2384-2429 \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":2317}}}],"partialFingerprints":{"codehealthFindingId/v1":"0873b2e41fcb049cc1ca983301bc46bb659739f2ab6c3b553cd22a162070e47c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): crates/tokscale-core/src/sessions/opencode_schema.rs:1179-1199 | crates/tokscale-core/src/sessions/opencode_schema.rs:1209-1233 \u2014 These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/sessions/opencode_schema.rs"},"region":{"startLine":1179}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac57476ec5a494ca0d79550127713a28f8ac7ba8c409742991eeca04330e468e"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (14 members, 50\u002B identical tokens): crates/tokscale-cli/src/tui/ui/agents.rs:72-231 | crates/tokscale-cli/src/tui/ui/daily.rs:162-403 | crates/tokscale-cli/src/tui/ui/daily.rs:445-657 | crates/tokscale-cli/src/tui/ui/hourly.rs:117-389 | crates/tokscale-cli/src/tui/ui/hourly_profile.rs:32-316 | crates/tokscale-cli/src/tui/ui/minutely.rs:110-341 | crates/tokscale-cli/src/tui/ui/model_trend.rs:87-252 | crates/tokscale-cli/src/tui/ui/models.rs:249-512 | crates/tokscale-cli/src/tui/ui/monthly.rs:179-384 | crates/tokscale-cli/src/tui/ui/monthly.rs:386-602 | crates/tokscale-cli/src/tui/ui/projects.rs:307-473 | crates/tokscale-cli/src/tui/ui/sessions.rs:591-820 | crates/tokscale-cli/src/tui/ui/stats.rs:256-586 | crates/tokscale-cli/src/tui/ui/stats.rs:638-874 \u2014 These 14 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 14 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 14 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/ui/agents.rs"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"4206d41f86e95cfbb2539cc704fb3335753b32b0d07c24dfb785c74bcd16ea5a"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (14 members, 50\u002B identical tokens): crates/tokscale-cli/src/tui/ui/agents.rs:72-231 | crates/tokscale-cli/src/tui/ui/daily.rs:162-403 | crates/tokscale-cli/src/tui/ui/hourly.rs:117-389 | crates/tokscale-cli/src/tui/ui/hourly_profile.rs:32-316 | crates/tokscale-cli/src/tui/ui/minutely.rs:110-341 | crates/tokscale-cli/src/tui/ui/models.rs:249-512 | crates/tokscale-cli/src/tui/ui/monthly.rs:179-384 | crates/tokscale-cli/src/tui/ui/projects.rs:307-473 | crates/tokscale-cli/src/tui/ui/sessions.rs:591-820 | crates/tokscale-cli/src/tui/ui/stats.rs:256-586 | crates/tokscale-cli/src/tui/ui/stats.rs:638-874 | crates/tokscale-cli/src/tui/ui/usage.rs:58-101 | crates/tokscale-cli/src/tui/ui/usage.rs:1035-1123 | crates/tokscale-cli/src/tui/ui/usage.rs:2317-2377 \u2014 These 14 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 14 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 14 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/ui/agents.rs"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"94010ee599ed59fd463fffb09544d5129b439e8dab8c15ec3c76584ed1381e7c"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (11 members, 50\u002B identical tokens): crates/tokscale-cli/src/tui/ui/agents.rs:72-231 | crates/tokscale-cli/src/tui/ui/daily.rs:162-403 | crates/tokscale-cli/src/tui/ui/daily.rs:445-657 | crates/tokscale-cli/src/tui/ui/hourly.rs:117-389 | crates/tokscale-cli/src/tui/ui/minutely.rs:110-341 | crates/tokscale-cli/src/tui/ui/models.rs:249-512 | crates/tokscale-cli/src/tui/ui/monthly.rs:179-384 | crates/tokscale-cli/src/tui/ui/monthly.rs:386-602 | crates/tokscale-cli/src/tui/ui/overview.rs:235-497 | crates/tokscale-cli/src/tui/ui/projects.rs:307-473 | crates/tokscale-cli/src/tui/ui/sessions.rs:591-820 \u2014 These 11 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 11 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 11 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/ui/agents.rs"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"25432f4c54ec48ed397eac35bd143b8cb3799a0859d112b0a8663fee0f1a8fe4"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): crates/tokscale-cli/src/antigravity.rs:665-676 | crates/tokscale-cli/src/auth.rs:76-88 | crates/tokscale-cli/src/cursor.rs:673-685 | crates/tokscale-cli/src/cursor.rs:2813-2840 | 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":665}}}],"partialFingerprints":{"codehealthFindingId/v1":"4820208c0725303290e4e7516ff20e921b9a873ca74948194efaa9c8742695d1"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): crates/tokscale-core/src/lib.rs:6215-6282 | crates/tokscale-core/src/lib.rs:6345-6381 | crates/tokscale-core/src/lib.rs:6474-6517 | crates/tokscale-core/src/lib.rs:6541-6612 | crates/tokscale-core/src/lib.rs:7041-7072 \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":6215}}}],"partialFingerprints":{"codehealthFindingId/v1":"24dd88a5c8d50bd92ac549885a81c5d10350ba69d8c408a407453fc97800b9c2"}},{"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:1355-1378 | crates/tokscale-core/src/scanner.rs:1394-1421 | crates/tokscale-core/src/scanner.rs:1455-1479 \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":"79c54c68a1574ca656b50d3092e76c15c86ba18c558c02b2816ba2f770a5b3b7"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): crates/tokscale-core/src/message_cache.rs:2542-2573 | crates/tokscale-core/src/message_cache.rs:2635-2666 | crates/tokscale-core/src/message_cache.rs:2726-2757 | crates/tokscale-core/src/message_cache.rs:2888-2921 \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":2542}}}],"partialFingerprints":{"codehealthFindingId/v1":"edd73d501b810570c48840df40bfdde6c412c10558d7665575c07b4d487d5e76"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (423 corresponding lines): crates/tokscale-cli/src/tui/i18n.rs:551-973 | crates/tokscale-cli/src/tui/i18n.rs:2280-2717 \u2014 These two members are one piece of code written twice and then edited apart: 423 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/i18n.rs"},"region":{"startLine":551}}}],"partialFingerprints":{"codehealthFindingId/v1":"ecd8ccec94bf587daf97cec7bee9f1f9a01d0111032e4f17d9a5c70cb99add95"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (46 corresponding lines): crates/tokscale-core/src/aggregator.rs:649-694 | crates/tokscale-core/src/aggregator.rs:839-905 \u2014 These two members are one piece of code written twice and then edited apart: 46 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/aggregator.rs"},"region":{"startLine":649}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ae659e684afaf63c7b5f768bf44d989a668383c841841af84d4a187ecad02e9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 30\u002B corresponding lines): crates/tokscale-cli/src/tui/app.rs:2646-2675 | crates/tokscale-cli/src/tui/app.rs:2814-2847 | crates/tokscale-cli/src/tui/app.rs:2928-2963 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 30 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/app.rs"},"region":{"startLine":2646}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fd7ee8de63e65420e663af909b925ec6f28f9df8ade310ea4cd2f99212eba30"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (35 corresponding lines): crates/tokscale-cli/src/antigravity.rs:823-874 | crates/tokscale-cli/src/trae.rs:1192-1226 \u2014 These two members are one piece of code written twice and then edited apart: 35 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/antigravity.rs"},"region":{"startLine":823}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a9d37bd37bbac4c687352a51695a8ce4d03caabf89c3e1dcc62819bce4c277b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (46 corresponding lines): crates/tokscale-core/src/aggregator.rs:540-600 | crates/tokscale-core/src/aggregator.rs:602-647 \u2014 These two members are one piece of code written twice and then edited apart: 46 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/aggregator.rs"},"region":{"startLine":540}}}],"partialFingerprints":{"codehealthFindingId/v1":"178d295d05ad424915bee4c9eb9bcd33be3ee6b40ee29420892b566286978e9a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (44 corresponding lines): crates/tokscale-core/src/aggregator.rs:732-792 | crates/tokscale-core/src/aggregator.rs:794-837 \u2014 These two members are one piece of code written twice and then edited apart: 44 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/aggregator.rs"},"region":{"startLine":732}}}],"partialFingerprints":{"codehealthFindingId/v1":"09eb0f2538baf09e312713f0fabb9fe1e02cf816ca36e5a7c0fa8a85ebac81fb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (40 corresponding lines): crates/tokscale-cli/src/tui/data/mod.rs:648-687 | crates/tokscale-cli/src/tui/data/mod.rs:697-744 \u2014 These two members are one piece of code written twice and then edited apart: 40 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/data/mod.rs"},"region":{"startLine":648}}}],"partialFingerprints":{"codehealthFindingId/v1":"d656f496753377a42329b4819d41fa1721ae712e8573ef82eae824cb4360b792"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (48 corresponding lines): crates/tokscale-cli/src/antigravity.rs:1205-1252 | crates/tokscale-cli/src/cursor.rs:614-671 \u2014 These two members are one piece of code written twice and then edited apart: 48 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/antigravity.rs"},"region":{"startLine":1205}}}],"partialFingerprints":{"codehealthFindingId/v1":"efad20ab9ff5ed45b15f6e54e00308b703a3b4d12e9da1b3b5774a2c0660a6ca"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (47 corresponding lines): crates/tokscale-cli/src/antigravity.rs:759-817 | crates/tokscale-cli/src/trae.rs:1127-1173 \u2014 These two members are one piece of code written twice and then edited apart: 47 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/antigravity.rs"},"region":{"startLine":759}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0b4c3db6d2f193ed5facfca0895c3d7f5bd184bb801d38cfd9e420747e84c01"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (39 corresponding lines): crates/tokscale-cli/src/commands/usage/codex.rs:2025-2067 | crates/tokscale-cli/src/cursor.rs:3042-3080 \u2014 These two members are one piece of code written twice and then edited apart: 39 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/commands/usage/codex.rs"},"region":{"startLine":2025}}}],"partialFingerprints":{"codehealthFindingId/v1":"01cca978eadc308f05eb579d2452e8d7dfb4dee310c49f2e201d5fee19830a6b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (37 corresponding lines): crates/tokscale-cli/src/main.rs:6016-6055 | crates/tokscale-core/src/sessions/opencode.rs:207-243 \u2014 These two members are one piece of code written twice and then edited apart: 37 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/main.rs"},"region":{"startLine":6016}}}],"partialFingerprints":{"codehealthFindingId/v1":"efdc876d32bada2fcb599b1c3f30cc11d210e5aea4e82bdd64c63a134052b80a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 39\u002B corresponding lines): crates/tokscale-core/src/message_cache.rs:1043-1081 | crates/tokscale-core/src/message_cache.rs:1186-1224 | crates/tokscale-core/src/message_cache.rs:1331-1369 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 39 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/message_cache.rs"},"region":{"startLine":1043}}}],"partialFingerprints":{"codehealthFindingId/v1":"32dae018dc5259d0393b53b3e8df62b0c37af0a9b4feec180e31ba73b30876c1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (34 corresponding lines): crates/tokscale-cli/src/cursor.rs:3082-3115 | crates/tokscale-cli/src/hindsight.rs:552-586 \u2014 These two members are one piece of code written twice and then edited apart: 34 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/cursor.rs"},"region":{"startLine":3082}}}],"partialFingerprints":{"codehealthFindingId/v1":"b53b917ce8970eff21ab8eb937f44dd969b8c3283b469e9f44bffc4e144cc014"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (39 corresponding lines): crates/tokscale-core/src/pricing/lookup.rs:1855-1893 | crates/tokscale-core/src/pricing/lookup.rs:1921-1961 \u2014 These two members are one piece of code written twice and then edited apart: 39 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/pricing/lookup.rs"},"region":{"startLine":1855}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3cb84184eceb3034df0c1f07d97a23ff5528151497d6276f300477aee1876d4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (31 corresponding lines): crates/tokscale-cli/src/tui/ui/mod.rs:76-107 | crates/tokscale-cli/src/tui/ui/mod.rs:109-139 \u2014 These two members are one piece of code written twice and then edited apart: 31 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/ui/mod.rs"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7e9e4058a8b505e44862db1cda8510acc041d9b4654be2c873918df69fe79ae"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): crates/tokscale-cli/src/tui/ui/projects.rs:119-135 | crates/tokscale-cli/src/tui/ui/sessions.rs:158-181 \u2014 These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/ui/projects.rs"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"de854de886a0bd9a8ec816567472b3668ee7ddd95a42d51a7e3346e8984c5473"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): crates/tokscale-core/src/lib.rs:5555-5575 | crates/tokscale-core/src/lib.rs:9555-9574 \u2014 These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/lib.rs"},"region":{"startLine":5555}}}],"partialFingerprints":{"codehealthFindingId/v1":"425ec05176b431454e77ad95c49d8d7d6d6fb0949f1197e9bdb24c631bcfd8ec"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 31\u002B corresponding lines): crates/tokscale-core/src/pricing/lookup.rs:1318-1349 | crates/tokscale-core/src/pricing/lookup.rs:1355-1385 | crates/tokscale-core/src/pricing/lookup.rs:1391-1430 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 31 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/pricing/lookup.rs"},"region":{"startLine":1318}}}],"partialFingerprints":{"codehealthFindingId/v1":"73e883bf49cb4d7d95156588ffc83196cfb953a5ffcf2b737bb81ddfc5b20f73"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): crates/tokscale-core/src/pricing/litellm.rs:690-717 | crates/tokscale-core/src/pricing/models_dev.rs:106-131 \u2014 These two members are one piece of code written twice and then edited apart: 26 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/pricing/litellm.rs"},"region":{"startLine":690}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9059adf3e78652b30f19181a5dca01759cdb1618f796883ef566327ef5592d8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): crates/tokscale-cli/src/tui/ui/dialog/session_detail.rs:610-636 | crates/tokscale-cli/src/tui/ui/sessions.rs:911-932 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/ui/dialog/session_detail.rs"},"region":{"startLine":610}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f813a1a9275cfbb53dffa6b932093365932e2c96431a77755f33d4c934fe934"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): crates/tokscale-core/src/pricing/lookup.rs:1637-1651 | crates/tokscale-core/src/pricing/lookup.rs:1653-1667 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/pricing/lookup.rs"},"region":{"startLine":1637}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b392d3a3db69e6e916fb36b3ed09f3025383f0758c8dafb91bcf7c1814b4fba"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): crates/tokscale-cli/src/antigravity.rs:2838-2863 | crates/tokscale-cli/src/antigravity.rs:2868-2894 \u2014 These two members are one piece of code written twice and then edited apart: 26 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/antigravity.rs"},"region":{"startLine":2838}}}],"partialFingerprints":{"codehealthFindingId/v1":"722fbbcdc77d3f543bb9227afc40dd76a2f0de35b436ff41376e969d35568df8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (30 corresponding lines): crates/tokscale-cli/src/tui/app.rs:1933-1962 | crates/tokscale-cli/src/tui/app.rs:1964-1995 \u2014 These two members are one piece of code written twice and then edited apart: 30 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/app.rs"},"region":{"startLine":1933}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2a10f508b163f69451872624de1c9a0da630f4181f935f03ab6e5c8d56a6101"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): crates/tokscale-core/src/sessions/lmstudio.rs:271-311 | crates/tokscale-core/src/sessions/unsloth.rs:74-98 \u2014 These two members are one piece of code written twice and then edited apart: 25 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/sessions/lmstudio.rs"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"3167e7527b6b94ac71ebf7ef60c32b1a03b70d61b72ecc5a6c03eda520c1b797"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): crates/tokscale-core/src/scanner.rs:228-248 | crates/tokscale-core/src/scanner.rs:251-271 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/scanner.rs"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"44379c26288a2cdfa71ae33eaa5e0354488f027305342a9ab96e5b341dd9eb45"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): crates/tokscale-core/src/pricing/lookup.rs:3657-3685 | crates/tokscale-core/src/pricing/lookup.rs:3754-3780 \u2014 These two members are one piece of code written twice and then edited apart: 27 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/pricing/lookup.rs"},"region":{"startLine":3657}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddb4685669f93e712d8daa91565c2c55894209fbb32f52f64a297383d89a8155"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 27\u002B corresponding lines): crates/tokscale-cli/src/tui/app.rs:2245-2273 | crates/tokscale-cli/src/tui/app.rs:2296-2323 | crates/tokscale-cli/src/tui/app.rs:2360-2386 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 27 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/app.rs"},"region":{"startLine":2245}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9644b6b18e195f7ed9ccc24fa84993f407a1eedb3a0921850ce9da6ce38a7cc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): crates/tokscale-cli/src/commands/usage/mod.rs:120-141 | crates/tokscale-cli/src/tui/app.rs:248-269 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/commands/usage/mod.rs"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b46f6eb97f26284fbe732b65446163cd3e7b313e792c52eb28f6049c3a3ed43"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): crates/tokscale-core/src/sessions/utils.rs:103-121 | crates/tokscale-core/src/sessions/utils.rs:156-181 \u2014 These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/sessions/utils.rs"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"630e6923273830e9d233624a9232f251648507aef3b4c6969a2209b587970ab5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): crates/tokscale-core/src/sessions/crush.rs:142-164 | crates/tokscale-core/src/sessions/workbuddy.rs:43-72 \u2014 These two members are one piece of code written twice and then edited apart: 23 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/sessions/crush.rs"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdfa943e240dfd6db49d7a7d3d989ef62c308e5400528418026f6d0eba6b7c12"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): crates/tokscale-core/src/claude_desktop/v8.rs:683-701 | crates/tokscale-core/src/claude_desktop/v8.rs:758-775 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/claude_desktop/v8.rs"},"region":{"startLine":683}}}],"partialFingerprints":{"codehealthFindingId/v1":"7599ae554f110fad60cbe194109ae70fb8669fc9229a0887484dbc897eb8b0ae"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): crates/tokscale-cli/src/commands/usage/opencode_go.rs:194-219 | crates/tokscale-cli/src/cursor.rs:2348-2373 \u2014 These two members are one piece of code written twice and then edited apart: 26 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/commands/usage/opencode_go.rs"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"44c819f6f3427bc07a469a79c450069d49f84d9eb60ea2fb11c49ed987e7bfbd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): crates/tokscale-cli/src/tui/app.rs:2423-2435 | crates/tokscale-cli/src/tui/app.rs:2437-2449 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/app.rs"},"region":{"startLine":2423}}}],"partialFingerprints":{"codehealthFindingId/v1":"88a9f19d217a1d138b9cbe467716c20df80e184e7a2e6d958236527775d6925a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): crates/tokscale-cli/src/tui/cache.rs:371-395 | crates/tokscale-cli/src/tui/cache.rs:440-462 \u2014 These two members are one piece of code written twice and then edited apart: 23 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/cache.rs"},"region":{"startLine":371}}}],"partialFingerprints":{"codehealthFindingId/v1":"c94f5dad831c11d17adc469ee51c7ede4f080bb709931d88968fbd47cb671063"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): crates/tokscale-core/src/provider_identity.rs:73-93 | crates/tokscale-core/src/provider_identity.rs:124-148 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/provider_identity.rs"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"14a2ae0d4105d949587a198273436712dea6062bc59020e5cc8edcb9c3bc2d19"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): crates/tokscale-cli/src/tui/app.rs:2224-2243 | crates/tokscale-cli/src/tui/app.rs:2275-2294 \u2014 These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/app.rs"},"region":{"startLine":2224}}}],"partialFingerprints":{"codehealthFindingId/v1":"53528d9d541b30f5041b08c4e68bdd5e7ca68d19807fab1a00037fd18d39353f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): crates/tokscale-cli/src/commands/usage/minimax.rs:120-137 | crates/tokscale-cli/src/commands/usage/minimax_tokenplan.rs:126-150 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/commands/usage/minimax.rs"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"243f9b38d8db90bd5386c097c8e7dfb008a6bb1b7f113e94d07bd026f29da201"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): crates/tokscale-cli/src/tui/ui/dialog/group_by_picker.rs:211-232 | crates/tokscale-cli/src/tui/ui/dialog/language_picker.rs:138-158 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/ui/dialog/group_by_picker.rs"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"a16578e50ee8522f2726add9f420d07575dfeef3ef7296de8b1814e36220be3f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): crates/tokscale-core/src/sessions/cherrystudio.rs:242-255 | crates/tokscale-core/src/sessions/qwen.rs:205-220 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/sessions/cherrystudio.rs"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ecd118f3bd8b7960d562921cdd9d581a26b7a27d89e46ab96fb60fc597d78a3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): crates/tokscale-cli/src/antigravity.rs:1972-1992 | crates/tokscale-cli/src/antigravity.rs:1995-2013 \u2014 These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/antigravity.rs"},"region":{"startLine":1972}}}],"partialFingerprints":{"codehealthFindingId/v1":"e541d4a69e0b4c020c5a09a456449f75219d9f31e4a9d33e56c0a32257ecb1f5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 17\u002B corresponding lines): crates/tokscale-cli/src/commands/usage/copilot.rs:716-736 | crates/tokscale-cli/src/commands/usage/grok.rs:150-169 | crates/tokscale-cli/src/commands/usage/kimi.rs:153-169 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 17 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/commands/usage/copilot.rs"},"region":{"startLine":716}}}],"partialFingerprints":{"codehealthFindingId/v1":"43632acf44c0a2b66d7c92b8d985d5a504264b7e59f90b075b54ed03c79794d4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): crates/tokscale-core/src/scanner.rs:1428-1448 | crates/tokscale-core/src/scanner.rs:1574-1592 \u2014 These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/scanner.rs"},"region":{"startLine":1428}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3980567bd0604cf0eafc9c4bb4dca13a7a4cceb6573107c55b3dc5017340642"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): crates/tokscale-core/src/sessions/grok.rs:1695-1712 | crates/tokscale-core/src/sessions/grok.rs:1714-1728 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/sessions/grok.rs"},"region":{"startLine":1695}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa795bfdeb071033a7a1ffca716e7d9b539fa503426da4cb8d9106b06169b415"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): crates/tokscale-cli/src/tui/app.rs:1404-1422 | crates/tokscale-cli/src/tui/app.rs:1424-1442 \u2014 These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/app.rs"},"region":{"startLine":1404}}}],"partialFingerprints":{"codehealthFindingId/v1":"0aa0328d1fe46d33de89f1f49aec6559d12a90334fd04ebccb5e9f4b527395fe"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 17\u002B corresponding lines): crates/tokscale-core/src/pricing/lookup.rs:1785-1801 | crates/tokscale-core/src/pricing/lookup.rs:1807-1823 | crates/tokscale-core/src/pricing/lookup.rs:1829-1849 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 17 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/pricing/lookup.rs"},"region":{"startLine":1785}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd195de05a1d99b72cb5f815aa635198ea94a08a623dfc34b6e6427d0ea63b49"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): crates/tokscale-core/src/pricing/lookup.rs:3211-3221 | crates/tokscale-core/src/pricing/lookup.rs:3589-3610 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/pricing/lookup.rs"},"region":{"startLine":3211}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb9091f8f02aa3db87cb666a93706e1691cf656c2a78680f4031733929c971e4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 13\u002B corresponding lines): crates/tokscale-cli/src/submission_warnings.rs:71-88 | crates/tokscale-cli/src/submission_warnings.rs:90-102 | crates/tokscale-cli/src/submission_warnings.rs:104-120 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 13 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/submission_warnings.rs"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"26db70c64cae9f34fab8979232ddb6b0761778811d9897d8525122047873cf6b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): crates/tokscale-core/src/sessions/cline.rs:120-128 | crates/tokscale-core/src/sessions/roocode.rs:383-390 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/sessions/cline.rs"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ad3dff353955e39ceb2b6b49348cd5adde0d8429c9a54e76d49100f112a1cf0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): crates/tokscale-cli/src/commands/autosubmit.rs:1157-1175 | crates/tokscale-cli/src/commands/autosubmit.rs:1189-1210 \u2014 These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/commands/autosubmit.rs"},"region":{"startLine":1157}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d3edd357e2a535607b4961bccf46b1140da80264a218e604e836e42c029087b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): crates/tokscale-cli/src/commands/usage/codex.rs:805-830 | crates/tokscale-cli/src/cursor.rs:1292-1312 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/commands/usage/codex.rs"},"region":{"startLine":805}}}],"partialFingerprints":{"codehealthFindingId/v1":"a373a4f38b347f0e74ebf6f0aefae82f18bcb5931d77e763d9cfcd5643fcacf7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): crates/tokscale-cli/src/commands/usage/grok.rs:123-136 | crates/tokscale-cli/src/commands/usage/grok.rs:739-755 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/commands/usage/grok.rs"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c766abc0fdf5b7d5d93ef78db46e0ab5ccb57955565f467408d7cb7d94100d3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): crates/tokscale-cli/src/cursor.rs:1660-1674 | crates/tokscale-cli/src/hindsight.rs:163-176 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/cursor.rs"},"region":{"startLine":1660}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f7b3b017fe09b78b42f33d8bf8ae576ea30267c39cae934f05f296b80ddeb2a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): crates/tokscale-core/src/pricing/lookup.rs:2534-2561 | crates/tokscale-core/src/pricing/lookup.rs:2702-2726 \u2014 These two members are one piece of code written twice and then edited apart: 25 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/pricing/lookup.rs"},"region":{"startLine":2534}}}],"partialFingerprints":{"codehealthFindingId/v1":"b90f81af46b83b0809f715a4846819a61bbde8a451316c3eddb92723281bc9b3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): crates/tokscale-cli/src/antigravity.rs:1073-1092 | crates/tokscale-cli/src/cursor.rs:949-973 \u2014 These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/antigravity.rs"},"region":{"startLine":1073}}}],"partialFingerprints":{"codehealthFindingId/v1":"c54a4345c9b4bb1821afe68986da3159a5cf1a46b1a3479eb70446ddc2a672a4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): crates/tokscale-core/src/scanner.rs:1741-1756 | crates/tokscale-core/src/scanner.rs:1765-1776 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/scanner.rs"},"region":{"startLine":1741}}}],"partialFingerprints":{"codehealthFindingId/v1":"ccf510c1c5fe48e2078070ad1e3f0a2febc5200d3dcd2be924cea765887d57e5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): crates/tokscale-cli/src/tui/cache.rs:465-479 | crates/tokscale-cli/src/tui/cache.rs:507-521 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/cache.rs"},"region":{"startLine":465}}}],"partialFingerprints":{"codehealthFindingId/v1":"2eefa8dcb330cd2a567c6a2102fe56c743b122b695360a88a76941fff478ffe0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): crates/tokscale-cli/src/tui/cache.rs:892-901 | crates/tokscale-core/src/sessions/opencode.rs:192-204 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/cache.rs"},"region":{"startLine":892}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4a2eaaa78a1f58fe7427ea5626842d02e568202d8e6ffd7a8779ee70c9119d6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): crates/tokscale-cli/src/tui/data/mod.rs:1806-1824 | crates/tokscale-cli/src/tui/data/mod.rs:1838-1856 \u2014 These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/data/mod.rs"},"region":{"startLine":1806}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e4bff486bd78c13e166dd59e2530d940d56e5431aec528f0c2cf3845bd1ea85"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): crates/tokscale-core/src/machine_label.rs:253-265 | crates/tokscale-core/src/model_alias.rs:48-65 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/machine_label.rs"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bf8d10fa9cd8f1cfc1333c554514d142dac28eb1fae32e9e2e33edfe46188e7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): crates/tokscale-cli/src/antigravity.rs:903-909 | crates/tokscale-cli/src/trae.rs:1184-1190 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/antigravity.rs"},"region":{"startLine":903}}}],"partialFingerprints":{"codehealthFindingId/v1":"12b792b131e7cb398e268da003a94ff9587d10ad79739cca12f9d78481a0140f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): crates/tokscale-cli/src/antigravity.rs:3580-3590 | crates/tokscale-cli/src/antigravity.rs:3592-3606 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/antigravity.rs"},"region":{"startLine":3580}}}],"partialFingerprints":{"codehealthFindingId/v1":"53dd34140f35463c4717a99f027e5af9eaa99c63e781be1a3fb3831458cb3e99"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): crates/tokscale-core/src/legacy_graph.rs:255-267 | crates/tokscale-core/src/legacy_graph.rs:271-281 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/legacy_graph.rs"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"f35c3d79a3e79838c7881e6dd5cee0e8d4b0c96bf2a657964978b896dc719e92"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): crates/tokscale-cli/src/commands/autosubmit.rs:1339-1350 | crates/tokscale-cli/src/commands/autosubmit.rs:1352-1367 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/commands/autosubmit.rs"},"region":{"startLine":1339}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd7ff0e68ed8eca7851ffc2a6fa4205a9667c02d412109c6ac8e68827630eefc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): crates/tokscale-cli/src/commands/usage/grok.rs:138-148 | crates/tokscale-cli/src/commands/usage/sakana.rs:484-500 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/commands/usage/grok.rs"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"6eb7cd9fe62ab21daf2051473cd1f80d069a37a49c1f574d288405b080b1c660"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): crates/tokscale-core/src/message_cache.rs:3101-3116 | crates/tokscale-core/src/message_cache.rs:3152-3167 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/message_cache.rs"},"region":{"startLine":3101}}}],"partialFingerprints":{"codehealthFindingId/v1":"637d0c42a9ded1648169d2a1ab3ed23a67671e805079bdeb184361b3a2eda65d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): crates/tokscale-cli/src/tui/ui/stats.rs:876-889 | crates/tokscale-cli/src/tui/ui/widgets.rs:130-143 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/ui/stats.rs"},"region":{"startLine":876}}}],"partialFingerprints":{"codehealthFindingId/v1":"62cca088b3f32b80905a47a928e24f30639ec83ded5698aa493bbf02ed0a51c4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 15\u002B corresponding lines): crates/tokscale-cli/src/commands/usage/codex.rs:1183-1197 | crates/tokscale-cli/src/commands/usage/codex.rs:1204-1218 | crates/tokscale-cli/src/commands/usage/codex.rs:1225-1243 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 15 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/commands/usage/codex.rs"},"region":{"startLine":1183}}}],"partialFingerprints":{"codehealthFindingId/v1":"b173ba078558b76b791210499b8b2faaceca282ac0b409295e300e3fcdca0771"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): crates/tokscale-cli/src/cursor.rs:2573-2583 | crates/tokscale-cli/src/cursor.rs:2739-2749 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/cursor.rs"},"region":{"startLine":2573}}}],"partialFingerprints":{"codehealthFindingId/v1":"969ca9585ad4225196f36a9a64d563a9c9d1e53460ff72390eb1c7ea7508ddd9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): crates/tokscale-core/src/lib.rs:1715-1739 | crates/tokscale-core/src/lib.rs:1747-1769 \u2014 These two members are one piece of code written twice and then edited apart: 23 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/lib.rs"},"region":{"startLine":1715}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e766b5bbfe57a7aaa74f2edf9115d1af600c3a76350fa975fc2696918963947"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (39 corresponding lines): crates/tokscale-cli/src/tui/ui/monthly.rs:23-64 | crates/tokscale-cli/src/tui/ui/monthly.rs:126-164 \u2014 These two members are one piece of code written twice and then edited apart: 39 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/ui/monthly.rs"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"8275c7224ee1edc945d2a119c02a03f1a7f46b5834713ecbe1dfb5107163c95c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): crates/tokscale-core/src/sessions/cherrystudio.rs:426-440 | crates/tokscale-core/src/sessions/cherrystudio.rs:443-457 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/sessions/cherrystudio.rs"},"region":{"startLine":426}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ca71d25af58eb63ead4eed0e9f6e7ce0bdff194ae2825d44493c4684397b892"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 14\u002B corresponding lines): crates/tokscale-core/src/sessions/copilot.rs:881-896 | crates/tokscale-core/src/sessions/copilot.rs:898-911 | crates/tokscale-core/src/sessions/copilot.rs:913-930 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 14 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/sessions/copilot.rs"},"region":{"startLine":881}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb59375c428b4da195c7d5da78e099983dad3376ca1819afbd7fb4caeb471138"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 8\u002B corresponding lines): crates/tokscale-cli/src/antigravity.rs:3458-3465 | crates/tokscale-core/src/sessions/antigravity.rs:232-242 | crates/tokscale-core/src/sessions/zed.rs:268-280 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 8 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/antigravity.rs"},"region":{"startLine":3458}}}],"partialFingerprints":{"codehealthFindingId/v1":"129f60fe5527d5bf9a2250d9d009401b83c6935acaa711fcf96d2eb536713abf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): crates/tokscale-cli/src/main.rs:4549-4562 | crates/tokscale-core/src/lib.rs:6157-6169 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/main.rs"},"region":{"startLine":4549}}}],"partialFingerprints":{"codehealthFindingId/v1":"566fc912b3cf96779a5bb49510d90c5d2eebcd02a66e9de2e70540d7f83df995"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): crates/tokscale-cli/src/antigravity.rs:876-890 | crates/tokscale-cli/src/trae.rs:1228-1242 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/antigravity.rs"},"region":{"startLine":876}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfb8cc041f540866e1b338de1325468e7fe6218856b64dd64fc5662f572f8570"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 16\u002B corresponding lines): crates/tokscale-core/src/message_cache.rs:2810-2825 | crates/tokscale-core/src/message_cache.rs:2845-2860 | crates/tokscale-core/src/message_cache.rs:2969-2984 | crates/tokscale-core/src/message_cache.rs:3033-3048 | crates/tokscale-core/src/message_cache.rs:3067-3082 \u2014 These 5 members are one piece of code written 5 times and then edited apart: every two of them correspond over at least 16 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 5 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/message_cache.rs"},"region":{"startLine":2810}}}],"partialFingerprints":{"codehealthFindingId/v1":"723fa217323774a9cbce4f563dfdb6b667c30ea10f65e8b7094a7b9de32c9462"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): crates/tokscale-core/src/sessions/cursor.rs:242-251 | crates/tokscale-core/src/sessions/utils.rs:797-806 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/sessions/cursor.rs"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e28ce5af48f70f5a92a16aa3be8bfc7b53c9fa9923a2d6a5ccdd36279263f21"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): crates/tokscale-cli/src/tui/app.rs:2984-2997 | crates/tokscale-cli/src/tui/app.rs:2999-3013 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/app.rs"},"region":{"startLine":2984}}}],"partialFingerprints":{"codehealthFindingId/v1":"38d55bb42821fc70ed7ebc5b00309c09487ffc55a1bc2b43ea85b94a812d3bb2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): crates/tokscale-core/src/message_cache.rs:715-721 | crates/tokscale-core/src/message_cache.rs:734-740 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/message_cache.rs"},"region":{"startLine":715}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bd87407d8fbcba51b84692215f3db789bb36b890f3102502751d8ab273e9336"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): crates/tokscale-core/src/sessions/openclaw.rs:135-142 | crates/tokscale-core/src/sessions/openclaw.rs:277-288 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/sessions/openclaw.rs"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bdf0d8a05113179202ac2a60a96c5912e6e9c50b7d94c69e163fcceef724fe2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): crates/tokscale-core/src/lib.rs:5601-5610 | crates/tokscale-core/src/lib.rs:5615-5623 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/lib.rs"},"region":{"startLine":5601}}}],"partialFingerprints":{"codehealthFindingId/v1":"360063f70a8538d48744677a1acf94a796aea736d5b5053b54f89bf3ff306e89"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 13\u002B corresponding lines): crates/tokscale-cli/src/commands/wrapped.rs:1262-1274 | crates/tokscale-core/src/pricing/cache.rs:105-117 | crates/tokscale-core/src/sessions/opencode.rs:176-188 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 13 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/commands/wrapped.rs"},"region":{"startLine":1262}}}],"partialFingerprints":{"codehealthFindingId/v1":"7007dd0e121860e1be579112936e43bbfd3839c772fcc978285fe2948d7c4f98"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): crates/tokscale-cli/src/commands/usage/sakana.rs:376-389 | crates/tokscale-cli/src/commands/usage/sakana.rs:392-402 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/commands/usage/sakana.rs"},"region":{"startLine":376}}}],"partialFingerprints":{"codehealthFindingId/v1":"b759b9112afc9a419d7aae9b489c46fd9406e00784e387ffc7024213126939c6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): crates/tokscale-cli/src/tui/app.rs:1997-2007 | crates/tokscale-cli/src/tui/app.rs:2009-2020 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/app.rs"},"region":{"startLine":1997}}}],"partialFingerprints":{"codehealthFindingId/v1":"05e3c357e02c8014d964aed85b176182094d9c385d17718a126fc4047798baa2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): crates/tokscale-cli/src/commands/autosubmit.rs:702-709 | crates/tokscale-cli/src/main.rs:1932-1939 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/commands/autosubmit.rs"},"region":{"startLine":702}}}],"partialFingerprints":{"codehealthFindingId/v1":"21d9497b2378e7e8da98bd04badaeb05f6492e0e710043a46c573fca3bd27ba5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): crates/tokscale-cli/src/main.rs:4513-4524 | crates/tokscale-cli/src/tui/ui/widgets.rs:94-105 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/main.rs"},"region":{"startLine":4513}}}],"partialFingerprints":{"codehealthFindingId/v1":"e18e3e4a7890bf547bb0fcf06bcd6ee5b263f2a2e968ae7dcaa233b9128f18dd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): crates/tokscale-core/src/claude_desktop/mod.rs:208-217 | crates/tokscale-core/src/sessions/prime_agent.rs:320-325 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/claude_desktop/mod.rs"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"35951070399c6a00829b7d750fc5f6f3e3f4feaadfa379fccc1dde98169a904b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): crates/tokscale-core/src/sessions/kiro.rs:118-129 | crates/tokscale-core/src/sessions/kiro.rs:1934-1946 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/sessions/kiro.rs"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"5012d044c7dd65e911e10c2fce6daadeff03a885b929296ce36407e63d8959db"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): crates/tokscale-core/src/sessions/magpie.rs:36-49 | crates/tokscale-core/src/sessions/magpie.rs:51-62 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/sessions/magpie.rs"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"07131eace350a34a185233c80c8fb77dd95abbed2742e5c0d73b17aff65ed2b7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): crates/tokscale-cli/src/commands/usage/codex.rs:2069-2081 | crates/tokscale-cli/src/commands/usage/codex.rs:2083-2099 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/commands/usage/codex.rs"},"region":{"startLine":2069}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc201b088ca4df03ce6a181e065ee607dafaf3357d2d3313cc05eb296dabdf13"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): crates/tokscale-cli/src/commands/report.rs:1675-1686 | crates/tokscale-cli/src/tui/ui/widgets.rs:14-26 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/commands/report.rs"},"region":{"startLine":1675}}}],"partialFingerprints":{"codehealthFindingId/v1":"14bc4133c5808ca40a02c4fbe9293f702c286916c7469baa225015cbfd8a6cbd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 12\u002B corresponding lines): crates/tokscale-cli/src/commands/usage/codex.rs:1137-1151 | crates/tokscale-cli/src/commands/usage/kimi.rs:137-151 | crates/tokscale-cli/src/commands/usage/zai.rs:146-157 | crates/tokscale-cli/src/commands/usage/zai.rs:159-170 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 12 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/commands/usage/codex.rs"},"region":{"startLine":1137}}}],"partialFingerprints":{"codehealthFindingId/v1":"85d12b80712b3c9f377133b6e4242fc01de884f9d349af8377232b47096fa342"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): crates/tokscale-core/src/sessions/hermes.rs:730-747 | crates/tokscale-core/src/sessions/openclaw.rs:596-606 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/sessions/hermes.rs"},"region":{"startLine":730}}}],"partialFingerprints":{"codehealthFindingId/v1":"f532a97891d4af5a47ac1517eb37ada1a254bd0f50798b8770bea260f656bba1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 6\u002B corresponding lines): crates/tokscale-cli/src/warp.rs:554-559 | crates/tokscale-core/src/sessions/copilot.rs:1247-1253 | crates/tokscale-core/src/sessions/utils.rs:191-197 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 6 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/warp.rs"},"region":{"startLine":554}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d5fe3a16603578f5b701328bff8b8d4caffc3e7343f88dd287cce208617a8b5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): crates/tokscale-core/src/claude_desktop/v8.rs:598-604 | crates/tokscale-core/src/claude_desktop/v8.rs:606-613 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/claude_desktop/v8.rs"},"region":{"startLine":598}}}],"partialFingerprints":{"codehealthFindingId/v1":"17013a80343cacec2f0a8555005d7b1398251374a68266e04f6ade8c7109d8aa"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): crates/tokscale-cli/src/cursor.rs:2386-2399 | crates/tokscale-cli/src/cursor.rs:2751-2764 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/cursor.rs"},"region":{"startLine":2386}}}],"partialFingerprints":{"codehealthFindingId/v1":"36075512c2a204910249ef3f683492719dba9cb879d2214d6d08e193bc3e855b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): crates/tokscale-core/src/sessions/antigravity.rs:6-12 | crates/tokscale-core/src/sessions/antigravity_cli.rs:917-923 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/sessions/antigravity.rs"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9e90120b62d4e2bde12cc3708c352e8ad18f72518bdcff0b3c31162c170cde2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): crates/tokscale-core/src/sessions/codex.rs:2707-2714 | crates/tokscale-core/src/sessions/devin.rs:553-561 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/sessions/codex.rs"},"region":{"startLine":2707}}}],"partialFingerprints":{"codehealthFindingId/v1":"67fa36b2add9995fc14992304b1a62495965452f7e5f8ea144019f6817970864"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): crates/tokscale-cli/src/cursor.rs:367-377 | crates/tokscale-cli/src/cursor.rs:382-395 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/cursor.rs"},"region":{"startLine":367}}}],"partialFingerprints":{"codehealthFindingId/v1":"40747f4ec30f80876f9f8d8f1b6f574fec2c79b9b0c3866490f6ae24d6c0213e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): crates/tokscale-cli/src/auth.rs:90-98 | crates/tokscale-cli/src/trae.rs:194-200 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/auth.rs"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"e28bda1d5651331841834b7dfcf9abb692c89f1c5995e396f1c0b711b3d46442"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): crates/tokscale-cli/src/auth.rs:110-118 | crates/tokscale-cli/src/commands/usage/minimax_tokenplan.rs:52-60 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/auth.rs"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea884de6c42eb400a7baeca980f22cdf061d6198e756744129c57f00f11e9298"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): crates/tokscale-cli/src/auth.rs:100-108 | crates/tokscale-cli/src/trae.rs:202-209 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/auth.rs"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"f66431c90c6d513e20aa29359164bc4b513ef1826f907d8f3abc820798ec6373"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): crates/tokscale-cli/src/antigravity.rs:893-900 | crates/tokscale-cli/src/trae.rs:1177-1181 \u2014 These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/antigravity.rs"},"region":{"startLine":893}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d6a14dc37983041d95d9d11d371d238de87fdf94e8d5bc11b064e817ec1c027"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): crates/tokscale-cli/src/antigravity.rs:3571-3578 | crates/tokscale-core/src/sessions/codebuff.rs:128-133 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/antigravity.rs"},"region":{"startLine":3571}}}],"partialFingerprints":{"codehealthFindingId/v1":"b17945d228fcce38a2cbfa57a238bad85dc7274e8c7393924302015ee1d0db52"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): crates/tokscale-cli/src/tui/ui/projects.rs:265-268 | crates/tokscale-cli/src/tui/ui/sessions.rs:437-440 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/ui/projects.rs"},"region":{"startLine":265}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b53c6e65b57a2fe5c4a0b17b5d1b32cd96f369b47eb73741cc6c6bf5fddd5c7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): crates/tokscale-core/src/sessions/amp.rs:111-116 | crates/tokscale-core/src/sessions/droid.rs:251-255 \u2014 These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/sessions/amp.rs"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd36fdc8d7b1f374990107d3645f4508643a3809cbbba491075dba3238bb1194"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): crates/tokscale-cli/src/commands/usage/cursor.rs:967-976 | crates/tokscale-cli/src/commands/usage/minimax_tokenplan.rs:66-75 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/commands/usage/cursor.rs"},"region":{"startLine":967}}}],"partialFingerprints":{"codehealthFindingId/v1":"6aaf849bc9ef5674554ac32a09bbe8448b269fbea1e86a59fb5c16fdffeb7ab3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): crates/tokscale-core/src/clients.rs:23-29 | crates/tokscale-core/src/scanner.rs:880-886 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/clients.rs"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"b302ce11e8b752c68f1257be2f66aeeda1866749d2169a039a70080c625f8cb0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): crates/tokscale-core/src/sessions/grok.rs:56-61 | crates/tokscale-core/src/sessions/unsloth.rs:33-38 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/sessions/grok.rs"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"4094e2dc59a18024d217bf6b6fb0640cfd43f9c4a51978174ef90dd8a092bd2b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): crates/tokscale-core/src/sessions/kimi.rs:112-118 | crates/tokscale-core/src/sessions/roocode.rs:211-218 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/sessions/kimi.rs"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"18d76e4676034ed197e7cc17cd27718f29076549078ea072eca3e2e65d64e6c2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): crates/tokscale-cli/src/commands/usage/cursor.rs:432-439 | crates/tokscale-core/src/sessions/cursor.rs:445-451 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/commands/usage/cursor.rs"},"region":{"startLine":432}}}],"partialFingerprints":{"codehealthFindingId/v1":"45927e29900d5f487d240c681dbd33d7046694aaea8c15cc66244cc4b6ce4a47"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): crates/tokscale-core/src/sessions/fx.rs:144-149 | crates/tokscale-core/src/sessions/gjc.rs:60-65 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/sessions/fx.rs"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d2ba34980d59626ab49e1b78589d0a2734f05014ca85455704705cae2ba0c69"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): crates/tokscale-core/src/sessions/kiro.rs:520-531 | crates/tokscale-core/src/sessions/utils.rs:654-665 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/sessions/kiro.rs"},"region":{"startLine":520}}}],"partialFingerprints":{"codehealthFindingId/v1":"57784b9c6d583498b1a3a497e497b9cb1863f6673821b762580feed30b89674b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): crates/tokscale-core/src/message_cache.rs:2451-2460 | crates/tokscale-core/src/sessions/grok.rs:1079-1090 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/message_cache.rs"},"region":{"startLine":2451}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d9eca49307f5e18e1d90dd32425d52ace72830184df556626e802ad7ecd7621"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): crates/tokscale-core/src/message_cache.rs:4860-4867 | crates/tokscale-core/src/sessions/opencode_schema.rs:1529-1536 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/message_cache.rs"},"region":{"startLine":4860}}}],"partialFingerprints":{"codehealthFindingId/v1":"825635e56bab5d8615e6a9bc4367cbe6fd6eb5bd7f9076ad65218b6575503a00"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 5\u002B corresponding lines): crates/tokscale-cli/src/commands/usage/amp.rs:47-52 | crates/tokscale-cli/src/device.rs:67-72 | crates/tokscale-core/src/sessions/bb.rs:401-405 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 5 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/commands/usage/amp.rs"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3d1835a6a1c4c1b45b684c2f24e4fe9756ab51e3423f293d833e48684ce0104"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): crates/tokscale-core/src/sessions/gemini.rs:504-509 | crates/tokscale-core/src/sessions/zcode.rs:223-227 \u2014 These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/sessions/gemini.rs"},"region":{"startLine":504}}}],"partialFingerprints":{"codehealthFindingId/v1":"b13bc456f2e7aab22e754189bbfe32041ac82e90c8f36c66c811b8e52e23e4b9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): crates/tokscale-core/src/sessions/kiro.rs:560-564 | crates/tokscale-core/src/sessions/tencent_buddy.rs:532-536 \u2014 These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/sessions/kiro.rs"},"region":{"startLine":560}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7bff1753ba81ce0ea2f840cffeca063dd622ee5a549df10e6284ae9d12d584c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 5\u002B corresponding lines): crates/tokscale-core/src/sessions/cherrystudio.rs:802-807 | crates/tokscale-core/src/sessions/cline.rs:113-118 | crates/tokscale-core/src/sessions/codex.rs:2500-2504 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 5 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/sessions/cherrystudio.rs"},"region":{"startLine":802}}}],"partialFingerprints":{"codehealthFindingId/v1":"b036bc90580b1aee12ef0abad1daa06aa680b208f91d4f1f61be4bf425f4b846"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (39\u201340 lines \u00D7 2): crates/tokscale-cli/src/tui/ui/hourly.rs:69-108 | crates/tokscale-cli/src/tui/ui/minutely.rs:70-108 \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 16 separate duplicated blocks between them, totalling at least 269 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/ui/hourly.rs"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d32e07302ccd4cf6d8e2de98372f714b225559673812d0c07c064cb31baaef4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (39 lines \u00D7 2): crates/tokscale-cli/src/tui/ui/agents.rs:118-156 | crates/tokscale-cli/src/tui/ui/models.rs:305-343 \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 11 separate duplicated blocks between them, totalling at least 178 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/tokscale-cli/src/tui/ui/agents.rs:118\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/ui/agents.rs"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e9df0a7bc45ae801fdccacd9c2620f2bf121442565d2222996fa7df33ec74f4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (38\u201339 lines \u00D7 2): crates/tokscale-cli/src/tui/ui/daily.rs:70-108 | 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 24 separate duplicated blocks between them, totalling at least 350 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/ui/daily.rs"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b595d34d1f98609876100e8334930bd6cac4cb9951d02a1729d7f79e2ef563a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (36 lines \u00D7 2): crates/tokscale-cli/src/main.rs:3411-3446 | crates/tokscale-cli/src/main.rs:3491-3526 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/tokscale-cli/src/main.rs:3411\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/main.rs"},"region":{"startLine":3411}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea3f859239e7f99d040efa583bacbc3a8465b20eeccaa3c483e74d864dd1afb8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (34 lines \u00D7 2): crates/tokscale-cli/src/tui/data/mod.rs:1310-1343 | crates/tokscale-cli/src/tui/data/mod.rs:1405-1438 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/tokscale-cli/src/tui/data/mod.rs:1310\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/data/mod.rs"},"region":{"startLine":1310}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b4a63260ea6fdd6cb195f4982b53f976b9faa8bf0725a04b6b9f6257347fba1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (31\u201333 lines \u00D7 2): crates/tokscale-cli/src/tui/ui/hourly.rs:29-59 | crates/tokscale-cli/src/tui/ui/minutely.rs:28-60 \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 16 separate duplicated blocks between them, totalling at least 269 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/ui/hourly.rs"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"139bed5a981721b1d68357922765ffcb2916171e2064699f186fccb578f86c29"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201327 lines \u00D7 6): crates/tokscale-cli/src/tui/ui/daily.rs:260-275 | crates/tokscale-cli/src/tui/ui/daily.rs:521-536 | crates/tokscale-cli/src/tui/ui/hourly.rs:200-226 | crates/tokscale-cli/src/tui/ui/minutely.rs:191-206 | crates/tokscale-cli/src/tui/ui/monthly.rs:261-276 | crates/tokscale-cli/src/tui/ui/monthly.rs:481-496 \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 16 separate duplicated blocks between them, totalling at least 224 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/tokscale-cli/src/tui/ui/daily.rs:260\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060crates/tokscale-cli/src/tui/ui/daily.rs:276\u0060 calls \u0060min\u0060 and \u0060crates/tokscale-cli/src/tui/ui/hourly.rs:227\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/ui/daily.rs"},"region":{"startLine":260}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef3d06f1d718a1e6c57e5d1663508aad6af0578a088be674d64725f70b43d925"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 2): crates/tokscale-cli/src/main.rs:3316-3342 | crates/tokscale-cli/src/main.rs:3628-3654 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/tokscale-cli/src/main.rs:3316\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/main.rs"},"region":{"startLine":3316}}}],"partialFingerprints":{"codehealthFindingId/v1":"833dc2ae0c23886e0b272af29971fd8a9d426a3a35177108c134247e0d123023"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 3): crates/tokscale-core/src/message_cache.rs:1050-1075 | crates/tokscale-core/src/message_cache.rs:1193-1218 | crates/tokscale-core/src/message_cache.rs:1336-1361 \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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060state\u0060 to \u0060LegacyCodexStateV14\u0060 in one and \u0060LegacyCodexStateV15\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/message_cache.rs"},"region":{"startLine":1050}}}],"partialFingerprints":{"codehealthFindingId/v1":"4854a330369d767bfff948ec76f4b79fe9279baf9933ed6afe98d0cc2e4778ef"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201325 lines \u00D7 8): crates/tokscale-cli/src/tui/ui/agents.rs:137-150 | crates/tokscale-cli/src/tui/ui/daily.rs:261-274 | crates/tokscale-cli/src/tui/ui/daily.rs:522-535 | crates/tokscale-cli/src/tui/ui/hourly.rs:201-225 | crates/tokscale-cli/src/tui/ui/minutely.rs:192-205 | crates/tokscale-cli/src/tui/ui/models.rs:324-337 | crates/tokscale-cli/src/tui/ui/monthly.rs:262-275 | crates/tokscale-cli/src/tui/ui/monthly.rs:482-495 \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 134 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/tokscale-cli/src/tui/ui/agents.rs:137\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060crates/tokscale-cli/src/tui/ui/daily.rs:276\u0060 calls \u0060min\u0060 and \u0060crates/tokscale-cli/src/tui/ui/hourly.rs:227\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/ui/agents.rs"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a1aa7b0de56816bc9cfd39aa8a790c205269ce01e6b65e6669fbb0311a6cc76"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): crates/tokscale-cli/src/main.rs:3447-3470 | crates/tokscale-cli/src/main.rs:3535-3558 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/tokscale-cli/src/main.rs:3447\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060crates/tokscale-cli/src/main.rs:3534\u0060 calls \u0060format_tokens_with_commas\u0060, \u0060set_alignment\u0060, \u0060format_currency\u0060 and \u0060crates/tokscale-cli/src/main.rs:3447\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/main.rs"},"region":{"startLine":3447}}}],"partialFingerprints":{"codehealthFindingId/v1":"c865357f8b0e7a5dfe4021c087d940716728ee83674fdfecaf32777c929a9f2f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): crates/tokscale-core/src/opencode_model_name.rs:114-137 | crates/tokscale-core/src/opencode_model_name.rs:157-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/tokscale-core/src/opencode_model_name.rs:114\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/opencode_model_name.rs"},"region":{"startLine":114}}}],"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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/tokscale-cli/src/commands/import.rs:331\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/commands/import.rs"},"region":{"startLine":331}}}],"partialFingerprints":{"codehealthFindingId/v1":"22469f281bf770ad208e2a4cd1b38c9a16ae71e06ce608c09fb5e997f3c83da3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): crates/tokscale-core/src/aggregator.rs:603-626 | crates/tokscale-core/src/aggregator.rs:795-818 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/tokscale-core/src/aggregator.rs:603\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060other\u0060 to \u0060DayAccumulator\u0060 in one and \u0060SessionAccumulator\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/aggregator.rs"},"region":{"startLine":603}}}],"partialFingerprints":{"codehealthFindingId/v1":"483a3629a653acb65cb8f75bf13726498b92dcf7a3449794ca2de4537bc28757"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201323 lines \u00D7 2): crates/tokscale-core/src/lib.rs:6352-6368 | crates/tokscale-core/src/lib.rs:6481-6503 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/tokscale-core/src/lib.rs:6352\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/lib.rs"},"region":{"startLine":6352}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d0d5019d4638ee1ef5276fdf37e35ac6e79bec2a57dbf21ec8058cc90788235"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): crates/tokscale-cli/src/antigravity.rs:1218-1239 | crates/tokscale-cli/src/cursor.rs:627-648 \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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/tokscale-cli/src/antigravity.rs:1218\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/antigravity.rs"},"region":{"startLine":1218}}}],"partialFingerprints":{"codehealthFindingId/v1":"8950603054bf850b2f7ce9a388dc8109e9d69fee61fee8ab420962ff4607b402"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): crates/tokscale-cli/src/tui/data/mod.rs:649-670 | crates/tokscale-cli/src/tui/data/mod.rs:698-719 \u2014 both copies are in the same file, so extract the block 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":649}}}],"partialFingerprints":{"codehealthFindingId/v1":"04f8783de632f226e206aba3db752b2fe059402fde68cd70c49979dea49faa53"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201321 lines \u00D7 2): crates/tokscale-core/src/lib.rs:4588-4608 | crates/tokscale-core/src/lib.rs:4620-4636 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/tokscale-core/src/lib.rs:4588\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/lib.rs"},"region":{"startLine":4588}}}],"partialFingerprints":{"codehealthFindingId/v1":"f861547db4c1fad4767801a4c9bd40eab0c9c1a2aace4fabf16976a03b0b3711"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 12): crates/tokscale-cli/src/tui/data/mod.rs:296-315 | crates/tokscale-cli/src/tui/data/mod.rs:1014-1033 | crates/tokscale-cli/src/tui/data/mod.rs:1056-1075 | crates/tokscale-cli/src/tui/data/mod.rs:1115-1134 | crates/tokscale-cli/src/tui/data/mod.rs:1157-1176 | crates/tokscale-cli/src/tui/data/mod.rs:1197-1216 | crates/tokscale-cli/src/tui/data/mod.rs:1244-1263 | crates/tokscale-cli/src/tui/data/mod.rs:1289-1308 | crates/tokscale-cli/src/tui/data/mod.rs:1337-1356 | crates/tokscale-cli/src/tui/data/mod.rs:1384-1403 | crates/tokscale-cli/src/tui/data/mod.rs:1432-1451 | crates/tokscale-cli/src/tui/data/mod.rs:1537-1556 \u2014 all 12 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060crates/tokscale-cli/src/tui/data/mod.rs:1054\u0060 calls \u0060default\u0060 and \u0060crates/tokscale-cli/src/tui/data/mod.rs:1112\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/data/mod.rs"},"region":{"startLine":296}}}],"partialFingerprints":{"codehealthFindingId/v1":"34703da8fa3c6baeea913d4482797fa29ef0ba62fc3db03b01406f197c36751c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201320 lines \u00D7 10): crates/tokscale-cli/src/tui/ui/agents.rs:211-230 | crates/tokscale-cli/src/tui/ui/daily.rs:383-402 | crates/tokscale-cli/src/tui/ui/daily.rs:637-656 | crates/tokscale-cli/src/tui/ui/hourly.rs:369-388 | crates/tokscale-cli/src/tui/ui/minutely.rs:321-340 | crates/tokscale-cli/src/tui/ui/models.rs:492-511 | crates/tokscale-cli/src/tui/ui/monthly.rs:364-383 | crates/tokscale-cli/src/tui/ui/monthly.rs:583-601 | crates/tokscale-cli/src/tui/ui/projects.rs:453-472 | crates/tokscale-cli/src/tui/ui/sessions.rs:800-819 \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 134 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/tokscale-cli/src/tui/ui/agents.rs:211\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060crates/tokscale-cli/src/tui/ui/projects.rs:452\u0060 calls \u0060column_spacing\u0060 and \u0060crates/tokscale-cli/src/tui/ui/sessions.rs:799\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/ui/agents.rs"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"60d7645044f6d04e2273bdfa3cba7e2fcc37ec7e4c17ed0ec23a5548f0d34a33"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): crates/tokscale-cli/src/main.rs:2778-2797 | crates/tokscale-cli/src/main.rs:2984-3003 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/tokscale-cli/src/main.rs:2778\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/main.rs"},"region":{"startLine":2778}}}],"partialFingerprints":{"codehealthFindingId/v1":"87579ad645c649a23a2d6fb08ad03510dba1effb3b4beb90b255783137559ab7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29 lines \u00D7 5): crates/tokscale-cli/src/tui/ui/daily.rs:234-262 | crates/tokscale-cli/src/tui/ui/hourly.rs:174-202 | crates/tokscale-cli/src/tui/ui/minutely.rs:165-193 | crates/tokscale-cli/src/tui/ui/monthly.rs:235-263 | crates/tokscale-cli/src/tui/ui/monthly.rs:455-483 \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 16 separate duplicated blocks between them, totalling at least 224 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/tokscale-cli/src/tui/ui/daily.rs:234\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/ui/daily.rs"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"2124a19b47d84a2f674e92bd3dc0a3cddb6bafad075a74ab91a2bf4c41ed6fb6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): crates/tokscale-cli/src/antigravity.rs:419-437 | crates/tokscale-cli/src/antigravity.rs:443-461 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/tokscale-cli/src/antigravity.rs:443\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/antigravity.rs"},"region":{"startLine":419}}}],"partialFingerprints":{"codehealthFindingId/v1":"e75de5ac04a912299b4bfb8adbd8ff7f62a0aa0dbbf78f91dd01c6be6e214189"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201319 lines \u00D7 2): crates/tokscale-cli/src/tui/cache.rs:545-563 | crates/tokscale-cli/src/tui/data/mod.rs:1946-1959 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/tokscale-cli/src/tui/cache.rs:545\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/cache.rs"},"region":{"startLine":545}}}],"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:214-232 | crates/tokscale-cli/src/tui/ui/dialog/language_picker.rs:140-158 \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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/tokscale-cli/src/tui/ui/dialog/group_by_picker.rs:214\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/ui/dialog/group_by_picker.rs"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"759d8bf6bb83142d9f3902b7f3c779667319b77d4f77b5f5900800580382ec29"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201319 lines \u00D7 2): crates/tokscale-core/src/sessions/copilot_desktop.rs:462-477 | crates/tokscale-core/src/sessions/copilot_session_state.rs:80-98 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/tokscale-core/src/sessions/copilot_desktop.rs:462\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/sessions/copilot_desktop.rs"},"region":{"startLine":462}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbe0dd1a594bda7398c551db08fd9e6a1bf6dc01056f2bac4043941d54a38593"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201318 lines \u00D7 2): crates/tokscale-cli/src/commands/wrapped.rs:268-284 | crates/tokscale-cli/src/commands/wrapped.rs:289-306 \u2014 both copies are in the same file, so extract the block 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":268}}}],"partialFingerprints":{"codehealthFindingId/v1":"12313cd60b9fb131e8117b38597e2261eac078da72b6be65b86e1f1ce05a68a6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201318 lines \u00D7 2): crates/tokscale-cli/src/main.rs:2708-2724 | crates/tokscale-cli/src/main.rs:3079-3096 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/tokscale-cli/src/main.rs:2708\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060crates/tokscale-cli/src/main.rs:3097\u0060 calls \u0060format_model_name\u0060 and \u0060crates/tokscale-cli/src/main.rs:2725\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/main.rs"},"region":{"startLine":2708}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c2d1a9f9d412816933cfaf2e3b064054d46ea169c9a94fbd044817d80df4541"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201318 lines \u00D7 2): crates/tokscale-cli/src/main.rs:3390-3406 | crates/tokscale-cli/src/main.rs:3704-3721 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/tokscale-cli/src/main.rs:3390\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/main.rs"},"region":{"startLine":3390}}}],"partialFingerprints":{"codehealthFindingId/v1":"56d3c7070cb986ea19f0bef90d5c6c774fa99d3d44942c48b7b33bfc32ea7aa0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): crates/tokscale-cli/src/trae.rs:231-248 | crates/tokscale-cli/src/trae.rs:273-290 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/tokscale-cli/src/trae.rs:231\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/trae.rs"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"e149d2398f8fa9acb97eda778b6d5396672973235bab142d55f76cea26c7f3ff"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): crates/tokscale-core/src/lib.rs:4114-4131 | crates/tokscale-core/src/lib.rs:5025-5042 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/tokscale-core/src/lib.rs:4114\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/lib.rs"},"region":{"startLine":4114}}}],"partialFingerprints":{"codehealthFindingId/v1":"9cebbf769b0af80f77cb290083e118cf14fdcc057d5bdee30298de1cf2b5a311"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201318 lines \u00D7 2): crates/tokscale-core/src/lib.rs:4916-4933 | crates/tokscale-core/src/lib.rs:5069-5080 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/tokscale-core/src/lib.rs:4916\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/lib.rs"},"region":{"startLine":4916}}}],"partialFingerprints":{"codehealthFindingId/v1":"c15a792aa6d4337332d9ffd28cdf3517a26c2bcdef0b64c7ebadb2148c7ab026"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): crates/tokscale-core/src/scanner.rs:2133-2150 | crates/tokscale-core/src/scanner.rs:2155-2172 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/tokscale-core/src/scanner.rs:2133\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/scanner.rs"},"region":{"startLine":2133}}}],"partialFingerprints":{"codehealthFindingId/v1":"bcdcbac3193c13019010393f6d0b5563b0429448552a848829bc2c8d44b53a10"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 4): crates/tokscale-core/src/message_cache.rs:4467-4483 | crates/tokscale-core/src/message_cache.rs:4497-4513 | crates/tokscale-core/src/message_cache.rs:4527-4543 | crates/tokscale-core/src/message_cache.rs:4564-4580 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/tokscale-core/src/message_cache.rs:4467\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/message_cache.rs"},"region":{"startLine":4467}}}],"partialFingerprints":{"codehealthFindingId/v1":"71e923a7c6aa24663c3a7af45311c9e21bc7de060262411fdd4b451715089b02"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 3): crates/tokscale-core/src/lib.rs:4581-4597 | crates/tokscale-core/src/lib.rs:4613-4629 | crates/tokscale-core/src/lib.rs:4641-4657 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/tokscale-core/src/lib.rs:4581\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/lib.rs"},"region":{"startLine":4581}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd704bb3ab995d43e1b0398cb426f068b52bfb36ab44aaa2ffd32139d084214a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): crates/tokscale-cli/src/main.rs:2889-2905 | crates/tokscale-cli/src/main.rs:3169-3185 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/tokscale-cli/src/main.rs:2889\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/main.rs"},"region":{"startLine":2889}}}],"partialFingerprints":{"codehealthFindingId/v1":"84ca2f134a3f6005972d30a085f6adf4da4cceb8f93576a252c52fea8a86fb65"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): crates/tokscale-cli/src/tui/ui/daily.rs:362-378 | crates/tokscale-cli/src/tui/ui/minutely.rs:300-316 \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 18 separate duplicated blocks between them, totalling at least 248 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/tokscale-cli/src/tui/ui/daily.rs:362\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/ui/daily.rs"},"region":{"startLine":362}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc4853511e9c16b3368bde02c1b81d4a881d643a6f86ff4275cc21ac277710c6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201317 lines \u00D7 2): crates/tokscale-cli/src/tui/ui/dialog/session_detail.rs:611-627 | crates/tokscale-cli/src/tui/ui/sessions.rs:912-927 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/tokscale-cli/src/tui/ui/dialog/session_detail.rs:611\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060glyphs\u0060 to \u0060Glyphs\u0060 in one and \u0060crate::ui_glyphs::Glyphs\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/ui/dialog/session_detail.rs"},"region":{"startLine":611}}}],"partialFingerprints":{"codehealthFindingId/v1":"bcc0f0177e3c85a0fb3a4b3b83ee891491033135acd35e1d14161039f480ff05"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): crates/tokscale-core/src/message_cache.rs:3670-3686 | crates/tokscale-core/src/message_cache.rs:3993-4009 \u2014 both copies are in the same file, so extract the block 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":3670}}}],"partialFingerprints":{"codehealthFindingId/v1":"57e82d4b0dad14b06335ab6bc3e9c52a7ee0ae7d5793ecd6bc1d411763af2fbc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201317 lines \u00D7 2): crates/tokscale-core/src/sessions/grok.rs:733-749 | crates/tokscale-core/src/sessions/grok.rs:954-966 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/tokscale-core/src/sessions/grok.rs:733\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/sessions/grok.rs"},"region":{"startLine":733}}}],"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:234-249 | crates/tokscale-cli/src/tui/ui/daily.rs:500-515 | crates/tokscale-cli/src/tui/ui/hourly.rs:174-189 | crates/tokscale-cli/src/tui/ui/minutely.rs:165-180 | crates/tokscale-cli/src/tui/ui/models.rs:302-317 | crates/tokscale-cli/src/tui/ui/monthly.rs:235-250 | crates/tokscale-cli/src/tui/ui/monthly.rs:455-470 \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 134 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/tokscale-cli/src/tui/ui/agents.rs:115\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/ui/agents.rs"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e067ba2617e8ef36bd17cd07c254f9d39e947f5b8d037210e4d2ea5c6e84cac"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201316 lines \u00D7 8): crates/tokscale-cli/src/tui/ui/daily.rs:270-285 | crates/tokscale-cli/src/tui/ui/daily.rs:531-546 | crates/tokscale-cli/src/tui/ui/minutely.rs:201-216 | crates/tokscale-cli/src/tui/ui/model_trend.rs:166-180 | crates/tokscale-cli/src/tui/ui/monthly.rs:271-286 | crates/tokscale-cli/src/tui/ui/monthly.rs:491-506 | crates/tokscale-cli/src/tui/ui/projects.rs:396-411 | crates/tokscale-cli/src/tui/ui/sessions.rs:695-710 \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 18 separate duplicated blocks between them, totalling at least 248 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/tokscale-cli/src/tui/ui/daily.rs:270\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/ui/daily.rs"},"region":{"startLine":270}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c2a5e30c0208708a751b12b94e1cbd0788d1cf89a615c02ed4b1163ec8ecb15"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201316 lines \u00D7 3): crates/tokscale-cli/src/main.rs:769-784 | crates/tokscale-cli/src/main.rs:810-824 | crates/tokscale-cli/src/main.rs:848-862 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/tokscale-cli/src/main.rs:769\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060crates/tokscale-cli/src/main.rs:767\u0060 calls \u0060worktree_rollup_from_flag\u0060 and \u0060crates/tokscale-cli/src/main.rs:809\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/main.rs"},"region":{"startLine":769}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c015f68f12ac4f31166f1d2f8c0da8e060e6da6ec48b1b912a2a2dfa723dc1a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 3): crates/tokscale-core/src/message_cache.rs:2558-2573 | crates/tokscale-core/src/message_cache.rs:2651-2666 | crates/tokscale-core/src/message_cache.rs:2742-2757 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/tokscale-core/src/message_cache.rs:2558\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060message\u0060 to \u0060LegacyUnifiedMessageV7\u0060 in one and \u0060LegacyUnifiedMessageV8\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/message_cache.rs"},"region":{"startLine":2558}}}],"partialFingerprints":{"codehealthFindingId/v1":"5aedd09f9b3c4d2e7f724d433b260dad021dde865fe510967988aa3201d65337"}},{"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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/tokscale-cli/src/tui/ui/mod.rs:80\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/ui/mod.rs"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1ec95b83a5ba6d4339c7ba0e630b49e165adc733f9690c7c02280f2f7315ae7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): crates/tokscale-core/src/lib.rs:4344-4359 | crates/tokscale-core/src/lib.rs:8246-8261 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/tokscale-core/src/lib.rs:4344\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/lib.rs"},"region":{"startLine":4344}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bba4b21dc8293606325212afb739d348727bd738269e4bd2d67234d351918d6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201316 lines \u00D7 2): crates/tokscale-core/src/sessions/copilot_session_state.rs:162-177 | crates/tokscale-core/src/sessions/copilot_session_state.rs:188-202 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/tokscale-core/src/sessions/copilot_session_state.rs:162\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/sessions/copilot_session_state.rs"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"e67393c6313565ca49aa62776fa19ea92ca06741a7d2e44681d5d063c5d0e8f3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 11): crates/tokscale-cli/src/tui/ui/agents.rs:216-231 | crates/tokscale-cli/src/tui/ui/daily.rs:388-403 | crates/tokscale-cli/src/tui/ui/daily.rs:642-657 | crates/tokscale-cli/src/tui/ui/hourly.rs:374-389 | crates/tokscale-cli/src/tui/ui/minutely.rs:326-341 | crates/tokscale-cli/src/tui/ui/models.rs:497-512 | crates/tokscale-cli/src/tui/ui/monthly.rs:369-384 | crates/tokscale-cli/src/tui/ui/monthly.rs:588-602 | crates/tokscale-cli/src/tui/ui/overview.rs:482-497 | crates/tokscale-cli/src/tui/ui/projects.rs:458-473 | crates/tokscale-cli/src/tui/ui/sessions.rs:805-820 \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 134 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/tokscale-cli/src/tui/ui/agents.rs:216\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/ui/agents.rs"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"00191a153b77e6e1d92e6adc2a8ec1b0841129b61b6b106fed99018533ee9416"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 4): crates/tokscale-cli/src/main.rs:2662-2676 | crates/tokscale-cli/src/main.rs:2730-2744 | crates/tokscale-cli/src/main.rs:2923-2937 | crates/tokscale-cli/src/main.rs:3109-3123 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/tokscale-cli/src/main.rs:2662\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/main.rs"},"region":{"startLine":2662}}}],"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:117-131 | 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/tokscale-cli/src/tui/ui/dialog/group_by_picker.rs:117\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/ui/dialog/group_by_picker.rs"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"d909ac5300de3ca5befde285718104e01a21b9dfd3c842def4c619cdb4c64bea"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 3): crates/tokscale-cli/src/tui/ui/monthly.rs:345-359 | crates/tokscale-cli/src/tui/ui/monthly.rs:564-578 | crates/tokscale-cli/src/tui/ui/sessions.rs:756-770 \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 11 separate duplicated blocks between them, totalling at least 140 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/tokscale-cli/src/tui/ui/monthly.rs:345\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/ui/monthly.rs"},"region":{"startLine":345}}}],"partialFingerprints":{"codehealthFindingId/v1":"2286761546c94f110c05b016f2439eaf9b5b2712cd93c0dd2b901c70dd9891da"}},{"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:3103-3115 | 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/tokscale-cli/src/cursor.rs:3103\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/cursor.rs"},"region":{"startLine":3103}}}],"partialFingerprints":{"codehealthFindingId/v1":"8af89bddbc9ed5763dde19017d51a105c68e46d7f20821a3d8820afb6568ab82"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): crates/tokscale-cli/src/tui/ui/daily.rs:360-374 | crates/tokscale-cli/src/tui/ui/hourly.rs:339-353 \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 16 separate duplicated blocks between them, totalling at least 224 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/tokscale-cli/src/tui/ui/daily.rs:360\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/ui/daily.rs"},"region":{"startLine":360}}}],"partialFingerprints":{"codehealthFindingId/v1":"7010863a3d1a210c67baeb8f3608f4ed48ab152900c4fd2399192a9378de9b84"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 2): crates/tokscale-core/src/lib.rs:3212-3225 | crates/tokscale-core/src/lib.rs:3291-3305 \u2014 both copies are in the same file, so extract the block 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":3212}}}],"partialFingerprints":{"codehealthFindingId/v1":"797d2a48d970ccbcac45aec87a1cb95ac8854be4f889a7715bce01e4dbd29367"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 2): crates/tokscale-core/src/lib.rs:5561-5575 | crates/tokscale-core/src/lib.rs:9561-9574 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/tokscale-core/src/lib.rs:5561\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/lib.rs"},"region":{"startLine":5561}}}],"partialFingerprints":{"codehealthFindingId/v1":"331e1cc1b5edba66394fe0820ba3b44a9d4bdf7e23dc86bb05e2ef34cee00c16"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 5): crates/tokscale-core/src/lib.rs:2652-2665 | crates/tokscale-core/src/lib.rs:4109-4122 | crates/tokscale-core/src/lib.rs:4443-4456 | crates/tokscale-core/src/lib.rs:4547-4560 | crates/tokscale-core/src/lib.rs:5020-5033 \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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/tokscale-core/src/lib.rs:2652\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/lib.rs"},"region":{"startLine":2652}}}],"partialFingerprints":{"codehealthFindingId/v1":"7830841791e3c9064bafea9aa7cd718fc5b7aa6b3a038a9220a0a8f984311e5b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 4): crates/tokscale-cli/src/tui/ui/daily.rs:356-369 | crates/tokscale-cli/src/tui/ui/hourly.rs:335-348 | crates/tokscale-cli/src/tui/ui/monthly.rs:339-352 | crates/tokscale-cli/src/tui/ui/monthly.rs:558-571 \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 16 separate duplicated blocks between them, totalling at least 224 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/tokscale-cli/src/tui/ui/daily.rs:356\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/ui/daily.rs"},"region":{"startLine":356}}}],"partialFingerprints":{"codehealthFindingId/v1":"975d4ddbef57fa942c521be59ba4ba700eba2416a4bdec650414eeb752345d05"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 4): crates/tokscale-cli/src/tui/ui/daily.rs:619-632 | crates/tokscale-cli/src/tui/ui/monthly.rs:346-359 | crates/tokscale-cli/src/tui/ui/monthly.rs:565-578 | crates/tokscale-cli/src/tui/ui/sessions.rs:757-770 \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 24 separate duplicated blocks between them, totalling at least 350 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/tokscale-cli/src/tui/ui/daily.rs:619\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/ui/daily.rs"},"region":{"startLine":619}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9996f2128b963f4a8cb7034fe29036a5a2e94b03522d724068ae1469261b983"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3): crates/tokscale-cli/src/main.rs:2590-2603 | crates/tokscale-cli/src/main.rs:3391-3404 | crates/tokscale-cli/src/main.rs:3705-3718 \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":2590}}}],"partialFingerprints":{"codehealthFindingId/v1":"99f0327051ac9982c245686aaafc7b85797169deca013f90e575c494445ca735"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3): crates/tokscale-cli/src/tui/ui/agents.rs:193-206 | crates/tokscale-cli/src/tui/ui/models.rs:474-487 | crates/tokscale-cli/src/tui/ui/projects.rs:430-443 \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 11 separate duplicated blocks between them, totalling at least 178 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/tokscale-cli/src/tui/ui/agents.rs:193\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/ui/agents.rs"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"4453789db768293fc33b7e2ad564f2a32d4f714dcbc8ac37afca79c89bd8696c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): crates/tokscale-cli/src/tui/ui/hourly_profile.rs:145-158 | crates/tokscale-cli/src/tui/ui/hourly_profile.rs:207-220 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/tokscale-cli/src/tui/ui/hourly_profile.rs:145\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/ui/hourly_profile.rs"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"90efab8338de92a7265437596b8b3fa0e1d4e06a836e6925da8d3a8840acc00d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): crates/tokscale-cli/src/tui/ui/models.rs:423-436 | crates/tokscale-cli/src/tui/ui/models.rs:461-474 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/tokscale-cli/src/tui/ui/models.rs:423\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/ui/models.rs"},"region":{"startLine":423}}}],"partialFingerprints":{"codehealthFindingId/v1":"bef33a7b0110cf56efcab97ba64fc3000ca9b7d1b9096e8cd6e599b8a595c353"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): crates/tokscale-core/src/lib.rs:2531-2544 | crates/tokscale-core/src/lib.rs:2872-2885 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/tokscale-core/src/lib.rs:2531\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/lib.rs"},"region":{"startLine":2531}}}],"partialFingerprints":{"codehealthFindingId/v1":"a745cce898e09b296bd69a4b102c484e619c74ec47770fb3da5b8950493223c0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): crates/tokscale-core/src/lib.rs:5089-5103 | crates/tokscale-core/src/lib.rs:5246-5259 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/tokscale-core/src/lib.rs:5089\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/lib.rs"},"region":{"startLine":5089}}}],"partialFingerprints":{"codehealthFindingId/v1":"984c6b10b1a075573ce558b4a37623fe2708d4a16e50754d894e42cc5fc92c85"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): crates/tokscale-core/src/sessions/dsh.rs:164-177 | crates/tokscale-core/src/sessions/dsh.rs:186-199 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/tokscale-core/src/sessions/dsh.rs:164\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/sessions/dsh.rs"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c62b35cbd601475b4b96cd705d148ab81f1529a01783caad84ec2d069c0e033"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): crates/tokscale-core/src/sessions/junie.rs:273-286 | crates/tokscale-core/src/sessions/muse.rs:293-306 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/sessions/junie.rs"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"c32ec15fd8f2a9c255f4ab628e58e69c3ba38e315519882cee810e8ece7bf0df"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 6): crates/tokscale-cli/src/tui/ui/daily.rs:191-203 | crates/tokscale-cli/src/tui/ui/hourly.rs:147-159 | crates/tokscale-cli/src/tui/ui/minutely.rs:135-147 | crates/tokscale-cli/src/tui/ui/monthly.rs:208-220 | crates/tokscale-cli/src/tui/ui/monthly.rs:421-433 | crates/tokscale-cli/src/tui/ui/sessions.rs:615-627 \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 16 separate duplicated blocks between them, totalling at least 224 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/tokscale-cli/src/tui/ui/daily.rs:191\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060crates/tokscale-cli/src/tui/ui/minutely.rs:134\u0060 calls \u0060wrap\u0060 and \u0060crates/tokscale-cli/src/tui/ui/daily.rs:190\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/ui/daily.rs"},"region":{"startLine":191}}}],"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:620-632 | crates/tokscale-cli/src/tui/ui/models.rs:475-487 | crates/tokscale-cli/src/tui/ui/monthly.rs:347-359 | crates/tokscale-cli/src/tui/ui/monthly.rs:566-578 \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 134 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/tokscale-cli/src/tui/ui/agents.rs:194\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"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 3): crates/tokscale-cli/src/tui/ui/daily.rs:452-464 | crates/tokscale-cli/src/tui/ui/model_trend.rs:101-113 | crates/tokscale-cli/src/tui/ui/monthly.rs:399-411 \u2014 before extracting anything, compare \u0060crates/tokscale-cli/src/tui/ui/daily.rs\u0060 and \u0060crates/tokscale-cli/src/tui/ui/model_trend.rs\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 74 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":452}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a70db5ff2590e6f766851e5320cd91bf8644578dba4945134d7e20f8aa21926"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): crates/tokscale-cli/src/antigravity.rs:1869-1881 | crates/tokscale-cli/src/antigravity.rs:2780-2792 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/tokscale-cli/src/antigravity.rs:1869\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/antigravity.rs"},"region":{"startLine":1869}}}],"partialFingerprints":{"codehealthFindingId/v1":"47684578b242fd17da6e8284ef589862250251dbc21c21d324119ab6839f8d84"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): crates/tokscale-cli/src/tui/cache.rs:372-384 | crates/tokscale-cli/src/tui/cache.rs:441-453 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060value\u0060 to \u0060CachedDailyModelInfo\u0060 in one and \u0060CachedHourlyModelInfo\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/cache.rs"},"region":{"startLine":372}}}],"partialFingerprints":{"codehealthFindingId/v1":"2486c357a9800bde200181a75ec23b43a2226768f2ec97560b99d8ae353e238d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): crates/tokscale-cli/src/tui/ui/minutely.rs:246-258 | crates/tokscale-cli/src/tui/ui/minutely.rs:271-283 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/tokscale-cli/src/tui/ui/minutely.rs:246\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/ui/minutely.rs"},"region":{"startLine":246}}}],"partialFingerprints":{"codehealthFindingId/v1":"985a2fed1685afc9206f09e081f5a62ed5bf5c7471af23d558752b032550c633"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): crates/tokscale-cli/src/tui/ui/projects.rs:431-443 | crates/tokscale-cli/src/tui/ui/sessions.rs:758-770 \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 13 separate duplicated blocks between them, totalling at least 149 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/tokscale-cli/src/tui/ui/projects.rs:431\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/ui/projects.rs"},"region":{"startLine":431}}}],"partialFingerprints":{"codehealthFindingId/v1":"be6e0e7ef7e26eb55a6b0ac71204b6e0386efe768ad36feed3cf1a0fe938882f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): crates/tokscale-cli/src/tui/ui/stats.rs:409-421 | crates/tokscale-cli/src/tui/ui/stats.rs:462-474 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/tokscale-cli/src/tui/ui/stats.rs:409\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/ui/stats.rs"},"region":{"startLine":409}}}],"partialFingerprints":{"codehealthFindingId/v1":"617d92dbd7093914f3955bd866c917c071633262242a190fd37e12424e65d2b2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): crates/tokscale-core/src/content_extractor.rs:340-353 | crates/tokscale-core/src/content_extractor.rs:363-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":340}}}],"partialFingerprints":{"codehealthFindingId/v1":"56c39347473e27c65297c37cb9d82e7ceb4645e5e52adcfe23570327826f7ec7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): crates/tokscale-core/src/lib.rs:4148-4160 | crates/tokscale-core/src/lib.rs:4179-4191 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/tokscale-core/src/lib.rs:4148\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/lib.rs"},"region":{"startLine":4148}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2de747a812eada06819106883be007af53784e925f0b56d4f62d983926e6bb5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): crates/tokscale-core/src/lib.rs:4973-4985 | crates/tokscale-core/src/lib.rs:4996-5008 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/tokscale-core/src/lib.rs:4973\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/lib.rs"},"region":{"startLine":4973}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ae236ba87fc974158455555000e80ffe155e6151fd4684895421a0515e63007"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): crates/tokscale-core/src/message_cache.rs:3104-3116 | crates/tokscale-core/src/message_cache.rs:3155-3167 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/tokscale-core/src/message_cache.rs:3104\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060entry\u0060 to \u0060LegacyCachedSourceEntryV5\u0060 in one and \u0060LegacyCachedSourceEntryV6\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/message_cache.rs"},"region":{"startLine":3104}}}],"partialFingerprints":{"codehealthFindingId/v1":"e823eabc39d5bd2c6dcedea133ef023333f6fc35545de02933a06e1a0ee8474c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): crates/tokscale-core/src/pricing/lookup.rs:1055-1067 | crates/tokscale-core/src/pricing/lookup.rs:1110-1122 \u2014 both copies are in the same file, so extract the block 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":"crates/tokscale-core/src/pricing/lookup.rs"},"region":{"startLine":1055}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8a6fa2e0efe89c94be9dbe60fd4af903d04f77ff0591a664d70a449711604ee"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201319 lines \u00D7 2): crates/tokscale-core/src/sessions/antigravity_cli.rs:953-968 | crates/tokscale-core/src/sessions/grok.rs:1756-1774 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/sessions/antigravity_cli.rs"},"region":{"startLine":953}}}],"partialFingerprints":{"codehealthFindingId/v1":"301135c6ae3fd16949414d0d990e57d7fa8f957e60daac8db2bf5217c1b88c12"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 2): crates/tokscale-core/src/sessions/kiro.rs:1249-1261 | crates/tokscale-core/src/sessions/kiro.rs:1277-1288 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060crates/tokscale-core/src/sessions/kiro.rs:1274\u0060 calls \u0060iter\u0060, \u0060Some\u0060, \u0060get\u0060 and \u0060crates/tokscale-core/src/sessions/kiro.rs:1248\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/sessions/kiro.rs"},"region":{"startLine":1249}}}],"partialFingerprints":{"codehealthFindingId/v1":"25eea4e5bfd9411626ddb5f2e4dc63899c3b45176ead716785431e2c557345c0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (4\u201313 lines \u00D7 3): crates/tokscale-core/src/sessions/devin.rs:134-137 | crates/tokscale-core/src/sessions/opencode_schema.rs:1186-1198 | crates/tokscale-core/src/sessions/opencode_schema.rs:1215-1226 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/tokscale-core/src/sessions/opencode_schema.rs:1186\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/sessions/devin.rs"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"af158ca0f4fe981ea6838b319aa447fd38d226a1d1eb1821aef3b35a6a3fa0a5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201312 lines \u00D7 5): crates/tokscale-core/src/lib.rs:6218-6227 | crates/tokscale-core/src/lib.rs:6348-6357 | crates/tokscale-core/src/lib.rs:6477-6486 | crates/tokscale-core/src/lib.rs:6546-6557 | crates/tokscale-core/src/lib.rs:7044-7053 \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. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060crates/tokscale-core/src/lib.rs:6359\u0060 calls \u0060load_pricing_for_local_parse\u0060 and \u0060crates/tokscale-core/src/lib.rs:7055\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/lib.rs"},"region":{"startLine":6218}}}],"partialFingerprints":{"codehealthFindingId/v1":"6aca958f6e2d7362bead38ee57cd5c87564fd14f147b4295c3f9f544c50fbdce"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201321 lines \u00D7 4): crates/tokscale-cli/src/tui/app.rs:2581-2601 | crates/tokscale-cli/src/tui/app.rs:2617-2637 | crates/tokscale-cli/src/tui/app.rs:2704-2722 | crates/tokscale-cli/src/tui/app.rs:2787-2807 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/tokscale-cli/src/tui/app.rs:2581\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/app.rs"},"region":{"startLine":2581}}}],"partialFingerprints":{"codehealthFindingId/v1":"76bfc79b79afd8456b8446f89736d36cce5afd2f5eb94fccc9004ca4a40c28d7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): crates/tokscale-cli/src/main.rs:2706-2717 | crates/tokscale-cli/src/main.rs:2886-2897 | crates/tokscale-cli/src/main.rs:3077-3088 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/tokscale-cli/src/main.rs:2706\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/main.rs"},"region":{"startLine":2706}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc62034b4d0eef8c6825a31cd18d679c91426d952e50d96465d449cc7fbbdb03"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 3): crates/tokscale-cli/src/main.rs:3416-3427 | crates/tokscale-cli/src/main.rs:3496-3507 | crates/tokscale-cli/src/main.rs:3789-3799 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/tokscale-cli/src/main.rs:3416\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/main.rs"},"region":{"startLine":3416}}}],"partialFingerprints":{"codehealthFindingId/v1":"38b1d6bbdcd27023cf7de80a8d9f3acc43c557bab56c68f564826c8061ad978f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): crates/tokscale-cli/src/auth.rs:291-304 | crates/tokscale-cli/src/auth.rs:370-381 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/tokscale-cli/src/auth.rs:291\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/auth.rs"},"region":{"startLine":291}}}],"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 (11\u201312 lines \u00D7 2): crates/tokscale-cli/src/commands/wrapped.rs:1168-1178 | crates/tokscale-cli/src/commands/wrapped.rs:1204-1215 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/tokscale-cli/src/commands/wrapped.rs:1168\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/commands/wrapped.rs"},"region":{"startLine":1168}}}],"partialFingerprints":{"codehealthFindingId/v1":"4dd584ade7ec08f267edd1ea98b6e82753c5b6c1f3f2b873e891d0d756cd2199"}},{"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:268-279 \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 11 separate duplicated blocks between them, totalling at least 178 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060crates/tokscale-cli/src/tui/ui/models.rs:280\u0060 calls \u0060borrow\u0060, \u0060clone\u0060 and \u0060crates/tokscale-cli/src/tui/ui/agents.rs:98\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/ui/agents.rs"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"935edc300df5d92d40f3ea5f5f6f66db9a7b879a7437308f7c11fd334b71bb05"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): crates/tokscale-cli/src/tui/ui/daily.rs:220-231 | crates/tokscale-cli/src/tui/ui/monthly.rs:441-452 \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 24 separate duplicated blocks between them, totalling at least 350 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":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"79948b5033e618a27269901810995736813e7f7971c1f31f33f75b3b7914afc2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (3\u201312 lines \u00D7 4): crates/tokscale-cli/src/tui/ui/daily.rs:588-598 | crates/tokscale-cli/src/tui/ui/model_trend.rs:210-212 | crates/tokscale-cli/src/tui/ui/models.rs:417-420 | crates/tokscale-cli/src/tui/ui/models.rs:450-461 \u2014 before extracting anything, compare \u0060crates/tokscale-cli/src/tui/ui/daily.rs\u0060 and \u0060crates/tokscale-cli/src/tui/ui/model_trend.rs\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 74 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. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060crates/tokscale-cli/src/tui/ui/models.rs:450\u0060 calls \u0060from\u0060, \u0060format_tokens\u0060 and \u0060crates/tokscale-cli/src/tui/ui/daily.rs:588\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/ui/daily.rs"},"region":{"startLine":588}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b42346fb77921f502098ae22533ec2f235509fbf829c4626f4c8773d063067b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): crates/tokscale-cli/src/tui/ui/usage.rs:2342-2353 | crates/tokscale-cli/src/tui/ui/usage.rs:2388-2399 \u2014 both copies are in the same file, so extract the block 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":2342}}}],"partialFingerprints":{"codehealthFindingId/v1":"01fa5b7e47ccdc910c4932d4888a9870d5981b1d6dcf808ab1ab9d3f72864485"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): crates/tokscale-core/src/aggregator.rs:661-679 | crates/tokscale-core/src/aggregator.rs:851-869 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/tokscale-core/src/aggregator.rs:661\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/aggregator.rs"},"region":{"startLine":661}}}],"partialFingerprints":{"codehealthFindingId/v1":"2072566115e45326a04427005bb85c26f76e49f434fd4c11f2f281256b79fae1"}},{"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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/tokscale-core/src/content_extractor.rs:81\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060crates/tokscale-core/src/content_extractor.rs:94\u0060 calls \u0060contains\u0060 and \u0060crates/tokscale-core/src/content_extractor.rs:159\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"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/legacy_graph.rs:168-179 | crates/tokscale-core/src/legacy_graph.rs:184-195 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060value\u0060 to \u0060SessionContribution\u0060 in one and \u0060crate::SessionContributionV2\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/legacy_graph.rs"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a3123f8c1c4a5a7bd9a4ff20a610c2bc1eefbc9ab9693c3c4fac7e289bf252b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): crates/tokscale-core/src/lib.rs:4081-4092 | crates/tokscale-core/src/lib.rs:5418-5429 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/tokscale-core/src/lib.rs:4081\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/lib.rs"},"region":{"startLine":4081}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c8724fbac9079020976d4cbfff7b69ab8af848f505a854021422c771a8c0e2c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): crates/tokscale-core/src/lib.rs:4241-4253 | crates/tokscale-core/src/lib.rs:8179-8191 \u2014 both copies are in the same file, so extract the block 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":4241}}}],"partialFingerprints":{"codehealthFindingId/v1":"ead84e4bc300b018f90491c6687e4851835e49329f2dcee498357a7370b7195b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 2): crates/tokscale-core/src/sessions/cherrystudio.rs:243-253 | crates/tokscale-core/src/sessions/claudecode.rs:1439-1450 \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":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"23497fdfd6f810a7616c406f22ab84d860b49a93aaf046e18e5cea30a384d659"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 2): crates/tokscale-core/src/sessions/codebuff.rs:56-67 | crates/tokscale-core/src/sessions/freebuff.rs:137-147 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/tokscale-core/src/sessions/codebuff.rs:56\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/sessions/codebuff.rs"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"986b4d2be923e4e8f45539838ab799d8e25e02094b1198f099f0dcf02d1e420d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 9): crates/tokscale-cli/src/tui/ui/agents.rs:152-162 | crates/tokscale-cli/src/tui/ui/daily.rs:276-286 | crates/tokscale-cli/src/tui/ui/daily.rs:537-547 | crates/tokscale-cli/src/tui/ui/minutely.rs:207-217 | crates/tokscale-cli/src/tui/ui/model_trend.rs:172-181 | crates/tokscale-cli/src/tui/ui/monthly.rs:277-287 | crates/tokscale-cli/src/tui/ui/monthly.rs:497-507 | crates/tokscale-cli/src/tui/ui/projects.rs:402-412 | crates/tokscale-cli/src/tui/ui/sessions.rs:701-711 \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 134 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/tokscale-cli/src/tui/ui/agents.rs:152\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060crates/tokscale-cli/src/tui/ui/daily.rs:550\u0060 calls \u0060model_color_for\u0060 and \u0060crates/tokscale-cli/src/tui/ui/agents.rs:166\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/ui/agents.rs"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2afea66bb0707eb2f5af53b941198496d4484089418357b36dc505d7ce0eb50"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 6): crates/tokscale-core/src/lib.rs:2657-2667 | crates/tokscale-core/src/lib.rs:4114-4124 | crates/tokscale-core/src/lib.rs:4448-4458 | crates/tokscale-core/src/lib.rs:4552-4562 | crates/tokscale-core/src/lib.rs:4807-4817 | crates/tokscale-core/src/lib.rs:5025-5035 \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":2657}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb7b80b1e5051ddd46028a8eee72d2a3ab027ada7aac4d4205e7e8cf305838e8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 4): crates/tokscale-core/src/message_cache.rs:2543-2553 | crates/tokscale-core/src/message_cache.rs:2636-2646 | crates/tokscale-core/src/message_cache.rs:2727-2737 | crates/tokscale-core/src/message_cache.rs:2889-2899 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/tokscale-core/src/message_cache.rs:2543\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060message\u0060 to \u0060LegacyUnifiedMessageV7\u0060 in one and \u0060LegacyUnifiedMessageV8\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060crates/tokscale-core/src/message_cache.rs:2554\u0060 calls \u0060into\u0060 and \u0060crates/tokscale-core/src/message_cache.rs:2900\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/message_cache.rs"},"region":{"startLine":2543}}}],"partialFingerprints":{"codehealthFindingId/v1":"3364791d71040f82f877bb363a5782717fe3fe7e8be22c8396c6905f6a526b24"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crates/tokscale-cli/src/antigravity.rs:1206-1216 | crates/tokscale-cli/src/cursor.rs:615-625 \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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/tokscale-cli/src/antigravity.rs:1206\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060path\u0060 to \u0060\u0026Path\u0060 in one and \u0060\u0026std::path::Path\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/antigravity.rs"},"region":{"startLine":1206}}}],"partialFingerprints":{"codehealthFindingId/v1":"26c92dc25a5fdee398ba40517d682c81f9bf4409819e097f343b2e7a243e05e9"}},{"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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/tokscale-cli/src/commands/import.rs:717\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060crates/tokscale-cli/src/commands/import.rs:716\u0060 calls \u0060attribute\u0060 and \u0060crates/tokscale-cli/src/commands/import.rs:774\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"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:1293-1303 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/tokscale-cli/src/commands/usage/codex.rs:806\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060store\u0060 to \u0060\u0026CodexCredentialsStore\u0060 in one and \u0060\u0026CursorCredentialsStore\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"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:1428-1438 | crates/tokscale-cli/src/commands/usage/codex.rs:1905-1915 \u2014 both copies are in the same file, so extract the block 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":1428}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ae5dcae6e702968303dfece4f4cac3db142c973c372bda821dbd194215802be"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crates/tokscale-cli/src/commands/usage/codex.rs:2046-2056 | crates/tokscale-cli/src/cursor.rs:3065-3075 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/tokscale-cli/src/commands/usage/codex.rs:2046\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/commands/usage/codex.rs"},"region":{"startLine":2046}}}],"partialFingerprints":{"codehealthFindingId/v1":"c16681fd4ac6cceab0a3de0d76c8ea55ab6d7d2ce9e20b491e123f43139b1497"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 2): crates/tokscale-cli/src/main.rs:2829-2838 | crates/tokscale-cli/src/main.rs:3048-3058 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/tokscale-cli/src/main.rs:3048\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/main.rs"},"region":{"startLine":2829}}}],"partialFingerprints":{"codehealthFindingId/v1":"d236caa57439866fa4e19d36c60dca157b2276ed9246ae510443bd2c674b8972"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crates/tokscale-cli/src/main.rs:3728-3738 | crates/tokscale-cli/src/main.rs:3778-3788 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/tokscale-cli/src/main.rs:3728\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/main.rs"},"region":{"startLine":3728}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4566051217e481e14857794faf9a0bc69268d1dcff5c8f3c74d5dc907b654a7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crates/tokscale-cli/src/tui/data/mod.rs:1807-1817 | crates/tokscale-cli/src/tui/data/mod.rs:1839-1849 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/tokscale-cli/src/tui/data/mod.rs:1807\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/data/mod.rs"},"region":{"startLine":1807}}}],"partialFingerprints":{"codehealthFindingId/v1":"88d535e89f8346308628e48df3d8ae3b4ce336d86540a52ad58ca644b34cd98d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crates/tokscale-cli/src/tui/ui/bar_chart.rs:91-101 | crates/tokscale-cli/src/tui/ui/bar_chart.rs:150-160 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/tokscale-cli/src/tui/ui/bar_chart.rs:91\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/ui/bar_chart.rs"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"021ac3b3096fe9e203dedfe1985c008f0d2e83721eddf41ba11bd8b19f303565"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crates/tokscale-cli/src/tui/ui/daily.rs:307-317 | crates/tokscale-cli/src/tui/ui/daily.rs:330-340 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/tokscale-cli/src/tui/ui/daily.rs:307\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/ui/daily.rs"},"region":{"startLine":307}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ba1e96b5d1870154e96e8a4a677f1d69d1a8694f54094a477c38c61ee66be45"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crates/tokscale-cli/src/tui/ui/dialog/session_detail.rs:118-128 | crates/tokscale-cli/src/tui/ui/dialog/session_detail.rs:130-140 \u2014 both copies are in the same file, so extract the block 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/dialog/session_detail.rs"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"36bd7924b8e594497ab65347ae924c6cb3a6d0b50602e8cddf2d45ab5c5dc1df"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crates/tokscale-cli/src/tui/ui/stats.rs:47-57 | crates/tokscale-cli/src/tui/ui/stats.rs:62-72 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/tokscale-cli/src/tui/ui/stats.rs:47\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060crates/tokscale-cli/src/tui/ui/stats.rs:44\u0060 calls \u0060contribution_cell\u0060 and \u0060crates/tokscale-cli/src/tui/ui/stats.rs:60\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/ui/stats.rs"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9582e36a7e3ddc13a0adc6dc93c24493c0632f35061d12d4da3876d3fd7bd3a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 2): crates/tokscale-core/src/aggregator.rs:541-551 | crates/tokscale-core/src/aggregator.rs:733-742 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/aggregator.rs"},"region":{"startLine":541}}}],"partialFingerprints":{"codehealthFindingId/v1":"d55875d1da700925227a9505bf0abb18142e490d6ab6515345c59797b1900129"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crates/tokscale-core/src/lib.rs:3503-3513 | crates/tokscale-core/src/lib.rs:5314-5324 \u2014 both copies are in the same file, so extract the block 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":3503}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c8b79176d107624c10941048b383c13b1ec570ea4c620ba12eaed5ce620176a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crates/tokscale-core/src/lib.rs:4366-4376 | crates/tokscale-core/src/lib.rs:8262-8272 \u2014 both copies are in the same file, so extract the block 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":4366}}}],"partialFingerprints":{"codehealthFindingId/v1":"755ab42fb2405af1cdda51d0963e4a7bd10f958bb9ee8bcd0f801e3f894987bf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (3\u201311 lines \u00D7 3): crates/tokscale-core/src/lib.rs:6077-6079 | crates/tokscale-core/src/lib.rs:6309-6319 | crates/tokscale-core/src/lib.rs:6424-6431 \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":6077}}}],"partialFingerprints":{"codehealthFindingId/v1":"df9f8638d933ff389884134d3fa5275805ab48ef0ccb4649ef0ffba0f55415df"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crates/tokscale-core/src/pricing/lookup.rs:1080-1090 | crates/tokscale-core/src/pricing/lookup.rs:1123-1133 \u2014 both copies are in the same file, so extract the block 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":"crates/tokscale-core/src/pricing/lookup.rs"},"region":{"startLine":1080}}}],"partialFingerprints":{"codehealthFindingId/v1":"171fa07696164e8948f4b1ecb786c798141f2f89b30ace2a71d2cc01a326f25d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 9): crates/tokscale-cli/src/tui/ui/daily.rs:309-318 | crates/tokscale-cli/src/tui/ui/daily.rs:332-341 | crates/tokscale-cli/src/tui/ui/minutely.rs:250-259 | crates/tokscale-cli/src/tui/ui/minutely.rs:275-284 | crates/tokscale-cli/src/tui/ui/monthly.rs:298-307 | crates/tokscale-cli/src/tui/ui/monthly.rs:314-323 | crates/tokscale-cli/src/tui/ui/monthly.rs:518-527 | crates/tokscale-cli/src/tui/ui/monthly.rs:534-543 | crates/tokscale-cli/src/tui/ui/sessions.rs:744-753 \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 18 separate duplicated blocks between them, totalling at least 248 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/tokscale-cli/src/tui/ui/daily.rs:309\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060crates/tokscale-cli/src/tui/ui/daily.rs:344\u0060 calls \u0060from\u0060, \u0060format_tokens\u0060, \u0060style\u0060 and \u0060crates/tokscale-cli/src/tui/ui/minutely.rs:287\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/ui/daily.rs"},"region":{"startLine":309}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b44e7daafaeb86eb4e7b15615dffbfa0df9670e69542e0a775de70e9a93137c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 4): crates/tokscale-cli/src/antigravity.rs:667-676 | crates/tokscale-cli/src/auth.rs:79-88 | crates/tokscale-cli/src/cursor.rs:676-685 | 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/tokscale-cli/src/antigravity.rs:667\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/antigravity.rs"},"region":{"startLine":667}}}],"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:169-178 | crates/tokscale-cli/src/tui/ui/dialog/language_picker.rs:107-116 | crates/tokscale-cli/src/tui/ui/dialog/source_picker.rs:210-219 \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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060crates/tokscale-cli/src/tui/ui/dialog/language_picker.rs:118\u0060 calls \u0060width\u0060, \u0060as_str\u0060, \u0060saturating_sub\u0060 and \u0060crates/tokscale-cli/src/tui/ui/dialog/source_picker.rs:221\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/ui/dialog/group_by_picker.rs"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"d61f9fc430e7bcf66e013d06c8674f6c66d5c0b70948d1bc6f371030be7aad2c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 3): crates/tokscale-cli/src/tui/ui/usage.rs:1043-1051 | crates/tokscale-cli/src/tui/ui/usage.rs:1676-1685 | crates/tokscale-cli/src/tui/ui/usage.rs:2325-2333 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/tokscale-cli/src/tui/ui/usage.rs:1043\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060app\u0060 to \u0060\u0026mut App\u0060 in one and \u0060\u0026App\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/ui/usage.rs"},"region":{"startLine":1043}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5ad8e17da63742ecbc486bf9923e78ebce489174b6112c41fd39a569251532d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/tokscale-cli/src/amp.rs:113-122 | crates/tokscale-cli/src/commands/wrapped.rs:1221-1230 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/amp.rs"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"29fdf6c126569f6fb5f9b95126457032a0bddbdeafa75576469dd889abd29698"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201310 lines \u00D7 2): crates/tokscale-cli/src/commands/usage/cursor.rs:114-123 | crates/tokscale-cli/src/commands/usage/cursor.rs:177-184 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/tokscale-cli/src/commands/usage/cursor.rs:114\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/commands/usage/cursor.rs"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"25596bb1e086cce831b7bfaef70760f2391e341439861b1e740d87b899c4d498"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/tokscale-cli/src/commands/wrapped.rs:1133-1142 | crates/tokscale-cli/src/commands/wrapped.rs:1156-1165 \u2014 both copies are in the same file, so extract the block 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":"crates/tokscale-cli/src/commands/wrapped.rs"},"region":{"startLine":1133}}}],"partialFingerprints":{"codehealthFindingId/v1":"c21af2f89e3a499f2e1a22c8ce5b3fb97c51b55ba92acac3c99210dcc55457a4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/tokscale-cli/src/main.rs:2765-2774 | crates/tokscale-cli/src/main.rs:2967-2976 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/tokscale-cli/src/main.rs:2765\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/main.rs"},"region":{"startLine":2765}}}],"partialFingerprints":{"codehealthFindingId/v1":"626c309e8845ce480e2ef157a4fe0604dda01fe1b28a587aae0a4b0343124b0d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/tokscale-cli/src/tui/app.rs:2426-2435 | crates/tokscale-cli/src/tui/app.rs:2440-2449 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/tokscale-cli/src/tui/app.rs:2426\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/app.rs"},"region":{"startLine":2426}}}],"partialFingerprints":{"codehealthFindingId/v1":"77aa757d1ea2db275c91671982151faaaa573f0d81c1c8af621f27ad7f4cbcc9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/tokscale-cli/src/tui/ui/daily.rs:164-173 | 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 24 separate duplicated blocks between them, totalling at least 350 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/tokscale-cli/src/tui/ui/daily.rs:164\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/ui/daily.rs"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f008faf78fe60ea357becece7e521acf9a3714810d575dc0a00fdcfdf4c3674"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/tokscale-cli/src/tui/ui/minutely.rs:298-307 | crates/tokscale-cli/src/tui/ui/sessions.rs:754-763 \u2014 before extracting anything, compare \u0060crates/tokscale-cli/src/tui/ui/minutely.rs\u0060 and \u0060crates/tokscale-cli/src/tui/ui/sessions.rs\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 113 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/tokscale-cli/src/tui/ui/minutely.rs:298\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/ui/minutely.rs"},"region":{"startLine":298}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a32675ae41f496c148cb084a5916372756332972b7816b9b1e7a9c7c690193f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/tokscale-cli/src/tui/ui/stats.rs:379-388 | crates/tokscale-cli/src/tui/ui/stats.rs:501-510 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/tokscale-cli/src/tui/ui/stats.rs:379\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/ui/stats.rs"},"region":{"startLine":379}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5b8b0b71b16377ebbbe2f9af4a048997ca26026093358239ca2fab1eaaf489d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/tokscale-core/src/aggregator.rs:650-659 | crates/tokscale-core/src/aggregator.rs:840-849 \u2014 both copies are in the same file, so extract the block 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":650}}}],"partialFingerprints":{"codehealthFindingId/v1":"33e05b3207bd9f603ef0a1f14fefd684c1ed7a4906ad7857a6983bae818bd340"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/tokscale-core/src/lib.rs:2561-2570 | crates/tokscale-core/src/lib.rs:2599-2608 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/tokscale-core/src/lib.rs:2561\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/lib.rs"},"region":{"startLine":2561}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ff0c021d3346eedb92267c6082c797a9b7e94d48dd727d4e6fa9def10af3afa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/tokscale-core/src/lib.rs:9322-9331 | crates/tokscale-core/src/lib.rs:9411-9420 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/tokscale-core/src/lib.rs:9322\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/lib.rs"},"region":{"startLine":9322}}}],"partialFingerprints":{"codehealthFindingId/v1":"dff0f6658f3bf414f64de5468ae1cb044a6e829bd710429729f525f8d169900c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/tokscale-core/src/sessions/kiro.rs:1130-1139 | crates/tokscale-core/src/sessions/kiro.rs:1347-1356 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/tokscale-core/src/sessions/kiro.rs:1130\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/sessions/kiro.rs"},"region":{"startLine":1130}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9741d36770d10f6f5d890937432e8453b9dac1aa6b3a178935dc420a236dc31"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/tokscale-core/src/sessions/qoder.rs:165-174 | crates/tokscale-core/src/sessions/qwen.rs:81-90 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/tokscale-core/src/sessions/qoder.rs:165\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060crates/tokscale-core/src/sessions/qoder.rs:176\u0060 calls \u0060Some\u0060 and \u0060crates/tokscale-core/src/sessions/qwen.rs:92\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/sessions/qoder.rs"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"32519c1d22048755bef7de08f54e536bc4f4d6b7baf826a6271ee18885e7b6de"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 11): crates/tokscale-cli/src/tui/ui/agents.rs:81-89 | crates/tokscale-cli/src/tui/ui/daily.rs:176-184 | crates/tokscale-cli/src/tui/ui/daily.rs:459-467 | crates/tokscale-cli/src/tui/ui/hourly.rs:126-134 | crates/tokscale-cli/src/tui/ui/minutely.rs:119-127 | crates/tokscale-cli/src/tui/ui/model_trend.rs:108-116 | crates/tokscale-cli/src/tui/ui/models.rs:263-271 | crates/tokscale-cli/src/tui/ui/monthly.rs:193-201 | crates/tokscale-cli/src/tui/ui/monthly.rs:406-414 | crates/tokscale-cli/src/tui/ui/projects.rs:316-324 | crates/tokscale-cli/src/tui/ui/sessions.rs:600-608 \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 134 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/tokscale-cli/src/tui/ui/agents.rs:81\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"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/daily.rs:165-173 | crates/tokscale-cli/src/tui/ui/models.rs:252-260 | crates/tokscale-cli/src/tui/ui/monthly.rs:182-190 \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 12 separate duplicated blocks between them, totalling at least 148 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/tokscale-cli/src/tui/ui/daily.rs:165\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/ui/daily.rs"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"03f6294e16b606ebbcbe32069d0fc1a008994165079844b93365628b202b470d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): crates/tokscale-core/src/message_cache.rs:2811-2819 | crates/tokscale-core/src/message_cache.rs:3102-3110 | crates/tokscale-core/src/message_cache.rs:3153-3161 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/tokscale-core/src/message_cache.rs:2811\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060entry\u0060 to \u0060LegacyCachedSourceEntryV7\u0060 in one and \u0060LegacyCachedSourceEntryV5\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/message_cache.rs"},"region":{"startLine":2811}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d87c48c28f6b6e1c4b28fc15a04ee27d5a5916a9b3577cdae1c61efd8bc60f1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 3): crates/tokscale-core/src/sessions/claudecode.rs:2112-2120 | crates/tokscale-core/src/sessions/codebuff.rs:55-62 | crates/tokscale-core/src/sessions/freebuff.rs:136-143 \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":2112}}}],"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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/tokscale-cli/src/commands/usage/minimax.rs:123\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"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:131-139 | crates/tokscale-cli/src/tui/app.rs:259-267 \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":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"df610790bbda4ca44f119db2cee75a289d238cced1596f6d3bd7f5f6aa752bf3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/tokscale-cli/src/tui/ui/agents.rs:92-100 | crates/tokscale-cli/src/tui/ui/daily.rs:480-488 \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 134 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":"db259b7c07e0740063b6fe8765e030877edff0f1b2b03241902b85a2f978368f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/tokscale-cli/src/tui/ui/footer.rs:275-283 | crates/tokscale-cli/src/tui/ui/footer.rs:295-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/tui/ui/footer.rs"},"region":{"startLine":275}}}],"partialFingerprints":{"codehealthFindingId/v1":"f194c36a17e52dbe414e2050582a27aeb070526d305a33f75f21b4c32b937fe7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/tokscale-cli/src/tui/ui/footer.rs:436-444 | crates/tokscale-cli/src/tui/ui/footer.rs:447-455 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/tokscale-cli/src/tui/ui/footer.rs:436\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/ui/footer.rs"},"region":{"startLine":436}}}],"partialFingerprints":{"codehealthFindingId/v1":"958b148fefd089c3297be13ea9ba3b774a7a6e5c345c2e4d3d856ce2eb328884"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/tokscale-cli/src/tui/ui/hourly.rs:274-282 | crates/tokscale-cli/src/tui/ui/minutely.rs:218-226 \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 16 separate duplicated blocks between them, totalling at least 269 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":274}}}],"partialFingerprints":{"codehealthFindingId/v1":"c941736d6267346776ddf042e6813c0a9e4d73b4b09e643e5ef3f8d6f59b8002"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/tokscale-cli/src/tui/ui/hourly.rs:299-307 | crates/tokscale-cli/src/tui/ui/hourly.rs:313-321 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/tokscale-cli/src/tui/ui/hourly.rs:299\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/ui/hourly.rs"},"region":{"startLine":299}}}],"partialFingerprints":{"codehealthFindingId/v1":"9dfa4f5833f37451e88c2a562ea00d8a2b936aa90f8fcea46135b3a62c97c780"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 2): crates/tokscale-cli/src/tui/ui/hourly_profile.rs:179-187 | crates/tokscale-cli/src/tui/ui/hourly_profile.rs:247-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/tokscale-cli/src/tui/ui/hourly_profile.rs:179\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/ui/hourly_profile.rs"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"8661fa41619ae0af983b3446bbb69ed8391a5d503577e22a4c81f62c888c81ab"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20139 lines \u00D7 2): crates/tokscale-cli/src/tui/ui/models.rs:408-416 | crates/tokscale-cli/src/tui/ui/models.rs:441-447 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/tokscale-cli/src/tui/ui/models.rs:408\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/ui/models.rs"},"region":{"startLine":408}}}],"partialFingerprints":{"codehealthFindingId/v1":"55665fbf9120128ab1869940caae68df4853f55facbdcc9335675d3b80b79000"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/tokscale-cli/src/tui/ui/monthly.rs:222-230 | crates/tokscale-cli/src/tui/ui/monthly.rs:435-443 \u2014 both copies are in the same file, so extract the block 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":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a36ef568db53033f362e91aa85f4c92ae316305f71aae8e12e7d00b9293f6a2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/tokscale-cli/src/tui/ui/projects.rs:366-374 | crates/tokscale-cli/src/tui/ui/sessions.rs:679-687 \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 13 separate duplicated blocks between them, totalling at least 149 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/tokscale-cli/src/tui/ui/projects.rs:366\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/ui/projects.rs"},"region":{"startLine":366}}}],"partialFingerprints":{"codehealthFindingId/v1":"346e890cb635415c49225e74585135dfd3a1ff65fee098948bf5028df22f0ae4"}},{"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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/tokscale-core/src/content_extractor.rs:95\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060crates/tokscale-core/src/content_extractor.rs:94\u0060 calls \u0060contains\u0060 and \u0060crates/tokscale-core/src/content_extractor.rs:155\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"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/legacy_graph.rs:142-150 | crates/tokscale-core/src/legacy_graph.rs:155-163 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060value\u0060 to \u0060DailyContribution\u0060 in one and \u0060crate::DailyContributionV2\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/legacy_graph.rs"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"f02bd6625b88bcd08202c00be2a678b4fb6a1886a14718641e080af18d6dcc46"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/tokscale-core/src/lib.rs:8120-8128 | crates/tokscale-core/src/lib.rs:8140-8148 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/tokscale-core/src/lib.rs:8120\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/lib.rs"},"region":{"startLine":8120}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d4b28fcb71936d97d59e1996443c25b2257cd76d903ca04534b3a19b099b8e4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/tokscale-core/src/lib.rs:9322-9330 | crates/tokscale-core/src/lib.rs:9464-9472 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/tokscale-core/src/lib.rs:9322\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060crates/tokscale-core/src/lib.rs:9473\u0060 calls \u0060take_cost_estimate_source\u0060 and \u0060crates/tokscale-core/src/lib.rs:9331\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/lib.rs"},"region":{"startLine":9322}}}],"partialFingerprints":{"codehealthFindingId/v1":"4519a0a939d80f1d0d3b9a1d2c7118d002b08da18edc54df989fe44125dc61ab"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/tokscale-core/src/pricing/mod.rs:224-232 | crates/tokscale-core/src/pricing/mod.rs:452-460 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/tokscale-core/src/pricing/mod.rs:224\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/pricing/mod.rs"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"adcd00737b5c8098d6b37e8de47518e1c74cb8ecfa4123da84f0405d7e1188a6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/tokscale-core/src/scanner.rs:229-237 | crates/tokscale-core/src/scanner.rs:252-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/scanner.rs"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"0bcb4cf287e538328c966fbd114268fbe2fb489b6ad04b21c86a72d8a640a536"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/tokscale-core/src/sessions/amp.rs:165-173 | crates/tokscale-core/src/sessions/amp.rs:214-222 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/tokscale-core/src/sessions/amp.rs:165\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/sessions/amp.rs"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"55573fca1fafb85bfcb98581856a67580da3ef17fd2ab24df1669c7cdd302faf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/tokscale-core/src/sessions/copilot_vscode.rs:283-291 | crates/tokscale-core/src/sessions/copilot_vscode.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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/tokscale-core/src/sessions/copilot_vscode.rs:283\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/sessions/copilot_vscode.rs"},"region":{"startLine":283}}}],"partialFingerprints":{"codehealthFindingId/v1":"f53533fa3f97a61c388a82fc82556a9535fe0ec5b4e98f07311b455e6171d1f0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/tokscale-core/src/sessions/prime_agent.rs:659-667 | crates/tokscale-core/src/sessions/prime_agent.rs:777-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/tokscale-core/src/sessions/prime_agent.rs:659\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/sessions/prime_agent.rs"},"region":{"startLine":659}}}],"partialFingerprints":{"codehealthFindingId/v1":"54022312b4ec8ae7f88dab8be6cde5ec5fed9e61b55ecfffa7eaf63c9ffebd41"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 14): crates/tokscale-cli/src/tui/ui/agents.rs:80-87 | crates/tokscale-cli/src/tui/ui/daily.rs:175-182 | crates/tokscale-cli/src/tui/ui/daily.rs:458-465 | crates/tokscale-cli/src/tui/ui/hourly.rs:125-132 | crates/tokscale-cli/src/tui/ui/hourly_profile.rs:40-47 | crates/tokscale-cli/src/tui/ui/minutely.rs:118-125 | crates/tokscale-cli/src/tui/ui/model_trend.rs:107-114 | crates/tokscale-cli/src/tui/ui/models.rs:262-269 | crates/tokscale-cli/src/tui/ui/monthly.rs:192-199 | crates/tokscale-cli/src/tui/ui/monthly.rs:405-412 | crates/tokscale-cli/src/tui/ui/projects.rs:315-322 | crates/tokscale-cli/src/tui/ui/sessions.rs:599-606 | crates/tokscale-cli/src/tui/ui/stats.rs:264-271 | crates/tokscale-cli/src/tui/ui/stats.rs:646-653 \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 134 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/tokscale-cli/src/tui/ui/agents.rs:80\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060app\u0060 to \u0060\u0026mut App\u0060 in one and \u0060\u0026App\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"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:190-197 | crates/tokscale-cli/src/tui/ui/daily.rs:474-481 | crates/tokscale-cli/src/tui/ui/hourly.rs:146-153 | crates/tokscale-cli/src/tui/ui/monthly.rs:207-214 | crates/tokscale-cli/src/tui/ui/monthly.rs:420-427 | crates/tokscale-cli/src/tui/ui/sessions.rs:614-621 \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 16 separate duplicated blocks between them, totalling at least 224 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/tokscale-cli/src/tui/ui/daily.rs:190\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060crates/tokscale-cli/src/tui/ui/daily.rs:198\u0060 calls \u0060iter\u0060, \u0060any\u0060 and \u0060crates/tokscale-cli/src/tui/ui/daily.rs:482\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/ui/daily.rs"},"region":{"startLine":190}}}],"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:1356-1363 | crates/tokscale-core/src/scanner.rs:1395-1402 | crates/tokscale-core/src/scanner.rs:1456-1463 \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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/tokscale-core/src/cc_mirror.rs:24\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"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:146-153 | 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/tokscale-cli/src/tui/ui/dialog/group_by_picker.rs:146\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060crates/tokscale-cli/src/tui/ui/dialog/group_by_picker.rs:145\u0060 calls \u0060styled\u0060, \u0060default\u0060, \u0060fg\u0060 and \u0060crates/tokscale-cli/src/tui/ui/dialog/language_picker.rs:84\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/ui/dialog/group_by_picker.rs"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"2dadecad729708e8c4a2c2ae58134ad24158f1cea2927841a4dced5026574242"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): crates/tokscale-core/src/message_cache.rs:2648-2655 | crates/tokscale-core/src/message_cache.rs:2739-2746 | crates/tokscale-core/src/message_cache.rs:2901-2908 \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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060message\u0060 to \u0060LegacyUnifiedMessageV8\u0060 in one and \u0060LegacyUnifiedMessageV9\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/message_cache.rs"},"region":{"startLine":2648}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3b92d73751d49619417d02373b6fc9583c6c4d99db57159f54e18b72f2ec58f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/tokscale-cli/src/antigravity.rs:771-778 | crates/tokscale-cli/src/trae.rs:1134-1141 \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 5 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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060cache_dir\u0060 to \u0060\u0026Path\u0060 in one and \u0060\u0026std::path::Path\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/antigravity.rs"},"region":{"startLine":771}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa1b9897779b83799e321da2a7368b53622e27aba9c71d85f051ca0994a0bf77"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/tokscale-cli/src/antigravity.rs:787-794 | crates/tokscale-cli/src/trae.rs:1145-1152 \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 5 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/tokscale-cli/src/antigravity.rs:787\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/antigravity.rs"},"region":{"startLine":787}}}],"partialFingerprints":{"codehealthFindingId/v1":"efa3233dc58fea5f2bea4409463e7b67cd20439c6143d811aa9dcadeae5e46bf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/tokscale-cli/src/antigravity.rs:2153-2160 | crates/tokscale-cli/src/antigravity.rs:2197-2204 \u2014 both copies are in the same file, so extract the block 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":2153}}}],"partialFingerprints":{"codehealthFindingId/v1":"438004ede98230ff3305601eddedbc62fe20230b76c3f128c25e57e7db7570eb"}},{"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/report.rs:1301-1308 | crates/tokscale-cli/src/commands/report.rs:1384-1391 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060crates/tokscale-cli/src/commands/report.rs:1309\u0060 calls \u0060contains\u0060 and \u0060crates/tokscale-cli/src/commands/report.rs:1392\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/commands/report.rs"},"region":{"startLine":1301}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3f1b48d6caac726a5e992a0589906a09d24c15596a76b53fca7f9a8a865a1cc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/tokscale-cli/src/commands/usage/codex.rs:1389-1397 | crates/tokscale-cli/src/commands/usage/codex.rs:1868-1875 \u2014 both copies are in the same file, so extract the block 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":1389}}}],"partialFingerprints":{"codehealthFindingId/v1":"bba7284b2555e73ff0ee04023f77fb0629ebbddee470c5e153da86f2bb90600f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/tokscale-cli/src/cursor.rs:1663-1670 | 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/tokscale-cli/src/cursor.rs:1663\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/cursor.rs"},"region":{"startLine":1663}}}],"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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/tokscale-cli/src/hindsight.rs:375\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"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:3474-3480 | crates/tokscale-cli/src/main.rs:3574-3581 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/tokscale-cli/src/main.rs:3474\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/main.rs"},"region":{"startLine":3474}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4a5f07271ab6245914e7a01a97dc1f84cb88aced10ccdb009e7e3c86c9a628a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/tokscale-cli/src/tui/ui/daily.rs:486-493 | crates/tokscale-cli/src/tui/ui/models.rs:281-288 \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 12 separate duplicated blocks between them, totalling at least 148 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060crates/tokscale-cli/src/tui/ui/models.rs:280\u0060 calls \u0060borrow\u0060, \u0060clone\u0060 and \u0060crates/tokscale-cli/src/tui/ui/daily.rs:485\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/ui/daily.rs"},"region":{"startLine":486}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0b83228fda63a87a3c14814c39d257f1edf8d83ccfc7d4020a510395c3a4175"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 2): crates/tokscale-cli/src/tui/ui/footer.rs:622-628 | crates/tokscale-cli/src/tui/ui/footer.rs:636-643 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/tokscale-cli/src/tui/ui/footer.rs:636\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/ui/footer.rs"},"region":{"startLine":622}}}],"partialFingerprints":{"codehealthFindingId/v1":"635b95075b611c4fef0112c63653a2463a02f44e1fb1bfb1114fd56697cb2f5f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/tokscale-core/src/legacy_graph.rs:256-263 | crates/tokscale-core/src/legacy_graph.rs:272-279 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/tokscale-core/src/legacy_graph.rs:256\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060value\u0060 to \u0060GraphResult\u0060 in one and \u0060crate::GraphResultV2\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/legacy_graph.rs"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"344a1be6ade5f7f8822a419a1b85f8129e8ae278c11346cca0add29738b5a7c1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/tokscale-core/src/lib.rs:9222-9229 | crates/tokscale-core/src/lib.rs:9578-9585 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060msg\u0060 to \u0060\u0026UnifiedMessage\u0060 in one and \u0060\u0026ParsedMessage\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/lib.rs"},"region":{"startLine":9222}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e9fed9fa093bf8ad4bd6ae1c6d66e6ca9d31998b71b7e23a0e90536cd5f553a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/tokscale-core/src/machine_label.rs:256-263 | crates/tokscale-core/src/model_alias.rs:55-62 \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/machine_label.rs"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"d883fdd7cb2b787e429fb12bd6f79cce7229eb0e03cd960ffa7ff5a6d3ee0f0c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/tokscale-core/src/sessions/commandcode.rs:253-260 | crates/tokscale-core/src/sessions/zcode.rs:129-137 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/tokscale-core/src/sessions/commandcode.rs:253\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/sessions/commandcode.rs"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"61ccdd7bb3b5bff87c79722e79a88ebe7e4fa6be679437f718229def2f6edf07"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/tokscale-core/src/sessions/fx.rs:305-312 | crates/tokscale-core/src/sessions/fx.rs:372-379 \u2014 both copies are in the same file, so extract the block 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":305}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ef5a4a24a0b021c77b05707475fc60ac6e7306e8773ab5d5f46407be3741c3a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/tokscale-core/src/wiki.rs:442-449 | crates/tokscale-core/src/wiki.rs:484-491 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/tokscale-core/src/wiki.rs:442\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/wiki.rs"},"region":{"startLine":442}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e92b55fcf42dfb7022fa4e64b16d98614d8689def9aa2101469c5f5c70750b4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 6): crates/tokscale-core/src/lib.rs:2651-2661 | crates/tokscale-core/src/lib.rs:4108-4118 | crates/tokscale-core/src/lib.rs:4442-4452 | crates/tokscale-core/src/lib.rs:4546-4556 | crates/tokscale-core/src/lib.rs:5019-5029 | crates/tokscale-core/src/lib.rs:5308-5314 \u2014 all 6 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/tokscale-core/src/lib.rs:2651\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/lib.rs"},"region":{"startLine":2651}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffc5e23e611b3b4410a5ff645e9c936cc3b40b323423ff939d392eef47e911ea"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 4): crates/tokscale-cli/src/tui/ui/daily.rs:282-288 | crates/tokscale-cli/src/tui/ui/daily.rs:543-549 | crates/tokscale-cli/src/tui/ui/minutely.rs:213-219 | crates/tokscale-cli/src/tui/ui/models.rs:355-361 \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 18 separate duplicated blocks between them, totalling at least 248 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/tokscale-cli/src/tui/ui/daily.rs:282\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/ui/daily.rs"},"region":{"startLine":282}}}],"partialFingerprints":{"codehealthFindingId/v1":"8deb20ba3753fb45be94f9b7267b04714fe80b8157dfacea3a50756de0f61d9b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): crates/tokscale-cli/src/tui/ui/agents.rs:94-100 | crates/tokscale-cli/src/tui/ui/daily.rs:482-488 | crates/tokscale-cli/src/tui/ui/sessions.rs:623-629 \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 134 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060crates/tokscale-cli/src/tui/ui/sessions.rs:622\u0060 calls \u0060iter\u0060, \u0060any\u0060 and \u0060crates/tokscale-cli/src/tui/ui/agents.rs:93\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/ui/agents.rs"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"88047204c8e64e9d734404af84d1aa70f2e7d723ada5496fc1c0de656745376b"}},{"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:1933-1939 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/commands/autosubmit.rs"},"region":{"startLine":703}}}],"partialFingerprints":{"codehealthFindingId/v1":"753980bd74375625d337007c5d55ef6c28830f8bb34e192ee20130d02e993aae"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/tokscale-cli/src/commands/usage/cursor.rs:685-692 | crates/tokscale-cli/src/commands/usage/cursor.rs:704-711 \u2014 both copies are in the same file, so extract the block 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/cursor.rs"},"region":{"startLine":685}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4a40dc16be16585a014f66709dce6af0d82ed30fe1000ece7663a533918d809"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/tokscale-cli/src/main.rs:2649-2656 | crates/tokscale-cli/src/main.rs:2905-2911 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/tokscale-cli/src/main.rs:2649\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/main.rs"},"region":{"startLine":2649}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef7792f02808087cea698fbdd815b404a25f030e69c32fcd9330bd5fc1eab90e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/tokscale-cli/src/main.rs:3409-3415 | crates/tokscale-cli/src/main.rs:3726-3732 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/tokscale-cli/src/main.rs:3409\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/main.rs"},"region":{"startLine":3409}}}],"partialFingerprints":{"codehealthFindingId/v1":"90835e8b5c6da1274a4529d19f1e9c709b6bcd7fcd9ad726bea6847e9acc01f3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/tokscale-cli/src/tui/app.rs:2889-2895 | crates/tokscale-cli/src/tui/app.rs:2897-2903 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/tokscale-cli/src/tui/app.rs:2889\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/app.rs"},"region":{"startLine":2889}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f72c84e23aadc002214018a80e3dfe5d19e1469e0a83e938abe3b0a92faecd6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/tokscale-cli/src/tui/data/mod.rs:942-948 | crates/tokscale-core/src/lib.rs:5992-5998 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/tokscale-cli/src/tui/data/mod.rs:942\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/data/mod.rs"},"region":{"startLine":942}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a1352ddb6df9794cfed27720fbabca0e96d7a116b431199c464e06015331bed"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/tokscale-cli/src/tui/ui/dialog/group_by_picker.rs:193-199 | crates/tokscale-cli/src/tui/ui/dialog/language_picker.rs:121-127 \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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/tokscale-cli/src/tui/ui/dialog/group_by_picker.rs:193\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/ui/dialog/group_by_picker.rs"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7bbf59a75318752807dafa02fb12823f12f6282ad575b4f00f917cb18d9a51a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/tokscale-cli/src/tui/ui/hourly_profile.rs:137-143 | crates/tokscale-cli/src/tui/ui/hourly_profile.rs:192-198 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/tokscale-cli/src/tui/ui/hourly_profile.rs:137\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/ui/hourly_profile.rs"},"region":{"startLine":137}}}],"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:166-172 | crates/tokscale-cli/src/tui/ui/hourly_profile.rs:233-240 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/tokscale-cli/src/tui/ui/hourly_profile.rs:166\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/ui/hourly_profile.rs"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8038732ef6ec689f896c6b7d1c4acb7bc17cd5dc2c7106f54ce6646e675f754"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/tokscale-core/src/lib.rs:7659-7665 | crates/tokscale-core/src/lib.rs:7709-7715 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/tokscale-core/src/lib.rs:7659\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/lib.rs"},"region":{"startLine":7659}}}],"partialFingerprints":{"codehealthFindingId/v1":"b909a68f74824fa5302d800ebd84b6de4b651e9b788f510b37d6735baad7faf4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/tokscale-core/src/lib.rs:8288-8294 | crates/tokscale-core/src/lib.rs:8650-8656 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/tokscale-core/src/lib.rs:8288\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/lib.rs"},"region":{"startLine":8288}}}],"partialFingerprints":{"codehealthFindingId/v1":"97882f5b3b1fd44ee3a62a23c7b2c98d420d7ead45b5023a0b7d55b12bde837f"}},{"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:234-240 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/tokscale-core/src/pricing/cache.rs:92\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/pricing/cache.rs"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f7a7a6a821304a2d21c8bca547f09ed2f650cf012bb6f2f107272ae6fe9e890"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 16): crates/tokscale-core/src/lib.rs:8309-8314 | crates/tokscale-core/src/lib.rs:8350-8355 | crates/tokscale-core/src/lib.rs:8381-8386 | crates/tokscale-core/src/lib.rs:8422-8427 | crates/tokscale-core/src/lib.rs:8443-8448 | crates/tokscale-core/src/lib.rs:8464-8469 | crates/tokscale-core/src/lib.rs:8482-8487 | crates/tokscale-core/src/lib.rs:8561-8566 | crates/tokscale-core/src/lib.rs:8576-8581 | crates/tokscale-core/src/lib.rs:8591-8596 | crates/tokscale-core/src/lib.rs:8606-8611 | crates/tokscale-core/src/lib.rs:8621-8626 | crates/tokscale-core/src/lib.rs:8636-8641 | crates/tokscale-core/src/lib.rs:8714-8719 | crates/tokscale-core/src/lib.rs:8757-8762 | crates/tokscale-core/src/lib.rs:9073-9078 \u2014 all 16 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":8309}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7abb2723a1ec273d3a1c04866bd5919ccd50384574a6360e7875e1ac20786ca"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 11): crates/tokscale-core/src/lib.rs:8483-8488 | crates/tokscale-core/src/lib.rs:8562-8567 | crates/tokscale-core/src/lib.rs:8577-8582 | crates/tokscale-core/src/lib.rs:8592-8597 | crates/tokscale-core/src/lib.rs:8607-8612 | crates/tokscale-core/src/lib.rs:8622-8627 | crates/tokscale-core/src/lib.rs:8637-8642 | crates/tokscale-core/src/lib.rs:8652-8657 | crates/tokscale-core/src/lib.rs:8715-8720 | crates/tokscale-core/src/lib.rs:8758-8763 | crates/tokscale-core/src/lib.rs:9074-9079 \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-core/src/lib.rs"},"region":{"startLine":8483}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf26a3fd64f18d4dd9e382644d291f188bb9871b1d32b1176435f4ae43bd530e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 8): crates/tokscale-cli/src/tui/ui/daily.rs:168-173 | crates/tokscale-cli/src/tui/ui/hourly.rs:118-123 | crates/tokscale-cli/src/tui/ui/hourly_profile.rs:33-38 | crates/tokscale-cli/src/tui/ui/minutely.rs:111-116 | crates/tokscale-cli/src/tui/ui/monthly.rs:185-190 | crates/tokscale-cli/src/tui/ui/stats.rs:639-644 | crates/tokscale-cli/src/tui/ui/usage.rs:1036-1041 | crates/tokscale-cli/src/tui/ui/usage.rs:2318-2323 \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 16 separate duplicated blocks between them, totalling at least 224 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/tokscale-cli/src/tui/ui/daily.rs:168\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/ui/daily.rs"},"region":{"startLine":168}}}],"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:255-260 | crates/tokscale-cli/src/tui/ui/projects.rs:308-313 | crates/tokscale-cli/src/tui/ui/sessions.rs:592-597 | crates/tokscale-cli/src/tui/ui/stats.rs:257-262 | crates/tokscale-cli/src/tui/ui/usage.rs:59-64 \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 11 separate duplicated blocks between them, totalling at least 178 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/tokscale-cli/src/tui/ui/agents.rs:73\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060app\u0060 to \u0060\u0026mut App\u0060 in one and \u0060\u0026App\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"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:2632-2637 | crates/tokscale-cli/src/main.rs:2706-2711 | crates/tokscale-cli/src/main.rs:2886-2891 | crates/tokscale-cli/src/main.rs:3077-3082 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/tokscale-cli/src/main.rs:2632\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/main.rs"},"region":{"startLine":2632}}}],"partialFingerprints":{"codehealthFindingId/v1":"b53ee7c16ec9a79c9e20bd398ce47438c6a12a9f107b4c21105fe4d18ec657d8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): crates/tokscale-cli/src/tui/ui/daily.rs:205-210 | crates/tokscale-cli/src/tui/ui/hourly.rs:161-166 | crates/tokscale-cli/src/tui/ui/minutely.rs:149-154 \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 16 separate duplicated blocks between them, totalling at least 224 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":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"cdbd1e890440fa3d962b1b3639f732b9dfb7afa20f7fa2ac3823559633fc5786"}},{"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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060app\u0060 to \u0060\u0026mut App\u0060 in one and \u0060\u0026App\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/ui/footer.rs"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf6befbeca940af8aa1a7c566f2c4f05cf1234c745a3fa23c6f46c5b97797992"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): crates/tokscale-core/src/pricing/lookup.rs:1607-1612 | crates/tokscale-core/src/pricing/lookup.rs:1623-1628 | crates/tokscale-core/src/pricing/lookup.rs:1837-1842 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/tokscale-core/src/pricing/lookup.rs:1607\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/pricing/lookup.rs"},"region":{"startLine":1607}}}],"partialFingerprints":{"codehealthFindingId/v1":"b438d50123d7f637339fd350c22af86ecc174b904a1766a190d7aee8eda6cc06"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/tokscale-cli/src/main.rs:2624-2629 | crates/tokscale-cli/src/main.rs:2875-2880 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/tokscale-cli/src/main.rs:2624\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/main.rs"},"region":{"startLine":2624}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc8e73cdbc8b2681abf775dbc68738955f77cfae94d39cdb0cb2c1b5a6fe6d05"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/tokscale-cli/src/tui/app.rs:2875-2880 | crates/tokscale-cli/src/tui/app.rs:2882-2887 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/tokscale-cli/src/tui/app.rs:2875\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/app.rs"},"region":{"startLine":2875}}}],"partialFingerprints":{"codehealthFindingId/v1":"d171beaacb315dc981cec87e1ad6fb868875d6abc716279401f44f1d1203825b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/tokscale-cli/src/tui/ui/hourly.rs:145-150 | crates/tokscale-cli/src/tui/ui/hourly_profile.rs:50-55 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/tokscale-cli/src/tui/ui/hourly.rs:145\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/ui/hourly.rs"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5d6b12464df5f00a53a6a6e812177f22d0ddc00497047f8ad25519caebcaad9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/tokscale-cli/src/tui/ui/usage.rs:2355-2361 | crates/tokscale-cli/src/tui/ui/usage.rs:2401-2406 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/tokscale-cli/src/tui/ui/usage.rs:2355\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/ui/usage.rs"},"region":{"startLine":2355}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff1b818a9e3e0706f23723fbda9814cdbb4c5c4c1ae7887c097d1c473f48447d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/tokscale-core/src/lib.rs:3434-3439 | crates/tokscale-core/src/lib.rs:7720-7725 \u2014 both copies are in the same file, so extract the block 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":3434}}}],"partialFingerprints":{"codehealthFindingId/v1":"37448ab4eed5c140a4f52fc20ce486fbbb8ab4288487e2620db9ed61fc2eac52"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/tokscale-core/src/scanner.rs:2122-2127 | crates/tokscale-core/src/scanner.rs:2153-2158 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/tokscale-core/src/scanner.rs:2122\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/scanner.rs"},"region":{"startLine":2122}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ae2ccd300e6b839514f10f5651b0e8c1a800d45c361421c8deab97f0038bfd5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/tokscale-core/src/sessions/cherrystudio.rs:271-276 | crates/tokscale-core/src/sessions/proma.rs:133-139 \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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060crates/tokscale-core/src/sessions/cherrystudio.rs:277\u0060 calls \u0060Some\u0060, \u0060get\u0060, \u0060and_then\u0060 and \u0060crates/tokscale-core/src/sessions/proma.rs:140\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/sessions/cherrystudio.rs"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"341f3e09864017d28c24e160219747c8e48237f31bfd5daf9cd2f8cac997e62e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/tokscale-core/src/sessions/commandcode.rs:582-591 | crates/tokscale-core/src/sessions/zcode.rs:574-583 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/sessions/commandcode.rs"},"region":{"startLine":582}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab536943c659566e378b7b4a168279a2d7532e54ccef7c0f00e9953c77d8c41a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/tokscale-core/src/sessions/gjc.rs:99-104 | crates/tokscale-core/src/sessions/pi.rs:831-836 \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":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"90c9239e9ecb206f9451aac0f7c6a289ab794e73831ac908fa5bec1f2e4822c4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): crates/tokscale-core/src/wiki.rs:161-173 | crates/tokscale-core/src/wiki.rs:177-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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/wiki.rs"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"517d56c8448a245bc90552d4a31f09a6f6f6515aef8cccf81b71034d96e855b2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 8): crates/tokscale-cli/src/tui/ui/daily.rs:204-208 | crates/tokscale-cli/src/tui/ui/daily.rs:488-492 | crates/tokscale-cli/src/tui/ui/hourly.rs:160-164 | crates/tokscale-cli/src/tui/ui/minutely.rs:148-152 | crates/tokscale-cli/src/tui/ui/model_trend.rs:136-140 | crates/tokscale-cli/src/tui/ui/models.rs:283-287 | crates/tokscale-cli/src/tui/ui/monthly.rs:221-225 | crates/tokscale-cli/src/tui/ui/monthly.rs:434-438 \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 16 separate duplicated blocks between them, totalling at least 224 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060crates/tokscale-cli/src/tui/ui/model_trend.rs:141\u0060 calls \u0060hint_key_style\u0060 and \u0060crates/tokscale-cli/src/tui/ui/daily.rs:209\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/ui/daily.rs"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f61870fff87243f9c64a9542b4e12e06b149762c148e1c1e471acc8ebc1ae1e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 5): crates/tokscale-cli/src/tui/ui/daily.rs:319-325 | crates/tokscale-cli/src/tui/ui/hourly.rs:308-313 | crates/tokscale-cli/src/tui/ui/minutely.rs:260-265 | crates/tokscale-cli/src/tui/ui/monthly.rs:308-312 | crates/tokscale-cli/src/tui/ui/monthly.rs:528-532 \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 16 separate duplicated blocks between them, totalling at least 224 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/tokscale-cli/src/tui/ui/daily.rs:319\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/ui/daily.rs"},"region":{"startLine":319}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f7ee4009bb6c70dfec228d35f156ec462125e082a696325f9f62ac05e2f5665"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 2): crates/tokscale-cli/src/antigravity.rs:860-870 | crates/tokscale-cli/src/trae.rs:1213-1222 \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 5 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/tokscale-cli/src/antigravity.rs:860\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060lock_path\u0060 to \u0060\u0026Path\u0060 in one and \u0060\u0026std::path::Path\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/antigravity.rs"},"region":{"startLine":860}}}],"partialFingerprints":{"codehealthFindingId/v1":"447e11cc6766906b77a692e14c97c7e37df10d110bf8680e3563f0082007441b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/tokscale-cli/src/commands/report.rs:100-105 | crates/tokscale-cli/src/commands/report.rs:107-112 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/tokscale-cli/src/commands/report.rs:100\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/commands/report.rs"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"98e9773f851bb00f95446950e97f7f4c4a61b39cd54c3acae46ca848bce06908"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/tokscale-cli/src/main.rs:2699-2703 | crates/tokscale-cli/src/main.rs:3066-3070 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/tokscale-cli/src/main.rs:2699\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/main.rs"},"region":{"startLine":2699}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a3bdfcdbb400d088d24905454980de953b1eefcb6ff2e3b513d6e7ecd9870c9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/tokscale-cli/src/main.rs:3013-3019 | crates/tokscale-cli/src/main.rs:3534-3538 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/tokscale-cli/src/main.rs:3013\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/main.rs"},"region":{"startLine":3013}}}],"partialFingerprints":{"codehealthFindingId/v1":"aaca90f713f408982967380eb0ceafd64c62fe9f2611e46e36f51923803d8a59"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/tokscale-cli/src/tui/ui/projects.rs:488-492 | crates/tokscale-cli/src/tui/ui/sessions.rs:837-841 \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 13 separate duplicated blocks between them, totalling at least 149 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/tokscale-cli/src/tui/ui/projects.rs:488\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/ui/projects.rs"},"region":{"startLine":488}}}],"partialFingerprints":{"codehealthFindingId/v1":"80227413de9251f02c3ad49128d65e32bebed2a4d9be47c0b8f7acb2805b57f9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/tokscale-cli/src/tui/ui/usage.rs:2366-2370 | crates/tokscale-cli/src/tui/ui/usage.rs:2410-2414 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/tokscale-cli/src/tui/ui/usage.rs:2366\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/ui/usage.rs"},"region":{"startLine":2366}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0dc4cdbbad7476210cf172034d463a7811e4a8c17a2879eb179db68a2d56561"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/tokscale-core/src/recovery.rs:440-444 | crates/tokscale-core/src/recovery.rs:449-454 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/tokscale-core/src/recovery.rs:449\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/recovery.rs"},"region":{"startLine":440}}}],"partialFingerprints":{"codehealthFindingId/v1":"c430972c3742794f35255110d7602632a67a215b340748b1f594c5924bd23baa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/tokscale-core/src/sessions/codebuff.rs:287-291 | crates/tokscale-core/src/sessions/codebuff.rs:329-336 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/tokscale-core/src/sessions/codebuff.rs:287\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/sessions/codebuff.rs"},"region":{"startLine":287}}}],"partialFingerprints":{"codehealthFindingId/v1":"4162e5442433b2141a6891490237b383715a4772b11f18b6a19017a6c77664d0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): crates/tokscale-cli/src/commands/usage/codex.rs:673-678 | crates/tokscale-cli/src/commands/usage/cursor.rs:616-621 | crates/tokscale-core/src/sessions/pi.rs:476-481 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 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 3 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/commands/usage/codex.rs"},"region":{"startLine":673}}}],"partialFingerprints":{"codehealthFindingId/v1":"60b54c3b2b891c7e612346117bfe1c74ae0371ebb941ef012887d91c7c6e46cd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): crates/tokscale-cli/src/main.rs:4564-4575 | crates/tokscale-cli/src/tui/data/mod.rs:504-515 | crates/tokscale-core/src/lib.rs:6142-6151 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 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 3 times. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060tokens\u0060 to \u0060\u0026tokscale_core::TokenBreakdown\u0060 in one and \u0060\u0026TokenBreakdown\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/main.rs"},"region":{"startLine":4564}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e068c12f2f539f3e3f63182da38cfc53b68dc7cf99817b10f863f528ff42a8b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): crates/tokscale-cli/src/main.rs:5181-5190 | crates/tokscale-core/src/message_cache.rs:2490-2499 | crates/tokscale-core/src/message_cache.rs:2503-2512 \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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060tokens\u0060 to \u0060tokscale_core::TokenBreakdown\u0060 in one and \u0060LegacyTokenBreakdownV9\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/main.rs"},"region":{"startLine":5181}}}],"partialFingerprints":{"codehealthFindingId/v1":"db26e4281ccfbb12ba27617329aac94eb4f2a092629ea3b99cde83263857ee86"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): crates/tokscale-cli/src/tui/cache.rs:265-273 | crates/tokscale-cli/src/tui/cache.rs:277-285 | crates/tokscale-core/src/message_cache.rs:2464-2472 \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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060t\u0060 to \u0060\u0026TokenBreakdown\u0060 in one and \u0060CachedTokenBreakdown\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/cache.rs"},"region":{"startLine":265}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7270fc1374256f1cde8c6e2f45df438b57253275c3ef525dc1cf9842d76a18e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/tokscale-cli/src/tui/data/mod.rs:40-46 | crates/tokscale-core/src/lib.rs:341-349 \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/data/mod.rs"},"region":{"startLine":40}}}],"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:102-110 | 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":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"3dc56e95a9bcccd01cd6a64b47b119a83fd0f88140f7ac783f955a70b7ec81dc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): crates/tokscale-cli/src/tui/ui/dialog/session_detail.rs:599-608 | crates/tokscale-cli/src/tui/ui/projects.rs:532-541 | crates/tokscale-cli/src/tui/ui/sessions.rs:898-907 \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 13 separate duplicated blocks between them, totalling at least 149 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/session_detail.rs"},"region":{"startLine":599}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c8725c74ed708df5e485993910e3fb38fc244d6b2034f38aae06b6570cacb86"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): crates/tokscale-cli/src/tui/ui/projects.rs:168-184 | crates/tokscale-cli/src/tui/ui/sessions.rs:207-225 \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 13 separate duplicated blocks between them, totalling at least 149 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":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"a08ea4decee9ad9b697d86c8b230aa03879d20dc78fdfc94886347b2949e6d73"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/tokscale-core/src/sessions/antigravity_cli.rs:970-977 | crates/tokscale-core/src/sessions/grok.rs:1776-1783 \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":970}}}],"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:90-97 \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:1542-1546 | crates/tokscale-core/src/sessions/codex.rs:2200-2204 \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":1542}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f5a105af8327048f55a68b8d8e2d18c47d9be09be8da2df297a2451efe1badc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/tokscale-core/src/sessions/junie.rs:168-175 | crates/tokscale-core/src/sessions/muse.rs:201-208 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/sessions/junie.rs"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c66cca1684e90ab7257adac4509d593d5d775b334961acaa5e3668d9455a5a8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/tokscale-core/src/sessions/junie.rs:253-259 | crates/tokscale-core/src/sessions/muse.rs:273-279 \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":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c1a57ee0503bcc13ed20bfbba3913310cff28efa62e0fde98f6a6c3253686ea"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crates/tokscale-core/src/pricing/lookup.rs:1971-1981 | crates/tokscale-core/src/pricing/mod.rs:702-712 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/tokscale-core/src/pricing/lookup.rs:1971\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/pricing/lookup.rs"},"region":{"startLine":1971}}}],"partialFingerprints":{"codehealthFindingId/v1":"eace8c5a256a60b5695fea415f135eafa8610e7e7c851a04c86d859a8a85f7bb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/tokscale-core/src/sessions/copilot_session_state.rs:51-55 | crates/tokscale-core/src/sessions/copilot_vscode.rs:9-13 \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/copilot_session_state.rs"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bad032f78418accac9cc62968c6ac9389d4238c9b5e778feb477147f8c2f184"}},{"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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/tokscale-core/src/sessions/mcode.rs:65\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"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:706-719 | 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/tokscale-cli/src/antigravity.rs:706\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/antigravity.rs"},"region":{"startLine":706}}}],"partialFingerprints":{"codehealthFindingId/v1":"b33e7ad2805fc76b351d879a3c948bed9b0a21095fb549eef47f8ef96e96c9e8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/tokscale-core/src/sessions/kiro.rs:709-715 | crates/tokscale-core/src/sessions/kiro.rs:737-749 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/tokscale-core/src/sessions/kiro.rs:709\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/sessions/kiro.rs"},"region":{"startLine":709}}}],"partialFingerprints":{"codehealthFindingId/v1":"9722281289e6984c43b2a59071bcf43c5189a67138a3f5bc753c9680636cb6d3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/tokscale-cli/src/trae.rs:437-448 | crates/tokscale-cli/src/trae.rs:1073-1080 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/tokscale-cli/src/trae.rs:437\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. 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":"crates/tokscale-cli/src/trae.rs"},"region":{"startLine":437}}}],"partialFingerprints":{"codehealthFindingId/v1":"492ca9e78ad356dd704ef6112cf998e16adee1dec7bf4f82b62bd4755315ad64"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): crates/tokscale-core/src/scanner.rs:2936-2947 | crates/tokscale-core/src/scanner.rs:2954-2965 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/tokscale-core/src/scanner.rs:2936\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/scanner.rs"},"region":{"startLine":2936}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c237a2a74b1fc8c62267cd74c25df948bd575cb913a64ef072b7b0302957864"}},{"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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/tokscale-core/src/sessions/mcode.rs:91\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/tokscale-cli/src/commands/autosubmit.rs:1480\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/commands/autosubmit.rs"},"region":{"startLine":1480}}}],"partialFingerprints":{"codehealthFindingId/v1":"8750c3c3e907e2d32593522ab16d245141a8869e73152a47e6f85679b9a257da"}},{"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:2349-2360 \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":"36b16601d75372c4d8dfd8a1f3bf4378e07398d269eb017c0fac5e8bec1fa150"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/tokscale-cli/src/main.rs:5874-5884 | crates/tokscale-cli/src/main.rs:5887-5893 \u2014 both copies are in the same file, so extract the block 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":5874}}}],"partialFingerprints":{"codehealthFindingId/v1":"3041a7a9db83c16b8f65da885e70851bd78bb3e9e446cf310421680c4efe6319"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crates/tokscale-core/src/scanner.rs:1436-1446 | crates/tokscale-core/src/scanner.rs:1580-1590 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/tokscale-core/src/scanner.rs:1436\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/scanner.rs"},"region":{"startLine":1436}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2d44e7eb67bf90fc4b3821b0daf0a9ab86fb3b50585c7f8fc71f712563dbe2d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/tokscale-core/src/sessions/copilot_vscode.rs:362-370 | crates/tokscale-core/src/sessions/qoder.rs:822-829 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/tokscale-core/src/sessions/copilot_vscode.rs:362\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/sessions/copilot_vscode.rs"},"region":{"startLine":362}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a7ffeefc8b2fd8ed68e87df634a6c5df6d628dce9f5dc1284b1cd414e10a707"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/tokscale-cli/src/main.rs:6038-6042 | crates/tokscale-core/src/sessions/opencode.rs:224-232 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/tokscale-cli/src/main.rs:6038\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/main.rs"},"region":{"startLine":6038}}}],"partialFingerprints":{"codehealthFindingId/v1":"eabf6f088fc050e4d2dba0971922d4cca17787074cb688e8ef91b0962e64976e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): crates/tokscale-core/src/sessions/copilot.rs:888-896 | crates/tokscale-core/src/sessions/copilot.rs:903-911 | crates/tokscale-core/src/sessions/copilot.rs:922-930 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/tokscale-core/src/sessions/copilot.rs:888\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/sessions/copilot.rs"},"region":{"startLine":888}}}],"partialFingerprints":{"codehealthFindingId/v1":"d25e3305ba95dba580a1f9108ad9881ade92beb025b0e5bda8c97efe16ff61f1"}},{"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:676-683 | crates/tokscale-cli/src/cursor.rs:2815-2822 \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:877-884 | crates/tokscale-cli/src/trae.rs:1229-1236 \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 5 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/tokscale-cli/src/antigravity.rs:877\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060lock_path\u0060 to \u0060\u0026Path\u0060 in one and \u0060\u0026std::path::Path\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/antigravity.rs"},"region":{"startLine":877}}}],"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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/tokscale-cli/src/commands/usage/zai.rs:150\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"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 2): crates/tokscale-cli/src/main.rs:5051-5058 | crates/tokscale-cli/src/main.rs:5064-5071 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/tokscale-cli/src/main.rs:5051\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060crates/tokscale-cli/src/main.rs:5049\u0060 calls \u0060is_empty\u0060 and \u0060crates/tokscale-cli/src/main.rs:5061\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/main.rs"},"region":{"startLine":5051}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc86102e23d3f112b2dbc78c0eaa295c5ddd965cff435addf45c99ffa597272a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/tokscale-core/src/sessions/synthetic.rs:188-197 | crates/tokscale-core/src/sessions/synthetic.rs:241-250 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/tokscale-core/src/sessions/synthetic.rs:188\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/sessions/synthetic.rs"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b39fa474204f27aa25b4b57d010aff444112a0a9311c26ddeb5e605b79c5e91"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/tokscale-core/src/sessions/kiro.rs:987-992 | crates/tokscale-core/src/sessions/kiro.rs:994-999 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/tokscale-core/src/sessions/kiro.rs:987\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/sessions/kiro.rs"},"region":{"startLine":987}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0610e4394a175bfb17cdc8c5f660b5c2c37d9ab55554a484ca2b92dd3753588"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/tokscale-core/src/pricing/custom.rs:293-298 | crates/tokscale-core/src/pricing/custom.rs:314-319 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/pricing/custom.rs"},"region":{"startLine":293}}}],"partialFingerprints":{"codehealthFindingId/v1":"78b3f443742a1f2557be5496d17540e07342c3d0702b95930df45047f3040283"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/tokscale-core/src/scanner.rs:1747-1751 | crates/tokscale-core/src/scanner.rs:1768-1772 \u2014 both copies are in the same file, so extract the block 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":1747}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b2bab0f4bdb59583dc42fd93caabe5e4e006bfbd218398e3bdee46cfc5f7664"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/tokscale-cli/src/main.rs:6035-6039 | crates/tokscale-cli/src/tui/settings.rs:834-838 \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":6035}}}],"partialFingerprints":{"codehealthFindingId/v1":"8aefbe735c5f34fe4334beadb40666413c3c6b76c6dbc8df7a58024483ae7359"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/tokscale-cli/src/commands/usage/antigravity.rs:604-608 | crates/tokscale-cli/src/commands/usage/antigravity.rs:745-749 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/tokscale-cli/src/commands/usage/antigravity.rs:604\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/commands/usage/antigravity.rs"},"region":{"startLine":604}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd47653461daaa3e29037ef7c21b4ab50dfefcd31f623a72d8c615928d45f753"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): crates/tokscale-core/src/message_cache.rs:717-721 | crates/tokscale-core/src/message_cache.rs:736-740 | crates/tokscale-core/src/message_cache.rs:786-790 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/tokscale-core/src/message_cache.rs:717\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/message_cache.rs"},"region":{"startLine":717}}}],"partialFingerprints":{"codehealthFindingId/v1":"9107345149a5ee2a4def6ce8836850ee3abce551819cbe68ef09e53531b9d625"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/tokscale-cli/src/antigravity.rs:904-909 | crates/tokscale-cli/src/trae.rs:1185-1190 \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 5 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060path\u0060 to \u0060\u0026Path\u0060 in one and \u0060\u0026std::path::Path\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/antigravity.rs"},"region":{"startLine":904}}}],"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:377-385 | crates/tokscale-cli/src/tui/themes.rs:387-395 | crates/tokscale-cli/src/tui/themes.rs:397-405 | crates/tokscale-cli/src/tui/themes.rs:407-415 | crates/tokscale-cli/src/tui/themes.rs:417-425 | crates/tokscale-cli/src/tui/themes.rs:427-435 | crates/tokscale-cli/src/tui/themes.rs:437-445 | crates/tokscale-cli/src/tui/themes.rs:447-455 | crates/tokscale-cli/src/tui/themes.rs:457-465 \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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/themes.rs"},"region":{"startLine":377}}}],"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:170-176 \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 13 separate duplicated blocks between them, totalling at least 149 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060crates/tokscale-cli/src/tui/ui/sessions.rs:178\u0060 calls \u0060tr\u0060 and \u0060crates/tokscale-cli/src/tui/ui/projects.rs:134\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/ui/projects.rs"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d38f5a13a87725a0f1e6c884f5e3a7e111f4b5614c121911c73f50e3cc12891"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/tokscale-core/src/pricing/litellm.rs:171-175 | crates/tokscale-core/src/pricing/litellm.rs:189-193 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/pricing/litellm.rs"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"51f77f90d884ac10fcb5da755eca5576114c2ede39198927cabd491c07640c72"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/tokscale-core/src/sessions/bb.rs:657-661 | crates/tokscale-core/src/sessions/devin.rs:306-310 \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/bb.rs"},"region":{"startLine":657}}}],"partialFingerprints":{"codehealthFindingId/v1":"abcba320e0efccbb4e7024652980ec3dfd89a55b4ef16f8e79b977bbc0556062"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): scripts/check-release-workflow-safety.py:47-67 | scripts/check-workflow-toolchain-paths.py:31-42 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/check-release-workflow-safety.py"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9df0dc771d37ec7bc862e45b4b5b99532bec6184584750779d5654409afd15a"}},{"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.00, instability 0.00, distance 1.00 \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":"D6","level":"warning","message":{"text":"Low cohesion: UnifiedMessage (LCOM4 4): UnifiedMessage\u0027s methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/sessions/mod.rs"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8a8a64e6fab9fd7abdb3d580c8eb755a8f8d71b6ce742888d813d8bb95a1a3f"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/tokscale-core/src/lib.rs: crates/tokscale-core/src/lib.rs changed 101 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 287 in tokscale_core::parse_all_messages_streaming at line 1904. 58 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-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:23 \u002B00:00\u0027 --until=\u00272026-11-13 07:28:23 \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":1904}}}],"partialFingerprints":{"codehealthFindingId/v1":"44281fde98dbe31956740bebaba9350e0bace96d07eabae1acb63bfb97465835"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/tokscale-core/src/scanner.rs: crates/tokscale-core/src/scanner.rs changed 46 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 162 in tokscale_core::scanner::scan_all_clients_with_env_strategy_inner at line 2240. 21 of those changes were fix/bug commits, and the other 25 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:23 \u002B00:00\u0027 --until=\u00272026-11-13 07:28:23 \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":2240}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d0b41acb9797ec0d675f82242787164d515a48b9220b656b4483f73db4b9b97"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/tokscale-core/src/message_cache.rs: crates/tokscale-core/src/message_cache.rs changed 102 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 59 in tokscale_core::message_cache::read_shard_with_limit_unchecked at line 4272. 69 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-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:23 \u002B00:00\u0027 --until=\u00272026-11-13 07:28:23 \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":4272}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f761fc87d05557acb0938d1b409827183e4ebcc552fd75202abcf0e96b6cf16"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/tokscale-cli/src/main.rs: crates/tokscale-cli/src/main.rs changed 70 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 51 in tokscale_cli::main at line 695. 36 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-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:23 \u002B00:00\u0027 --until=\u00272026-11-13 07:28:23 \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":695}}}],"partialFingerprints":{"codehealthFindingId/v1":"95521acc96335b3ae40837d864f971bfe1775b08d64e30ec7100a7b54d4a0a21"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/frontend/src/app/api/submit/route.ts: packages/frontend/src/app/api/submit/route.ts changed 19 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 171 in route.POST at line 523. 14 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-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:23 \u002B00:00\u0027 --until=\u00272026-11-13 07:28:23 \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":523}}}],"partialFingerprints":{"codehealthFindingId/v1":"1972d1312bfa285a23927bcb8f102163129585b81bb93ec007b42a9f2d969de8"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/tokscale-cli/src/tui/data/mod.rs: crates/tokscale-cli/src/tui/data/mod.rs changed 31 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 79 in DataLoader::aggregate_messages at line 801. 6 of those changes were fix/bug commits, and the other 25 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:23 \u002B00:00\u0027 --until=\u00272026-11-13 07:28:23 \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":801}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a96d9aeedabc55e177d619a5c31e8f36a797b0ea04a3a26e4ee115ef6218109"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/tokscale-core/src/sessions/codex.rs: crates/tokscale-core/src/sessions/codex.rs changed 20 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 122 in tokscale_core::sessions::codex::parse_codex_reader_with_record_limit at line 1077. 13 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-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:23 \u002B00:00\u0027 --until=\u00272026-11-13 07:28:23 \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":1077}}}],"partialFingerprints":{"codehealthFindingId/v1":"486ad0d9b2d1b474eeb5832ebfe6cef4179990bebe436abd7cde84ffb03a588d"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/tokscale-core/src/pricing/lookup.rs: crates/tokscale-core/src/pricing/lookup.rs changed 24 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 58 in PricingLookup::lookup_auto at line 909. 21 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-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:23 \u002B00:00\u0027 --until=\u00272026-11-13 07:28:23 \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":909}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f8220445f88172112be87150e67c37ed7e5d5ca620a87bfafbc01346d2e234c"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/frontend/src/lib/publicProfileData.ts: packages/frontend/src/lib/publicProfileData.ts changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 158 in publicProfileData.getPublicProfileResponse at line 107. 4 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:23 \u002B00:00\u0027 --until=\u00272026-11-13 07:28:23 \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":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"48b58e3da097072b0f159cb46522ce0af5a4e2dfaa629d30b2cab721dc7b09dc"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/tokscale-cli/src/tui/app.rs: crates/tokscale-cli/src/tui/app.rs changed 16 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 59 in App::handle_key_event at line 896. 5 of those changes were fix/bug commits, and the other 11 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:23 \u002B00:00\u0027 --until=\u00272026-11-13 07:28:23 \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":896}}}],"partialFingerprints":{"codehealthFindingId/v1":"703d91bfb9ad547644eadc68f1b585f4f125ae4d19ea0e402292f43e66d77c66"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/tokscale-core/src/sessions/pi.rs: crates/tokscale-core/src/sessions/pi.rs changed 18 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 52 in tokscale_core::sessions::pi::parse_pi_format_file_inner at line 815. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:23 \u002B00:00\u0027 --until=\u00272026-11-13 07:28:23 \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":815}}}],"partialFingerprints":{"codehealthFindingId/v1":"826bd07bc9507ee00807e1dac08bff997c264426c2b727ee9ee8c1f4d3a25827"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/frontend/src/lib/db/parserHighWater.ts: packages/frontend/src/lib/db/parserHighWater.ts changed 14 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 60 in parserHighWater.planParserHighWaterSubmission at line 1527. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:23 \u002B00:00\u0027 --until=\u00272026-11-13 07:28:23 \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":1527}}}],"partialFingerprints":{"codehealthFindingId/v1":"01ca155d215a07be4731368814f51b70c3b3fb305e63e6af2aea94b03743cb24"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/tokscale-core/src/sessions/claudecode.rs: crates/tokscale-core/src/sessions/claudecode.rs changed 13 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 62 in tokscale_core::sessions::claudecode::parse_claude_lines at line 809. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:23 \u002B00:00\u0027 --until=\u00272026-11-13 07:28:23 \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":809}}}],"partialFingerprints":{"codehealthFindingId/v1":"176ca77955efcaa8b9d3c59af13898f000c9be71bb8974b08b3b684a9fb293a4"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/tokscale-core/src/sessions/opencode_schema.rs: crates/tokscale-core/src/sessions/opencode_schema.rs changed 15 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 34 in tokscale_core::sessions::opencode_schema::rescan_opencode_schema_sqlite_with_session_clients at line 1756. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:23 \u002B00:00\u0027 --until=\u00272026-11-13 07:28:23 \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":1756}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef2f238468d98318505d2a463a572b9250c06d525b4e65c18dd2c2ded1c9ae75"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/frontend/src/app/(main)/groups/[slug]/GroupDetailClient.tsx: packages/frontend/src/app/(main)/groups/[slug]/GroupDetailClient.tsx changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 70 in GroupDetailClient.GroupDetailClient at line 517. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:23 \u002B00:00\u0027 --until=\u00272026-11-13 07:28:23 \u002B00:00\u0027 --full-history --no-merges -- packages/frontend/src/app/(main)/groups/[slug]/GroupDetailClient.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)/groups/[slug]/GroupDetailClient.tsx"},"region":{"startLine":517}}}],"partialFingerprints":{"codehealthFindingId/v1":"794128cb975ac1c2cfb20fdf9a11e45127ed0b2b26ea9dea6fc0182f258fe69a"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/tokscale-core/src/sessions/dsh.rs: crates/tokscale-core/src/sessions/dsh.rs changed 11 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 42 in tokscale_core::sessions::dsh::parse_dsh_lines at line 74. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:23 \u002B00:00\u0027 --until=\u00272026-11-13 07:28:23 \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":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"60f7022c51ee1a10b0a2597bf621bc94206b248ca7d746cd523d442ca422bc7e"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/tokscale-cli/src/tui/ui/footer.rs: crates/tokscale-cli/src/tui/ui/footer.rs changed 15 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 30 in tokscale_cli::tui::ui::footer::render_help_row at line 246. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:23 \u002B00:00\u0027 --until=\u00272026-11-13 07:28:23 \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":246}}}],"partialFingerprints":{"codehealthFindingId/v1":"23ebca2c02ba995d718cc5b81a3dcbead0f46c55a34c62e356234db55b72bc26"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/tokscale-cli/src/cursor.rs: crates/tokscale-cli/src/cursor.rs changed 15 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 29 in tokscale_cli::cursor::fetch_cursor_usage_events_json_merging at line 2074. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:23 \u002B00:00\u0027 --until=\u00272026-11-13 07:28:23 \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":2074}}}],"partialFingerprints":{"codehealthFindingId/v1":"f64a8b4d99d086faaf8fd193b6b9dc8a0094e92975d6478b1feed9134d1ecfdc"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/frontend/src/app/(main)/leaderboard/LeaderboardClient.tsx: packages/frontend/src/app/(main)/leaderboard/LeaderboardClient.tsx changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 93 in LeaderboardClient.LeaderboardClient at line 927. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:23 \u002B00:00\u0027 --until=\u00272026-11-13 07:28:23 \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":927}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3bc20831ff87aaf4546df6812883b8966c0e0db3c98aab5e6306b237a2a97b3"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/tokscale-cli/src/antigravity.rs: crates/tokscale-cli/src/antigravity.rs changed 18 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 18 in tokscale_cli::antigravity::sync_antigravity_cache_impl_with_deadline at line 357. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:23 \u002B00:00\u0027 --until=\u00272026-11-13 07:28:23 \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":357}}}],"partialFingerprints":{"codehealthFindingId/v1":"775f7b14a97c8f988d40bbf0eabbebd472c99f3050fa8ec156c1f9dde951ad7e"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/tokscale-core/src/pricing/mod.rs: crates/tokscale-core/src/pricing/mod.rs changed 18 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in PricingService::explain_message at line 866. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:23 \u002B00:00\u0027 --until=\u00272026-11-13 07:28:23 \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":866}}}],"partialFingerprints":{"codehealthFindingId/v1":"fab20bc9fd639492bff3169669cb33dc3607d912bbe68127527c4890523b0699"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/frontend/src/lib/validation/submission.ts: packages/frontend/src/lib/validation/submission.ts changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 40 in submission.validateSubmission at line 397. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:23 \u002B00:00\u0027 --until=\u00272026-11-13 07:28:23 \u002B00:00\u0027 --full-history --no-merges -- packages/frontend/src/lib/validation/submission.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/validation/submission.ts"},"region":{"startLine":397}}}],"partialFingerprints":{"codehealthFindingId/v1":"121f708e756d07587a9f4c4c1dd3facff5f761c31d144d7b60ee3293bb8eda4b"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/tokscale-cli/src/commands/wrapped.rs: crates/tokscale-cli/src/commands/wrapped.rs changed 13 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 21 in tokscale_cli::commands::wrapped::load_wrapped_data at line 154. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:23 \u002B00:00\u0027 --until=\u00272026-11-13 07:28:23 \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":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"7346575613c6fae547fcbfff4648894a87b0bd7d67d50773a995906f0d82de81"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/tokscale-core/src/sessions/kiro.rs: crates/tokscale-core/src/sessions/kiro.rs changed 7 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 612. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:23 \u002B00:00\u0027 --until=\u00272026-11-13 07:28:23 \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":612}}}],"partialFingerprints":{"codehealthFindingId/v1":"8cc9f4aaeee2e2608f7b7b2c4c26ebdaf9bb9a07d476d3a4aac1d70e105d21eb"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/tokscale-cli/src/tui/ui/daily.rs: crates/tokscale-cli/src/tui/ui/daily.rs changed 7 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 162. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:23 \u002B00:00\u0027 --until=\u00272026-11-13 07:28:23 \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":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf1aee5cb0b83c821cac1e98f715b89c2bded920314b36da89d410d2a2457076"}},{"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 22 in tokscale_cli::tui::ui::usage::render_selected_account at line 1656. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:23 \u002B00:00\u0027 --until=\u00272026-11-13 07:28:23 \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":1656}}}],"partialFingerprints":{"codehealthFindingId/v1":"131e410c792f1d6319561d984f00759d207bf81bc0f5014687e978cd2aa6dafc"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/tokscale-cli/src/tui/ui/hourly.rs: crates/tokscale-cli/src/tui/ui/hourly.rs changed 6 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 117. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:23 \u002B00:00\u0027 --until=\u00272026-11-13 07:28:23 \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":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"527ec9dd283f24e4f63997dc25ba4df810a8bd226eeee29a0a8c0ede6b27f365"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/tokscale-cli/src/tui/ui/stats.rs: crates/tokscale-cli/src/tui/ui/stats.rs changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 23 in tokscale_cli::tui::ui::stats::render_graph 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-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:23 \u002B00:00\u0027 --until=\u00272026-11-13 07:28:23 \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":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea9d1bbaf789d38223187d98e0825818fdf535d418ade5f3309d4e902e9cc5b3"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/tokscale-core/src/sessions/openclaw.rs: crates/tokscale-core/src/sessions/openclaw.rs changed 11 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in tokscale_core::sessions::openclaw::ingest_openclaw_entry at line 331. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:23 \u002B00:00\u0027 --until=\u00272026-11-13 07:28:23 \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":331}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7908d5cce8a7f59a9cbd763a24695d9d36fe8dbdd7e30331ab0694765063999"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/tokscale-cli/src/tui/ui/sessions.rs: crates/tokscale-cli/src/tui/ui/sessions.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::sessions::render at line 591. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:23 \u002B00:00\u0027 --until=\u00272026-11-13 07:28:23 \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":591}}}],"partialFingerprints":{"codehealthFindingId/v1":"70754d58c12025fc085b228949ad88a3ab98f9bb58061a30254fa4ecc9b459a6"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/tokscale-core/src/sessions/hermes.rs: crates/tokscale-core/src/sessions/hermes.rs changed 9 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 18 in tokscale_core::sessions::hermes::allocate_row_by_days at line 444. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:23 \u002B00:00\u0027 --until=\u00272026-11-13 07:28:23 \u002B00:00\u0027 --full-history --no-merges -- crates/tokscale-core/src/sessions/hermes.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/hermes.rs"},"region":{"startLine":444}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c845f6a5e71128170bf664c8953432e51e9a2bc97a7a06919a743d0ca5fa4e3"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/frontend/src/components/profile/ProfileUsageChart.tsx: packages/frontend/src/components/profile/ProfileUsageChart.tsx changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 53 in ProfileUsageChart.ProfileUsageChart at line 866. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:23 \u002B00:00\u0027 --until=\u00272026-11-13 07:28:23 \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":866}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e0ea58cc0979d4245898de53bc8c4498c0d8a7e0e9373a368cb1635b05cf2d5"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/tokscale-core/src/sessions/grok.rs: crates/tokscale-core/src/sessions/grok.rs changed 4 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 714. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:23 \u002B00:00\u0027 --until=\u00272026-11-13 07:28:23 \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":714}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfd90d24c7149c15edefae16512c99870b6ad782f186942a01f3502300f54b59"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/frontend/src/lib/db/antigravityStateCoverage.ts: packages/frontend/src/lib/db/antigravityStateCoverage.ts changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 38 in antigravityStateCoverage.antigravityPriorCoverage at line 496. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:23 \u002B00:00\u0027 --until=\u00272026-11-13 07:28:23 \u002B00:00\u0027 --full-history --no-merges -- packages/frontend/src/lib/db/antigravityStateCoverage.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/antigravityStateCoverage.ts"},"region":{"startLine":496}}}],"partialFingerprints":{"codehealthFindingId/v1":"32a8fdfee94bd96449d147d309cdc11a87ffe99ac8b7791be28119eee263e561"}},{"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 110. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:23 \u002B00:00\u0027 --until=\u00272026-11-13 07:28:23 \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":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"a40f640eeda0c0be085fda08f84d92e328027613a56ec98675031cc07b41337e"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/tokscale-cli/src/tui/ui/monthly.rs: crates/tokscale-cli/src/tui/ui/monthly.rs changed 5 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 386. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:23 \u002B00:00\u0027 --until=\u00272026-11-13 07:28:23 \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":386}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed9e3424f01b0e703fa6f90ba7dcc7adc770960c78db28acf8470b8c70d9df37"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/tokscale-core/src/sessions/copilot_vscode.rs: crates/tokscale-core/src/sessions/copilot_vscode.rs changed 7 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 94. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:23 \u002B00:00\u0027 --until=\u00272026-11-13 07:28:23 \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":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"85b8e9cef06890d0e49c9072b9ce2074f32a25cfc66a4b8aa2c1454a140b1209"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/tokscale-cli/src/tui/ui/models.rs: crates/tokscale-cli/src/tui/ui/models.rs changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 21 in tokscale_cli::tui::ui::models::render at line 249. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:23 \u002B00:00\u0027 --until=\u00272026-11-13 07:28:23 \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":249}}}],"partialFingerprints":{"codehealthFindingId/v1":"160a42f5c0f390853ce0fa3f973313175d27367b0cefb9ee89b7ba879121df58"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/frontend/src/app/u/[username]/ProfilePageClient.tsx: packages/frontend/src/app/u/[username]/ProfilePageClient.tsx changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 27 in ProfilePageClient.ProfilePageClient at line 138. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:23 \u002B00:00\u0027 --until=\u00272026-11-13 07:28:23 \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":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"2318412acc18e7cef7ae3c7d4bf7b37d5fbc62fc764dba11932515f64a5bb320"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/tokscale-cli/src/commands/import.rs: crates/tokscale-cli/src/commands/import.rs changed 5 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-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:23 \u002B00:00\u0027 --until=\u00272026-11-13 07:28:23 \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-core/src/provider_identity.rs: crates/tokscale-core/src/provider_identity.rs changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 25 in tokscale_core::provider_identity::inferred_provider_from_model_inner at line 268. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:23 \u002B00:00\u0027 --until=\u00272026-11-13 07:28:23 \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":268}}}],"partialFingerprints":{"codehealthFindingId/v1":"2dcaa58f313f39ee378a8bd2b78fba328c852f65a8c13776b9f23c40298e37af"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/frontend/src/lib/db/antigravityTransition.ts: packages/frontend/src/lib/db/antigravityTransition.ts changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 29 in antigravityTransition.planAntigravityTransition at line 106. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:23 \u002B00:00\u0027 --until=\u00272026-11-13 07:28:23 \u002B00:00\u0027 --full-history --no-merges -- packages/frontend/src/lib/db/antigravityTransition.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/antigravityTransition.ts"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f34fa0d02e279b9dbf551d5f11baae300d459bb2ca4c8b12511c92811fef10c"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/tokscale-core/src/sessions/devin.rs: crates/tokscale-core/src/sessions/devin.rs changed 6 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 632. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:23 \u002B00:00\u0027 --until=\u00272026-11-13 07:28:23 \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":632}}}],"partialFingerprints":{"codehealthFindingId/v1":"272ff361a9d5257a4491c5cdedfefb73a583bd9b6ff8417254d8690c0f9b8ff7"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/tokscale-cli/src/tui/ui/overview.rs: crates/tokscale-cli/src/tui/ui/overview.rs changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 19 in tokscale_cli::tui::ui::overview::render_top_models at line 235. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:23 \u002B00:00\u0027 --until=\u00272026-11-13 07:28:23 \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":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"99748757369a7a1fc41f94484613cf3cf3cb3ccebb98e048094814b1f72451ba"}},{"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 4 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 32. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:23 \u002B00:00\u0027 --until=\u00272026-11-13 07:28:23 \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":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6b28e940139f8f5362a931996745122042c82d90acf2f9386ffd0e35af3097c"}},{"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-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:23 \u002B00:00\u0027 --until=\u00272026-11-13 07:28:23 \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/mcode.rs: crates/tokscale-core/src/sessions/mcode.rs changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 25 in tokscale_core::sessions::mcode::parse_mcode_file at line 29. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:23 \u002B00:00\u0027 --until=\u00272026-11-13 07:28:23 \u002B00:00\u0027 --full-history --no-merges -- crates/tokscale-core/src/sessions/mcode.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/mcode.rs"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"9cd1749b6b2ca7a074adb0405fee946729ace7f421d696311fe2d91c10c32f8f"}},{"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-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:23 \u002B00:00\u0027 --until=\u00272026-11-13 07:28:23 \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: crates/tokscale-cli/src/tui/ui/bar_chart.rs: crates/tokscale-cli/src/tui/ui/bar_chart.rs changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 31 in tokscale_cli::tui::ui::bar_chart::render_stacked_bar_chart at line 29. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:23 \u002B00:00\u0027 --until=\u00272026-11-13 07:28:23 \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":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac7047b7b71e58713081f41148859d1b42ba9387d141db5c55211301dadb4186"}},{"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 44 in SettingsClient.SettingsClient at line 716. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:23 \u002B00:00\u0027 --until=\u00272026-11-13 07:28:23 \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":716}}}],"partialFingerprints":{"codehealthFindingId/v1":"61e959ffcbfd78dd0c7e1615c619bbce406c07f20be9d5600b3eb8fbc734a286"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/tokscale-cli/src/tui/themes.rs: crates/tokscale-cli/src/tui/themes.rs changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in TerminalColorMode::from_env at line 15. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:23 \u002B00:00\u0027 --until=\u00272026-11-13 07:28:23 \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":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca1777ffb1b5ed9bcc3566b88472e644afa673eb189956b5118e5d51836c230b"}},{"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-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:23 \u002B00:00\u0027 --until=\u00272026-11-13 07:28:23 \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-core/src/sessions/muse.rs: crates/tokscale-core/src/sessions/muse.rs changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 18 in tokscale_core::sessions::muse::parse_muse_file at line 44. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:23 \u002B00:00\u0027 --until=\u00272026-11-13 07:28:23 \u002B00:00\u0027 --full-history --no-merges -- crates/tokscale-core/src/sessions/muse.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/muse.rs"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"74b8660da3abac8d584ed73eab3fb95b2b38ab166f47572f326760f6bfa9a912"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/tokscale-core/src/sessions/bb.rs: crates/tokscale-core/src/sessions/bb.rs changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 23 in tokscale_core::sessions::bb::scan_bb_sqlite at line 546. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:23 \u002B00:00\u0027 --until=\u00272026-11-13 07:28:23 \u002B00:00\u0027 --full-history --no-merges -- crates/tokscale-core/src/sessions/bb.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/bb.rs"},"region":{"startLine":546}}}],"partialFingerprints":{"codehealthFindingId/v1":"a70189661cb66b58fa99762cc77aa19d6c44d5369306b9723d1ed264c2df7145"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/frontend/src/components/profile/ProfileOverview.tsx: packages/frontend/src/components/profile/ProfileOverview.tsx changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in ProfileOverview.ProfileOverview at line 357. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:23 \u002B00:00\u0027 --until=\u00272026-11-13 07:28:23 \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":357}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad5a9e7e0e146c720d355655a7af27ce6c80945d44a0e2426d38cc6a2f4de183"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/tokscale-cli/src/tui/ui/agents.rs: crates/tokscale-cli/src/tui/ui/agents.rs changed 4 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-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:23 \u002B00:00\u0027 --until=\u00272026-11-13 07:28:23 \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: 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 22 in heuristics.scoreCandidate at line 484. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:23 \u002B00:00\u0027 --until=\u00272026-11-13 07:28:23 \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":484}}}],"partialFingerprints":{"codehealthFindingId/v1":"196126dfd3f6bff0b6007e1a9fb3ab499bdcbfb106e7e2099aad6fae5990b919"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/tokscale-core/src/sessions/magpie.rs: crates/tokscale-core/src/sessions/magpie.rs changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 28 in tokscale_core::sessions::magpie::attribute_client_responses at line 75. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:23 \u002B00:00\u0027 --until=\u00272026-11-13 07:28:23 \u002B00:00\u0027 --full-history --no-merges -- crates/tokscale-core/src/sessions/magpie.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/magpie.rs"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"1beee8abba21452b62774e664067c29c1d91ab7373b0b00e0c42517ff6728075"}},{"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 49. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:23 \u002B00:00\u0027 --until=\u00272026-11-13 07:28:23 \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":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b8d28fb0890af61be6f84e952d2b5810ca354cd7d702518e64676033a631315"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/tokscale-cli/src/commands/usage/kimi.rs: crates/tokscale-cli/src/commands/usage/kimi.rs changed 3 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-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:23 \u002B00:00\u0027 --until=\u00272026-11-13 07:28:23 \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: 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 41. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:23 \u002B00:00\u0027 --until=\u00272026-11-13 07:28:23 \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":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"1dcf3a5ee1e652e60d29e28197c430e2d671d411e110242e3e2fbd0f0ee67979"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/frontend/src/lib/embed/getUserEmbedStats.ts: packages/frontend/src/lib/embed/getUserEmbedStats.ts changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in getUserEmbedStats.fetchUserEmbedStats at line 51. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:23 \u002B00:00\u0027 --until=\u00272026-11-13 07:28:23 \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":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"d46752f75f8a947777bccbfb1d095c475a5343057ac1e4584497a6861196be52"}},{"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 25 in route.GET at line 117. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:23 \u002B00:00\u0027 --until=\u00272026-11-13 07:28:23 \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":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b3c6bcba9610625e4804834e46fd2b64b2ffda334282d76c525eebef94f1424"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/tokscale-core/src/recovery.rs: crates/tokscale-core/src/recovery.rs changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 22 in tokscale_core::recovery::merge at line 374. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:23 \u002B00:00\u0027 --until=\u00272026-11-13 07:28:23 \u002B00:00\u0027 --full-history --no-merges -- crates/tokscale-core/src/recovery.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/recovery.rs"},"region":{"startLine":374}}}],"partialFingerprints":{"codehealthFindingId/v1":"f76a75069332b36584dee39bdf8abb3fa6a88f2d8ec603d96d1100d742088013"}},{"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 127. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:23 \u002B00:00\u0027 --until=\u00272026-11-13 07:28:23 \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":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"166b696f27691b2275cda8a3e20bebe6fa81d87c464c3d1e23d5393d28529812"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/frontend/src/components/explore/ModelDetailView.tsx: packages/frontend/src/components/explore/ModelDetailView.tsx changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 19 in ModelDetailView.ModelDetailView at line 414. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:23 \u002B00:00\u0027 --until=\u00272026-11-13 07:28:23 \u002B00:00\u0027 --full-history --no-merges -- packages/frontend/src/components/explore/ModelDetailView.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/explore/ModelDetailView.tsx"},"region":{"startLine":414}}}],"partialFingerprints":{"codehealthFindingId/v1":"15568321fe7eb38eedd5f5dc04ed56b1437b9c23a913e06d4f38fcec542c0150"}},{"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 40. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:23 \u002B00:00\u0027 --until=\u00272026-11-13 07:28:23 \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":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f0e770b272b5f515b2df64995bd064bb1153cb92e27870afd111e561afc7db6"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/frontend/src/components/GraphContainer.tsx: packages/frontend/src/components/GraphContainer.tsx changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in GraphContainer.GraphContainer at line 80. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:23 \u002B00:00\u0027 --until=\u00272026-11-13 07:28:23 \u002B00:00\u0027 --full-history --no-merges -- packages/frontend/src/components/GraphContainer.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/GraphContainer.tsx"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"43f5a85e85776f8f8031550ff0e865b5a2cf19a4714b0946aaf32e93b5cb0a50"}},{"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 41. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:23 \u002B00:00\u0027 --until=\u00272026-11-13 07:28:23 \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":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"34ce6cf7a3f6e819af89d6b4fcf7543a46953a3e61f94392b44aa464c4d41036"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/frontend/src/app/(main)/groups/join/[token]/JoinGroupClient.tsx: packages/frontend/src/app/(main)/groups/join/[token]/JoinGroupClient.tsx changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in JoinGroupClient.JoinGroupClient at line 127. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:23 \u002B00:00\u0027 --until=\u00272026-11-13 07:28:23 \u002B00:00\u0027 --full-history --no-merges -- packages/frontend/src/app/(main)/groups/join/[token]/JoinGroupClient.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)/groups/join/[token]/JoinGroupClient.tsx"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"a88d6341db6ad2c6ec23ef8f6a2b255a5daa44691c1a8eb4f4b35301b758c7f0"}},{"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 14 times in last 90 days and 10 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 15 (its worst body is tokscale_cli::commands::usage::antigravity::parse_session_content at line 474), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(usage): persist only verified Antigravity environment sessions (#1635)\u201D; \u201Cfix(usage): sync Antigravity session across lifecycle hooks and active environments (#1630)\u201D; \u201Cfix(core,submit): add an Antigravity generation boundary and correct BB, Qoder and OMP attribution (#1621)\u201D; \u201Cfix(usage): cache Claude quotas without blocking TUI startup (#1557)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:23 \u002B00:00\u0027 --until=\u00272026-11-13 07:28:23 \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":474}}}],"partialFingerprints":{"codehealthFindingId/v1":"139f31db191d652887ae37d1c6c45bf75ff44d46a7ab7cf329c5a2b4f26d76e2"}},{"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 12 times in last 90 days and 10 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 241), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(core,submit): add an Antigravity generation boundary and correct BB, Qoder and OMP attribution (#1621)\u201D; \u201Cfix(antigravity): map protobuf usage fields and add transition recount proofs (#1611)\u201D; \u201Cfix(cli): correct usage accounting, long-context pricing and sync settings (#1431)\u201D; \u201Cfix(claudecode): price Claude Code 1-hour cache writes at the 1-hour rate (#1374)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:23 \u002B00:00\u0027 --until=\u00272026-11-13 07:28:23 \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":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"756f3a206de654b5b4dd79df2e0a9756f5bf44d73dfe726d521a52e9faa58136"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: crates/tokscale-core/src/sessions/fx.rs: crates/tokscale-core/src/sessions/fx.rs changed 12 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 9 (its worst body is tokscale_core::sessions::fx::parse_fx_file at line 264), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(bb): count Claude and Codex responses mirrored by BB once (#1608)\u201D; \u201Cfix(copilot): merge duplicate OTEL snapshots across files (#1434)\u201D; \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. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:23 \u002B00:00\u0027 --until=\u00272026-11-13 07:28:23 \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":264}}}],"partialFingerprints":{"codehealthFindingId/v1":"97f64f40cc42bd7d147efbadfc647ac86ad4b74cd518f1fca5b3aa698aa492ab"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: crates/tokscale-core/src/sessions/cursor.rs: crates/tokscale-core/src/sessions/cursor.rs changed 10 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_core::sessions::cursor::try_parse_cursor_csv_file at line 668), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(cursor): keep the Cursor cache under TOKSCALE_CONFIG_DIR (#1569)\u201D; \u201Cfix(submit): heal inflated Cursor history with a recount proof (#1552)\u201D; \u201Cfix(cursor): reconcile legacy snapshots with event ids (#1550)\u201D; \u201Cfix(cursor): count each Cursor usage event once across its snapshots (#1544)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:23 \u002B00:00\u0027 --until=\u00272026-11-13 07:28:23 \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":668}}}],"partialFingerprints":{"codehealthFindingId/v1":"b745150750a89dc401ff26d92703490ba884f3e8b2a406f027c92a3a14cf9e59"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: crates/tokscale-core/src/sessions/utils.rs: crates/tokscale-core/src/sessions/utils.rs changed 12 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_core::sessions::utils::sqlite_for_each_row_on_with_params at line 408), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(cache): stop replaying legacy OpenCode and MiMo entries over complete scans (#1540)\u201D; \u201Cfix(codex): support reading and caching zstd-compressed transcripts (#1423)\u201D; \u201Cfix(claude): count advisor model usage (#1398)\u201D; \u201Cfix(claudecode): don\u0027t max a bare prompt snapshot against a real cache split (#1392)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:23 \u002B00:00\u0027 --until=\u00272026-11-13 07:28:23 \u002B00:00\u0027 --full-history --no-merges -- crates/tokscale-core/src/sessions/utils.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/utils.rs"},"region":{"startLine":408}}}],"partialFingerprints":{"codehealthFindingId/v1":"4185265846dcdbb6955610ce7005d309f7396551850c7af3ad6fb50a2c9339fa"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: crates/tokscale-core/src/pricing/aliases.rs: crates/tokscale-core/src/pricing/aliases.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 3 (its worst body is tokscale_core::pricing::aliases::resolve_alias at line 275), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(pricing): price Kimi K3.1 Pro at the Moonshot API card (#1615)\u201D; \u201Cfix(pricing): map Claude 5.5 reasoning tiers and aliases to canonical models (#1425)\u201D; \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. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:23 \u002B00:00\u0027 --until=\u00272026-11-13 07:28:23 \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":275}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ab9a45188825223106702af2acb999ef9040ce44503bcd7373cef06779b5105"}},{"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 639), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(usage): keep Claude backoff when 429 carries Retry-After: 0 (#1595)\u201D; \u201Cfix(usage): cache Claude quotas without blocking TUI startup (#1557)\u201D; \u201Cfix(usage): bound quota HTTP requests (#1506)\u201D; \u201Cfix(usage): prefer fresher Claude Keychain login over stale credentials file (#1401)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:23 \u002B00:00\u0027 --until=\u00272026-11-13 07:28:23 \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":639}}}],"partialFingerprints":{"codehealthFindingId/v1":"032ba587101aced1c50d004a842dfabd4cf05a2f43a8ba8f4b3e32ce5abff686"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: crates/tokscale-core/src/sessions/senpi.rs: crates/tokscale-core/src/sessions/senpi.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 1 (its worst body is tokscale_core::sessions::senpi::parse_senpi_file at line 25), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(cli): correct usage accounting, long-context pricing and sync settings (#1431)\u201D; \u201Cfix(senpi): discover OmO agent sessions and extra path task children (#1409)\u201D; \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. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:23 \u002B00:00\u0027 --until=\u00272026-11-13 07:28:23 \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":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"f92a1b43103db0e309abbeb77613a3a76d3aa77c39ce78fcb3c6dca45f0c1835"}},{"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 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 12 (its worst body is tokscale_cli::commands::usage::zai::build_metrics at line 184), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(usage): cache Claude quotas without blocking TUI startup (#1557)\u201D; \u201Cfix(usage): bound quota HTTP requests (#1506)\u201D; \u201Cfix(zai): parse quota reset times and subscription renewal (#1283)\u201D; \u201Cfix(cursor): use native TLS for Cursor API client (#1250) (#1252)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:23 \u002B00:00\u0027 --until=\u00272026-11-13 07:28:23 \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/pricing/litellm.rs: crates/tokscale-core/src/pricing/litellm.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 15 (its worst body is ModelPricing::with_missing_rates_from at line 235), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(pricing): inherit input rate for pre-5.6 OpenAI cache writes (#1543)\u201D; \u201Cfix(cli): correct usage accounting, long-context pricing and sync settings (#1431)\u201D; \u201Cfix: review follow-ups for #1374/#1368 \u2014 Antigravity family cost floor \u002B sparse hourly pricing (#1376)\u201D; \u201Cfix(claudecode): price Claude Code 1-hour cache writes at the 1-hour rate (#1374)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:23 \u002B00:00\u0027 --until=\u00272026-11-13 07:28:23 \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":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"e118bbd44b7ddbc051b99c06d232583170213321bc6fedd626e8ad7abb766e39"}},{"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 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 7 (its worst body is tokscale_cli::commands::usage::opencode_go::fetch_blocking_with_cap at line 230), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(usage): stop reporting unknown OpenCode Go quota as 0% used (#1572)\u201D; \u201Cfix(usage): cache Claude quotas without blocking TUI startup (#1557)\u201D; \u201Cfix(cursor): use native TLS for Cursor API client (#1250) (#1252)\u201D; \u201Cfix(cursor): key sessions by conversationId from usage-events JSON (#1247)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:23 \u002B00:00\u0027 --until=\u00272026-11-13 07:28:23 \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":"D15","level":"warning","message":{"text":"Repeated repair: crates/tokscale-core/src/sessions/roocode.rs: crates/tokscale-core/src/sessions/roocode.rs changed 7 times in last 90 days and 4 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 12 (its worst body is tokscale_core::sessions::roocode::parse_roo_kilo_file at line 62), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(kilocode): count Kilo Code usage, cost and provider correctly (#1406)\u201D; \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. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:23 \u002B00:00\u0027 --until=\u00272026-11-13 07:28:23 \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":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"8938955c6e44a5507ccdcd74d2748201cb4e3f87aa65f154dd654f010087bc0f"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: crates/tokscale-cli/src/commands/usage/cursor.rs: crates/tokscale-cli/src/commands/usage/cursor.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 12 (its worst body is tokscale_cli::commands::usage::cursor::refreshed_bearer at line 671), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(cursor): reject mismatched database refresh grants (#1634)\u201D; \u201Cfix(usage): keep foreign Cursor refresh tokens isolated (#1624)\u201D; \u201Cfix(usage): redact Cursor OAuth tokens in auth struct Debug output (#1623)\u201D; \u201Cfix(usage): cache Claude quotas without blocking TUI startup (#1557)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:23 \u002B00:00\u0027 --until=\u00272026-11-13 07:28:23 \u002B00:00\u0027 --full-history --no-merges -- crates/tokscale-cli/src/commands/usage/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/commands/usage/cursor.rs"},"region":{"startLine":671}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b900762875d0e8a24a6a91dcc6f92e6537a091bafedb521286c02c60578f6a5"}},{"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 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 14 (its worst body is tokscale_cli::commands::usage::codex::save_account_from_auth_at_path at line 917), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(usage): stop reporting unknown Codex quota as 0% used (#1570)\u201D; \u201Cfix(usage): cache Claude quotas without blocking TUI startup (#1557)\u201D; \u201Cfix(usage): bound quota HTTP requests (#1506)\u201D; \u201Cfix(cursor): use native TLS for Cursor API client (#1250) (#1252)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:23 \u002B00:00\u0027 --until=\u00272026-11-13 07:28:23 \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: packages/frontend/src/lib/db/helpers.ts: packages/frontend/src/lib/db/helpers.ts 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 helpers.addClientCostFloor at line 425), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(submit): scope per-day preserve notices to the bounded submit window (#1515)\u201D; \u201Cfix: review follow-ups for #1374/#1368 \u2014 Antigravity family cost floor \u002B sparse hourly pricing (#1376)\u201D; \u201Cfix(submit): reconcile Droid snapshot costs across days (#1311)\u201D; \u201Cfix(droid): show transcript-dated usage on the web graph (#1267)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:23 \u002B00:00\u0027 --until=\u00272026-11-13 07:28:23 \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":425}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d72d606b58c4515c6ac2b61f1c58c9a4b2dd280f33ed16012e5683ca9e55e31"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: crates/tokscale-core/src/sessions/cline.rs: crates/tokscale-core/src/sessions/cline.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 15 (its worst body is tokscale_core::sessions::cline::parse_cline_cli_file at line 136), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(kilocode): count Kilo Code usage, cost and provider correctly (#1406)\u201D; \u201Cfix(cline): clamp residual input tokens before aggregation (#1399)\u201D; \u201Cfix(claudecode): price Claude Code 1-hour cache writes at the 1-hour rate (#1374)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:23 \u002B00:00\u0027 --until=\u00272026-11-13 07:28:23 \u002B00:00\u0027 --full-history --no-merges -- crates/tokscale-core/src/sessions/cline.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/cline.rs"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"33167d53fda35df46fb31dc040cab704856fff18742095d807813da16305d993"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: crates/tokscale-core/src/sessions/qwen.rs: crates/tokscale-core/src/sessions/qwen.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 6 (its worst body is tokscale_core::sessions::qwen::qwen_token_breakdown at line 52), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(qwen): keep reasoning inside candidates when the recorded total is 0 (#1531)\u201D; \u201Cfix(qwen): stop counting cached and reasoning tokens twice (#1527)\u201D; \u201Cfix(claudecode): price Claude Code 1-hour cache writes at the 1-hour rate (#1374)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:23 \u002B00:00\u0027 --until=\u00272026-11-13 07:28:23 \u002B00:00\u0027 --full-history --no-merges -- crates/tokscale-core/src/sessions/qwen.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/qwen.rs"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"6db9b27df76853b7b8979de2d6ccb3f3a4416d60a46d163caa80dfaa2666d63a"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: crates/tokscale-cli/src/commands/usage/grok.rs: crates/tokscale-cli/src/commands/usage/grok.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 11 (its worst body is tokscale_cli::commands::usage::grok::fetch_network_usage at line 599), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(usage): read unwrapped legacy Grok credits responses (#1620)\u201D; \u201Cfix(usage): cache Claude quotas without blocking TUI startup (#1557)\u201D; \u201Cfix(cursor): use native TLS for Cursor API client (#1250) (#1252)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:23 \u002B00:00\u0027 --until=\u00272026-11-13 07:28:23 \u002B00:00\u0027 --full-history --no-merges -- crates/tokscale-cli/src/commands/usage/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-cli/src/commands/usage/grok.rs"},"region":{"startLine":599}}}],"partialFingerprints":{"codehealthFindingId/v1":"85828d6509ed9aa949dae487ed4f9621944bac8722021b9337f93532f40c574d"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: crates/tokscale-core/src/sessions/opencodex.rs: crates/tokscale-core/src/sessions/opencodex.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::opencodex::attribute_codex_messages_with_claims at line 571), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(codex): attribute response usage from Magpie evidence (#1580)\u201D; \u201Cfix(codex): match OpenCodex rows strict-first, late window second (#1530)\u201D; \u201Cfix(codex): tolerate delayed OpenCodex combo usage timestamps (#1526)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:23 \u002B00:00\u0027 --until=\u00272026-11-13 07:28:23 \u002B00:00\u0027 --full-history --no-merges -- crates/tokscale-core/src/sessions/opencodex.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/opencodex.rs"},"region":{"startLine":571}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe026a5b8560e1aee5cee84fce11782caab3af6cb1dcc784762d24f28a7e81ee"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: crates/tokscale-core/src/sessions/freebuff.rs: crates/tokscale-core/src/sessions/freebuff.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 11 (its worst body is tokscale_core::sessions::freebuff::parse_freebuff_file at line 135), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(freebuff): match free root agent segment instead of base2-free prefix (#1589)\u201D; \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. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:23 \u002B00:00\u0027 --until=\u00272026-11-13 07:28:23 \u002B00:00\u0027 --full-history --no-merges -- crates/tokscale-core/src/sessions/freebuff.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/freebuff.rs"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b5894d4919d8df22b528634483326acabe87bfeac5ad51b4890b567b3a07962"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: crates/tokscale-cli/src/commands/usage/amp.rs: crates/tokscale-cli/src/commands/usage/amp.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 6 (its worst body is tokscale_cli::commands::usage::amp::fetch at line 341), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(usage): cache Claude quotas without blocking TUI startup (#1557)\u201D; \u201Cfix(usage): bound quota HTTP requests (#1506)\u201D; \u201Cfix(cursor): use native TLS for Cursor API client (#1250) (#1252)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:23 \u002B00:00\u0027 --until=\u00272026-11-13 07:28:23 \u002B00:00\u0027 --full-history --no-merges -- crates/tokscale-cli/src/commands/usage/amp.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/amp.rs"},"region":{"startLine":341}}}],"partialFingerprints":{"codehealthFindingId/v1":"468c9cc9f0c16cca25239a7e1326040aee31e618ecbe74107e9edb28bd6ac292"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: packages/frontend/src/lib/leaderboard/getLeaderboard.ts: packages/frontend/src/lib/leaderboard/getLeaderboard.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 8 (its worst body is getLeaderboard.resultQuery at line 165), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(ranking): align profile and embed ranks with UTC windows (#1537)\u201D; \u201Cfix(leaderboard): sum matching usage for all-time client and model filters (#1390)\u201D; \u201Cfix(leaderboard): exclude hidden users from site-wide totals (#1377)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:23 \u002B00:00\u0027 --until=\u00272026-11-13 07:28:23 \u002B00:00\u0027 --full-history --no-merges -- packages/frontend/src/lib/leaderboard/getLeaderboard.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/leaderboard/getLeaderboard.ts"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"688be6fa1543d816b47fdbfbe913e7af1dc52c2271fd614eecae08bbf8d36597"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: crates/tokscale-cli/src/bin/fake_codex.rs: crates/tokscale-cli/src/bin/fake_codex.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 8 (its worst body is tokscale_cli::bin::fake_codex::main at line 77), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(cli): explain cloud session coverage in client diagnostics (#1525)\u201D; \u201Cfix: close two hang/double-count gaps found by adversarial review (#1173)\u201D; \u201Cfix(cli): do not wait on stdout pump thread if headless capture times out (#1166)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:23 \u002B00:00\u0027 --until=\u00272026-11-13 07:28:23 \u002B00:00\u0027 --full-history --no-merges -- crates/tokscale-cli/src/bin/fake_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/bin/fake_codex.rs"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5af18ef568a26e0b255574f228f171274c7a365393aae8c65380f670eac3009"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: crates/tokscale-cli/src/commands/usage/minimax.rs: crates/tokscale-cli/src/commands/usage/minimax.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 8 (its worst body is tokscale_cli::commands::usage::minimax::fetch at line 145), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(usage): cache Claude quotas without blocking TUI startup (#1557)\u201D; \u201Cfix(usage): bound quota HTTP requests (#1506)\u201D; \u201Cfix(cursor): use native TLS for Cursor API client (#1250) (#1252)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:23 \u002B00:00\u0027 --until=\u00272026-11-13 07:28:23 \u002B00:00\u0027 --full-history --no-merges -- crates/tokscale-cli/src/commands/usage/minimax.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/minimax.rs"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb2713bde0bc33d05fe7ba547e4c3d33462d1a26a98533583b4a451bc0725093"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: crates/tokscale-cli/src/commands/usage/minimax_tokenplan.rs: crates/tokscale-cli/src/commands/usage/minimax_tokenplan.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_cli::commands::usage::minimax_tokenplan::fetch_all at line 152), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(usage): cache Claude quotas without blocking TUI startup (#1557)\u201D; \u201Cfix(usage): bound quota HTTP requests (#1506)\u201D; \u201Cfix(cursor): use native TLS for Cursor API client (#1250) (#1252)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:23 \u002B00:00\u0027 --until=\u00272026-11-13 07:28:23 \u002B00:00\u0027 --full-history --no-merges -- crates/tokscale-cli/src/commands/usage/minimax_tokenplan.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/minimax_tokenplan.rs"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ccbf0f4f2c4b8982819e42186d36c5f8c0a512db19d9477da4a227d9ff7250a"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: crates/tokscale-cli/src/trae.rs: crates/tokscale-cli/src/trae.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 11 (its worst body is tokscale_cli::trae::sync::sync_variant at line 1247), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(auth): replace credential files with private atomic writes (#1507)\u201D; \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. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:23 \u002B00:00\u0027 --until=\u00272026-11-13 07:28:23 \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":1247}}}],"partialFingerprints":{"codehealthFindingId/v1":"e84264a85c1a4a2176eed15cf5a08df7dd8809937013fe930c5bafeaedc11b49"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: crates/tokscale-core/src/tui_signal.rs: crates/tokscale-core/src/tui_signal.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 2 (its worst body is tokscale_core::tui_signal::transition_tui_active at line 34), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(dsh): stream large transcripts without caching partial reads (#1535)\u201D; \u201Cfix(cli): correct usage accounting, long-context pricing and sync settings (#1431)\u201D; \u201Cfix(codex): warn when active rollouts lack usage records (#1415)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:23 \u002B00:00\u0027 --until=\u00272026-11-13 07:28:23 \u002B00:00\u0027 --full-history --no-merges -- crates/tokscale-core/src/tui_signal.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/tui_signal.rs"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"edc53f464c6a646b1089e70f4eb261598d9ff1bcb27b89bee5221255fcbb823a"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #1: If anonymized user #1 becomes unavailable, 47 significant file(s) lose their only recent owner: crates/tokscale-cli/src/commands/apple_fm.rs, packages/frontend/src/app/settings/SettingsClient.tsx, packages/frontend/src/components/profile/usageChartData.ts, crates/tokscale-cli/src/commands/codex_activity.rs, crates/tokscale-core/src/paths.rs, packages/frontend/src/components/layout/Navigation.tsx, packages/frontend/src/components/TokenGraph2D.tsx, packages/frontend/src/components/DataInput.tsx (\u002B39 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): 6 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 (53 single-owned of 448 analysed files in total, counted over production source files of roughly 2,400 bytes or more, excluding vendored, generated, example/demo and scaffolding-template trees and test files identified by path convention, largest first; 448 of the 578 production source files in this repository met that bar). They are anonymized user #2 (1 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)) \u2014 spread or document their files in the same way, at lower priority than the named off-boarding risks above. The files folded here: scripts/9router_tokscale_bridge_gjc.py, packages/frontend/src/components/leaderboard/GroupManagement.tsx, crates/tokscale-cli/src/tui/keymap.rs, packages/frontend/src/lib/embed/renderProfileBadgeSvg.ts, scripts/check-workflow-toolchain-paths.py, packages/frontend/src/app/api/groups/[slug]/members/route.ts."},"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":"D20","level":"note","message":{"text":"No ADRs found: No ADRs found. No recognised ADR directory (\u0060docs/adr/\u0060, \u0060docs/decisions/\u0060, \u0060adr/\u0060, \u0060docs/rfcs/\u0060, an \u0060ADR0001/\u0060 folder, or their siblings) exists anywhere in this tree. What was searched, so you can tell an empty log from a search that missed one: every directory under the tree (build output, dependencies and VCS metadata excepted), for a document that is either any non-index page inside a recognised ADR directory, whatever its name and however deeply nested (\u0060docs/adr/use-postgres.md\u0060, \u0060docs/adr/2024/0001-x.md\u0060); or a file anywhere whose name is ADR-shaped (\u00600001-use-postgres.md\u0060, \u0060adr-012-caching.md\u0060); or, when neither turned anything up, a document carrying the decision-record signature (an \u0022Architecture Decision Record\u0022 heading, or Status / Context / Decision / Consequences as section headings). A decision log that clears none of these \u2014 unnumbered files outside any recognised directory, without those headings \u2014 is not seen by this check and this row is then wrong. If that is your case, say so rather than renaming anything; otherwise, consider recording architectural decisions in \u0060docs/adr/\u0060. ADRs are expected here because \u0060packages/tokscale/package.json\u0060 makes this repository a deployable product (line 7)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/tokscale/package.json"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f8187561654c08bcb5c72bc52d6c353fe5a2336be9da837495ec44ba8157fcb"}},{"ruleId":"D21","level":"note","message":{"text":"\u0060sessionID\u0060 spells \u0060ID\u0060 where 98 names in the project spell it \u0060Id\u0060: 98 of 101 names in project tokscale-monorepo spell the token \u0060Id\u0060 (98 of 101; unit: names in project tokscale-monorepo containing \u0060Id\u0060). Peers: generate.generateSessionId (packages/benchmarks/generate.ts:128); generate.generateMessageId (packages/benchmarks/generate.ts:132); GeminiSession.sessionId (packages/benchmarks/generate.ts:428); build-org-ids.countryIdOf (packages/frontend/scripts/capital/build-org-ids.ts:501); build-org-ids.isoOf(countryId) (packages/frontend/scripts/capital/build-org-ids.ts:504). Rename to \u0060sessionId\u0060. [rule N6]"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/benchmarks/generate.ts"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"9716fc634249ad764863045183750402ef1459e30a8345899db25070928a9b2e"}},{"ruleId":"D21","level":"note","message":{"text":"\u0060modelID\u0060 spells \u0060ID\u0060 where 98 names in the project spell it \u0060Id\u0060: 98 of 101 names in project tokscale-monorepo spell the token \u0060Id\u0060 (98 of 101; unit: names in project tokscale-monorepo containing \u0060Id\u0060). Peers: generate.generateSessionId (packages/benchmarks/generate.ts:128); generate.generateMessageId (packages/benchmarks/generate.ts:132); GeminiSession.sessionId (packages/benchmarks/generate.ts:428); build-org-ids.countryIdOf (packages/frontend/scripts/capital/build-org-ids.ts:501); build-org-ids.isoOf(countryId) (packages/frontend/scripts/capital/build-org-ids.ts:504). Rename to \u0060modelId\u0060. [rule N6]"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/benchmarks/generate.ts"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"363f2f534f27d0f2ed83a14074cc9442c79b84ad4187a418d6b1c779cdce3121"}},{"ruleId":"D21","level":"note","message":{"text":"\u0060providerID\u0060 spells \u0060ID\u0060 where 98 names in the project spell it \u0060Id\u0060: 98 of 101 names in project tokscale-monorepo spell the token \u0060Id\u0060 (98 of 101; unit: names in project tokscale-monorepo containing \u0060Id\u0060). Peers: generate.generateSessionId (packages/benchmarks/generate.ts:128); generate.generateMessageId (packages/benchmarks/generate.ts:132); GeminiSession.sessionId (packages/benchmarks/generate.ts:428); build-org-ids.countryIdOf (packages/frontend/scripts/capital/build-org-ids.ts:501); build-org-ids.isoOf(countryId) (packages/frontend/scripts/capital/build-org-ids.ts:504). Rename to \u0060providerId\u0060. [rule N6]"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/benchmarks/generate.ts"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"6dbe86e4e4ba543a8900bcf8138bc99859be6f4e87f5b840a38a5ce3845464a7"}},{"ruleId":"D24","level":"note","message":{"text":"redundant comment: \u0022Get session cookie\u0022 repeats the code it sits on: 3 of its 3 words (get, session, cookie) are already in \u0060const sessionToken = request.cookies.get(\u0022tt_session\u0022)?.value;\u0060. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/middleware.ts"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"8df768980fa2f4a8ab0550d124a87fd68bc6d4744f256d7d7a49b3dc89af83be"}},{"ruleId":"D24","level":"note","message":{"text":"redundant comment: \u0022Exchange code for access token\u0022 repeats the code it sits on: 4 of its 4 words (exchange, code, access, token) are already in \u0060const accessToken = await exchangeCodeForToken(code);\u0060. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/app/api/auth/github/callback/route.ts"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"d40430feee5eae15168b90916dc2e30161872b4239df64c69c1841dda40d48f1"}},{"ruleId":"D24","level":"note","message":{"text":"redundant comment: \u0022Set session cookie\u0022 repeats the code it sits on: 3 of its 3 words (set, session, cookie) are already in \u0060await setSessionCookie(sessionToken);\u0060. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/app/api/auth/github/callback/route.ts"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"9adfc570fd88f93af2240b486652ac025ccb0e52e1613d67f572d792532b5552"}},{"ruleId":"D26","level":"note","message":{"text":"Projects may be oversized for their cohesion: 2 of 5 project(s) overshoot their size bounds, lowering Project Cohesion to 2.0/10. The most over is \u0060crates/tokscale-core\u0060 (164286 LoC, 250 module-visible types across 4 directories). Review these for cohesion \u2014 draw the boundary inside the module first (group each responsibility into its own package or directory and keep the cross-boundary members non-public), since splitting a published package moves types between packages and breaks consumers."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"d5a94650dc74886a0f1f08eb9fb6775f1fc395279ef7e901c970c9d26f767a72"}},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"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"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"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"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"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"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"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"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"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"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"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"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"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"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},{"id":"CICD-SEC-6","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"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"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"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"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"8575d0d26d600ee14844ca189843e9933696bf03e5392221b48bfb9434a11df6"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"58b9a2693cdebafb22628206da4a3f75410fe299cd6f00d22edf605c6daa49e8"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"84d581c27b4c58f1c536837705fb3e9ae99804872b28ea0900cc6718c9237714"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"ebc76a3f1e8892cdeb505095f3f02e8053fa5939b682ce73a39d03a161fb735b"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"e9447faa31c5613333096b3e8323422a335e57ba23dfa8448060200573e15acd"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"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"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"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"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"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"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"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"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"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"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"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"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"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"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"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"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"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"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"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"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"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"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"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"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"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"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"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"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"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"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"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"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"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"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"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"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"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"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"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"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"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"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"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"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"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"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"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"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"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"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"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"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"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"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"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"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"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"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"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"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"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"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"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"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"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"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"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"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"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"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"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"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"a89de57b03ac544c4de012b3321eef5d677ec483e6e703b3b8460dffa9919074"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"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"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"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"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"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"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"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"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"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"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"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"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"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"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"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"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"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"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"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"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"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"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"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"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"8af93b54d7b6d09176d9c9016e65470b9e3497c2e30cd6af0b8b0a89230292a4"},"taxa":[{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"0ff699ee9a951ca9d1731ebf1299b40869d2d07401660bcf589bf725c05bbe68"},"taxa":[{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"2a2b897aeb9feaf5bba7c0732e6405452c9a49b6eb0a8707f9991d79543997e2"},"taxa":[{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"9d0d19e6cd48195f4778eafa3663533fff5b57f2faac8aa23dffd2edfe2b3b7a"},"taxa":[{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"c7d2f2a75478b4717e272625ddfc8cf7245f420b63e94cdf1407612ddd60d22e"},"taxa":[{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"d959b39ce85d840e3c3fd992c2ede66af26946e6fcf2d870a644c969bd40ab9b"},"taxa":[{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"3a12f24d843fea5ebc0b6cdea4155ded3b1f2febb1dc756b9ee29a85c6ef8360"},"taxa":[{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"e1cd9c0a22c7efc859abd112265f28409cc461a596ddfde1be6cc1eea5767f4f"},"taxa":[{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"51c5bfdcc286536fe6f8adc7197119ef2a40971ef9bf21e98ca187a331e6d826"},"taxa":[{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"4ac0d85b01f2f0e4ff703aa3a6d20eea1ec3326177ec548fefb8aeaab2efe900"},"taxa":[{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"d390b87e77b956f07332fee94a86101174eb8fbc2803816dca5e48d77804b8b2"},"taxa":[{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"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"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"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"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},{"id":"CICD-SEC-7","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"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"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},{"id":"CICD-SEC-7","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"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"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},{"id":"CICD-SEC-7","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"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"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},{"id":"CICD-SEC-7","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"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"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},{"id":"CICD-SEC-7","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"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"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},{"id":"CICD-SEC-7","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"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":"820d637e85fbdb2b5b5436f8f257b33d19ba9ad8c7f5479fdee9691aed0a2f02"},"taxa":[{"id":"CWE-319","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A04:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"0ea1d0fa12624833f5eb6e212f4529d5fa420d1a2b96a7650173245097b9f244"},"taxa":[{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"3004c69fac3217b9d4c94014d862532edc39bbcdf4735ad8be8d1fdf098fef57"},"taxa":[{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"6ab13ed163c5b4018848092926c17167b2136ebc688b50b83c4e04a5bc00b160"},"taxa":[{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"b5405c3ada491c66b8395d127db964e7a379515cccda9773f41163b959825117"},"taxa":[{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"b8c43c23e0648e8b7d1e3248ace45c9ed0f4fcd781d0b17f4f865beafcf2d802"},"taxa":[{"id":"CWE-862","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A01:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"c02a9d21efb797819655924868bfe9ecc05dfc21a791fcf6565cecd3e336f81d"},"taxa":[{"id":"CWE-862","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A01:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"19046dbf7f96f6819c39da90c93c905b0ddefafe32efff6ee12806fb02374045"},"taxa":[{"id":"CWE-862","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A01:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"8aae0abd80918e12e5f751bf66501538b183fef3296850d5baf2517302785793"},"taxa":[{"id":"CWE-862","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A01:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"e4d74f4a9538e55dda61fe3703645b8db590263c3276e369fa478e1c05773d0e"},"taxa":[{"id":"CWE-862","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A01:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"ff34c67061a7e05efc24325048d032ae0a163ff3e1bf16bc6e98e7c172d36041"},"taxa":[{"id":"CWE-862","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A01:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"1538793f3fce2b904b2f263197ce6b3f0c8d961e4683747b320b9dcab8017232"},"taxa":[{"id":"CWE-862","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A01:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"2ed5d3455004acee1b7e55d2a591f8daacf4388b1d240cb0e4f1b549b3c83384"},"taxa":[{"id":"CWE-862","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A01:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"639325c5062ea2ff068bf1145ed5598c86455ef2bd831b9b8ede8fe0259c8b17"},"taxa":[{"id":"CWE-862","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A01:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"c153362f40fcb13388bf99b6615fb7988af3a7dfcee88b7435ef1bf796b43d95"},"taxa":[{"id":"CWE-862","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A01:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"5383fda9e35894b793db8a7f8b28090a75b3c3758082d0f1146beb9383e1ef42"},"taxa":[{"id":"CWE-862","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A01:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"52097f46beec1181cd5db4961149e10dfeafa3afeaa8e5a333cabf8228acaa47"},"taxa":[{"id":"CWE-862","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A01:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"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":"2f4382ee4a3ad7ef43daffec5dd076dc1acf6f3dce93c841978b97b1ea408c5a"},"properties":{"dependency":{"package":"vitest","version":"4.0.16","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"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]","RUSTSEC-2026-0463","RUSTSEC-2026-0473","RUSTSEC-2026-0474","RUSTSEC-2026-0475","RUSTSEC-2026-0476","RUSTSEC-2026-0477","RUSTSEC-2026-0478","RUSTSEC-2026-0479"],"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":"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":"6b6e84345c5757e1272fe68c31d47da0fa1ebb711735c2ac0ef4b72b5f744b4b"},"properties":{"dependency":{"package":"vite","version":"7.3.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"f72dfa06add0ad618dddcafb1b16a9f2e877b48ae243891ad0541c553fd9c592"},"properties":{"dependency":{"package":"source-map-js","version":"1.2.1","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"25902f30f7c2a23e36536afa9fac95032c03908dc2ff2afb964e8e902b256058"},"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":"c8c66af99b8c9e17a5a501f0690b6faddfb3490012036db259c46d48a98273be"},"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":"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":"d6bbe43d46f1eb253a2e8c47fe0807401bcfef5530a8edc91c4ad5b3a7d243f4"},"properties":{"dependency":{"package":"source-map-js","version":"1.2.1","advisory":"[CVE redacted]","reachability":{"kind":"not-imported"}}},"taxa":[{"id":"CWE-1284","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":"68e429812c9d38e55c2b232253c6393c107f0761ec2d270a2a1be3f6d92ed70f"},"properties":{"dependency":{"package":"zod","version":"3.25.76","advisory":"[GHSA redacted]","aliases":["[CVE 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":"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":"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":"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":"7b3f5e73f54279d8a385f3ccb6ce6659725cab3121019062bfd36c6500f66d85"},"properties":{"dependency":{"package":"libsqlite3-sys","version":"0.30.1","advisory":"RUSTSEC-2026-0459","aliases":["[CVE redacted]","[GHSA redacted]","RUSTSEC-2026-0502"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"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":"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":"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":"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":"46f49615124997a47ae03424c2b2e05e8f53b2ec644cd091de0dc203d46f11ac"},"properties":{"dependency":{"package":"pin-utils","version":"0.1.0","advisory":"RUSTSEC-2026-0441","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":"ffba3a9076a73cf66b6daacb5914c478fbdc74d1383d8d2e4003b6bf3aa7b43d"},"properties":{"dependency":{"package":"quinn-proto","version":"0.11.16","advisory":"RUSTSEC-2026-0338","aliases":["[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","RUSTSEC-2026-0339","RUSTSEC-2026-0340","RUSTSEC-2026-0341","RUSTSEC-2026-0342","RUSTSEC-2026-0523","RUSTSEC-2026-0524"],"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":"28f0bc6d34596072b24d37b19b745b7394ed4ce99a53e032439b262379e02dc1"},"properties":{"dependency":{"package":"quinn-udp","version":"0.5.15","advisory":"RUSTSEC-2026-0538","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":"e9cf74773a6e34d2f2cd5f4cc024a1a57cb07e5917cf84c703df779cadb57013"},"properties":{"dependency":{"package":"rustix","version":"1.1.3","advisory":"RUSTSEC-2026-0486","aliases":["[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"d7481fb93c86b503a82a3e06a3172c7e27c5da26b8a178702a1e8028944c7596"},"properties":{"dependency":{"package":"rustls","version":"0.23.43","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","RUSTSEC-2026-0285","RUSTSEC-2026-0346","RUSTSEC-2026-0348","RUSTSEC-2026-0349"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"7ec937081c3ad6882e9c07735996d40cd6d5332ac535d70bb5252c6040e1f211"},"properties":{"dependency":{"package":"rustls-webpki","version":"0.103.14","advisory":"RUSTSEC-2026-0382","aliases":["BIT-golang-2026-111943","[CVE redacted]","GO-2026-6809","RUSTSEC-2026-0381","RUSTSEC-2026-0383"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"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":"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":"c64e30c28e3c0e2ac4c865fc1656b78d3404e0bf0484e55f9176b7c5f283f360"},"properties":{"dependency":{"package":"tokio","version":"1.49.0","advisory":"RUSTSEC-2026-0386","reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"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":"232458f1e861a473d11b103db83010acd3c76ee2f5eb5b53069ae6f2eda9586f"},"properties":{"dependency":{"package":"webpki-roots","version":"1.0.9","advisory":"RUSTSEC-2026-0381","aliases":["BIT-golang-2026-111943","[CVE redacted]","GO-2026-6809","RUSTSEC-2026-0382","RUSTSEC-2026-0383"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"f4999ef69e42f46a403f3866a4a634365963f93fdd6e82c0c4a8e528a960ab52"},"properties":{"dependency":{"package":"zstd","version":"0.13.3","advisory":"RUSTSEC-2026-0391","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":"06e8dc8c07565b965cad3fead890e0d682e96e4f994ab4a0654e3f10afe7962d"},"properties":{"dependency":{"package":"zstd-safe","version":"7.2.4","advisory":"RUSTSEC-2026-0395","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":"414bb4a49ee404ddc9dbe92931374dee643d4d3104e067391ed93041a77ff631"},"properties":{"dependency":{"package":"zstd-safe","version":"7.2.4","advisory":"RUSTSEC-2026-0396","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":"d67834474e5564706ab5d6117a7537fa7ddd9f89e1070ff0f40846a68262b203"},"properties":{"dependency":{"package":"zstd-safe","version":"7.2.4","advisory":"RUSTSEC-2026-0397","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":"64bc44f41a35cd29a5d01a7b192ce2cc5f1d458c15d9df1d5239ebb5b7c6fd43"},"properties":{"dependency":{"package":"zstd-safe","version":"7.2.4","advisory":"RUSTSEC-2026-0399","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":"a79bcf37fda3b3cfb40243fa81b1818f80a0fe095c267b68e3c7eee6f042ddc9"},"properties":{"dependency":{"package":"zstd-safe","version":"7.2.4","advisory":"RUSTSEC-2026-0400","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":"21df614167acad094349de8aa7cfc685e485f636d67b1ded35b43230df65a136"},"properties":{"dependency":{"package":"zstd-safe","version":"7.2.4","advisory":"RUSTSEC-2026-0401","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":"fd61c6a1a6d23109e3da0a091cdbb2ecd3102dd1235e0548e2d8ffd7db2a7005"},"properties":{"dependency":{"package":"zstd-safe","version":"7.2.4","advisory":"RUSTSEC-2026-0402","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":"a910032c7367726c7f26107809b36a5b0ab01a6e3af6f2b0cf67b659ecca9e49"},"properties":{"dependency":{"package":"zstd-safe","version":"7.2.4","advisory":"RUSTSEC-2026-0404","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":"d11388e41908d6112e7f61d01d0c0d9062830b07945356073c8069de5b88d627"},"properties":{"dependency":{"package":"zstd-safe","version":"7.2.4","advisory":"RUSTSEC-2026-0405","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":"dbb5f2efe8d9cca6344840981b65d21b774960589fc9976e6690dc84fce97102"},"properties":{"dependency":{"package":"zstd-safe","version":"7.2.4","advisory":"RUSTSEC-2026-0406","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":"d7870b77ea4843334d11fffa265d6d0542e94eec7f4c8e852762d55c28578136"},"properties":{"dependency":{"package":"zstd-safe","version":"7.2.4","advisory":"RUSTSEC-2026-0398","aliases":["RUSTSEC-2026-0403"],"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":"84f9b61ffb7d87f7a0ea344424bcbd7389e2ed41eb01432b04fba9f732cd312c"},"properties":{"dependency":{"package":"zstd-sys","version":"2.0.16\u002Bzstd.1.5.7","advisory":"RUSTSEC-2026-0410","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":"2b5765982accfbfd648ebfb3ed79e89f52afc7a6e90ff0cd9443d9ac11ab4597"},"properties":{"dependency":{"package":"@vitest/mocker","version":"4.0.16","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[GHSA redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"b35d653140e2db8d8d074934d5a01703fe2f94d4c2c5aa06161c7e55b1ce629b"},"properties":{"dependency":{"package":"minimatch","version":"10.2.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":"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"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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: 6 of 448 analysed file(s) have no living knowledge left \u2014 their last meaningful change has decayed away, so if one breaks, no one currently understands it (counted over production source files of roughly 2,400 bytes or more, excluding vendored, generated, example/demo and scaffolding-template trees and test files identified by path convention, largest first; 448 of the 578 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: crates/tokscale-core/src/model_alias.rs, packages/frontend/src/lib/db/dailyBreakdownReported.ts, packages/frontend/scripts/gallery/build-gallery.ts, packages/frontend/scripts/gallery/gallery-app.ts, packages/frontend/scripts/migrate-core.ts, packages/frontend/src/app/api/me/stats/route.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":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/model_alias.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6dc03089c413800e1ddeddac3254e223c704484e9970e62280c9c804c9c19eed"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/lib/db/dailyBreakdownReported.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc6e456d0e1421af92603e6e29b016c3c97b9fe27c6b1aee1fbb2726bbfa1fd0"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/scripts/gallery/build-gallery.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a299c8d1a446132302c4cf43e4ef4d969b78cc938f461eed747bfe4401e19110"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/scripts/gallery/gallery-app.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bae497bdcade3c8b7535ed8af40395e0bdf0de15d7a2942e92dcff243909ab2"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/scripts/migrate-core.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c30abc043743026dca9c64cbb0d1809af57b657782e33ce0137a778f87a9ba3f"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/app/api/me/stats/route.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"40ed8d5e6ed96700a0658789a7730e6d00759bbced2becff7a4e03056a180add"}},{"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":"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, mod.rs, clients.rs, lib.rs, scanner.rs, mod.rs: \u0060packages/frontend/src/lib/constants.ts\u0060 changes together with 7 other files \u2014 \u0060crates/tokscale-cli/src/main.rs\u0060, \u0060crates/tokscale-cli/src/tui/client_ui.rs\u0060, \u0060crates/tokscale-cli/src/tui/data/mod.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 7 separate couplings, not 7 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 7."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/lib/constants.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"02284e3a0300fa01deead28b4a6fd9b1acd09045c539a3a45c332418767624a3"}},{"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: clients.rs \u2194 mod.rs: \u0060crates/tokscale-core/src/clients.rs\u0060 and \u0060crates/tokscale-core/src/sessions/mod.rs\u0060 change together 63% of the time (46 of the 73 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 46 shared commits counted here, the most recent 3 are \u00602f981776\u0060 feat(qoder): add support for Qoder and Qoder CN client (#1609) (#1612); \u00607ba974f7\u0060 feat(bb): add support for BB client (#1561) (#1588); \u0060a6de490f\u0060 feat(proma): account for native and mirrored Agent session usage (#1539) \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: 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 59% of the time (24 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 24 shared commits counted here, the most recent 3 are \u00602f981776\u0060 feat(qoder): add support for Qoder and Qoder CN client (#1609) (#1612); \u00607ba974f7\u0060 feat(bb): add support for BB client (#1561) (#1588); \u0060a6de490f\u0060 feat(proma): account for native and mirrored Agent session usage (#1539) \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: clients.rs \u2194 types.ts: \u0060crates/tokscale-core/src/clients.rs\u0060 and \u0060packages/frontend/src/lib/types.ts\u0060 change together 58% of the time (36 of the 62 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 36 shared commits counted here, the most recent 3 are \u00602f981776\u0060 feat(qoder): add support for Qoder and Qoder CN client (#1609) (#1612); \u00607ba974f7\u0060 feat(bb): add support for BB client (#1561) (#1588); \u0060a6de490f\u0060 feat(proma): account for native and mirrored Agent session usage (#1539) \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 56% of the time (35 of the 62 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 35 shared commits counted here, the most recent 3 are \u00602f981776\u0060 feat(qoder): add support for Qoder and Qoder CN client (#1609) (#1612); \u00607ba974f7\u0060 feat(bb): add support for BB client (#1561) (#1588); \u0060a6de490f\u0060 feat(proma): account for native and mirrored Agent session usage (#1539) \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":"D35","level":"warning","message":{"text":"Change coupling: aggregator.rs \u2194 sessionize.rs: \u0060crates/tokscale-core/src/aggregator.rs\u0060 and \u0060crates/tokscale-core/src/sessionize.rs\u0060 change together 56% of the time (9 of the 16 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency between them. They sit in the same directory, but in this ecosystem each file is its own module \u2014 a sibling reference still needs an import \u2014 so the missing import edge is real: the coupling runs through shared behaviour, not a declared dependency. If they duplicate structure, extract the common part into one unit; otherwise the coupling is hidden and worth breaking. You can check this without leaving the row: of the 9 shared commits counted here, the most recent 3 are \u0060e9cf1041\u0060 fix(bb): count Claude and Codex responses mirrored by BB once (#1608); \u006082e20b0e\u0060 fix(copilot): merge duplicate OTEL snapshots across files (#1434); \u00607ffa5df7\u0060 feat(pi): show session titles and roll subagents into parents (#1382) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/aggregator.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba8d5c551bd5f4d98af2dd22355d9eaeaef63eb7861892fcddaef970c6ca5ce2"}},{"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 56% of the time (28 of the 50 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 28 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: 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":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"1b213f6eedd4b140d0bc37bdf1496f72811a643f34064f12518b32e9e83bcfc7"},"taxa":[{"id":"CICD-SEC-9","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"0e17f71490e4d120a48b2b2881ab866c93b272bef2febb673a3e8e42b2c288ab"},"taxa":[{"id":"CICD-SEC-9","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"759dca709f1a032fb6f624ce672e6afb5558fce53ecf01fb73618c4d33923164"},"taxa":[{"id":"CICD-SEC-9","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"eb00976a698a5d68999b7ee6d27206fd374e916853e7ff1ead5eed42386f043f"},"taxa":[{"id":"CICD-SEC-9","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"90f83b4fa27db32740afe9540c905f3c0499caed87f61049a8a903ecc95b41c3"},"taxa":[{"id":"CICD-SEC-8","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"ace515990e7ee0f17b5c17e44dd168a5bdecf90804a3a3dd845cf05540978013"},"taxa":[{"id":"CICD-SEC-3","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"AC2","level":"warning","message":{"text":"\u003CTextarea\u003E field component without a label: This UI-library field component is named only by a placeholder \u2014 a placeholder is not a label (it vanishes as soon as the user types, and many assistive technologies ignore it). Give it a real name whichever way this library supports: a label prop, an aria-label, or an id on the rendered control with a \u003Clabel htmlFor\u003E pointing at it. For a group of controls, name the group itself (aria-label, or a fieldset with a legend) \u2014 labelling each item leaves the set unnamed."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/app/(main)/groups/new/CreateGroupClient.tsx"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"8107d8a134f5405b597fbb230bc4f7cbb38ba385d79e5c7de61a3985df80c30f"}},{"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":"AC6","level":"warning","message":{"text":"Low contrast colour pair in CSS-in-JS (4.3:1): A styled-components/emotion style declares a foreground/background colour pair below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/app/u/[username]/not-found.tsx"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7149afe7f0610584876b5e7f85b96614c79aa1a70d649729e0f9fdd3e081625"}},{"ruleId":"AC6","level":"warning","message":{"text":"Focus outline removed in CSS without a :focus replacement: \u0060input\u0060 sets the outline to none/0 and no visible :focus / :focus-visible style for that element replaces it in this stylesheet, so a keyboard user cannot see where focus is. Draw a focus ring (outline, box-shadow or border) under :focus-visible."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/app/(main)/groups/[slug]/GroupDetailClient.tsx"},"region":{"startLine":293}}}],"partialFingerprints":{"codehealthFindingId/v1":"02cad4988fbafe3c83166e7b24cc045f0f8ad7de386a061af4526659b30f25b9"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060svg\u0060 moves (\u0060animation: _______ 1s linear infinite\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/components/DataInput.tsx"},"region":{"startLine":459}}}],"partialFingerprints":{"codehealthFindingId/v1":"d15f8482b1dd396678ad036963d45ed48b5468bf083ffb2cd6afb4c3724d903a"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.css-in-js\u0060 moves (\u0060animation: spin 60s linear infinite\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/components/layout/Footer.tsx"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"395fc68f5a26a251978dcba4a0e9ee7ac9d0ad36f6a5709658b07b3b324fd09e"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060svg\u0060 moves (\u0060transition: transform 0.2s ease\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/components/landing/sections/HeroSection.tsx"},"region":{"startLine":479}}}],"partialFingerprints":{"codehealthFindingId/v1":"19c301f4d849696a09a13308eeb7c01f0d4fc91e68f16ab7cfafc604277d495a"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060a ____________ img\u0060 moves (\u0060transition: transform 160ms ease, box-shadow 160ms ease\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/components/home/InstagramSection.tsx"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e7908664c946611b03cd84148d0d0f56fa3ccc965ca5b9892bc34cc132acd2a"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.css-in-js ____________ span[aria-hidden]\u0060 moves (\u0060transition: transform 120ms ease\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/components/home/primitives.tsx"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6d06b99dcc47af8ba6a8044f3a92334be2d6855d902c13af63a991623233979"}},{"ruleId":"C1","level":"warning","message":{"text":"No data-protection/encryption: No encryption usage (RustCrypto\u0027s aes-gcm/chacha20poly1305 encrypting, ring or aws-lc-rs aead sealing, orion, libsodium\u0027s secretbox, openssl symm, age, SQLCipher keyed by PRAGMA key, pgcrypto, MongoDB client-side field-level encryption, the OS keyring) was found, and this repository persists personal data in the model cited here \u2014 sensitive data at rest may be unprotected. If TDE/KMS/vault is delegated to infrastructure, ignore."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/lib/db/migrations/0000_add_user_id_unique_constraint.sql"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fd161f7cd260a53c9680336e3e1048cf61e1330f339680c370f37fca84d0cc5"}},{"ruleId":"C4","level":"note","message":{"text":"Partial data-retention evidence: A retention mechanism is present, but the data-lifecycle is not yet complete \u2014 missing: a scheduled purge / cleanup job (a scheduled task that deletes rows past their retention \u2014 diesel::delete(\u2026.filter(created_at.lt(cutoff))), purge_expired\u2026 / delete_old\u2026), a documented retention period / data-expiry."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"e6c843eccaff7ffcfe5241125b74768c2364055ab6678b12b10d47f44086afa4"}},{"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/6 runnable modules use logging (modules with no entry point or server are excluded \u2014 they are libraries a runnable module hosts). Silent: \u0060.\u0060, \u0060packages/cli\u0060, \u0060packages/frontend\u0060, \u0060packages/tokscale\u0060."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"91a94e21d6d4d0e6a2003f94505b0b02b157176f0b24c4820f3f82b4447a97fe"}},{"ruleId":"P3","level":"note","message":{"text":"No dependency-update automation: \u0060package.json\u0060 declares packages, and nothing in the repository keeps them current: no Dependabot or Renovate configuration that schedules updates, and no dependency-review gate on pull requests. A pinned dependency stays at the version it was added at until someone notices \u2014 including after an advisory is published against it. Add a \u0060.github/dependabot.yml\u0060 with one \u0060package-ecosystem\u0060 entry per ecosystem the tree uses (or an enabled \u0060renovate.json\u0060), and gate pull requests with \u0060actions/dependency-review-action\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"package.json"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b237f7efe841e3a95b381b232502a3a473094adeb069a11eaca8ca533fb1c34"}},{"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: \u0060existsSync\u0060 in \u0060leaderboardPage\u0060 blocks the event loop until it finishes \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/scripts/stealth/fetch-profiles.ts"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d2f9e6373c994d625a031631a7d4d74aecb2a3d05b2f82b52d2e865adb7bab6"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060readFileSync\u0060 in \u0060leaderboardPage\u0060 blocks the event loop until it finishes \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/scripts/stealth/fetch-profiles.ts"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc25703ce5c25aeb12847a7439f308a8fe31067407edddbcac17828195955f77"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060mkdirSync\u0060 in \u0060main\u0060 blocks the event loop until it finishes \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/scripts/stealth/fetch-profiles.ts"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"514ba82e3ededee423cc0b691df9a9b17421f280c8044b5ac261d2c6d8454c93"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060existsSync\u0060 in \u0060main\u0060 blocks the event loop until it finishes \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/scripts/stealth/fetch-profiles.ts"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5051ab67f9cad81d34f4abc78668fd10ebb10c2a1cebc1c16b0deacf8b476ce"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplication concentrated across 9 sibling directories (37 clone groups): 37 duplicated blocks under packages/frontend/src/app/(main)/capital/ have copies in at least two of the sibling directories _components, companies, compute, deals, investors, methodology (\u002B3 more sibling(s) not listed) \u2014 31 of them are reported below, and 6 are counted here but not reported individually: those copies match on shape but no longer clear R10\u0027s bar for an individually reported row \u2014 either they kept neither their own names nor their values, or what was copied is too small to stand on its own (it reports near-exact duplication only, and only of substantial extent). What this row states is the concentration, which the detector measured over all 37 and which does not depend on how exactly each block\u0027s copies still match. That concentration is one structural fact, not 37 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 37 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/(main)/capital/compute/page.tsx"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f7f65a618297ed03091d9fd5a42275505c2c56e864c38d7f130c7276220a1d0"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplication concentrated across 3 sibling directories (27 clone groups): 27 duplicated blocks under packages/frontend/src/ have copies in at least two of the sibling directories app, components, lib \u2014 14 of them are reported below, and 13 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 27 and which does not depend on how exactly each block\u0027s copies still match. That concentration is one structural fact, not 27 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 27 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 10 sibling directories (15 clone groups): 15 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 5 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 15 and which does not depend on how exactly each block\u0027s copies still match. That concentration is one structural fact, not 15 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 15 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/badge/[username]/svg/route.ts"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"0111c46b380780fd707e66d40947b985d61226ff3ed17a20e4cfa8cd90101a50"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplication concentrated across 6 sibling directories (9 clone groups): 9 duplicated blocks under packages/frontend/src/app/(main)/ have copies in at least two of the sibling directories capital, groups, leaderboard, methodology, privacy, terms \u2014 5 of them are reported below, and 4 are counted here but not reported individually: those copies match on shape but no longer clear R10\u0027s bar for an individually reported row \u2014 either they kept neither their own names nor their values, or what was copied is too small to stand on its own (it reports near-exact duplication only, and only of substantial extent). What this row states is the concentration, which the detector measured over all 9 and which does not depend on how exactly each block\u0027s copies still match. That concentration is one structural fact, not 9 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 9 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/(main)/groups/[slug]/GroupDetailClient.tsx"},"region":{"startLine":818}}}],"partialFingerprints":{"codehealthFindingId/v1":"c552cf89783f77fe820cd0941c72a493b6af2d36c9e2baec25a7ac024b072248"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplication concentrated across 5 sibling directories (5 clone groups): 5 of the duplicated blocks reported below have copies in at least two of the sibling directories invite, leaderboard, leave, members, transfer-ownership under packages/frontend/src/app/api/groups/[slug]/. 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]/leave/route.ts"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"8aca15845bfa4bbaf14d687a8ee5e8d553ad57d26319fc2c04a0332e3952ba50"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplication concentrated across 6 sibling directories (5 clone groups): 5 duplicated blocks under packages/frontend/src/components/ have copies in at least two of the sibling directories explore, home, landing, layout, leaderboard, ui \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/components/landing/sections/FooterSection.tsx"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"33da95eee66ead6a3f999e10bffc8e0f9a162f82adffca1f353acd1369a91a52"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplication concentrated across 5 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, explore, 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/auth/session.ts"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"9be73848f699fffc9ad93c5488f32e28942f36ed7e4e610fbc6152ba4b9cecea"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (109 matched lines \u00D7 2 locations): packages/frontend/src/components/explore/UsageBoards.tsx:380 \u00B7 packages/frontend/src/components/explore/UsageBoards.tsx:510 \u2014 the two spans are one implementation copied and then locally edited \u2014 762 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/explore/UsageBoards.tsx"},"region":{"startLine":380}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f5f1dbfc732ed6fe50f36db3a8cd0b3c877c354a61e6aa68abbbf699e75c7b6"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (77 matched lines \u00D7 2 locations): packages/frontend/scripts/capital/build-org-ids.ts:91 \u00B7 packages/frontend/scripts/capital/lib/sec-client.ts:125 \u2014 the two spans are one implementation copied and then locally edited \u2014 635 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/scripts/capital/build-org-ids.ts"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"93a8654a09938ea856272adc97f2de37bf327ced5e9a3e86a2872e9a4cecaa05"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (75 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:56 \u2014 the two spans are one implementation copied and then locally edited \u2014 484 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":"4d0c54ae3a15a049687d91bd3acb8c8ae7966c54812eae21291ca5109016a88b"}},{"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 (60 matched lines \u00D7 2 locations): packages/frontend/src/lib/embed/renderMinimalEmbedSvg.ts:25 \u00B7 packages/frontend/src/lib/embed/renderTerminalEmbedSvg.ts:25 \u2014 the two spans are one implementation copied and then locally edited \u2014 352 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":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ff016d48fb4fa2763f79c0e08625c2a5d5462fa24b5811f29290a18b971f233"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (50 matched lines \u00D7 2 locations): packages/frontend/src/lib/embed/renderGraphEmbedSvg.ts:31 \u00B7 packages/frontend/src/lib/embed/renderOrbitEmbedSvg.ts:34 \u2014 the two spans are one implementation copied and then locally edited \u2014 254 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/renderGraphEmbedSvg.ts"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"e86a663ee0f1c2aac33e187d88455019562ea3e1b136181c98a04f09bf5c93a3"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (49 matched lines \u00D7 2 locations): packages/frontend/src/app/(main)/capital/compute/page.tsx:40 \u00B7 packages/frontend/src/app/(main)/capital/rounds/page.tsx:33 \u2014 the two spans are one implementation copied and then locally edited \u2014 486 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)/capital/compute/page.tsx"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"418abbaf7816061477de346e89eb6f3c5b15b5184c65ebaae24fe4bd8571f365"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (42 lines \u00D7 2 locations): packages/frontend/src/lib/groups/queries.ts:39 \u00B7 packages/frontend/src/lib/groups/queries.ts:85 \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 (41 matched lines \u00D7 2 locations): packages/frontend/src/app/(main)/capital/companies/[slug]/page.tsx:448 \u00B7 packages/frontend/src/app/(main)/capital/compute/page.tsx:141 \u2014 the two spans are one implementation copied and then locally edited \u2014 336 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)/capital/companies/[slug]/page.tsx"},"region":{"startLine":448}}}],"partialFingerprints":{"codehealthFindingId/v1":"26d7d28db507009188e743d4056f92bbb2b46e5a56d282cd60c53a14bc3d7206"}},{"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 (39 lines \u00D7 2 locations): packages/frontend/src/app/(main)/capital/deals/[slug]/page.tsx:10 \u00B7 packages/frontend/src/app/(main)/capital/rounds/[slug]/page.tsx:10 \u2014 the 2 copies are spread across 2 files, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct \u2014 and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal\u0027s entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins \u2014 a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/app/(main)/capital/deals/[slug]/page.tsx"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"93a59182bb3fc5ac80477e55aa36d4cdc3285141fce91ab78d388280dc44a222"}},{"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 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/app/api/users/[username]/devices/[deviceId]/route.ts"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"5568c9f60c0012ce7590a54e4cd58039f9f530ecfbff3037d08dcb64275ed068"}},{"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 with local edits (37 matched lines \u00D7 2 locations): packages/frontend/src/components/explore/ScoreTimeline.tsx:418 \u00B7 packages/frontend/src/components/explore/TrendChart.tsx:216 \u2014 the two spans are one implementation copied and then locally edited \u2014 230 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/explore/ScoreTimeline.tsx"},"region":{"startLine":418}}}],"partialFingerprints":{"codehealthFindingId/v1":"48ae51451561add2483a51d9d8b803eb5b200699c089fe46782724afc6ba8b00"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (35 matched lines \u00D7 2 locations): packages/frontend/src/components/TokenGraph2D.tsx:266 \u00B7 packages/frontend/src/components/TokenGraph3D.tsx:269 \u2014 the two spans are one implementation copied and then locally edited \u2014 279 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":266}}}],"partialFingerprints":{"codehealthFindingId/v1":"e95fb4589f8610c840f1efcca8d38f914c23ed051abb0679cb78cd8503a97fa7"}},{"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 (31 lines \u00D7 2 locations): packages/frontend/src/app/(main)/groups/[slug]/GroupDetailClient.tsx:818 \u00B7 packages/frontend/src/app/(main)/leaderboard/LeaderboardClient.tsx:1363 \u2014 the 2 copies are spread across 2 files, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct \u2014 and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal\u0027s entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins \u2014 a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/app/(main)/groups/[slug]/GroupDetailClient.tsx"},"region":{"startLine":818}}}],"partialFingerprints":{"codehealthFindingId/v1":"a37e1c4c584551fb6dbda39922d6c4f87cc780f63848b55b135a745ab92e119a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (29 matched lines \u00D7 2 locations): packages/frontend/src/app/api/badge/[username]/svg/route.ts:24 \u00B7 packages/frontend/src/app/api/embed/[username]/svg/route.ts:40 \u2014 the two spans are one implementation copied and then locally edited \u2014 194 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/badge/[username]/svg/route.ts"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"a840b56d0305eb2075d93e7e441f61452d638b52d9874eb7450dec5808879b9a"}},{"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 with local edits (28 matched lines \u00D7 2 locations): packages/frontend/src/app/(main)/models/all/page.tsx:26 \u00B7 packages/frontend/src/app/(main)/models/page.tsx:25 \u2014 the two spans are one implementation copied and then locally edited \u2014 198 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)/models/all/page.tsx"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa2447a394aa8f01f5cf9ac02c292dcd8fb7fb5571f65c8e53f6d09461508293"}},{"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 (24 lines \u00D7 2 locations): packages/frontend/src/lib/db/antigravityTransition.ts:87 \u00B7 packages/frontend/src/lib/db/micodeTransition.ts:47 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/lib/db/antigravityTransition.ts"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"02f6fd1328421b554eb11ccec84623e2e748200adc31031ad32c8829a496c182"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2 locations): packages/frontend/src/lib/embed/renderBlueprintEmbedSvg.ts:170 \u00B7 packages/frontend/src/lib/embed/renderReceiptEmbedSvg.ts:104 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/lib/embed/renderBlueprintEmbedSvg.ts"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"68fb0cde0a3df1b97716a0cfd4f12cbbdcbb6d288e70ff8f72d42f1cfed3cc3b"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (23 matched lines \u00D7 2 locations): packages/frontend/src/app/api/settings/account/route.ts:41 \u00B7 packages/frontend/src/app/api/settings/submitted-data/route.ts:36 \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/app/api/settings/account/route.ts"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9c167f5c5a9e7ba2922de363bba2af9d17faa6865ab0950bb4a51e18bdbdfdc"}},{"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:507 \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/(main)/tracker/TrackerPageClient.tsx:100 \u00B7 packages/frontend/src/components/home/HomePage.tsx:38 \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/(main)/tracker/TrackerPageClient.tsx"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"5798899eaa277f47ba83678ea3384c7f1e4d694677edd2de81ad53da6b7c776c"}},{"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:27 \u00B7 packages/frontend/src/lib/embed/renderMinimalEmbedSvg.ts:25 \u00B7 packages/frontend/src/lib/embed/renderOrbitEmbedSvg.ts:26 \u00B7 packages/frontend/src/lib/embed/renderReceiptEmbedSvg.ts:26 \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":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"02aa49835192ee6abd180d77d49532dcaa63512db677c011b9e66148a205f966"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2 locations): packages/frontend/src/app/(main)/tracker/TrackerPageClient.tsx:296 \u00B7 packages/frontend/src/components/home/HomePage.tsx:87 \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/(main)/tracker/TrackerPageClient.tsx"},"region":{"startLine":296}}}],"partialFingerprints":{"codehealthFindingId/v1":"e79c1242ac5c2a44919f48eaa7c3b345c534ca477a9d7a397672ce65ffc683f0"}},{"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:523 \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 with local edits (18 matched lines \u00D7 2 locations): packages/frontend/src/app/api/groups/[slug]/leaderboard/route.ts:9 \u00B7 packages/frontend/src/app/api/leaderboard/route.ts:10 \u2014 the two spans are one implementation copied and then locally edited \u2014 190 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":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"660e9eded0fef2a9345c1e7007530745cd4215f2f18280cc2e83d5cae41e93bd"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2 locations): packages/frontend/src/app/device/DeviceClient.tsx:293 \u00B7 packages/frontend/src/app/device/DeviceClient.tsx:328 \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":293}}}],"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/(main)/capital/companies/[slug]/page.tsx:652 \u00B7 packages/frontend/src/app/(main)/capital/investors/[slug]/page.tsx:93 \u2014 the 2 copies are spread across 2 files, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct \u2014 and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal\u0027s entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins \u2014 a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/app/(main)/capital/companies/[slug]/page.tsx"},"region":{"startLine":652}}}],"partialFingerprints":{"codehealthFindingId/v1":"98a577758023c92c50d0bef6e589d029eed4b48049ca205cad668c4bbcbe0115"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2 locations): packages/frontend/src/app/(main)/capital/companies/[slug]/page.tsx:883 \u00B7 packages/frontend/src/app/(main)/capital/companies/[slug]/page.tsx:905 \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/app/(main)/capital/companies/[slug]/page.tsx"},"region":{"startLine":883}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e286bf04db8716995d8848ddedb0eab5f2426813abc043e12c0cd9bb2841213"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2 locations): packages/frontend/src/app/api/groups/[slug]/leave/route.ts:9 \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]/leave/route.ts"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"973eb74be19ddb632aad821c903695c976fbd005ccfcd10508e564e6e8d6370c"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2 locations): packages/frontend/src/app/settings/SettingsClient.tsx:1070 \u00B7 packages/frontend/src/app/settings/SettingsClient.tsx:1130 \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":1070}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9534351fa041944e2820b040ead965419f66c4bb694beb89fb7dc210fc04fec"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2 locations): packages/frontend/src/components/landing/sections/FooterSection.tsx:11 \u00B7 packages/frontend/src/components/layout/ServiceFooter.tsx:14 \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/components/landing/sections/FooterSection.tsx"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f17869630dcae567fd316846aaf3ee2160632b6fa80e4998e2eeab0de7b3949"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (16 matched lines \u00D7 2 locations): packages/frontend/src/app/(main)/groups/[slug]/GroupDetailClient.tsx:607 \u00B7 packages/frontend/src/app/(main)/groups/join/[token]/JoinGroupClient.tsx:136 \u2014 the two spans are one implementation copied and then locally edited \u2014 86 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":607}}}],"partialFingerprints":{"codehealthFindingId/v1":"38e80a2423af1fa1f51e99cc8857d0860375646fb8241c2958821f78f045dcee"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2 locations): packages/frontend/src/app/(main)/tracker/TrackerPageClient.tsx:279 \u00B7 packages/frontend/src/components/home/HomePage.tsx:65 \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/(main)/tracker/TrackerPageClient.tsx"},"region":{"startLine":279}}}],"partialFingerprints":{"codehealthFindingId/v1":"905d341873854beca078915c9c7f04bdc30ed82e52fe7f1050fecfd3fd123a8d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2 locations): packages/frontend/src/components/explore/CapabilityCharts.tsx:402 \u00B7 packages/frontend/src/components/explore/CapabilityCharts.tsx:450 \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/explore/CapabilityCharts.tsx"},"region":{"startLine":402}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ace0488ee747618ab5d825fa451af6b466821f1dc64b066ad8cd72a35d6527d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2 locations): packages/frontend/src/app/(main)/capital/_components/CapexTable.tsx:16 \u00B7 packages/frontend/src/app/(main)/capital/investors/page.tsx:92 \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/(main)/capital/_components/CapexTable.tsx"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"6225f0db0cae9b14d5dd197c5ae97a038e13ccd2bb1021610050c59afc0e144e"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2 locations): packages/frontend/src/app/(main)/groups/[slug]/GroupDetailClient.tsx:500 \u00B7 packages/frontend/src/app/(main)/leaderboard/LeaderboardClient.tsx:903 \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/(main)/groups/[slug]/GroupDetailClient.tsx"},"region":{"startLine":500}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d82e5e67655de2dab5f4ab53a7fbfd7c6f22019d9a48ccfda94374100d27bbf"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (15 matched lines \u00D7 2 locations): packages/frontend/src/app/(main)/groups/join/[token]/JoinGroupClient.tsx:132 \u00B7 packages/frontend/src/app/(main)/leaderboard/LeaderboardClient.tsx:1029 \u2014 the two spans are one implementation copied and then locally edited \u2014 79 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/join/[token]/JoinGroupClient.tsx"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"76596a316094b5e0ebc1f9b5290b7e3d679091c6121ad59a8d52806a1bb9be13"}},{"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/db/antigravityStateCoverage.ts:38 \u00B7 packages/frontend/src/lib/db/antigravityTransition.ts:65 \u2014 the 2 copies are spread across 2 files, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct \u2014 and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal\u0027s entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins \u2014 a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/lib/db/antigravityStateCoverage.ts"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"20ea41a2d3b322f0058d5ededca8891cacab9863147567fc3f35b619b8775130"}},{"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:465 \u00B7 packages/frontend/src/lib/publicProfileData.ts:528 \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":465}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd5b00c0df7241b53d33692ab26d9cf5ba1c581cb05656e558a7340dd9d3c7dd"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2 locations): packages/frontend/scripts/capital/lib/source-cache.ts:194 \u00B7 packages/frontend/scripts/capital/lib/source-cache.ts:270 \u2014 both copies are in the same file, so extract the block 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/scripts/capital/lib/source-cache.ts"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"12f67d1a796055bcc8e303c87d47b874480dcb296c6c4a16cc00c92fd0869fef"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2 locations): packages/frontend/src/app/(main)/capital/_components/EventDetail.tsx:185 \u00B7 packages/frontend/src/app/(main)/capital/companies/[slug]/page.tsx:809 \u2014 the 2 copies are spread across 2 files, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct \u2014 and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal\u0027s entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins \u2014 a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/app/(main)/capital/_components/EventDetail.tsx"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e65dc51cf930bc4b0a7b51a30052d465b62d3f4305ca8cc74e479ba85f8b0c9"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2 locations): packages/frontend/src/app/(main)/capital/companies/page.tsx:414 \u00B7 packages/frontend/src/app/(main)/capital/sectors/[slug]/page.tsx:129 \u2014 the 2 copies are spread across 2 files, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct \u2014 and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal\u0027s entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins \u2014 a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/app/(main)/capital/companies/page.tsx"},"region":{"startLine":414}}}],"partialFingerprints":{"codehealthFindingId/v1":"36ef0501fa2c6837e6569f08cabb8692641c0e6b22b67bdb76e848ad8f5508db"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2 locations): packages/frontend/src/app/(main)/leaderboard/LeaderboardClient.tsx:1473 \u00B7 packages/frontend/src/app/(main)/leaderboard/LeaderboardClient.tsx:1487 \u2014 both copies are in the same file, so extract the block 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":1473}}}],"partialFingerprints":{"codehealthFindingId/v1":"47ae0237d98122dd831335100fd4db95ab25ee1c6ec9451ede4352cc860b7ada"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2 locations): packages/frontend/src/app/(main)/leaderboard/page.tsx:298 \u00B7 packages/frontend/src/app/(main)/leaderboard/page.tsx:313 \u2014 both copies are in the same file, so extract the block 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/page.tsx"},"region":{"startLine":298}}}],"partialFingerprints":{"codehealthFindingId/v1":"4300b8e4e3dba6e82631d3aadcd03d4c5a779cf38588863e8007c89bc6900e00"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (14 matched lines \u00D7 2 locations): packages/frontend/src/app/api/users/[username]/groups/route.ts:13 \u00B7 packages/frontend/src/lib/publicProfileData.ts:103 \u2014 the two spans are one implementation copied and then locally edited \u2014 97 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]/groups/route.ts"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"1eb6e3af54568dc0b349b410ba2d570bf347f3e3acd029c380669fa71f916896"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (14 matched lines \u00D7 2 locations): packages/frontend/src/app/device/DeviceClient.tsx:229 \u00B7 packages/frontend/src/components/layout/Navigation.tsx:500 \u2014 the two spans are one implementation copied and then locally edited \u2014 88 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/device/DeviceClient.tsx"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"64c5f6cba2dd007810c4b53e3960dda4392d49c53efd0df69d794687af6d140e"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2 locations): packages/frontend/src/lib/db/helpers.ts:437 \u00B7 packages/frontend/src/lib/db/helpers.ts:473 \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/db/helpers.ts"},"region":{"startLine":437}}}],"partialFingerprints":{"codehealthFindingId/v1":"68cc29ddfee8e8d66ab662a2e439256ab50a10969efd4c1a5c7e0cad2fa7d793"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2 locations): packages/frontend/src/app/(main)/capital/page.tsx:238 \u00B7 packages/frontend/src/app/(main)/capital/spending/page.tsx:120 \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/(main)/capital/page.tsx"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd488f61e6dc97d36a209214ed247cc8925b0c49064b27fda1e17c8d6e8ff339"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (13 matched lines \u00D7 2 locations): packages/frontend/src/app/(main)/groups/[slug]/GroupDetailClient.tsx:568 \u00B7 packages/frontend/src/app/(main)/groups/[slug]/GroupDetailClient.tsx:648 \u2014 the two spans are one implementation copied and then locally edited \u2014 107 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/app/(main)/groups/[slug]/GroupDetailClient.tsx"},"region":{"startLine":568}}}],"partialFingerprints":{"codehealthFindingId/v1":"912eda4e528e18d9e4a29af5dec8484458b045448a53bc512391beccebfb3fb6"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2 locations): packages/frontend/src/app/api/groups/[slug]/invite/route.ts:16 \u00B7 packages/frontend/src/app/api/groups/[slug]/transfer-ownership/route.ts:18 \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":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"440c4cfce8d310fe93b33543580db5783aa44b5a6cab3fa4521abafbdeaff956"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2 locations): packages/frontend/src/app/api/groups/[slug]/route.ts:86 \u00B7 packages/frontend/src/app/api/groups/[slug]/route.ts:196 \u2014 both copies are in the same file, so extract the block 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":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"810ecebd958f97f49d4e2bf106805583aaaca5a400152ed353c506f05373252c"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2 locations): packages/frontend/src/components/layout/PublicFooter.tsx:56 \u00B7 packages/frontend/src/components/layout/ServiceFooter.tsx:30 \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/layout/PublicFooter.tsx"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bedd45301b1046f5b8c5539332da5945dcfbf393f41465ddba1ea145556ee35"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3 locations): packages/frontend/src/lib/embed/renderOrbitEmbedSvg.ts:152 \u00B7 packages/frontend/src/lib/embed/renderReceiptEmbedSvg.ts:142 \u00B7 packages/frontend/src/lib/embed/renderTerminalEmbedSvg.ts:120 \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":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"0496293258a65bfc3434f935c0e13a01936bec4f642d710fa057bab9e9459063"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2 locations): packages/frontend/src/lib/explore/rollup.ts:241 \u00B7 packages/frontend/src/lib/explore/rollup.ts:257 \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/explore/rollup.ts"},"region":{"startLine":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f83c28f12bc4d2dc1af4f55ef36123ea07a08175a46daf922da5bcff0260073"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2 locations): packages/frontend/src/lib/publicProfileData.ts:450 \u00B7 packages/frontend/src/lib/publicProfileData.ts:513 \u2014 both copies are in the same file, so extract the block 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":450}}}],"partialFingerprints":{"codehealthFindingId/v1":"f522d694cd77d3f3eb645e6c46167d2471b7d10ce8a15d70e75e6f68309a9a0d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2 locations): packages/frontend/src/app/(main)/capital/companies/[slug]/page.tsx:298 \u00B7 packages/frontend/src/app/(main)/capital/spending/page.tsx:147 \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/(main)/capital/companies/[slug]/page.tsx"},"region":{"startLine":298}}}],"partialFingerprints":{"codehealthFindingId/v1":"5af396359f02c6605134a8834f49db05471642cd0930af0fd10a082424d67e56"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2 locations): packages/frontend/src/app/(main)/capital/companies/page.tsx:333 \u00B7 packages/frontend/src/app/(main)/capital/sectors/[slug]/page.tsx:112 \u2014 the 2 copies are spread across 2 files, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct \u2014 and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal\u0027s entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins \u2014 a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/app/(main)/capital/companies/page.tsx"},"region":{"startLine":333}}}],"partialFingerprints":{"codehealthFindingId/v1":"62ca8c6da0083dee089c60b31432465cd413cce697020d8be41cce71fda5cc45"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2 locations): packages/frontend/src/app/(main)/models/[key]/page.tsx:162 \u00B7 packages/frontend/src/app/(main)/models/[key]/page.tsx:199 \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/app/(main)/models/[key]/page.tsx"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"a614c8bf4791ad3019e2b639d55dd8308ff5c3af185ab353de140f039bfd0a18"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2 locations): packages/frontend/src/app/api/auth/device/poll/route.ts:71 \u00B7 packages/frontend/src/app/api/leaderboard/user/[username]/route.ts:61 \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/auth/device/poll/route.ts"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2aee85db3bf87fc06fdd80f5d5ec540cbf6d46ee3cc605f02b9400945bc9e0c"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 4 locations): packages/frontend/src/app/api/groups/[slug]/members/route.ts:56 \u00B7 packages/frontend/src/app/api/groups/[slug]/route.ts:78 \u00B7 packages/frontend/src/app/api/groups/[slug]/route.ts:188 \u00B7 packages/frontend/src/app/api/groups/join/[token]/route.ts:32 \u2014 the 4 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/groups/[slug]/members/route.ts"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b0e76bda81e6206514c9732341b5bd018d32ad4d39ac2b3699bb9ec87f3730d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2 locations): packages/frontend/src/app/api/settings/devices/[deviceId]/route.ts:34 \u00B7 packages/frontend/src/app/api/settings/tokens/[tokenId]/route.ts:5 \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/settings/devices/[deviceId]/route.ts"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bf29fbd2b071c0a9f1963b588ac823c633ee015cee9c578c4481013bdee39b6"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2 locations): packages/frontend/src/app/api/submit/route.ts:650 \u00B7 packages/frontend/src/app/api/submit/route.ts:700 \u2014 both copies are in the same file, so extract the block 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/submit/route.ts"},"region":{"startLine":650}}}],"partialFingerprints":{"codehealthFindingId/v1":"2881c107078cbddf070e207d0a9272fd324977e6d1d92f7277795ab1f4bc7824"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2 locations): packages/frontend/src/app/api/users/[username]/groups/route.ts:32 \u00B7 packages/frontend/src/lib/groups/queries.ts:95 \u2014 the 2 copies are spread across 2 files, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct \u2014 and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal\u0027s entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins \u2014 a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/app/api/users/[username]/groups/route.ts"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8872cc7b83f5479f034e9e19bc766a7680a4abe040f40461c129ebeecf8c71b"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2 locations): packages/frontend/src/components/explore/ExploreUI.tsx:175 \u00B7 packages/frontend/src/components/leaderboard/RankingUI.tsx:393 \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/explore/ExploreUI.tsx"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"8834440687febaa4d128fbf1da1b00224c3b820b20fa2d58f536957a5fcbff34"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): packages/frontend/scripts/gallery/gallery-app.ts:99 \u00B7 packages/frontend/scripts/gallery/gallery-app.ts:111 \u2014 both copies are in the same file, so extract the block 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/scripts/gallery/gallery-app.ts"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1d9b2af4534db2c6bc5c325ee00df6546e6f0d96631c7a352ce6b0031d4a437"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): packages/frontend/src/app/(main)/capital/_components/EventDetail.tsx:256 \u00B7 packages/frontend/src/app/(main)/capital/compute/page.tsx:98 \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/(main)/capital/_components/EventDetail.tsx"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"87cc30863a83c4303bfa1d974c2dd9e2ab4b85b4028744ed330b859c4834c239"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 4 locations): packages/frontend/src/app/(main)/capital/companies/[slug]/page.tsx:434 \u00B7 packages/frontend/src/app/(main)/capital/compute/page.tsx:125 \u00B7 packages/frontend/src/app/(main)/capital/investors/[slug]/page.tsx:163 \u00B7 packages/frontend/src/app/(main)/capital/rounds/page.tsx:101 \u2014 the 4 copies are spread across 4 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/app/(main)/capital/companies/[slug]/page.tsx"},"region":{"startLine":434}}}],"partialFingerprints":{"codehealthFindingId/v1":"0bbfa5d4f32f9e9069627675e1528d16ca4f8a05273927cb324002c2b66fdcc3"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): packages/frontend/src/app/(main)/capital/companies/[slug]/page.tsx:937 \u00B7 packages/frontend/src/app/(main)/capital/investors/[slug]/page.tsx:242 \u2014 the 2 copies are spread across 2 files, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct \u2014 and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal\u0027s entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins \u2014 a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/app/(main)/capital/companies/[slug]/page.tsx"},"region":{"startLine":937}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1e0016794d777f35e193dd402eb2a8d9f784176070672882c5ec946cd4fa704"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3 locations): packages/frontend/src/app/(main)/capital/companies/page.tsx:235 \u00B7 packages/frontend/src/app/(main)/capital/companies/page.tsx:253 \u00B7 packages/frontend/src/app/(main)/capital/companies/page.tsx:283 \u2014 all 3 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/app/(main)/capital/companies/page.tsx"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"d014c914dae1a4c9e44af7c310fa7975f128caed9d9c955d257b65a4e31d21f3"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): packages/frontend/src/app/(main)/capital/page.tsx:22 \u00B7 packages/frontend/src/app/(main)/capital/spending/page.tsx:19 \u2014 the 2 copies are spread across 2 files, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct \u2014 and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal\u0027s entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins \u2014 a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/app/(main)/capital/page.tsx"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"6df8ca30bfe5ac8187f506bfa821969c34883714c0355966dbee8e32a50bd644"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): packages/frontend/src/app/(main)/capital/spending/page.tsx:196 \u00B7 packages/frontend/src/app/(main)/capital/spending/page.tsx:218 \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/app/(main)/capital/spending/page.tsx"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ce7096a1805673915b5b2bef7146a23ff567ddcc579b49f81b4c49c2ecdd61f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): packages/frontend/src/app/(main)/groups/[slug]/opengraph-image.tsx:12 \u00B7 packages/frontend/src/app/u/[username]/opengraph-image.tsx:14 \u2014 the 2 copies are spread across 2 files, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct \u2014 and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal\u0027s entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins \u2014 a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/app/(main)/groups/[slug]/opengraph-image.tsx"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"911625600f3d01da9edd81a66c7c5dad1ad64009a1953f8600ca1eeaba1bf405"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3 locations): packages/frontend/src/app/api/groups/[slug]/leave/route.ts:43 \u00B7 packages/frontend/src/app/api/groups/[slug]/members/route.ts:134 \u00B7 packages/frontend/src/app/api/groups/[slug]/route.ts:223 \u2014 the 3 copies are spread across 3 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another. There is one copy in each of 3 separate files rather than several in one place, so check first whether these are sibling modules that each declare their own version of one shape \u2014 one per entity, per provider, per language. Where they are, no single extracted module collapses them: each module still has to be written, and what recurs is the TEMPLATE. The moves that do collapse a template are to generate these modules from the set they enumerate, or to replace the repeated construction with one factory each site calls with its own values \u2014 and where the set is the point, each module pinning one distinct thing, the repetition IS the enumeration and there is nothing to delete."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/app/api/groups/[slug]/leave/route.ts"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"095fa667c6a898ad7581dca750d15aee3895697377c9fe26066f1162e3fba017"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): packages/frontend/src/app/settings/SettingsClient.tsx:536 \u00B7 packages/frontend/src/app/settings/SettingsClient.tsx:573 \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/app/settings/SettingsClient.tsx"},"region":{"startLine":536}}}],"partialFingerprints":{"codehealthFindingId/v1":"04ee96c37261eb9cfd8cac65d10fa6c1f51e8932a5d5204831a660a6ec74f198"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 5 locations): packages/frontend/src/lib/embed/renderBlueprintEmbedSvg.ts:218 \u00B7 packages/frontend/src/lib/embed/renderMinimalEmbedSvg.ts:102 \u00B7 packages/frontend/src/lib/embed/renderOrbitEmbedSvg.ts:154 \u00B7 packages/frontend/src/lib/embed/renderReceiptEmbedSvg.ts:144 \u00B7 \u002B1 more site(s) not listed \u2014 the 5 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it. There is one copy in each of 5 separate files rather than several in one place, so check first whether these are sibling modules that each declare their own version of one shape \u2014 one per entity, per provider, per language. Where they are, no single extracted module collapses them: each module still has to be written, and what recurs is the TEMPLATE. The moves that do collapse a template are to generate these modules from the set they enumerate, or to replace the repeated construction with one factory each site calls with its own values \u2014 and where the set is the point, each module pinning one distinct thing, the repetition IS the enumeration and there is nothing to delete."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/lib/embed/renderBlueprintEmbedSvg.ts"},"region":{"startLine":218}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ff2b293992c3a2878e294830e0563e5e1c5e14b5f8aad3a91c35013a5ddf60b"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): packages/frontend/src/lib/embed/renderProfileEmbedSvg.ts:143 \u00B7 packages/frontend/src/lib/embed/renderVitalsEmbedSvg.ts:87 \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/renderProfileEmbedSvg.ts"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ea9f9b97ffc1a3508cff4a6cef927a78943d5668fd4274e45846bc9700c8cb3"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): packages/frontend/src/app/(main)/capital/_components/EventDetail.tsx:212 \u00B7 packages/frontend/src/app/(main)/capital/methodology/page.tsx:89 \u2014 the 2 copies are spread across 2 files, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct \u2014 and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal\u0027s entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins \u2014 a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/app/(main)/capital/_components/EventDetail.tsx"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"e03baffa38c6b25190260387d6399287c5f50204bd7b413740f80d5ea3b8c753"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): packages/frontend/src/app/(main)/capital/_components/EventDetail.tsx:363 \u00B7 packages/frontend/src/app/(main)/capital/investors/[slug]/page.tsx:240 \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/(main)/capital/_components/EventDetail.tsx"},"region":{"startLine":363}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f5085285474215b83cef8f31f48bee698aa6bc4628f87e59367c6cdde25a938"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 4 locations): packages/frontend/src/app/(main)/capital/companies/[slug]/page.tsx:416 \u00B7 packages/frontend/src/app/(main)/capital/compute/page.tsx:108 \u00B7 packages/frontend/src/app/(main)/capital/investors/[slug]/page.tsx:151 \u00B7 packages/frontend/src/app/(main)/capital/spending/page.tsx:154 \u2014 the 4 copies are spread across 4 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/app/(main)/capital/companies/[slug]/page.tsx"},"region":{"startLine":416}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c4414ee44b16c55eb008633ec5478cd6367bee2c4780d23c033d214b69de2af"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): packages/frontend/src/app/(main)/capital/companies/page.tsx:39 \u00B7 packages/frontend/src/app/(main)/capital/investors/page.tsx:16 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is a run of DECLARATIONS inside a construct \u2014 the members of a type, or the entries of an object or array literal \u2014 with no statement anywhere in it. Do not read this as an extract-a-helper row: nothing here executes, so there is no call site, and a call expression cannot stand where a member declaration or a literal\u0027s entry was. What repeats is a SHAPE, and which shape decides the move. Where the copies declare the same members, the repetition is a missing common ancestor: give it a base type, an interface both extend, a generic instantiated twice, or \u2014 where the copies are a literal\u0027s entries rather than a type\u0027s members \u2014 one shared constant each site spreads or refers to, so the set is written once. Where they declare DIFFERENT members and only the form is shared \u2014 a decorator and its options, an annotation, a registration table\u0027s keys \u2014 the form is prescribed by a framework or a schema rather than copied, and the only collapse available is to generate the declarations from that schema; where you do not own the generator, this is the cost of the framework and there is nothing to extract. Check which of the two it is before acting: these copies still drift apart the first time only one of them is edited, which is why the repetition is reported, but the sentence to act on is not the same in both cases."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/app/(main)/capital/companies/page.tsx"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfb36cd7108f31bfa2ea91ef68ff843991747d7ab62e7566a21d15dcbfe79117"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3 locations): packages/frontend/src/app/(main)/capital/methodology/page.tsx:95 \u00B7 packages/frontend/src/components/explore/CapabilityCharts.tsx:408 \u00B7 packages/frontend/src/components/explore/TrendChart.tsx:308 \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/(main)/capital/methodology/page.tsx"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f696d03e771518cc7b15d01689ed1190f47df166a5b82a1753127535675bbda"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): packages/frontend/src/app/(main)/groups/[slug]/GroupDetailClient.tsx:461 \u00B7 packages/frontend/src/app/(main)/leaderboard/LeaderboardClient.tsx:845 \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/(main)/groups/[slug]/GroupDetailClient.tsx"},"region":{"startLine":461}}}],"partialFingerprints":{"codehealthFindingId/v1":"8853e4bb27fbcbaf2011ef02c7fd280496586411460cd7de6c6a4ce7099b0aea"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): packages/frontend/src/app/api/submit/route.ts:280 \u00B7 packages/frontend/src/app/api/submit/route.ts:290 \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/app/api/submit/route.ts"},"region":{"startLine":280}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f492755190b912362bb95a51ac79615a91c9398f4a5ae874c559a06d80cf4d2"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): packages/frontend/src/app/api/submit/route.ts:994 \u00B7 packages/frontend/src/app/api/submit/route.ts:1013 \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/app/api/submit/route.ts"},"region":{"startLine":994}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ea0a20775b985b572801321052fe69f4fb509c5ad397acd661255b5563bea72"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3 locations): packages/frontend/src/lib/db/schema.ts:50 \u00B7 packages/frontend/src/lib/db/schema.ts:240 \u00B7 packages/frontend/src/lib/db/schema.ts:679 \u2014 all 3 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/lib/db/schema.ts"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0315f1676924b458870ede90667ed3434fcc4fab636069d859824f52d2c238a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): packages/frontend/src/lib/db/schema.ts:344 \u00B7 packages/frontend/src/lib/db/schema.ts:631 \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/lib/db/schema.ts"},"region":{"startLine":344}}}],"partialFingerprints":{"codehealthFindingId/v1":"836d35d55c48f7bd0c05e3a25c204aabc6d8b5496f2c413025c804298975b6b3"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): packages/frontend/src/app/(main)/capital/investors/[slug]/page.tsx:40 \u00B7 packages/frontend/src/app/(main)/capital/sectors/[slug]/page.tsx:47 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/app/(main)/capital/investors/[slug]/page.tsx"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f950853ba2a6c4a525b9eb9f1e5008e1b8b014055f78eedefa2d2764ec0670e"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): packages/frontend/src/app/(main)/capital/page.tsx:259 \u00B7 packages/frontend/src/app/(main)/capital/spending/page.tsx:109 \u2014 the 2 copies are spread across 2 files, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct \u2014 and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal\u0027s entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins \u2014 a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/app/(main)/capital/page.tsx"},"region":{"startLine":259}}}],"partialFingerprints":{"codehealthFindingId/v1":"579f62baf682cb0d19fcc04cb1a57bef92c847125d9e27b7fd4d39b939c44cc8"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): packages/frontend/src/app/api/auth/device/authorize/route.ts:7 \u00B7 packages/frontend/src/app/api/settings/account/route.ts:15 \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/auth/device/authorize/route.ts"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bb021c9ba3494cfeb472219c3244d4c98fe96fbe9586fe96aea97a79e924417"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): packages/frontend/src/app/api/groups/join/[token]/route.ts:27 \u00B7 packages/frontend/src/app/api/groups/join/[token]/route.ts:52 \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/app/api/groups/join/[token]/route.ts"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"777609cc4676810a63ea56db711a942bc250b00094cd932d9c61d55f5ed275be"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): packages/frontend/src/app/api/groups/route.ts:36 \u00B7 packages/frontend/src/app/api/settings/tokens/route.ts:38 \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/groups/route.ts"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"6eb72b1f8d5aff47e7a93abd8adecb53401ad8724e6c2ea0ac1f6343ad942ab8"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): packages/frontend/src/app/api/leaderboard/route.ts:23 \u00B7 packages/frontend/src/app/api/leaderboard/user/[username]/route.ts:35 \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/leaderboard/route.ts"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"55afe587618ce89ef4a1ef6ad7a488abe8a8c99402f3d2baa76c348e4831cbbe"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): packages/frontend/src/components/explore/ModelCatalog.tsx:505 \u00B7 packages/frontend/src/components/explore/ModelDetailView.tsx:571 \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/explore/ModelCatalog.tsx"},"region":{"startLine":505}}}],"partialFingerprints":{"codehealthFindingId/v1":"208a3045cc0e9dcc832b382f21dd22f3f9f4f12aaeb673be7087ad2a55430e79"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): packages/frontend/src/components/explore/ModelDetailView.tsx:573 \u00B7 packages/frontend/src/components/explore/UsageBoards.tsx:464 \u2014 the 2 copies are spread across 2 files, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct \u2014 and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal\u0027s entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins \u2014 a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/components/explore/ModelDetailView.tsx"},"region":{"startLine":573}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef0eaa499dd7591e95e70ccb2cbf2d34045d338356c951f38af0948726d6a0e0"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): packages/frontend/src/components/profile/ProfileUsageChart.tsx:117 \u00B7 packages/frontend/src/components/profile/ProfileUsageChart.tsx:145 \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/profile/ProfileUsageChart.tsx"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"47a4953de1c11538ec316a53c49725047a67b8e09860003e69b5f17e054577a7"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): packages/frontend/src/components/ui/InstantTooltip.tsx:235 \u00B7 packages/frontend/src/components/ui/Select.tsx:358 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/components/ui/InstantTooltip.tsx"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d695defff658782ff9a48f261c713a09baf5b75b29ce2aee55c73206537c482"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): packages/frontend/src/lib/db/parserHighWater.ts:1019 \u00B7 packages/frontend/src/lib/db/parserHighWater.ts:1052 \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/db/parserHighWater.ts"},"region":{"startLine":1019}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a96e8219c9d13459b9e173f2e46b1cce85d2d84a65dc2d739ebb0d374dbad08"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): packages/frontend/src/lib/moderation/withholding.ts:160 \u00B7 packages/frontend/src/lib/moderation/withholding.ts:182 \u2014 both copies are in the same file, so extract the block 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/moderation/withholding.ts"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"c71c47f91a7528127322108a40c6f267609bce68d94a400a294f016738f3cddf"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): packages/frontend/src/app/(main)/capital/_components/EventDetail.tsx:424 \u00B7 packages/frontend/src/app/(main)/capital/companies/[slug]/page.tsx:572 \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/(main)/capital/_components/EventDetail.tsx"},"region":{"startLine":424}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee71efcd2cf1e97b68885bd77b8f8481cc56ed3914cc3dcfb064bcfc9afd1808"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): packages/frontend/src/app/(main)/capital/companies/[slug]/page.tsx:55 \u00B7 packages/frontend/src/app/(main)/capital/sectors/[slug]/page.tsx: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/app/(main)/capital/companies/[slug]/page.tsx"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff3d1168f2d070fec386bedc3d132c799464ece75ec51651eab7c1c7e9cee7e0"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 5 locations): packages/frontend/src/app/(main)/capital/compute/page.tsx:77 \u00B7 packages/frontend/src/app/(main)/capital/investors/page.tsx:65 \u00B7 packages/frontend/src/app/(main)/capital/methodology/page.tsx:56 \u00B7 packages/frontend/src/app/(main)/capital/rounds/page.tsx:56 \u00B7 \u002B1 more site(s) not listed \u2014 the 5 copies are spread across 5 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/app/(main)/capital/compute/page.tsx"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb8780a306fcaf7a0a536641033578db7550f8aacac66b88de94fb156ac096f5"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 5 locations): packages/frontend/src/app/(main)/capital/investors/page.tsx:103 \u00B7 packages/frontend/src/app/(main)/capital/methodology/page.tsx:98 \u00B7 packages/frontend/src/app/(main)/groups/[slug]/GroupDetailClient.tsx:819 \u00B7 packages/frontend/src/app/(main)/leaderboard/LeaderboardClient.tsx:1364 \u00B7 \u002B1 more site(s) not listed \u2014 the 5 copies are spread across 5 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/app/(main)/capital/investors/page.tsx"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"6617406af93a74d322c5772acee8d4092ec24af9db9d36b3ab6f3c7904fa0399"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): packages/frontend/src/app/(main)/capital/page.tsx:91 \u00B7 packages/frontend/src/app/(main)/capital/page.tsx:136 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/app/(main)/capital/page.tsx"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfe3b94de3011678fcef965b8de26a2c53787e9b1d0eea82cc28463a8e6a7b91"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): packages/frontend/src/app/(main)/capital/page.tsx:304 \u00B7 packages/frontend/src/app/(main)/capital/sectors/[slug]/page.tsx:150 \u2014 the 2 copies are spread across 2 files, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct \u2014 and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal\u0027s entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins \u2014 a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/app/(main)/capital/page.tsx"},"region":{"startLine":304}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a2fd7d24649507c22f36e099493c5cf6a9c410b60f4fe684b18fb0dc3ccb97e"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): packages/frontend/src/app/(main)/groups/[slug]/GroupDetailClient.tsx:488 \u00B7 packages/frontend/src/app/(main)/leaderboard/LeaderboardClient.tsx:894 \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/(main)/groups/[slug]/GroupDetailClient.tsx"},"region":{"startLine":488}}}],"partialFingerprints":{"codehealthFindingId/v1":"0416bf66eda23261084e7545b2546af5ea7467fc85b74eda2012cf4442b59808"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): packages/frontend/src/app/api/admin/moderation/[username]/route.ts:22 \u00B7 packages/frontend/src/app/api/admin/moderation/[username]/route.ts:52 \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/app/api/admin/moderation/[username]/route.ts"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"a16da0fce9d97fbcde79fc6f50189d8fdd8f909a4fd3b4cc2f7d900159cc8975"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 4 locations): packages/frontend/src/app/api/admin/moderation/[username]/route.ts:42 \u00B7 packages/frontend/src/app/api/groups/[slug]/members/route.ts:54 \u00B7 packages/frontend/src/app/api/groups/[slug]/route.ts:76 \u00B7 packages/frontend/src/app/api/groups/[slug]/route.ts:186 \u2014 the 4 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/admin/moderation/[username]/route.ts"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"9077c3b317564c935cf42ab02892ce4edf87167d6af89f4b8dab456208172b84"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): packages/frontend/src/app/api/groups/[slug]/leaderboard/route.ts:30 \u00B7 packages/frontend/src/app/api/groups/[slug]/leave/route.ts:22 \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]/leaderboard/route.ts"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"f532f9fb06f82fa11667505e7ca5c8a4896fcb5270814339eba77fa8e9196cc2"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 5 locations): packages/frontend/src/app/api/groups/[slug]/members/[userId]/role/route.ts:15 \u00B7 packages/frontend/src/app/api/groups/[slug]/members/route.ts:59 \u00B7 packages/frontend/src/app/api/groups/[slug]/route.ts:81 \u00B7 packages/frontend/src/app/api/groups/[slug]/route.ts:191 \u00B7 \u002B1 more site(s) not listed \u2014 the 5 copies are spread across 4 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/app/api/groups/[slug]/members/[userId]/role/route.ts"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"a43115a9b7aaf2a961f08cf389b69c4160bc1d048f53a9c4c45b93ef24e27018"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 4 locations): packages/frontend/src/app/api/groups/[slug]/members/[userId]/role/route.ts:26 \u00B7 packages/frontend/src/app/api/groups/[slug]/route.ts:100 \u00B7 packages/frontend/src/app/api/groups/[slug]/transfer-ownership/route.ts:33 \u00B7 packages/frontend/src/app/api/groups/route.ts:46 \u2014 the 4 copies are spread across 4 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another. There is one copy in each of 4 separate files rather than several in one place, so check first whether these are sibling modules that each declare their own version of one shape \u2014 one per entity, per provider, per language. Where they are, no single extracted module collapses them: each module still has to be written, and what recurs is the TEMPLATE. The moves that do collapse a template are to generate these modules from the set they enumerate, or to replace the repeated construction with one factory each site calls with its own values \u2014 and where the set is the point, each module pinning one distinct thing, the repetition IS the enumeration and there is nothing to delete."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/app/api/groups/[slug]/members/[userId]/role/route.ts"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d928615ad4230f24863792c7481d4cefd2518461aebbb272f23a5364d148559"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): packages/frontend/src/lib/capital/ledger/epoch.ts:271 \u00B7 packages/frontend/src/lib/capital/ledger/epoch.ts:310 \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/lib/capital/ledger/epoch.ts"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"9382924c4d8c08b6b137cf777ed4493d1e3f316c9846e5c2571e8b63e2aade8f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): packages/frontend/src/lib/capital/ledger/epoch.ts:354 \u00B7 packages/frontend/src/lib/capital/ledger/epoch.ts:366 \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/capital/ledger/epoch.ts"},"region":{"startLine":354}}}],"partialFingerprints":{"codehealthFindingId/v1":"7dead3da04992333d270b9284dd7f0af26ba49b825af530b08212a3b23819a36"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (8 matched lines \u00D7 2 locations): packages/frontend/src/lib/embed/embedShared.ts:332 \u00B7 packages/frontend/src/lib/utils.ts:190 \u2014 the two spans are one implementation copied and then locally edited \u2014 66 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/lib/embed/embedShared.ts"},"region":{"startLine":332}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9a4c7490fb25d483deeff2109d72efd4175c01cb7065684493945d4e2394a3c"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): packages/frontend/src/lib/explore/index.ts:40 \u00B7 packages/frontend/src/lib/explore/index.ts:49 \u2014 both copies are in the same file, so extract the block 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/explore/index.ts"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7be6097d20dbd334ebff30b328f10ea407c386de6d17b76ee5651b69b541889"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): packages/frontend/src/lib/groups/getGroupLeaderboard.ts:278 \u00B7 packages/frontend/src/lib/leaderboard/getLeaderboard.ts:268 \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/groups/getGroupLeaderboard.ts"},"region":{"startLine":278}}}],"partialFingerprints":{"codehealthFindingId/v1":"c34b747d3b1e36108078dcde6fc1244d7e7be2af47412f0a8fcde0479aab6da0"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (7 matched lines \u00D7 2 locations): packages/frontend/scripts/capital/import-epoch.ts:168 \u00B7 packages/frontend/scripts/capital/lib/source-cache.ts:329 \u2014 the two spans are one implementation copied and then locally edited \u2014 68 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/scripts/capital/import-epoch.ts"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d61c51d201fea0b25dcbc3d8feed29a53805265ebb973dc0e816d1a0c8a9fe2"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): packages/frontend/src/app/(main)/capital/_components/EventDetail.tsx:83 \u00B7 packages/frontend/src/app/(main)/capital/companies/[slug]/page.tsx:842 \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/(main)/capital/_components/EventDetail.tsx"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6baed8e3515f6c5df21463383d13d2295cab58b3f3963c1cb078215200fc327"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): packages/frontend/src/app/(main)/capital/_components/EventDetail.tsx:318 \u00B7 packages/frontend/src/app/(main)/capital/_components/EventDetail.tsx:332 \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/(main)/capital/_components/EventDetail.tsx"},"region":{"startLine":318}}}],"partialFingerprints":{"codehealthFindingId/v1":"68b18bb45be7502e7a7cf92e53a93a4ea3a606c769635ca7aa4d2d2b25bd037f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 5 locations): packages/frontend/src/app/(main)/capital/companies/[slug]/page.tsx:364 \u00B7 packages/frontend/src/app/(main)/capital/companies/[slug]/page.tsx:436 \u00B7 packages/frontend/src/app/(main)/capital/compute/page.tsx:127 \u00B7 packages/frontend/src/app/(main)/capital/investors/[slug]/page.tsx:165 \u00B7 \u002B1 more site(s) not listed \u2014 the 4 copies are spread across 4 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/app/(main)/capital/companies/[slug]/page.tsx"},"region":{"startLine":364}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa2be12d3769785ae6d7673cb7b2eb16e03608838681aa81947795fdee5960e8"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3 locations): packages/frontend/src/app/(main)/capital/companies/[slug]/page.tsx:729 \u00B7 packages/frontend/src/app/(main)/capital/companies/[slug]/page.tsx:767 \u00B7 packages/frontend/src/app/(main)/capital/companies/[slug]/page.tsx:803 \u2014 all 3 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/app/(main)/capital/companies/[slug]/page.tsx"},"region":{"startLine":729}}}],"partialFingerprints":{"codehealthFindingId/v1":"24ef4d4e8f765955691bcd5f5b0c0de0a1e8787442d0c27d8160b6bd22fc4425"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): packages/frontend/src/app/(main)/capital/companies/[slug]/page.tsx:861 \u00B7 packages/frontend/src/app/(main)/capital/companies/[slug]/page.tsx:923 \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/app/(main)/capital/companies/[slug]/page.tsx"},"region":{"startLine":861}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f0ebad0ed8b2331bede30aaca1a7d879d726e7d43e1a3eb7eef0306bb86576e"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3 locations): packages/frontend/src/app/(main)/capital/companies/page.tsx:302 \u00B7 packages/frontend/src/app/(main)/capital/investors/page.tsx:106 \u00B7 packages/frontend/src/app/(main)/capital/sectors/[slug]/page.tsx:104 \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/(main)/capital/companies/page.tsx"},"region":{"startLine":302}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea01e2127a44c3f393ed08e210d03be9db1cedb577f5df91a6f44d5c07e9ca15"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3 locations): packages/frontend/src/app/(main)/capital/compute/page.tsx:177 \u00B7 packages/frontend/src/app/(main)/capital/investors/[slug]/page.tsx:136 \u00B7 packages/frontend/src/app/(main)/capital/page.tsx:166 \u2014 the 3 copies are spread across 3 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/app/(main)/capital/compute/page.tsx"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fcf1b716d6b59c1d52ea16891115109411a09f40fb571b80bd62cb493306e05"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): packages/frontend/src/app/(main)/capital/investors/page.tsx:35 \u00B7 packages/frontend/src/app/(main)/capital/rounds/page.tsx: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/app/(main)/capital/investors/page.tsx"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"60b49ce6d5b428d54b8e6081aa67e70af94d36f00ff48172c49d42cad1787da5"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 4 locations): packages/frontend/src/app/(main)/capital/methodology/page.tsx:86 \u00B7 packages/frontend/src/app/(main)/capital/page.tsx:277 \u00B7 packages/frontend/src/app/(main)/capital/page.tsx:299 \u00B7 packages/frontend/src/app/(main)/capital/spending/page.tsx:137 \u2014 the 3 copies are spread across 3 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/app/(main)/capital/methodology/page.tsx"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8e1f83f1782fddf0d06c836da549b1014390a0d0c9c1c2299f49aa1c46a7d94"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): packages/frontend/src/app/(main)/capital/page.tsx:38 \u00B7 packages/frontend/src/lib/capital/ledger/home.ts:66 \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/(main)/capital/page.tsx"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"29f1d96fd3a7985cea8a57d3d7326489585a8c1d9d8c3b7737634b2dbf029523"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): packages/frontend/src/app/(main)/leaderboard/GroupsBrowser.tsx:301 \u00B7 packages/frontend/src/app/(main)/leaderboard/LeaderboardClient.tsx:1074 \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/app/(main)/leaderboard/GroupsBrowser.tsx"},"region":{"startLine":301}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b2d9c90ca463a4a2bec7eb385c293dea1b65883c6459004073a1b6529b76b70"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): packages/frontend/src/app/api/groups/[slug]/members/route.ts:76 \u00B7 packages/frontend/src/app/api/groups/[slug]/transfer-ownership/route.ts:46 \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]/members/route.ts"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1cd82af7e6d288666f3798d7bf5e2a19b7eeb0eae49c578014ac28879c56d60"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): packages/frontend/src/app/api/groups/[slug]/members/route.ts:90 \u00B7 packages/frontend/src/lib/groups/invites.ts:189 \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]/members/route.ts"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ecbf16a7be50d7d914ae90223f94610f733c6df7c692c7ef8c32eeeb8ac030d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): packages/frontend/src/app/api/groups/[slug]/route.ts:135 \u00B7 packages/frontend/src/app/api/groups/route.ts:56 \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]/route.ts"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"55c75d0a515e28029384ee7fced1577bd17d89ff04807fccad9e76301c7e2688"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3 locations): packages/frontend/src/app/api/groups/[slug]/transfer-ownership/route.ts:61 \u00B7 packages/frontend/src/app/api/me/stats/route.ts:79 \u00B7 packages/frontend/src/app/api/submit/route.ts:540 \u2014 the 3 copies are spread across 3 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another. There is one copy in each of 3 separate files rather than several in one place, so check first whether these are sibling modules that each declare their own version of one shape \u2014 one per entity, per provider, per language. Where they are, no single extracted module collapses them: each module still has to be written, and what recurs is the TEMPLATE. The moves that do collapse a template are to generate these modules from the set they enumerate, or to replace the repeated construction with one factory each site calls with its own values \u2014 and where the set is the point, each module pinning one distinct thing, the repetition IS the enumeration and there is nothing to delete."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/app/api/groups/[slug]/transfer-ownership/route.ts"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"4873fbf583a41df3052f3526f1824df9c0439b7ec26b8f2845130444d7cc1a68"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): packages/frontend/src/app/api/submit/route.ts:1527 \u00B7 packages/frontend/src/app/api/submit/route.ts:1571 \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/app/api/submit/route.ts"},"region":{"startLine":1527}}}],"partialFingerprints":{"codehealthFindingId/v1":"02239c8c5602675086b897a743f37d22510613c22ea14defe8db16ea5d7c618a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3 locations): packages/frontend/src/components/explore/ModelCatalog.tsx:507 \u00B7 packages/frontend/src/components/explore/ModelDetailView.tsx:573 \u00B7 packages/frontend/src/components/explore/ModelsDashboard.tsx:785 \u2014 the 3 copies are spread across 3 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/components/explore/ModelCatalog.tsx"},"region":{"startLine":507}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3bb9611336997ff888a2db31ad8d7b4a3c81bcc36ab83f6c06f3bfaa78b3d77"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): packages/frontend/src/components/explore/format.ts:243 \u00B7 packages/frontend/src/components/leaderboard/presentation.ts:24 \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/explore/format.ts"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b0a350ca3c475cb2498d774f39b4a202ca6d84217edb1316ce277c0806379ce"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): packages/frontend/src/components/home/CommunitySnapshot.tsx:81 \u00B7 packages/frontend/src/components/home/CommunitySnapshot.tsx:133 \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/home/CommunitySnapshot.tsx"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2f10623f65fe37fa0e3e96b21da81b9fa76f24351fa3a95c63e12f7b5c2aee7"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): packages/frontend/src/components/layout/Navigation.tsx:541 \u00B7 packages/frontend/src/components/layout/Navigation.tsx:585 \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/layout/Navigation.tsx"},"region":{"startLine":541}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0ec3f0eddc7bea8817581e66cba595a712313a5d3a6e8df2cf1a2020869f4c6"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 7 locations): packages/frontend/src/components/ui/Icons.tsx:11 \u00B7 packages/frontend/src/components/ui/Icons.tsx:19 \u00B7 packages/frontend/src/components/ui/Icons.tsx:27 \u00B7 packages/frontend/src/components/ui/Icons.tsx:36 \u00B7 \u002B3 more site(s) not listed \u2014 all 7 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/ui/Icons.tsx"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2c77b60c2174f399277353f316743edf21fc610b2898c782df48f121b899304"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): packages/frontend/src/lib/capital/ledger/schema.ts:265 \u00B7 packages/frontend/src/lib/capital/ledger/schema.ts:305 \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/capital/ledger/schema.ts"},"region":{"startLine":265}}}],"partialFingerprints":{"codehealthFindingId/v1":"36ede91c59bbdac4624f0a14f7fb9a10924be2f882f33593d07fb81c98339fad"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): packages/frontend/src/lib/groups/getGroupLeaderboard.ts:181 \u00B7 packages/frontend/src/lib/groups/queries.ts:30 \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/groups/getGroupLeaderboard.ts"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"99ac288990701b498ee10f03db1198e6fd3995b069f565ee07de10b9dbcc0b7d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): packages/frontend/src/lib/groups/permissions.ts:12 \u00B7 packages/frontend/src/lib/groups/queries.ts:131 \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/groups/permissions.ts"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"77fc87fe04abf5e7e1cbaeeae8a0ff0ddff36707ce00a0b6eb14a0e1a4dd8c7d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (7 matched lines \u00D7 2 locations): packages/frontend/src/lib/themes.ts:128 \u00B7 packages/frontend/src/lib/themes.ts:144 \u2014 the two spans are one implementation copied and then locally edited \u2014 66 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/lib/themes.ts"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"29d2dc2b08967647826d18f5550d39f0c1cd4d665ca780e199f481265ea4b05a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 7 locations): packages/frontend/src/app/(main)/capital/_components/EventDetail.tsx:286 \u00B7 packages/frontend/src/app/(main)/capital/_components/EventDetail.tsx:307 \u00B7 packages/frontend/src/app/(main)/capital/_components/EventDetail.tsx:359 \u00B7 packages/frontend/src/app/(main)/capital/companies/[slug]/page.tsx:734 \u00B7 \u002B3 more site(s) not listed \u2014 the 7 copies are spread across 4 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/app/(main)/capital/_components/EventDetail.tsx"},"region":{"startLine":286}}}],"partialFingerprints":{"codehealthFindingId/v1":"62244375bb92eb918e9687740750dded2faea981e6337429ae7038c9b8de6ab6"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): packages/frontend/src/app/(main)/capital/companies/page.tsx:227 \u00B7 packages/frontend/src/app/(main)/capital/compute/page.tsx:104 \u2014 the 2 copies are spread across 2 files, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct \u2014 and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal\u0027s entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins \u2014 a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/app/(main)/capital/companies/page.tsx"},"region":{"startLine":227}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef47b0c4b627af8953027a41397b7249af284983499d3b9804cfa47fffea1dd9"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): packages/frontend/src/app/(main)/capital/deals/[slug]/og/route.tsx:7 \u00B7 packages/frontend/src/app/(main)/capital/rounds/[slug]/og/route.tsx:7 \u2014 the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/app/(main)/capital/deals/[slug]/og/route.tsx"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee3b9ca9f7d58e93d4d060feb9905b34bff487f1584a7abda6281eabbf29a533"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): packages/frontend/src/app/(main)/capital/investors/[slug]/page.tsx:123 \u00B7 packages/frontend/src/app/(main)/capital/spending/page.tsx:81 \u2014 the 2 copies are spread across 2 files, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct \u2014 and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal\u0027s entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins \u2014 a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/app/(main)/capital/investors/[slug]/page.tsx"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"a38161d3d41b4a83b5bc5ae6146bc60aac5d6d50623ba61737d959d6629c3804"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 5 locations): packages/frontend/src/app/(main)/capital/page.tsx:169 \u00B7 packages/frontend/src/app/(main)/capital/page.tsx:280 \u00B7 packages/frontend/src/app/(main)/capital/page.tsx:302 \u00B7 packages/frontend/src/app/(main)/capital/sectors/[slug]/page.tsx:148 \u00B7 \u002B1 more site(s) not listed \u2014 the 5 copies are spread across 3 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/app/(main)/capital/page.tsx"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"2801bc33e4beb5f3a48328d7b2998a2315704d4b67f2356b27ec12124de09b21"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): packages/frontend/src/app/api/me/stats/route.ts:127 \u00B7 packages/frontend/src/app/api/users/[username]/devices/[deviceId]/route.ts:133 \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":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"f18b7e946c16dc3e0ebf1ef0f0acf7fd4c2a907383800a48af84afa13059eed5"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): packages/frontend/src/components/explore/ExploreUI.tsx:398 \u00B7 packages/frontend/src/components/home/agents.ts:66 \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/explore/ExploreUI.tsx"},"region":{"startLine":398}}}],"partialFingerprints":{"codehealthFindingId/v1":"16800b1fa970735f084a7b3728095a2acb0923366833a7d3008be4d2fffe1ffc"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): packages/frontend/src/components/home/format.ts:31 \u00B7 packages/frontend/src/components/home/format.ts:49 \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/home/format.ts"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"73f210c0e707789040e827e7187590386d982deebdbc6ef612eb130f53ae5f86"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (6 matched lines \u00D7 2 locations): packages/frontend/src/components/landing/sections/WorldwideSection.tsx:16 \u00B7 packages/frontend/src/components/landing/sections/WorldwideSection.tsx:25 \u2014 the two spans are one implementation copied and then locally edited \u2014 89 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/landing/sections/WorldwideSection.tsx"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"56a3f12c432c119f9f025d522ef6d8d541638a0a81e405bc10934ed7ce85b762"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (6 matched lines \u00D7 2 locations): packages/frontend/src/components/layout/Navigation.tsx:468 \u00B7 packages/frontend/src/components/layout/Navigation.tsx:607 \u2014 the two spans are one implementation copied and then locally edited \u2014 81 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/layout/Navigation.tsx"},"region":{"startLine":468}}}],"partialFingerprints":{"codehealthFindingId/v1":"553fd572d1f8a48d3983ec3fe76b89c4250c77a84cc037dc479ee6557522f130"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (6 matched lines \u00D7 2 locations): packages/frontend/src/lib/capital/ledger/content.ts:91 \u00B7 packages/frontend/src/lib/capital/ledger/content.ts:106 \u2014 the two spans are one implementation copied and then locally edited \u2014 52 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/lib/capital/ledger/content.ts"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"d148d47f30980451b64d7971cbf3b202a79b25898cea6e35450b61616bd0fbfe"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): packages/frontend/src/lib/embed/embedShared.ts:446 \u00B7 packages/frontend/src/lib/embed/renderIsometric3DSvg.ts:181 \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/embedShared.ts"},"region":{"startLine":446}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad2f79967b446ea6c9f20068ea994b042a11194ba9553471105f8ee7130dbf30"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): packages/frontend/src/lib/explore/index.ts:46 \u00B7 packages/frontend/src/lib/explore/index.ts:55 \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/explore/index.ts"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"401e297443b7f34c37b0c6a04b7b88d1efbf79ec6d8e34526f9bc4d38938bf73"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): packages/frontend/src/lib/groups/getGroupLeaderboard.ts:245 \u00B7 packages/frontend/src/lib/leaderboard/getLeaderboard.ts:142 \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/groups/getGroupLeaderboard.ts"},"region":{"startLine":245}}}],"partialFingerprints":{"codehealthFindingId/v1":"83d4ad12034a3284ff7adff8d9f012dcb4b1daf67b25dc5427b12727c134f46c"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): packages/frontend/scripts/capital/build-org-ids.ts:43 \u00B7 packages/frontend/scripts/capital/import-epoch.ts:54 \u2014 the 2 copies are spread across 2 files, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct \u2014 and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal\u0027s entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins \u2014 a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/scripts/capital/build-org-ids.ts"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c71790185ea3ee90a3aa2d48c82601b85af07c747f599aee70e7c5278a6c467"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): packages/frontend/scripts/capital/build-org-ids.ts:665 \u00B7 packages/frontend/scripts/capital/build-org-ids.ts:696 \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/scripts/capital/build-org-ids.ts"},"region":{"startLine":665}}}],"partialFingerprints":{"codehealthFindingId/v1":"7123df342b4e36e89c664a0ededc71439dc7273b6c3aa08b7aeeb9d0d32faadf"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3 locations): packages/frontend/src/app/(main)/capital/companies/[slug]/page.tsx:808 \u00B7 packages/frontend/src/app/(main)/capital/companies/[slug]/page.tsx:865 \u00B7 packages/frontend/src/app/(main)/capital/companies/[slug]/page.tsx:927 \u2014 all 3 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/(main)/capital/companies/[slug]/page.tsx"},"region":{"startLine":808}}}],"partialFingerprints":{"codehealthFindingId/v1":"b88e46a0b8b15c6fd85b7afc4dec9baf2656e587e25e484bb0b708956df8e367"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (5 matched lines \u00D7 2 locations): packages/frontend/src/app/api/leaderboard/user/[username]/route.ts:13 \u00B7 packages/frontend/src/lib/leaderboard/dateRange.ts:22 \u2014 the two spans are one implementation copied and then locally edited \u2014 72 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/app/api/leaderboard/user/[username]/route.ts"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"2883ab2dfe5435101ad5154486b069ab789ea263b156286f98d1c155ca6222e0"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): packages/frontend/src/components/home/HumansSection.tsx:129 \u00B7 packages/frontend/src/components/home/ModelsSection.tsx:124 \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/home/HumansSection.tsx"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"3893af862caa00a9a188114e9d2745d591f871c9150dedaf77b9a8ac298599c5"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): packages/frontend/src/components/leaderboard/GroupManagement.tsx:201 \u00B7 packages/frontend/src/components/leaderboard/GroupReportingSettings.tsx:61 \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/components/leaderboard/GroupManagement.tsx"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c3f1c3fcfbe5adac995e0f932c746b5d7cfeb3ebd2a9f4313489c5f228c34f3"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): packages/frontend/src/lib/db/parserHighWater.ts:347 \u00B7 packages/frontend/src/lib/db/parserHighWater.ts:487 \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/db/parserHighWater.ts"},"region":{"startLine":347}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe52ce64d0a806fbe9cc26d30a46e74b5a8427f24972b40e4e405770257272ed"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): packages/frontend/src/lib/embed/embedShared.ts:164 \u00B7 packages/frontend/src/lib/publicProfileData.ts:47 \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/lib/embed/embedShared.ts"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"a584901c6e885ba66b4db6c2a86aacd3ca91156fad0867cb4542e96a077bf67e"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): packages/frontend/src/lib/explore/rollup.ts:124 \u00B7 packages/frontend/src/lib/groups/getGroupLeaderboard.ts:69 \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/lib/explore/rollup.ts"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"95ffeb09ef663bfd1da4b852bcab85c75e22cf320af2cbbeaf1ddd127b43924c"}},{"ruleId":"R11","level":"warning","message":{"text":"Boundary violation [package:test-suite-dependency]: packages/frontend/scripts/verify-ui-regressions.ts:13 imports packages/frontend/__tests__/support/localExport.ts, a module inside the test suite \u2014 test helpers carry no compatibility contract and are maintained for the suite, not as an API, so production code that depends on one is coupled to a module nobody keeps stable. Move the shared helper into a source directory both layers may depend on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/scripts/verify-ui-regressions.ts"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"0685c6c886ccae6dc9d396f231442bee175047777d6df44708d6ff658c2caaeb"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 174, cognitive 296): (anonymous) has cyclomatic complexity 174 and cognitive complexity 296; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse 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":628}}}],"partialFingerprints":{"codehealthFindingId/v1":"00bd94c184d9f68515ca7db187e04f7e155e0ac1406c22d9f9880ce6ff4c5200"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function getPublicProfileResponse (cyclomatic 117, cognitive 188): getPublicProfileResponse has cyclomatic complexity 117 and cognitive complexity 188; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse 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":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"60a219cd9495ffa8c0efcf2757b667cfc0ce7dc43d106517f90b5596a716121a"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function main (cyclomatic 109, cognitive 189): main has cyclomatic complexity 109 and cognitive complexity 189; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse 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/scripts/capital/build-org-ids.ts"},"region":{"startLine":820}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e07d24bf1ca19fd8b8677d2ad6250f814ee574e23b7c4b1c2cc6c9772f58d9b"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function planParserHighWaterSubmission (cyclomatic 60, cognitive 71): planParserHighWaterSubmission has cyclomatic complexity 60 and cognitive complexity 71; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/lib/db/parserHighWater.ts"},"region":{"startLine":1527}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0648b8ed9d8ae711f32906dbd387926f3d47fa10eb2d031a281a50c3011217e"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 52, cognitive 50): (anonymous) has cyclomatic complexity 52 and cognitive complexity 50; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse 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)/capital/companies/page.tsx"},"region":{"startLine":305}}}],"partialFingerprints":{"codehealthFindingId/v1":"b602446a68a4eb59bd9398251db5461865551f8e18f9b37081a8322417cca2e0"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function LeaderboardClient (cyclomatic 52, cognitive 44): LeaderboardClient has cyclomatic complexity 52 and cognitive complexity 44; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse 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":927}}}],"partialFingerprints":{"codehealthFindingId/v1":"48666f1df5d1fac61d5418fa1e39243c8c22ce17eb8a8053d141567d9eb37e28"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function validateLedgerContent (cyclomatic 46, cognitive 71): validateLedgerContent has cyclomatic complexity 46 and cognitive complexity 71; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/lib/capital/ledger/content.ts"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2bc135a153ac06f677db887e36cd2dfcaae25675a633f704bb9be9bb1fc24f8"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function buildCompany (cyclomatic 45, cognitive 58): buildCompany has cyclomatic complexity 45 and cognitive complexity 58; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse 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/scripts/capital/build-capex.ts"},"region":{"startLine":258}}}],"partialFingerprints":{"codehealthFindingId/v1":"886e862a54ad233db193b053903073c366487db23a5e9c4be952225256120fef"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function HeaderFacts (cyclomatic 39, cognitive 32): HeaderFacts has cyclomatic complexity 39 and cognitive complexity 32; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/app/(main)/capital/companies/[slug]/page.tsx"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"6271e4928ad592fb02d3d6aed0b2c928483e65d10dca01224a2c3afdea5c6be8"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function validateSubmission (cyclomatic 38, cognitive 69): validateSubmission has cyclomatic complexity 38 and cognitive complexity 69; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse 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":397}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc8fc79d372e468864f6e204b78f0b94922cc66e41a2d6fc79bd2ab0416ad093"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function V2Profile (cyclomatic 38, cognitive 37): V2Profile has cyclomatic complexity 38 and cognitive complexity 37; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse 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)/capital/companies/[slug]/page.tsx"},"region":{"startLine":587}}}],"partialFingerprints":{"codehealthFindingId/v1":"1312a2d07d3ea73c0359579fac8b7136804a2258bcac61cd9687d1de808c6a7f"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function antigravityPriorCoverage (cyclomatic 35, cognitive 82): antigravityPriorCoverage has cyclomatic complexity 35 and cognitive complexity 82; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/lib/db/antigravityStateCoverage.ts"},"region":{"startLine":496}}}],"partialFingerprints":{"codehealthFindingId/v1":"98c421f6ace24238224b7cf50aa74c1c120fb0414a8524a2d7025bd7d65d399a"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function PATCH (cyclomatic 35, cognitive 39): PATCH has cyclomatic complexity 35 and cognitive complexity 39; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/app/api/groups/[slug]/route.ts"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"00f3e49d74986671c4df20d16dc6fe7534fe9b9f316ca70edf8d20c4d59cca2c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function createContributionCalendar (cyclomatic 34, cognitive 45): createContributionCalendar has cyclomatic complexity 34 and cognitive complexity 45; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/components/profile/ProfileContributionGraph.tsx"},"region":{"startLine":579}}}],"partialFingerprints":{"codehealthFindingId/v1":"50876a80cf8713a8fc15ae3a3613b1079e30581eaf07d23b7226cb121abe95dc"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function EventDetail (cyclomatic 34, cognitive 32): EventDetail has cyclomatic complexity 34 and cognitive complexity 32; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/app/(main)/capital/_components/EventDetail.tsx"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"df38bccc022d80ebfa8573597e0991a0bbdc081b2c61a26ad57adab930a94328"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function remixAccount (cyclomatic 32, cognitive 59): remixAccount has cyclomatic complexity 32 and cognitive complexity 59; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/scripts/stealth/seed.ts"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ff5e1a2746b5dc9ac558aae6b81523bde93cf419e84b3db113df6aad9f87d4a"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function handleKeyDown (cyclomatic 32, cognitive 30): handleKeyDown has cyclomatic complexity 32 and cognitive complexity 30; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/components/ui/Select.tsx"},"region":{"startLine":276}}}],"partialFingerprints":{"codehealthFindingId/v1":"08e8679146c152460edbac79f1e78e443fe8763948d819583db000b2226f6837"}},{"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":866}}}],"partialFingerprints":{"codehealthFindingId/v1":"68c4304b803c5a2d01eb969ed6d9968cd740ea052750a0262e9f10cbc5f41a16"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function valuationRatio (cyclomatic 30, cognitive 31): valuationRatio has cyclomatic complexity 30 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/lib/capital/ledger/ratio.ts"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b59b26ccb2185c595ae8cf62dc968ddf66e68be2cf782d4b3c8f7ae9954f0dc"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function POST (cyclomatic 29, cognitive 31): POST has cyclomatic complexity 29 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/submit/route.ts"},"region":{"startLine":523}}}],"partialFingerprints":{"codehealthFindingId/v1":"216f14376e034dcc6edf18e30a06dc2a81389dae2bf0acca0c37aa10cd83eeea"}},{"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":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"e828890df01e448bda6c977403050341bb23c8aadbc86323125144cc3b5765c4"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function getWithholdingUsageTotals (cyclomatic 27, cognitive 73): getWithholdingUsageTotals has cyclomatic complexity 27 and cognitive complexity 73; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse 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/moderation/withholding.ts"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9f7dd84136e950d175aa3704c91beb1d7af4829e1e5b6590a20fc4baaae9dbb"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function company (cyclomatic 27, cognitive 39): company has cyclomatic complexity 27 and cognitive complexity 39; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/lib/capital/ledger/model.ts"},"region":{"startLine":434}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ccdbeae8b4c53d0ee9b434546dd1dc11d185575e5b00ed413bc6b2c8d947c95"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function FundingRow (cyclomatic 27, cognitive 23): FundingRow has cyclomatic complexity 27 and cognitive complexity 23; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/app/(main)/capital/companies/[slug]/page.tsx"},"region":{"startLine":340}}}],"partialFingerprints":{"codehealthFindingId/v1":"9dac9ef966979686ae0a344bbb60d00c81af9bc3b8df287e47c1d76dd2113e57"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function scoreCandidate (cyclomatic 26, cognitive 37): scoreCandidate has cyclomatic complexity 26 and cognitive complexity 37; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/lib/moderation/heuristics.ts"},"region":{"startLine":484}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a4748f7b8622dbd4c9f56305b9620d86af2f23749e9eaf66459cd37bd799b5a"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function ProfilePageClient (cyclomatic 26, cognitive 24): ProfilePageClient has cyclomatic complexity 26 and cognitive complexity 24; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/app/u/[username]/ProfilePageClient.tsx"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"98cc0fc4ef852a2cf3a2fa29ab4f16d8206631d3506dfe16c439395176abd61c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function GroupDetailClient (cyclomatic 26, cognitive 22): GroupDetailClient has cyclomatic complexity 26 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/(main)/groups/[slug]/GroupDetailClient.tsx"},"region":{"startLine":517}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a1150d8baff694f3dab273a9645c6e11da79ef24f29d6a869c96caaaebbc3bb"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function main (cyclomatic 25, cognitive 32): main has cyclomatic complexity 25 and cognitive complexity 32; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/scripts/capital/verify-quotes.ts"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"835a2d31e5b423c1e77a325f56395c41555eab5701855beb8f47d2491b3c9469"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function ResultRowView (cyclomatic 25, cognitive 24): ResultRowView has cyclomatic complexity 25 and cognitive complexity 24; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/components/explore/BenchmarkDetailView.tsx"},"region":{"startLine":743}}}],"partialFingerprints":{"codehealthFindingId/v1":"3df157ccffd2efbe8ddf719d9f45923f06022b2341c23728c6a8d5c838aa0bc2"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function GET (cyclomatic 25, cognitive 23): GET has cyclomatic complexity 25 and cognitive complexity 23; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/app/api/embed/[username]/svg/route.ts"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"8cb5cc1339ecd3acf52a313368ca324c9377446db003e4848b0cd9c5a8a4ff53"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function orgView (cyclomatic 24, cognitive 23): orgView 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/capital/ledger/model.ts"},"region":{"startLine":226}}}],"partialFingerprints":{"codehealthFindingId/v1":"5178e61ad01ae3ad4c175546667c6c15b29e58e1c64ceb07c4dd2f3d5fb96c77"}},{"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":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b89e85c7d3d987b1e1803829233b22a01428e505d4136d26e99d9c30ce56075"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function POST (cyclomatic 24, cognitive 19): POST has cyclomatic complexity 24 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/app/api/groups/[slug]/invite/route.ts"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"6cad274da378b27cc733e06f71f5bd177fe35b251504d7847b7ac4dce7ea7589"}},{"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 buildPeriodRollup (cyclomatic 23, cognitive 32): buildPeriodRollup has cyclomatic complexity 23 and cognitive complexity 32; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/lib/explore/rollup.ts"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"4adc6b6e0da726b0a656fd7b16dd394418542b15d82c72926c46dc51cdc1ea41"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function InstantTooltip (cyclomatic 23, cognitive 26): InstantTooltip has cyclomatic complexity 23 and cognitive complexity 26; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/components/ui/InstantTooltip.tsx"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"6db6b38519d71c33b1c5a719fbe8b845b0bb7ba9fba0814d75300498b96ccb18"}},{"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 applyRecountProofToCell (cyclomatic 23, cognitive 25): applyRecountProofToCell 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/frontend/src/lib/db/parserHighWater.ts"},"region":{"startLine":777}}}],"partialFingerprints":{"codehealthFindingId/v1":"a41564bdbc798156988cfc451171c3ecbc9b07e7844db61c328a8158eef54acb"}},{"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":2047}}}],"partialFingerprints":{"codehealthFindingId/v1":"f951aa8ee1115f92845b1fb21c40a11e4c9b0d765d98fb706e2f6ef61caee77d"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function eventView (cyclomatic 22, cognitive 17): eventView has cyclomatic complexity 22 and cognitive complexity 17; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/lib/capital/ledger/model.ts"},"region":{"startLine":307}}}],"partialFingerprints":{"codehealthFindingId/v1":"de8130b285a30eb8b12385398da473c4f56482a0b652b271283bde65a1c62c01"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function planAntigravityTransition (cyclomatic 22, cognitive 17): planAntigravityTransition has cyclomatic complexity 22 and cognitive complexity 17; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/lib/db/antigravityTransition.ts"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"7488f6e548fc0872a3ee33ec5114fc4c384aca43dec2383ab9bd3e5e35e08b70"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function execute (cyclomatic 21, cognitive 30): execute has cyclomatic complexity 21 and cognitive complexity 30; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/__tests__/lib/explore/cache.test.ts"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5fda8a0a7a6af3b7fc9ce25f63df87c8730e5522e9a108dbc29da41fdc0bb4e"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 20, cognitive 23): (anonymous) has cyclomatic complexity 20 and cognitive complexity 23; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/components/TokenGraph2D.tsx"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"bcc9d8f2ff1a0de488f9f6166a4e323fdeb885e3be45841af3844f56f33304fe"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function allocateIncrements (cyclomatic 20, cognitive 22): allocateIncrements has cyclomatic complexity 20 and cognitive complexity 22; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/lib/db/parserHighWater.ts"},"region":{"startLine":1223}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f94debebec4a10783e82c8994fe2d4e8326a51498b784ff8fc07ea84cd9b4ff"}},{"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 LeaderboardWithPreferences (cyclomatic 20, cognitive 19): LeaderboardWithPreferences 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/app/(main)/leaderboard/page.tsx"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"f87f8940b7b55a4d14a2d3e8e734e16ad1c4607ef5b52f360ae3d1f39c42529e"}},{"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":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"685b5dfa9aa49b420b3dbeba9537d63ace46718ac8a0818278cd7cd53e8b5708"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function collect (cyclomatic 19, cognitive 39): collect has cyclomatic complexity 19 and cognitive complexity 39; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/scripts/capital/verify-quotes.ts"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"c30daa8152817d3ef33528549c47b94b6ffa8d5d502037ccf6b46ed281fe3484"}},{"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":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3e32da80dffd680390b4e25faca5fe18a71756fc046df5ef0a189c209535bff"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function InvestorPage (cyclomatic 19, cognitive 18): InvestorPage has cyclomatic complexity 19 and cognitive complexity 18; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/app/(main)/capital/investors/[slug]/page.tsx"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6320aca3b948a858e34d947e69cf61b8d5191fe2229d8cc8985453388ed603a"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function CapitalPage (cyclomatic 19, cognitive 18): CapitalPage has cyclomatic complexity 19 and cognitive complexity 18; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/app/(main)/capital/page.tsx"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"47e29e0c823fc21092a871d62c6161c8dd11bbf43cf51b2b375d076869553d84"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function ModelDetailView (cyclomatic 19, cognitive 18): ModelDetailView has cyclomatic complexity 19 and cognitive complexity 18; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/components/explore/ModelDetailView.tsx"},"region":{"startLine":414}}}],"partialFingerprints":{"codehealthFindingId/v1":"d919b308e701f5335a23daf42cda493b23265ba228c10f800530ef120a336feb"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function ModelPricing (cyclomatic 19, cognitive 18): ModelPricing has cyclomatic complexity 19 and cognitive complexity 18; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/components/explore/ModelPricing.tsx"},"region":{"startLine":351}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9dc71ab86a231905bbcd8199e0a58588c30fbba3033120b026d32a393eda1f7"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function ScoreTimeline (cyclomatic 19, cognitive 18): ScoreTimeline has cyclomatic complexity 19 and cognitive complexity 18; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/components/explore/ScoreTimeline.tsx"},"region":{"startLine":349}}}],"partialFingerprints":{"codehealthFindingId/v1":"49769c643766d082ffe4c927a23283df50dbc6dac54b28cb06b7411354546e93"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function renderReceiptEmbedSvg (cyclomatic 19, cognitive 18): renderReceiptEmbedSvg has cyclomatic complexity 19 and cognitive complexity 18; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/lib/embed/renderReceiptEmbedSvg.ts"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"14f7d043693029fa4c3673756f90f86def826daff1b262500b37184b807287b2"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function mergeClientModel (cyclomatic 19, cognitive 18): mergeClientModel has cyclomatic complexity 19 and cognitive complexity 18; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/lib/publicProfileData.ts"},"region":{"startLine":366}}}],"partialFingerprints":{"codehealthFindingId/v1":"35fd95e667baebf85f3f26361edb6d6d6af5bd8014928347bc08336224a5dfb4"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function Select (cyclomatic 19, cognitive 17): Select has cyclomatic complexity 19 and cognitive complexity 17; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/components/ui/Select.tsx"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"5238a32bf964126747bade0653a911e58b27ffaa804333a81670286a5ff5debc"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function groupByFiscalYear (cyclomatic 18, cognitive 29): groupByFiscalYear has cyclomatic complexity 18 and cognitive complexity 29; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/lib/capital/ledger/capex.ts"},"region":{"startLine":267}}}],"partialFingerprints":{"codehealthFindingId/v1":"e964aa6f6ae06f726def94b7f21a35b58437ca6bcea5f6f59775640e8111f850"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function buildLeaderboardViewHref (cyclomatic 18, cognitive 27): buildLeaderboardViewHref has cyclomatic complexity 18 and cognitive complexity 27; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/app/(main)/leaderboard/views.ts"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"f42dd3f10cf77c5c7a7a8e24f1f2d0dfd4bbb47e6e1239d1b3bcc3da697fea4c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function modelsForHighWater (cyclomatic 18, cognitive 18): modelsForHighWater has cyclomatic complexity 18 and cognitive complexity 18; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/lib/db/parserHighWater.ts"},"region":{"startLine":337}}}],"partialFingerprints":{"codehealthFindingId/v1":"f164a5c49acd3fcedccf8b28cbf32b8495595fb10c1a323bc7e7bca9df6567e5"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function buildModelDetail (cyclomatic 18, cognitive 18): buildModelDetail has cyclomatic complexity 18 and cognitive complexity 18; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/lib/explore/rollup.ts"},"region":{"startLine":316}}}],"partialFingerprints":{"codehealthFindingId/v1":"90eca32c2ea500316d77b09f5d71997954e1d8f29956c72c5287596f61ef06e6"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function normalizeClientBreakdownAliases (cyclomatic 18, cognitive 17): normalizeClientBreakdownAliases has cyclomatic complexity 18 and cognitive complexity 17; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/app/api/submit/route.ts"},"region":{"startLine":333}}}],"partialFingerprints":{"codehealthFindingId/v1":"a08a3b52942604a2bc0618738e39c0a338983da940aba096cfda7472bd75262e"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function fillMissingUsageDays (cyclomatic 18, cognitive 17): fillMissingUsageDays has cyclomatic complexity 18 and cognitive complexity 17; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/components/profile/usageChartData.ts"},"region":{"startLine":412}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6f5cf75edf7a4d1532ccefe9e671ff57157145177e0e64cf2c2055d333f242b"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function stats (cyclomatic 18, cognitive 17): stats has cyclomatic complexity 18 and cognitive complexity 17; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/lib/capital/ledger/home.ts"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e3a5cf3be5b63bad57e6d017be045c3ec00b3d151c0238f6aa01385c0193326"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 18, cognitive 16): (anonymous) has cyclomatic complexity 18 and cognitive complexity 16; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/app/admin/moderation/ModerationClient.tsx"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"14aafbd66efb0ae16b688a16460ab74ca9184be7f9607e4f06f4cf30f1a87c1b"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function packageNotices (cyclomatic 18, cognitive 10): packageNotices has cyclomatic complexity 18 and cognitive complexity 10; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/scripts/package-notices.mjs"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"5597552805fc9d5cf69a8681102b0aed5eb20c4b8d8f56c8814cb1259ff6b602"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function get (cyclomatic 17, cognitive 30): get has cyclomatic complexity 17 and cognitive complexity 30; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/scripts/capital/import-epoch.ts"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d90da21f531017a1dd100f41781f6b3f0a5c2439b4927dece4da68f5af6b8dc"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function get (cyclomatic 17, cognitive 29): get has cyclomatic complexity 17 and cognitive complexity 29; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/scripts/capital/build-org-ids.ts"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2aa2cc499afa6653f44840ba4b9b8fc0ddedbf2b4c7ff6c87d7fa77d8d34eed"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function deriveCapex (cyclomatic 17, cognitive 28): deriveCapex has cyclomatic complexity 17 and cognitive complexity 28; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/lib/capital/ledger/capex.ts"},"region":{"startLine":373}}}],"partialFingerprints":{"codehealthFindingId/v1":"29bf2023b86bae23ada122143025752e06433de633981e9b85043279ef540567"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function fetchUserEmbedStats (cyclomatic 17, cognitive 19): fetchUserEmbedStats has cyclomatic complexity 17 and cognitive complexity 19; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/lib/embed/getUserEmbedStats.ts"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d82035b1675ef40ddb0d6f525b474f828be6de0db64b14ce66130b98a449c0c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function ModelsDashboard (cyclomatic 17, cognitive 18): ModelsDashboard has cyclomatic complexity 17 and cognitive complexity 18; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/components/explore/ModelsDashboard.tsx"},"region":{"startLine":625}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6ade6b1c20972eb41804ba935c68287bf3b733ffea1175aeed51bfc78b6cf8c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function renderVitalsEmbedSvg (cyclomatic 17, cognitive 16): renderVitalsEmbedSvg has cyclomatic complexity 17 and cognitive complexity 16; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/lib/embed/renderVitalsEmbedSvg.ts"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f05ee4b9078344f8860adf5c011336b1972b324b0c0b333649f16e03ae031f7"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function ProfileOverview (cyclomatic 17, cognitive 15): ProfileOverview has cyclomatic complexity 17 and cognitive complexity 15; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/components/profile/ProfileOverview.tsx"},"region":{"startLine":357}}}],"partialFingerprints":{"codehealthFindingId/v1":"98b25ca579843ffd79c69623c5872cfba30722ff2c0600f3b9f39f96933c76f8"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function normalizeSubmissionData (cyclomatic 16, cognitive 28): normalizeSubmissionData has cyclomatic complexity 16 and cognitive complexity 28; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/app/api/submit/route.ts"},"region":{"startLine":375}}}],"partialFingerprints":{"codehealthFindingId/v1":"af6b98fba785acfda1075d5f56363f9810b2b9d4d0d64ef7ab500097315c06ed"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function main (cyclomatic 16, cognitive 26): main has cyclomatic complexity 16 and cognitive complexity 26; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/scripts/capital/build-capex.ts"},"region":{"startLine":508}}}],"partialFingerprints":{"codehealthFindingId/v1":"91a87d8190a7c88c49b73d510559d3d8174c45bc541f148d4d965bfa65d1167b"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function parseCsv (cyclomatic 16, cognitive 26): parseCsv has cyclomatic complexity 16 and cognitive complexity 26; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/lib/capital/ledger/epoch.ts"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b9c252d64f1a5a40849043de49e5d876319dec524662a47f25192f684922028"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function validateAntigravityRecountProof (cyclomatic 16, cognitive 23): validateAntigravityRecountProof has cyclomatic complexity 16 and cognitive complexity 23; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/lib/db/antigravityStateCoverage.ts"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"dae3e0c98e3a9f749cf74993181b90c89a0caefc7b2760591c7e421d6870c00a"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function buildProfileEmbedLinks (cyclomatic 16, cognitive 22): buildProfileEmbedLinks has cyclomatic complexity 16 and cognitive complexity 22; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/components/profile/embedDialogOptions.ts"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e8271fb38b75459c8a20bbe70440d6374bc498ba44984b296468eb53721f462"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function ClientSection (cyclomatic 16, cognitive 18): ClientSection has cyclomatic complexity 16 and cognitive complexity 18; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/components/BreakdownPanel.tsx"},"region":{"startLine":258}}}],"partialFingerprints":{"codehealthFindingId/v1":"d58ad3567306c90a3c84049459ae479c8c4dca42bfd0e488fb1ac6892beeae72"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function PATCH (cyclomatic 16, cognitive 15): PATCH has cyclomatic complexity 16 and cognitive complexity 15; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/app/api/groups/[slug]/members/[userId]/role/route.ts"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"360ffde51c27567ec83ed24afce74844d877e82acd1c0ca70ffb2e385954e3ea"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 16, cognitive 15): (anonymous) has cyclomatic complexity 16 and cognitive complexity 15; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/components/profile/ProfileContributionGraph.tsx"},"region":{"startLine":2489}}}],"partialFingerprints":{"codehealthFindingId/v1":"5dc7408cc0ed0eadc0b9d905d32bcf85db4684aa847ad523a78cdb0f3935f13f"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function isFullWidth (cyclomatic 16, cognitive 15): isFullWidth has cyclomatic complexity 16 and cognitive complexity 15; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/lib/embed/renderProfileBadgeSvg.ts"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b7099a49c4b7e7ce6ae80043cb64126cbc2e0815d94bbdc00b1d308b688b11e"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function renderTerminalEmbedSvg (cyclomatic 16, cognitive 15): renderTerminalEmbedSvg has cyclomatic complexity 16 and cognitive complexity 15; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/lib/embed/renderTerminalEmbedSvg.ts"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"46867df64208984f855e524ba4480a94fd679f4352231629662c03dcd5f53954"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function sanitizeAuthReturnTo (cyclomatic 16, cognitive 10): sanitizeAuthReturnTo has cyclomatic complexity 16 and cognitive complexity 10; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/lib/auth/returnTo.ts"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"02ab71d9fe85dc91ad7e7a189a443676abf359e325a7f5007adf9eaea2632486"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function generateReleaseNotes (cyclomatic 15, cognitive 25): generateReleaseNotes has cyclomatic complexity 15 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":"scripts/generate-release-notes.ts"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff19cfd82f46588fb4817955d8d02dd3244286db844ac404dbd1ac17c7366976"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function adjustCellWithRecountProof (cyclomatic 15, cognitive 21): adjustCellWithRecountProof has cyclomatic complexity 15 and cognitive complexity 21; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/lib/db/antigravityStateCoverage.ts"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce3df3641495bc37666c24e6473a549fa6bc7ebcc644c898cf7aff57107399c0"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function payload (cyclomatic 15, cognitive 16): payload has cyclomatic complexity 15 and cognitive complexity 16; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/__tests__/api/submitMiCodeTransition.test.ts"},"region":{"startLine":345}}}],"partialFingerprints":{"codehealthFindingId/v1":"654aeb4c4db85782e48509c430962f428e95ad1867d3dffd1d4166c50d50a731"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 15, cognitive 16): (anonymous) has cyclomatic complexity 15 and cognitive complexity 16; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/lib/capital/ledger/home.ts"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"dac018642e5eed5983605d2ded2b76be92cd261626b8dd979a1c9d81bed839e5"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function result (cyclomatic 15, cognitive 15): result has cyclomatic complexity 15 and cognitive complexity 15; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/__tests__/api/submitMiCodeTransition.test.ts"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"478050474e1167c6c5c374f7223c171e4475ac4da28af0d3252f3d8826b5dd0d"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function GroupsBrowser (cyclomatic 15, cognitive 14): GroupsBrowser has cyclomatic complexity 15 and cognitive complexity 14; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/app/(main)/leaderboard/GroupsBrowser.tsx"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"c07da1693c9b0c1458ddbc57db23d9e0ef4a7705f4b7bdeac9945777c80330eb"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function SettingsClient (cyclomatic 15, cognitive 14): SettingsClient has cyclomatic complexity 15 and cognitive complexity 14; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/app/settings/SettingsClient.tsx"},"region":{"startLine":716}}}],"partialFingerprints":{"codehealthFindingId/v1":"689f18e9930752eb32f83bb38aa63f9c39609775ea11e768ea3023e59cde0366"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function ResultsSection (cyclomatic 15, cognitive 14): ResultsSection has cyclomatic complexity 15 and cognitive complexity 14; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/components/explore/BenchmarkDetailView.tsx"},"region":{"startLine":847}}}],"partialFingerprints":{"codehealthFindingId/v1":"177de4c4bcc538bac8ba992a06fec0e190e3ed68f736aaf571e300403da72a05"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function planMiCodeTransition (cyclomatic 15, cognitive 14): planMiCodeTransition has cyclomatic complexity 15 and cognitive complexity 14; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/lib/db/micodeTransition.ts"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"058a6003a90068b59cba84cd36a021f533a1a87320ce69d44e7864821e33b484"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function renderMinimalEmbedSvg (cyclomatic 15, cognitive 14): renderMinimalEmbedSvg has cyclomatic complexity 15 and cognitive complexity 14; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/lib/embed/renderMinimalEmbedSvg.ts"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"04eec03a3f4340647085d4b4a00e5a1b13064b1b686aafca19bdd8d6d7986115"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function resolveTargetPackageName (cyclomatic 14, cognitive 24): resolveTargetPackageName has cyclomatic complexity 14 and cognitive complexity 24; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/cli/src/index.ts"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"5313d264daf5108e18316bd37a163b44ea311c21322af7775d1ea218d0dc9c49"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function resolveRustTargetTriple (cyclomatic 14, cognitive 24): resolveRustTargetTriple has cyclomatic complexity 14 and cognitive complexity 24; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/cli/src/index.ts"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b6a01e0ba0061bd7478a340964f9cf272b76c7311d94ca82ad78c19f8840ac1"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function applyDailyBreakdownWrite (cyclomatic 14, cognitive 24): applyDailyBreakdownWrite has cyclomatic complexity 14 and cognitive complexity 24; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/__tests__/api/submitAntigravityCliHighWater.test.ts"},"region":{"startLine":306}}}],"partialFingerprints":{"codehealthFindingId/v1":"060822717b3a5d609886fe431576e0ff9601790515337e8aa45a526a3fa6c5d6"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function applyDailyBreakdownWrite (cyclomatic 14, cognitive 24): applyDailyBreakdownWrite has cyclomatic complexity 14 and cognitive complexity 24; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/__tests__/api/submitBoundedWindowNotices.test.ts"},"region":{"startLine":295}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac161a665d10e0f113e487eb8c036fd057f0335721084d9f7e18dbbfe838327b"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function applyDailyBreakdownWrite (cyclomatic 14, cognitive 24): applyDailyBreakdownWrite has cyclomatic complexity 14 and cognitive complexity 24; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/__tests__/api/submitDevinCliRecount.test.ts"},"region":{"startLine":347}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0a4f28de1f9c71ee77659021991a49ae69772c8a13246e3b88c1f16916f2c2d"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function scopeBreakdownToDirectives (cyclomatic 14, cognitive 18): scopeBreakdownToDirectives has cyclomatic complexity 14 and cognitive complexity 18; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/lib/leaderboard/sourceBreakdown.ts"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"f96568fef73e1c7b02b677a2be2affcb1b9df011b5764fcfc6530e916380250e"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function estimateTextUnits (cyclomatic 14, cognitive 15): estimateTextUnits has cyclomatic complexity 14 and cognitive complexity 15; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/lib/embed/embedShared.ts"},"region":{"startLine":496}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d098923f3b56b843262249eed75bdce4387d54b9176b00cbde2c95a8c5980f2"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function render (cyclomatic 14, cognitive 13): render has cyclomatic complexity 14 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/scripts/gallery/gallery-app.ts"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"2addad47bfefa7065ec958229a23b2a7092a73e09ee31424c975c3919e547026"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function CompaniesPage (cyclomatic 14, cognitive 13): CompaniesPage has cyclomatic complexity 14 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/app/(main)/capital/companies/page.tsx"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"366f74f9d451fb34cbbe169f737bc5ab14c6e6229d1a96d8a6b9733ba0cc9118"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 14, cognitive 13): (anonymous) has cyclomatic complexity 14 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/app/(main)/capital/spending/page.tsx"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5c4167b6c57da29b40b3ee33613d2405db333cbbb91e3d6e5ba1e98b7f5153e"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 14, cognitive 13): (anonymous) has cyclomatic complexity 14 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/lib/capital/ledger/directory.ts"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5e15c9932a9140ccf13c47d6e2de338d1efac0e4152f287192a1e7e45adc335"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function GroupManagement (cyclomatic 14, cognitive 11): GroupManagement has cyclomatic complexity 14 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/components/leaderboard/GroupManagement.tsx"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ad0159f09ef3a9ffef45baf077ffb57e662f324afb778a4f0ae487f342e12f0"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function createGroupInvite (cyclomatic 14, cognitive 11): createGroupInvite has cyclomatic complexity 14 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/lib/groups/invites.ts"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b65751c90e36f8106b436758fc20eaa79e251d56102a4b44322e33acab1c8fb"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function mergeClientBreakdownsWithRegressionGuard (cyclomatic 13, cognitive 25): mergeClientBreakdownsWithRegressionGuard has cyclomatic complexity 13 and cognitive complexity 25; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/lib/db/helpers.ts"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"3af563c50192428e39d12e1837b18d3232a49783a2e8d5fa8fb698d2c1e5fc6d"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function fromLegacyCache (cyclomatic 13, cognitive 19): fromLegacyCache has cyclomatic complexity 13 and cognitive complexity 19; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/scripts/capital/lib/source-cache.ts"},"region":{"startLine":218}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f93d92d9d18964487c22aa4e15e413f40c931d42d64be6f94ca04be002af3f0"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function evaluate (cyclomatic 13, cognitive 18): evaluate has cyclomatic complexity 13 and cognitive complexity 18; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/scripts/capital/build-org-ids.ts"},"region":{"startLine":587}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0fd973ac271e256f971159024d02de5f0e3038bb72c844752c9d54a98cba1ae"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function total (cyclomatic 13, cognitive 18): total has cyclomatic complexity 13 and cognitive complexity 18; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/lib/capital/ledger/total.ts"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e4a8c5b503532a0d494cf9f918800b9997a7981822429d52ae1b846196ae5ba"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 13, cognitive 14): (anonymous) has cyclomatic complexity 13 and cognitive complexity 14; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/__tests__/components/groupManagement.test.tsx"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"eafd21518a7ec5c66d41153e679cd9b9eebbc2a32ecdac03d93cbacd01737be7"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function canonicalModelId (cyclomatic 13, cognitive 14): canonicalModelId has cyclomatic complexity 13 and cognitive complexity 14; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/lib/explore/modelKey.ts"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"971c23594806d518ce298a30397d20b9031f8e36abd4fa9d7b10a16f658273ac"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function selectResult (cyclomatic 13, cognitive 12): selectResult has cyclomatic complexity 13 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/__tests__/api/submitAntigravityCliHighWater.test.ts"},"region":{"startLine":270}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e7d164636c8a33a78b721d69b442a60d2aa7c4a365d4f6c3243dff5e0643a15"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function selectResult (cyclomatic 13, cognitive 12): selectResult has cyclomatic complexity 13 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/__tests__/api/submitDevinCliRecount.test.ts"},"region":{"startLine":314}}}],"partialFingerprints":{"codehealthFindingId/v1":"aac352eba142a7fd0f9e5bbf52f899e790fc0f1b8fcfad8d5cb9f7f165952ea6"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 13, cognitive 12): (anonymous) has cyclomatic complexity 13 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/components/profile/ProfileContributionGraph.tsx"},"region":{"startLine":2427}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1c5363ccec7db52e9ea2aecb7e6af8b2bbb15b8c57eb017474c713a6084592d"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 13, cognitive 12): (anonymous) has cyclomatic complexity 13 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/lib/capital/ledger/model.ts"},"region":{"startLine":702}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee7d5cc22e96d746aa22b65f57ab691debbbf026ba6c7a2a2f7513ba167e490a"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function modelDisplayName (cyclomatic 13, cognitive 11): modelDisplayName has cyclomatic complexity 13 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/lib/explore/modelMeta.ts"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"22ead1f4df0a9a43e3e3c7562d0cb435002fdb4526f56be5f2f1c37ae3eba1f7"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function legacyLedgerCoverage (cyclomatic 12, cognitive 21): legacyLedgerCoverage has cyclomatic complexity 12 and cognitive complexity 21; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/lib/db/antigravityStateCoverage.ts"},"region":{"startLine":439}}}],"partialFingerprints":{"codehealthFindingId/v1":"99bcef5a771d4e6df92075cd012c7dba6b91089af81c3d3fdefe8d03f09be5ba"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function layoutContributions (cyclomatic 12, cognitive 20): layoutContributions has cyclomatic complexity 12 and cognitive complexity 20; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/lib/embed/embedShared.ts"},"region":{"startLine":403}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7bf8401c65d263e4b8ac9d03b49a972f2646e2ee42c2db757ac960969f9737a"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function unzip (cyclomatic 12, cognitive 19): unzip has cyclomatic complexity 12 and cognitive complexity 19; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/scripts/capital/import-epoch.ts"},"region":{"startLine":249}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee3c4feb8a5188e5684b01c36b6f1ccbcca5356bb39034f9edf6e7473e18b2f8"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function generateMetadata (cyclomatic 12, cognitive 18): generateMetadata has cyclomatic complexity 12 and cognitive complexity 18; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/app/(main)/models/[key]/page.tsx"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"dcf2483e5a088ccd8abf24ab6a25506de2995b8771947318676bc79fe518a21d"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 12, cognitive 15): (anonymous) has cyclomatic complexity 12 and cognitive complexity 15; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/app/api/groups/[slug]/members/[userId]/role/route.ts"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"be82bcfad4eb1dd746aff1cde29ed058b8d6f8edee7afaada70569a9ef89181f"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 12, cognitive 13): (anonymous) has cyclomatic complexity 12 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/__tests__/components/groupManagement.test.tsx"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"c837a44da0b563543583b4e2e0f7f483d0a88d42d0ba44a981b3172858928644"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function GET (cyclomatic 12, cognitive 13): GET has cyclomatic complexity 12 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/app/api/leaderboard/user/[username]/route.ts"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"743386bcf9e5d643d18ed6371fcb13b1661c3c01185f786cc0fd5b6820265428"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 12, cognitive 12): (anonymous) has cyclomatic complexity 12 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/__tests__/api/submitWithholding.test.ts"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d1b56283e3b319ec06d77381b4ed89e4c12c854f984d3d95028c6bbca3332bc"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function mergeModelBreakdowns (cyclomatic 12, cognitive 12): mergeModelBreakdowns has cyclomatic complexity 12 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/app/api/submit/route.ts"},"region":{"startLine":221}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ed8f81996189d8740137a174d5fae30a033dddace472805f5839c11ee8462a1"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 12, cognitive 11): (anonymous) has cyclomatic complexity 12 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/app/(main)/capital/rounds/page.tsx"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"41aa7c1d73d758ceac41fe63b6962037baae6c4a11a5feaa308b95768e89e495"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 12, cognitive 11): (anonymous) has cyclomatic complexity 12 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/app/(main)/leaderboard/LeaderboardClient.tsx"},"region":{"startLine":996}}}],"partialFingerprints":{"codehealthFindingId/v1":"11ae550fc7f992c385b306a7adfe104628a30aca9a1653c6d2b4838eaa7ac27e"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function GET (cyclomatic 12, cognitive 11): GET has cyclomatic complexity 12 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/app/api/leaderboard/route.ts"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d0f9c974a2ccaf1065b57c5268fe99dc02803e13294373a4c904c5d6bfde13c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function BenchmarkRow (cyclomatic 12, cognitive 11): BenchmarkRow has cyclomatic complexity 12 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/components/explore/BenchmarkIndex.tsx"},"region":{"startLine":297}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd08627077a3987e8b595c53ef532f2e1c2601f155d26ed1656773b4ce8d152d"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function describeUsersChange (cyclomatic 12, cognitive 11): describeUsersChange has cyclomatic complexity 12 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/components/explore/format.ts"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c4f67bf842f99b8ab95e5c4a2553e8dba0f6d566d5d6ad02b9af0317c972079"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function ProfileEmbedDialog (cyclomatic 12, cognitive 11): ProfileEmbedDialog has cyclomatic complexity 12 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/components/profile/ProfileEmbedDialog.tsx"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"42c3b0b90f84a02afdfabb75b55f66272047508828426ec128408a589c01375b"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function openList (cyclomatic 12, cognitive 11): openList has cyclomatic complexity 12 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/components/ui/Select.tsx"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"9182162f71a3de624a7f2efa350927483a01252182e303129ab6293e2f482c48"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function renderGraphEmbedSvg (cyclomatic 12, cognitive 11): renderGraphEmbedSvg has cyclomatic complexity 12 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/lib/embed/renderGraphEmbedSvg.ts"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc91930beb47e5a69494c51c881bca9ec8d422a69491fdbb818dfe331bbc6013"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 12, cognitive 10): (anonymous) has cyclomatic complexity 12 and cognitive complexity 10; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/app/(main)/capital/compute/page.tsx"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"de0deb344c8b76ef0faae3f17345f612a5dfd940dd4dc4d3d555c23d68eef99a"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function handleKeyDown (cyclomatic 12, cognitive 10): handleKeyDown has cyclomatic complexity 12 and cognitive complexity 10; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/components/profile/ProfileEmbedDialog.tsx"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2df825cea8ed3659759fb1fd5850bd38e7db14908c69c14161a4fd5e30abbf1"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function normalizeDataCenterRow (cyclomatic 12, cognitive 10): normalizeDataCenterRow has cyclomatic complexity 12 and cognitive complexity 10; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/lib/capital/ledger/epoch.ts"},"region":{"startLine":493}}}],"partialFingerprints":{"codehealthFindingId/v1":"a48406b608c4ef41016b5eeea42624aa38e5ef616a7847a669d1274186488fc3"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function pick (cyclomatic 11, cognitive 17): pick has cyclomatic complexity 11 and cognitive complexity 17; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/scripts/capital/build-org-ids.ts"},"region":{"startLine":641}}}],"partialFingerprints":{"codehealthFindingId/v1":"43d991f43070658c27fc1f20c3880beff68799bcf5445b4c129902b1361c7669"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function dockerIgnored (cyclomatic 11, cognitive 17): dockerIgnored has cyclomatic complexity 11 and cognitive complexity 17; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/__tests__/notice-packaging.test.ts"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5cce889bc8ea08cd6d252ddb56cb28c354454ef1b37737defc54450ff8fae31"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function addClientCostFloor (cyclomatic 11, cognitive 16): addClientCostFloor has cyclomatic complexity 11 and cognitive complexity 16; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/lib/db/helpers.ts"},"region":{"startLine":425}}}],"partialFingerprints":{"codehealthFindingId/v1":"af424778f7c921b3df01abf909db5e60cb21ef12fe63b8e4936948ccf7f6c8b0"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 11, cognitive 15): (anonymous) has cyclomatic complexity 11 and cognitive complexity 15; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/components/TokenGraph3D.tsx"},"region":{"startLine":218}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a119af0f12d0aabc357d35ed492dfd05d367d9aa646a710ed5220fd74c049ec"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function descriptionFits (cyclomatic 11, cognitive 14): descriptionFits has cyclomatic complexity 11 and cognitive complexity 14; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/scripts/capital/build-org-ids.ts"},"region":{"startLine":535}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef52b009da1dabe74a646de2dcfb8073538d31904feb81a30bd2f31021755441"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function handleKeyDown (cyclomatic 11, cognitive 13): handleKeyDown has cyclomatic complexity 11 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/components/TokenGraph2D.tsx"},"region":{"startLine":354}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1613590a55ecb77de2a0fb20882c6cf5f62392bc552c454876b57f63f9c60c5"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function main (cyclomatic 11, cognitive 12): main has cyclomatic complexity 11 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/scripts/stealth/measure.ts"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d3b12b76d7a10e69d67af3edd2f267ef9243ab41063a08991b030207d74f757"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function GET (cyclomatic 11, cognitive 12): GET has cyclomatic complexity 11 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/app/api/groups/[slug]/leaderboard/route.ts"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"21a3609329630cbddb3fd2534c483b759a8651a1341c0d7d6db8062cefd8da1d"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 11, cognitive 12): (anonymous) has cyclomatic complexity 11 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/components/DataInput.tsx"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"984f09bce04ba5920f8dd2560f68ff308fafdb16b82a5fe2af2056cbde521956"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function EstimateCell (cyclomatic 11, cognitive 12): EstimateCell has cyclomatic complexity 11 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/components/explore/DashboardCells.tsx"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"27b9fb93873a778ff11e9048e24e740c5d889353fec718e2d70ac6fda6bdaae9"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function buildDualDerivationRecord (cyclomatic 11, cognitive 12): buildDualDerivationRecord has cyclomatic complexity 11 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/lib/db/deviceClientTotals.ts"},"region":{"startLine":553}}}],"partialFingerprints":{"codehealthFindingId/v1":"bad5e269277faf0ee7ff1575553fe3ee91953fa86e4d146e818e6af1a8f49e68"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function GET (cyclomatic 11, cognitive 11): GET has cyclomatic complexity 11 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/app/api/auth/github/callback/route.ts"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e3883feabd130ae1a9c54ceccf09f417031e87eab26f2978cf60d327e12c95e"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function recountProofDayMatchesSnapshot (cyclomatic 11, cognitive 11): recountProofDayMatchesSnapshot has cyclomatic complexity 11 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/lib/db/parserHighWater.ts"},"region":{"startLine":624}}}],"partialFingerprints":{"codehealthFindingId/v1":"90ce7d6a7010f9b7be8456e51aa29876bbc1d2f20fc5adcab7839ecab6fcdbb4"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function createValidationPayload (cyclomatic 11, cognitive 10): createValidationPayload has cyclomatic complexity 11 and cognitive complexity 10; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/__tests__/api/submit.test.ts"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"07711df1e506bd604f028292bb9b9904881cb2cad28da7189a65aa844baf95b1"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function selectResult (cyclomatic 11, cognitive 10): selectResult has cyclomatic complexity 11 and cognitive complexity 10; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/__tests__/api/submitBoundedWindowNotices.test.ts"},"region":{"startLine":266}}}],"partialFingerprints":{"codehealthFindingId/v1":"09e820828e0d15827791a649c7e115a0947a01c122012e5aa560fc9fa7f81cec"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function orgJsonLd (cyclomatic 11, cognitive 10): orgJsonLd has cyclomatic complexity 11 and cognitive complexity 10; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/app/(main)/capital/companies/[slug]/page.tsx"},"region":{"startLine":554}}}],"partialFingerprints":{"codehealthFindingId/v1":"8787a304bfc22d837a78a2f833a7272b2a1937ab88c76af87001bce3d92a9967"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 11, cognitive 10): (anonymous) has cyclomatic complexity 11 and cognitive complexity 10; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/app/(main)/capital/sectors/[slug]/page.tsx"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffdf0e61a9b283fa9f9e7033306556d3c80281339fc0282c68351283e215ff7c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function Image (cyclomatic 11, cognitive 10): Image has cyclomatic complexity 11 and cognitive complexity 10; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/app/(main)/groups/[slug]/opengraph-image.tsx"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab29874963b65c182fed7dc8a6219018007fdcb52d4e7c59ece9e206fa596bc1"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function DELETE (cyclomatic 11, cognitive 10): DELETE has cyclomatic complexity 11 and cognitive complexity 10; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/app/api/groups/[slug]/members/route.ts"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb49dd38ad151e1f57a2dfaa086c4760b63c358ee722da43ceddca035cfb6d79"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function ProfileInsights (cyclomatic 11, cognitive 10): ProfileInsights has cyclomatic complexity 11 and cognitive complexity 10; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/app/u/[username]/ProfilePageClient.tsx"},"region":{"startLine":446}}}],"partialFingerprints":{"codehealthFindingId/v1":"037f2092b79e1e777e07de4469089c09b1fec7b09930c7c42f0b42a665445b66"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function ProfilePage (cyclomatic 11, cognitive 10): ProfilePage has cyclomatic complexity 11 and cognitive complexity 10; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/app/u/[username]/page.tsx"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3d9d430f9613ac29ebdc645c52f82a14094ddf5cfa07f2964fdeb74526e0c6c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function ModelCatalog (cyclomatic 11, cognitive 10): ModelCatalog has cyclomatic complexity 11 and cognitive complexity 10; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/components/explore/ModelCatalog.tsx"},"region":{"startLine":356}}}],"partialFingerprints":{"codehealthFindingId/v1":"680ab5d29a4871298137deb7550738c8d02c77749f8740789adcccb039b0c721"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function LabRow (cyclomatic 11, cognitive 10): LabRow has cyclomatic complexity 11 and cognitive complexity 10; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/components/home/CapitalPreview.tsx"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"e40e893f01227413b0578db9cf6232e9e27b135d408194640f56db9294937b8c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 11, cognitive 10): (anonymous) has cyclomatic complexity 11 and cognitive complexity 10; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/components/leaderboard/GroupManagement.tsx"},"region":{"startLine":303}}}],"partialFingerprints":{"codehealthFindingId/v1":"fafe341e576d88bcb2aa117e42969a7aeecd965d8015c98a7eb1fe0fa3f62698"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function applyCostCompleteness (cyclomatic 11, cognitive 10): applyCostCompleteness has cyclomatic complexity 11 and cognitive complexity 10; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/lib/db/helpers.ts"},"region":{"startLine":312}}}],"partialFingerprints":{"codehealthFindingId/v1":"39159dffff3e6291ea11fd1ca72b7f01bf274c9d44edeefb1b8640110bc7dd5c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function isDeviceClientBucketTotal (cyclomatic 11, cognitive 9): isDeviceClientBucketTotal has cyclomatic complexity 11 and cognitive complexity 9; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/lib/db/deviceClientTotals.ts"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e60223e47a50ef43dcfa096e430f5da3172e3c0d190ebc64e1522fb23b047a3"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function validState (cyclomatic 11, cognitive 9): validState has cyclomatic complexity 11 and cognitive complexity 9; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/lib/db/parserHighWater.ts"},"region":{"startLine":1460}}}],"partialFingerprints":{"codehealthFindingId/v1":"f45bdd33711449cbe98f74d766ba689b93f2c89585d5a3e1cfd24839cd91b7f2"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/frontend/src/components/profile/ProfileContributionGraph.tsx: 2381 lines of code: packages/frontend/src/components/profile/ProfileContributionGraph.tsx has 2381 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/components/profile/ProfileContributionGraph.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"66adacc652ab4de920bf1b8ad3754d24f44fcca9a65b0513d82b2ab44f191f1b"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/frontend/src/app/api/submit/route.ts: 1887 lines of code: packages/frontend/src/app/api/submit/route.ts has 1887 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/app/api/submit/route.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"247afb73861ba70633ec9eba8f43493cbd04ea770a142baab5158bf3115d5d9e"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/frontend/src/lib/db/parserHighWater.ts: 1792 lines of code: packages/frontend/src/lib/db/parserHighWater.ts has 1792 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/lib/db/parserHighWater.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"16fb4f5a886b5ce830f45a00bf07de0f7555b98b83dcca0c619635d453908c05"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/frontend/src/app/(main)/leaderboard/LeaderboardClient.tsx: 1342 lines of code: packages/frontend/src/app/(main)/leaderboard/LeaderboardClient.tsx has 1342 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/app/(main)/leaderboard/LeaderboardClient.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a60f684dabc27cc1a82d3e069ec845226ceda971df87347bf55d67fb8825e88"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/frontend/src/components/profile/ProfileUsageChart.tsx: 1296 lines of code: packages/frontend/src/components/profile/ProfileUsageChart.tsx has 1296 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/components/profile/ProfileUsageChart.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"48aa8550d5c47f31489fc5f2f88a9195b508f3d20b92eb43b19289f17de0a975"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/frontend/src/app/settings/SettingsClient.tsx: 1136 lines of code: packages/frontend/src/app/settings/SettingsClient.tsx has 1136 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/app/settings/SettingsClient.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7523f32bbcd4b245e1b4dc63f2c3e79656ba4740ea12905790bc0981959ffdae"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/frontend/src/components/profile/ProfileEmbedDialog.tsx: 1117 lines of code: packages/frontend/src/components/profile/ProfileEmbedDialog.tsx has 1117 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/components/profile/ProfileEmbedDialog.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"02bd917d553ffb5ed6c2e6c5a6c583d7b022b49e356317da34e0d3da6c22e375"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/frontend/scripts/capital/build-org-ids.ts: 1075 lines of code: packages/frontend/scripts/capital/build-org-ids.ts has 1075 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/scripts/capital/build-org-ids.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ffafa13d32a9518574366f908ae11a527dffee320715c47240f56d6483f3677"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/frontend/src/components/explore/BenchmarkDetailView.tsx: 978 lines of code: packages/frontend/src/components/explore/BenchmarkDetailView.tsx has 978 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/components/explore/BenchmarkDetailView.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad7af1bb86d017f512e08284b7340c3db87959a3a40ca3b88e515ea81daf5ff5"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/frontend/src/app/(main)/capital/companies/[slug]/page.tsx: 943 lines of code: packages/frontend/src/app/(main)/capital/companies/[slug]/page.tsx has 943 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/app/(main)/capital/companies/[slug]/page.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"866444a0de5ed2a5a7d0a0d3a11e1aa7858d9d5eb8c468527d3106d820fcf0ca"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/frontend/src/components/profile/usageChartData.ts: 888 lines of code: packages/frontend/src/components/profile/usageChartData.ts has 888 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/components/profile/usageChartData.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ad771f178a06d066c505debd868e18e04c6cad96451baf92948e887c1ecc197"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/frontend/src/lib/db/schema.ts: 866 lines of code: packages/frontend/src/lib/db/schema.ts has 866 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/lib/db/schema.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2cc4e7b45ff98d5258d6e7cd416e2a67355263d9828aa1fc65eef53876816b0"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/frontend/src/app/(main)/groups/[slug]/GroupDetailClient.tsx: 853 lines of code: packages/frontend/src/app/(main)/groups/[slug]/GroupDetailClient.tsx has 853 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/app/(main)/groups/[slug]/GroupDetailClient.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"64d02eba5e87334be50142dd44ea90c5fdb1252c61cebdf404641af69333c4ca"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/frontend/src/app/u/[username]/ProfilePageClient.tsx: 836 lines of code: packages/frontend/src/app/u/[username]/ProfilePageClient.tsx has 836 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/app/u/[username]/ProfilePageClient.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"93a27f2df86efc5313c596499263b92438955c26861b206798508367a2f9547c"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/frontend/src/components/explore/ModelsDashboard.tsx: 780 lines of code: packages/frontend/src/components/explore/ModelsDashboard.tsx has 780 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/components/explore/ModelsDashboard.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"233606b8fb9476cf46e4df494b83edb09a56cbed1ff814de11d39f0a0f10e6e7"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/frontend/src/lib/publicProfileData.ts: 777 lines of code: packages/frontend/src/lib/publicProfileData.ts has 777 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/lib/publicProfileData.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"16cdb367a299295f024d7dcfd325acce96e3d9319d3ef598cb202c400324fc88"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/frontend/src/lib/capital/ledger/model.ts: 759 lines of code: packages/frontend/src/lib/capital/ledger/model.ts has 759 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/lib/capital/ledger/model.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"165eb57fd2c76cd42a01f62ec5527c3eeaacae7104d209db371d083967873d28"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/frontend/src/components/ui/Select.tsx: 727 lines of code: packages/frontend/src/components/ui/Select.tsx has 727 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/components/ui/Select.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd334386eac11b0cd502dd5e635ae375a53c99990666f092e75969893830b2e2"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/frontend/src/lib/moderation/candidates.ts: 724 lines of code: packages/frontend/src/lib/moderation/candidates.ts has 724 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/lib/moderation/candidates.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec499d7b9ee669f328459edac7666c8b111e17b8f47df9daccec1d0271eb95d5"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/frontend/src/lib/embed/embedShared.ts: 687 lines of code: packages/frontend/src/lib/embed/embedShared.ts has 687 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/lib/embed/embedShared.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb183eb4583be41009df18192259b555778e85e4ef0083d25d85a48abb3d7183"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/frontend/src/lib/db/antigravityStateCoverage.ts: 666 lines of code: packages/frontend/src/lib/db/antigravityStateCoverage.ts has 666 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/lib/db/antigravityStateCoverage.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d52589e4871454aba7c749a2d01c2ee069c2dce9d81c6c5275888df6c49f10e7"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/frontend/src/app/(main)/tracker/TrackerPageClient.tsx: 651 lines of code: packages/frontend/src/app/(main)/tracker/TrackerPageClient.tsx has 651 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/app/(main)/tracker/TrackerPageClient.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"117adf61fba0e0a515f0b6abad3f926c838b9b406a2174f5b6cd5ee39f23d4c2"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/frontend/src/lib/validation/submission.ts: 622 lines of code: packages/frontend/src/lib/validation/submission.ts has 622 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/lib/validation/submission.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"33c50b6174540d10e9d47f214dc28253eded2bc159e13f457382fb042ae09cc3"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/frontend/src/lib/moderation/heuristics.ts: 619 lines of code: packages/frontend/src/lib/moderation/heuristics.ts has 619 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/lib/moderation/heuristics.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"983977932c6940b4a8b65a19902027f821815980ba9e1a691d386202dd8ac06f"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/frontend/src/components/home/CapitalPreview.tsx: 617 lines of code: packages/frontend/src/components/home/CapitalPreview.tsx has 617 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/components/home/CapitalPreview.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d737842e28be08d9b7ab30c0c9ebd06afa6e72046594d857475033e39e65ab92"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/frontend/src/components/explore/UsageBoards.tsx: 579 lines of code: packages/frontend/src/components/explore/UsageBoards.tsx has 579 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/components/explore/UsageBoards.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6294257e87ce203522aa9890d3fbc28b3fb97394e703b42f28ba74485f1a273"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/frontend/src/lib/db/deviceClientTotals.ts: 576 lines of code: packages/frontend/src/lib/db/deviceClientTotals.ts has 576 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/lib/db/deviceClientTotals.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"74697ec416ae44aa1e2baf031a98bafa9dbe0132de45e69667f52d92b98d760a"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/frontend/src/components/layout/Navigation.tsx: 570 lines of code: packages/frontend/src/components/layout/Navigation.tsx has 570 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/components/layout/Navigation.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"77ae344f7af4112b3c98abf51c7407f85c70db7e97bb18157452e3d387c39025"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/frontend/src/components/explore/ScoreTimeline.tsx: 552 lines of code: packages/frontend/src/components/explore/ScoreTimeline.tsx has 552 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/components/explore/ScoreTimeline.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f930a699a17bdbf2f58a9936d3a933f815c5ed9007b4d29d9266fdd86e9b0e8e"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/frontend/src/lib/db/helpers.ts: 550 lines of code: packages/frontend/src/lib/db/helpers.ts has 550 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/lib/db/helpers.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"397783c7b05a684255ae34eb250a550072d1a0487a21769f797dc5b4a2b85bef"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/frontend/src/components/explore/ModelDetailView.tsx: 545 lines of code: packages/frontend/src/components/explore/ModelDetailView.tsx has 545 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/components/explore/ModelDetailView.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e749841ab576b4e90642e0e5c256a0a1768358a3c927f4e41fb7d7c6d9e5eff"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/frontend/scripts/capital/build-capex.ts: 535 lines of code: packages/frontend/scripts/capital/build-capex.ts has 535 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/scripts/capital/build-capex.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"203f3485db7b8806baafc25dab2162399c51ec1fd338eaf50a533f7c38970bfa"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/frontend/scripts/stealth/seed.ts: 520 lines of code: packages/frontend/scripts/stealth/seed.ts has 520 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/scripts/stealth/seed.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"224b0dae4fc295f770330808e6b84c8c06ce79667075d806be8df3d63e74d85a"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/frontend/src/components/landing/sections/WorldwideSection.tsx: 507 lines of code: packages/frontend/src/components/landing/sections/WorldwideSection.tsx has 507 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/components/landing/sections/WorldwideSection.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"73a87b7c457f0bf94a2fa425c60007bf86ffdd2d1a564c1188c5e4d172b3a468"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/frontend/src/components/explore/ModelCatalog.tsx: 504 lines of code: packages/frontend/src/components/explore/ModelCatalog.tsx has 504 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/components/explore/ModelCatalog.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e193e41c0c6ad5b7058061db81c7e2c19aa96d07552bd3c06d992fe97bfa6121"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/frontend/src/components/landing/sections/HeroSection.tsx: 504 lines of code: packages/frontend/src/components/landing/sections/HeroSection.tsx has 504 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/components/landing/sections/HeroSection.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e42835a73faa9176a639107f05bf69fd2b5d4f417c9b72c3c62af0df47918b67"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/frontend/src/lib/leaderboard/getLeaderboard.ts: 492 lines of code: packages/frontend/src/lib/leaderboard/getLeaderboard.ts has 492 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/lib/leaderboard/getLeaderboard.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bcf6bb76d7f677580bfcfe83f8e3c4788575cf4c10f167c9aa4ce13496f83fb3"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/frontend/src/lib/capital/ledger/epoch.ts: 479 lines of code: packages/frontend/src/lib/capital/ledger/epoch.ts has 479 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/lib/capital/ledger/epoch.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ee19f5ce668f24c8607db0a5028d50c5b157fb6b7afbea031aca42b11bac0e0"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/frontend/src/components/DataInput.tsx: 477 lines of code: packages/frontend/src/components/DataInput.tsx has 477 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/components/DataInput.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ea7fe2c3dec3ce13aa0875a08cc8c2c7ed04c8ab0e4e57c3affdec014c2bc5a"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/frontend/src/components/profile/ProfileOverview.tsx: 476 lines of code: packages/frontend/src/components/profile/ProfileOverview.tsx has 476 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/components/profile/ProfileOverview.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c240a0b9644b3a16fb27af03c9f206984d21620868527999f8c32002e939aad"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/frontend/src/lib/capital/ledger/schema.ts: 474 lines of code: packages/frontend/src/lib/capital/ledger/schema.ts has 474 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/lib/capital/ledger/schema.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"adf0c4ab3753fe37bae17d54f321d0dfcb7e7ac6a3dc920fcfe778be4c73b894"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/frontend/src/components/explore/ModelBenchmarks.tsx: 469 lines of code: packages/frontend/src/components/explore/ModelBenchmarks.tsx has 469 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/components/explore/ModelBenchmarks.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9658482344a034b26d2795350e22cf3a40697ad417598192dbec814c95448bd"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/frontend/src/app/(main)/capital/companies/page.tsx: 463 lines of code: packages/frontend/src/app/(main)/capital/companies/page.tsx has 463 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/app/(main)/capital/companies/page.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d40cf56c63f8d3ce825a95342c9381bd73663db2a90542f27011e8c3a3612e42"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/frontend/src/components/explore/ModelPricing.tsx: 453 lines of code: packages/frontend/src/components/explore/ModelPricing.tsx has 453 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/components/explore/ModelPricing.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1acb62b44dceb78d351147fb4aafddf1c4f909fa2e9b195ea6c70c37f80c9f9d"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/frontend/scripts/capital/lib/source-cache.ts: 447 lines of code: packages/frontend/scripts/capital/lib/source-cache.ts has 447 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/scripts/capital/lib/source-cache.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6578f0dfe95b35008f8f31f6017c65f3fdfc5ef0e47f214c2074913bc2c631be"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/frontend/src/components/explore/CapabilityCharts.tsx: 444 lines of code: packages/frontend/src/components/explore/CapabilityCharts.tsx has 444 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/components/explore/CapabilityCharts.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c67c1b11567e971ae3d8d141c7718997ea7b75ebafc7e1c60bd4858790b4dc8a"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/frontend/src/lib/capital/ledger/capex.ts: 443 lines of code: packages/frontend/src/lib/capital/ledger/capex.ts has 443 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/lib/capital/ledger/capex.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"142e796f57bc3eecb0634827db9a9bca0185bc659420e1979d122b5b5c63fb44"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/frontend/src/lib/utils.ts: 435 lines of code: packages/frontend/src/lib/utils.ts has 435 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/lib/utils.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d576f56eaee715e046404b613803a55920dc82f5a7f29e8bb11be8afff344483"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/frontend/src/app/admin/moderation/ModerationClient.tsx: 434 lines of code: packages/frontend/src/app/admin/moderation/ModerationClient.tsx has 434 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/app/admin/moderation/ModerationClient.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"91b059af142ddb77ebc9586fbe3aef850c9ddc2f93d29584eca852222b648012"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/frontend/src/app/(main)/capital/_components/EventDetail.tsx: 431 lines of code: packages/frontend/src/app/(main)/capital/_components/EventDetail.tsx has 431 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/app/(main)/capital/_components/EventDetail.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d59200d0248aa828a9eea6d752d50082affa03bbfe67d794989b26547fa4cf9"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/frontend/src/components/leaderboard/RankingUI.tsx: 416 lines of code: packages/frontend/src/components/leaderboard/RankingUI.tsx has 416 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/components/leaderboard/RankingUI.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d8b7532322c63a7242b484d3b260a2d19ff34d4ae41928e863a43590de1d016"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/frontend/src/app/(main)/tracker/TuiShowcase.tsx: 411 lines of code: packages/frontend/src/app/(main)/tracker/TuiShowcase.tsx has 411 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/app/(main)/tracker/TuiShowcase.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"70a2b1a00be496bb8eac8688afaac8aaa6fdd50122ae4507831bf2c7d4bd736c"}},{"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":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"edcf7feec10c651b2cbc603c351f7cc6f85ec2507c1abe9e729734222781cf21"}},{"ruleId":"R4","level":"warning","message":{"text":"This test file cannot be loaded: packages/frontend/src/lib/capital/__tests__/epoch.test.ts:31 imports \u0027../../../content/capital/\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/src/lib/capital/__tests__/epoch.test.ts"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"48ac26c074f5c85a52658a0b6352d43faf613d2e133940401838a323892bcaaf"}},{"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/src/app/(main)/leaderboard/LeaderboardClient.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fcfca42a4e63821c19b065d07a43a9f72c29d6fccc7ee8299444c1c7242c7a6"}},{"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/src/app/settings/SettingsClient.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c69942129d01853fedb7d9fd077b99d15609d6b2f7cdd26b68f4a03d46e14f4"}},{"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/capital/build-org-ids.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1f462d97e53a8d9d2e20e845db4866fab845e8ef22b2c0edc5ba7563e636130"}},{"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/src/components/explore/ModelsDashboard.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd0c3d4f2443b7bdc3f781c94f6b942e0e52bfef5e9490efa05102e4c74ec8b8"}},{"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/capital/build-capex.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd52a7a28c360aecd2c1bb57740bd4b73d980f2b540d8f0d8c91146104d8028d"}},{"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/src/components/explore/ModelCatalog.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cea2702a88b5b1f9fb338ff7c297fece4e977069100fdd7b2c4db429b7a80dc3"}},{"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/src/components/landing/sections/HeroSection.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3891e84f2a434dda4cb115949f19b0b3d4c908cac657a41d40b694ef8faeb7e1"}},{"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/stealth/seed.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7cd64782a53df4f46ad970e751e6897f54588be30e557a703446411ae99645b"}},{"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/src/components/landing/sections/WorldwideSection.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7274a553522ffd1ab174beec12bb0c62f4068af370c320c8dab7d5ead69166c"}},{"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/src/lib/capital/ledger/epoch.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"57c79bc3f34f5428c60c5e4ff10aacb4550f13a85d5844ca703419d802e28d96"}},{"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/capital/lib/source-cache.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6ecbdbb8615080c17337a2e23bc6684906a3a854aa43526cab158aac8d80a7a"}},{"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/src/components/explore/CapabilityCharts.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8c5f07e7570a559aed4dc660d217bde5491b784318952e666338c13dd412897"}},{"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/src/app/(main)/capital/companies/page.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"00aeacc31feab5e4b808838c5f32f2c2ee95b868c93e57fd98ce3897ef03ba22"}},{"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/src/app/(main)/leaderboard/GroupsBrowser.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"40a86fb59d8659738157cf1e4016f3ab247dbb6521dbbeb461d564d51a34988b"}},{"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/capital/import-epoch.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ee5cfbe9b258a36fb874eb7868b1969cc7b9082d48fc88d65795676ad8b87d4"}},{"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/src/components/landing/sections/FollowSection.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f8c2921bc2036572d3bc47e8af03017265691885d5b714a2d8d602f8a0f2e5e"}},{"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/src/components/landing/sections/QuickstartSection.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5999849bc690c2adff133d3fe2043bbea127d5f66d4789ed45877518aa37e071"}},{"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":"packages/frontend/src/components/BlackholeHero.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2736499c8a82af9ca1ec1f30c2a8ff3ab38ba909141e96cdad72952379e66564"}},{"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/src/app/device/DeviceClient.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"24c6d56753424c87e4adb647a88b49d733b366e733526eaa5f8f72e908f3b61a"}},{"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/src/app/(main)/leaderboard/page.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9fb284c4af7886cd528776bdf1fa3402b119f908469b943a90bbf809ad7ba9e"}},{"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/src/app/(main)/capital/page.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"76282e63a380814c20bfbea3336a7f7f18b6c426f403f9cd5b1f44af8ea73cdc"}},{"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/capital/lib/sec-client.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"254c2ed38aa6531c4b871e61bcc86650d7ae4de9d7c7e7421f3fe15b1e2d8e93"}},{"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/src/components/Skeleton.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a666ada1a6f4dabb691c5616af7efff45f05172c648b16a181a6d8cc1f743fa"}},{"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/src/app/(main)/groups/new/CreateGroupClient.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7c1eb0f3cfbecc436b9a1cd02aed74d12a93f9b2958229b9ad362bfd6778f82"}},{"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/src/app/(main)/capital/investors/[slug]/page.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2120f72e3a017e44da4384add713b348c07ea1aa91054f39338aba04ab01b21"}},{"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/capital/verify-quotes.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4cd7595481d0cc26758720c138105a34d43a815f74fa34973647ac5b7a0fe2ce"}},{"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/src/app/(main)/groups/join/[token]/JoinGroupClient.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9516c1ec96f51e93d0ee478b1bebc44910739a5ca401dc8b66e631efba3cf3d9"}},{"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/verify-ui-regressions.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb97b45cbad0eecf0ac03bd7eb64aecbd01d5581ef03db5288c9b44ac113eea7"}},{"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/src/app/(main)/capital/methodology/page.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"09d0397b16f8f76c207a7ac1d28ddc660752ef1555885027c2082e3ba77158d1"}},{"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/src/app/(main)/methodology/page.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d8bdbfa6ea3ba11d7a7e9bbd746bc7d25a92e6c4d3559dc35021b35a70a1f12"}},{"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/src/components/explore/DashboardCells.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffb4174cf3ddf5b51a374afc54c943da3e32c97ae99b980eed69d43b4ca9660e"}},{"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/src/app/(main)/privacy/page.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"18060585f3c69b046ce6b27e5b09486cc4aa88219d9199c84537fa4ddce33ad2"}},{"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/src/app/(main)/capital/sectors/[slug]/page.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9eadb37ad1b1df3e91e1e2939aaf85b64c358ad867a2559efa6de1932cfe1b89"}},{"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/src/app/(main)/terms/page.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"591d435502f3639e6bb6d9586e5639f1415b2987ec14a9ee8d5d56286a32d658"}},{"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/src/components/landing/sections/DescriptionSection.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a3c8951a57823698995b316823293d75df7ca30db08d01002d3f44532d6e681"}},{"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/src/app/api/users/[username]/devices/[deviceId]/route.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed0e3f13340001a73230af466c05b7e1f28251f9c1a12af821da97ab65f1a4f2"}},{"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/src/lib/useSquircleBorder.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5436c2c3602e2459194d8dbf9279194004fd7001bf0f9f7a9a3e85d3be8a04ea"}},{"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/src/app/(main)/capital/investors/page.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"96bf62f2c4ca30efc7d791aa4d4e1a59161b9915b435e7500cf6703593c0f538"}},{"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/src/components/landing/hooks/useSquircleClip.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"58f5b6b06642f76bfe9310896ceb594cc05f87e1031d8eed8dd3b1d7bdf52bef"}},{"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/src/app/(main)/models/page.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8694fd99ab43e691fa3167c93fc4db945486cf9e4909e77760e8b0e82fd80a68"}},{"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/src/components/TabBar.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ab2e3602c8cd0d6186d3137425e0c8607b36a462ecb192f406a32aff147d53b"}},{"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/src/app/(main)/capital/_components/DirectoryFilters.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3804aab070fbf07a9ced5a65ecf0e88102a65403faae29ceed238c00854eee88"}},{"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/src/app/(main)/groups/[slug]/page.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd73e0602bd30640ad0409e9bd8c70dbc8022f9b836107d43ff112e34688ca33"}},{"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/src/app/sitemap.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cadb079b27e169ef691d3b17aa921275c58864fd7a6ab9b262199a3c742b6275"}},{"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/src/components/landing/components/SquircleBorder.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"032c12a8a602afe40546fc01c06ad9f92ff167c65b457de4a7a94afbf41382a0"}},{"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/src/app/(main)/models/all/page.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea771781306fbafb394e39a68823d98b1a62366c2655fa3cafea520d20715a88"}},{"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/src/app/u/[username]/opengraph-image.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b03a5dd130eb3164632e19a9be71fd4010cb96955800257b13ad048bc9d8096"}},{"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/src/app/api/badge/[username]/svg/route.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"326b90b6859a91f1c13d556f0893f6de1577a415f1df376bedbc5b5338b3e42e"}},{"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/src/app/(main)/groups/[slug]/opengraph-image.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5e76749807ac2885c158e2b7e28e9c4053e6b342e9fab809e8b3eca9fd2b06c"}},{"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/stealth/fetch-profiles.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d86a48a5032e03219e8542fd4e06330dd7bfdf5be38dcedab93a75f494071a1"}},{"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/src/components/Switch.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"eea52d5f56325564619744c6fe112cd0fda00a02e62b7aa72efbad0f68db95ab"}},{"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/src/app/(main)/contact/page.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"54fb82997930f5b9c667d8be7858b11c187ecbc4dbfc98373a808ae3baeade53"}},{"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/src/app/u/[username]/not-found.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c249aed6a468de6419b3a46aff0d0bb1bbff0679514e6dda40bb34ceb7182353"}},{"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/src/app/api/leaderboard/user/[username]/route.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"82583cd9425b1f87cfd8e52d8ae1414e2e0db1f8ff15116e7401ed14d7c77a59"}},{"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/capital/gen-content-index.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"244b065f08c6062d989e5fdc53ad1bd7aafd83c0490eef5352abc7341a2dd46b"}},{"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/src/components/landing/LandingPage.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a4fbe61981351785f6051f196d96c215752dd2d71f83bcebdb712be074d95f9"}},{"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/src/app/api/users/[username]/groups/route.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b9b651216588087c58923cae6ddf67eecc6db1f263ee07c19169924317acf9c"}},{"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/stealth/measure.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"41fb22090d136654e50d30809125ef02a365610a7c6a310538261e5c8c2279f7"}},{"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/src/components/explore/ExploreRanking.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3c2e8fa0936d2aec2266a3d9dac6f62fb9517a11ed756f53b1cda4db15dbc88"}},{"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/src/app/api/auth/device/route.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"57e2b23ef5b43451ea5f5384f58009a11189d1c77107b79221d2af10ec0c49c1"}},{"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/src/app/(main)/tracker/page.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"57ba5ee80ef3659eeed83208be8cce1bf623b7d7b4c3ef0f71b81f04e49f976b"}},{"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/src/lib/responsive.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"286ffc8a2eae4140a01846a478e269a653033f2f74794b8e03e85a5f99079edc"}},{"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/src/components/explore/ModelNotFound.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa3e671819b64c8f639ac88dd5fd222982cd6bccfcf2eba6a3c0d9f1f417d909"}},{"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/src/components/layout/LegalPageShell.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"678c8745e60bc4d57beb4caf315b13ba1f0c5152d29791d64f2bf2a695e79a02"}},{"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/src/app/robots.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1061789043d708ddef7c0e985b8f4c360e2a3bbd499185717b4e7496119ff653"}},{"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/src/app/admin/moderation/page.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f75b3403681aaa3a1f6b97ba25932d806c3f54dd188a57f5c396877068c4ae1"}},{"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/src/app/(main)/groups/new/page.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e12971761b62036fb4451efdd48488b9b999d0b6b1277e742557616e453e6753"}},{"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/src/app/(main)/groups/join/[token]/page.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"149c133d5f207a52b9c2ba4553e351ba3ee0cbd769709f18d78bbd43de3f9735"}},{"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/src/lib/github.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"25b4580700c19d391d8c86dbb8ef221bfe719726e0b73df182c45a07343e24bf"}},{"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/src/lib/useMediaQuery.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0865bd6c27e8a3ced97af34d02ab8d7f4812d9939d88c8df0617e040b875e703"}},{"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/src/app/(main)/models/[key]/not-found.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"56216aa77eb920b6c40ad44e4f1de756757295acdb31f41d41a9cefd23295916"}},{"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/src/app/local/page.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"67ddb968ff67e8c6cdd4fbfcdcf74a3b264fc4950034f23aeac36dbc3ea8678a"}},{"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/capital/validate.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5f3b246796b9822751624573ce09991eaf118615de58993818fc3b82596cf13"}},{"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/frontend/src/components/landing/hooks/useCopy.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d26f1baa759f7e16cab64592df89246cbfa1e116719edd902690d535aae1d1f0"}},{"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/src/app/(main)/capital/deals/[slug]/og/route.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3de31d8e97f6c67affb17a179728c1c5cd47db620da720167fadbb82c3c918a"}},{"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/src/app/(main)/capital/rounds/[slug]/og/route.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1911b5c71a26760fb4002409d02924c3e33b9221c4351aacd7b10ce099f8833f"}},{"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/src/app/profile/page.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f37f81107d065dc9aae7413f012ed6326841410709c69bd9d599f9c796fcd2d2"}},{"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/src/app/device/page.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"182b74045884efbb760ec9eb61cc06c259053ba9d63588b24f22a98316c7e381"}},{"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/src/app/settings/page.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b58ac5e2f8724f65f3bfd7d99b1175ffe54a881530a9f6f48708258ed74c91b"}},{"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/src/app/api/auth/logout/route.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"23f6d263486d2c73cb06170760d77306c38f6f41c05c662e513432ba00c654b4"}},{"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/src/app/api/auth/session/route.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8db677a74159636c31a31772b360f3d7487442dd978846bf9dbe147f61ea6b71"}},{"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/src/app/(main)/groups/page.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b6ab7d98f511373e2719b93ef4a306c138751e17800f4269e2a34d985fcc006"}},{"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 and 1 other test file(s) in this workspace 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":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"619fabdce70e4dac7659e1abf1a6e8928be50fc01d795ca37e8c628356ac6d27"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~565 LoC): no import path from any entry point (125 application, 12 tooling, 181 test roots considered), but 1 in-repo import(s) from 1 other file(s) do name it (packages/frontend/src/components/landing/sections/index.ts) \u2014 every one of those referrers is itself unreachable, so this file is dead only as a member of that cluster: if any referrer is in fact alive, this row falls with it"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/components/landing/sections/HeroSection.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc7f9634ae2c6551015355e2427315c08131b0001b831ac4a2c1fa348101a1d8"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~558 LoC): no import path from any entry point (125 application, 12 tooling, 181 test roots considered), but 1 in-repo import(s) from 1 other file(s) do name it (packages/frontend/src/components/landing/sections/index.ts) \u2014 every one of those referrers is itself unreachable, so this file is dead only as a member of that cluster: if any referrer is in fact alive, this row falls with it"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/components/landing/sections/WorldwideSection.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"652b1f9abccc6d70842bf9a859eb45a94c6d67a13f1dcbda7d469392da3781e4"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~425 LoC): no import path from any entry point (125 application, 12 tooling, 181 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/capital/import-epoch.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f777e8575f42519de5b1e444e3609df9cfb865e53d27d765a8b067f84eba25d"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~425 LoC): no import path from any entry point (125 application, 12 tooling, 181 test roots considered), but 1 in-repo import(s) from 1 other file(s) do name it (packages/frontend/src/components/landing/sections/index.ts) \u2014 every one of those referrers is itself unreachable, so this file is dead only as a member of that cluster: if any referrer is in fact alive, this row falls with it"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/components/landing/sections/FollowSection.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f702f8a400e5da6c593726bb8f260630d5de97114f6790bd82af531a77e303dc"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~418 LoC): no import path from any entry point (125 application, 12 tooling, 181 test roots considered), but 1 in-repo import(s) from 1 other file(s) do name it (packages/frontend/src/components/landing/sections/index.ts) \u2014 every one of those referrers is itself unreachable, so this file is dead only as a member of that cluster: if any referrer is in fact alive, this row falls with it"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/components/landing/sections/QuickstartSection.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b05a27040263c861b81fce7b876aa4100cafc92a697d974510090e1f9d7a029b"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~392 LoC): no import path from any entry point (125 application, 12 tooling, 181 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/src/components/BlackholeHero.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ed837b4de3f107aeb0b418e73a896aa656d32044221c67afe146765ff680b83"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~155 LoC): no import path from any entry point (125 application, 12 tooling, 181 test roots considered), but 1 in-repo import(s) from 1 other file(s) do name it (packages/frontend/src/components/landing/sections/index.ts) \u2014 every one of those referrers is itself unreachable, so this file is dead only as a member of that cluster: if any referrer is in fact alive, this row falls with it"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/components/landing/sections/DescriptionSection.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e2483987c1dd3a0d433a5a5fd6a781da81401ebaab870f92a3c6c2e90bfd7d0"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~146 LoC): no import path from any entry point (125 application, 12 tooling, 181 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/src/lib/useSquircleBorder.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e8d3e47dcfb6e16621e629b19041051b4bbffcb019993a519250d5ae77bdfa5"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~131 LoC): no import path from any entry point (125 application, 12 tooling, 181 test roots considered), but 2 in-repo import(s) from 1 other file(s) do name it (packages/frontend/src/components/landing/hooks/index.ts) \u2014 every one of those referrers is itself unreachable, so this file is dead only as a member of that cluster: if any referrer is in fact alive, this row falls with it"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/components/landing/hooks/useSquircleClip.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ad0059105f50ff7344af18e583b573398e94e24a42b3767e7729f3837b7fd56"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~120 LoC): no import path from any entry point (125 application, 12 tooling, 181 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/src/components/TabBar.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ea4cd2e5c777dac2d70f29c995768ad833e07d368790a037d4fd79b367c28d4"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~105 LoC): no import path from any entry point (125 application, 12 tooling, 181 test roots considered), but 1 in-repo import(s) from 1 other file(s) do name it (packages/frontend/src/components/landing/components/index.ts) \u2014 every one of those referrers is itself unreachable, so this file is dead only as a member of that cluster: if any referrer is in fact alive, this row falls with it"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/components/landing/components/SquircleBorder.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"55d28dca6b6b5f0458a366af6e19475dbd3b6d3d4d1a80b9ada991e8a7b74916"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~86 LoC): no import path from any entry point (125 application, 12 tooling, 181 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/src/components/Switch.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"425e621ba7eb80c50582173e490255dca91773d5a2b4bdbd04cd70099a1ba888"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~62 LoC): no import path from any entry point (125 application, 12 tooling, 181 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/src/components/landing/LandingPage.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdc0993e526e916f7e994ae97acbe795569b923dc3d4c6e8d3c27bff4c709690"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~41 LoC): no import path from any entry point (125 application, 12 tooling, 181 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/src/lib/responsive.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e619f2c0d69ed0e3cd36ae03f6375f59d03fdb19a7e17ce1b648152bf9943804"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~20 LoC): no import path from any entry point (125 application, 12 tooling, 181 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/src/lib/github.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d378ea8ce8eb191ebdb9b7c7a175a7492594194d074121931452fda65560eee3"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~19 LoC): no import path from any entry point (125 application, 12 tooling, 181 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/src/lib/useMediaQuery.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"19f418ca9574fcb32bc76a62ac2ec8179a64fe4537551aff75fe9c8b027f7573"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~13 LoC): no import path from any entry point (125 application, 12 tooling, 181 test roots considered), but 1 in-repo import(s) from 1 other file(s) do name it (packages/frontend/src/components/landing/hooks/index.ts) \u2014 every one of those referrers is itself unreachable, so this file is dead only as a member of that cluster: if any referrer is in fact alive, this row falls with it"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/components/landing/hooks/useCopy.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d42e60b977fec82c11c45be942de2922be48bb5cd846db10be46ff5f4dda57e"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~6 LoC): no import path from any entry point (125 application, 12 tooling, 181 test roots considered), but 1 in-repo import(s) from 1 other file(s) do name it (packages/frontend/src/components/landing/LandingPage.tsx) \u2014 every one of those referrers is itself unreachable, so this file is dead only as a member of that cluster: if any referrer is in fact alive, this row falls with it"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/components/landing/sections/index.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7425e2d14dc03c331b42d9666dcd8c74a28c97884dab5ee5d2f65b2aa6acbadc"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~3 LoC): no import path from any entry point (125 application, 12 tooling, 181 test roots considered), but 3 in-repo import(s) from 3 other file(s) do name it (packages/frontend/src/components/landing/components/SquircleBorder.tsx, packages/frontend/src/components/landing/sections/QuickstartSection.tsx, packages/frontend/src/components/landing/sections/WorldwideSection.tsx) \u2014 every one of those referrers is itself unreachable, so this file is dead only as a member of that cluster: if any referrer is in fact alive, this row falls with it"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/components/landing/hooks/index.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"80e94b401529f48c60643631cdfec7efb5881b69621c8f0c146847750cf2c1ba"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~1 LoC): no import path from any entry point (125 application, 12 tooling, 181 test roots considered), but 2 in-repo import(s) from 2 other file(s) do name it (packages/frontend/src/components/landing/sections/QuickstartSection.tsx, packages/frontend/src/components/landing/sections/WorldwideSection.tsx) \u2014 every one of those referrers is itself unreachable, so this file is dead only as a member of that cluster: if any referrer is in fact alive, this row falls with it"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/components/landing/components/index.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf3271b7fd2fb1dbe50697dd424473cec1670c3b16ef986a0dff74969857b868"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027EmbedShowcase\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/app/(main)/tracker/EmbedShowcase.tsx"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"e02282f0741470ff04fe8029fd187192fa281e9e19c6a9466de376d4996a2f56"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027TUI_TOUR_MS\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/app/(main)/tracker/TuiShowcase.tsx"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c2c267fc01e527ac7ba1e99267a2e6b6fdf4edcc418e3533f63b8619a66180e"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027ProfileSkeleton\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/components/Skeleton.tsx"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"21e46d1ff7f061afaf0ddabba44ad419469a1ec9a3055de157de8cb791200de8"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027StatCardSkeleton\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/components/Skeleton.tsx"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"b63fc2b9e62d19323d50f41b4f7ff5bac828b5163bf8c1da935f59660b359ddc"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027TableRowSkeleton\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/components/Skeleton.tsx"},"region":{"startLine":260}}}],"partialFingerprints":{"codehealthFindingId/v1":"33ac01227f6ea3265b617cae04dc23d16662aac0e3b8f87058b1f30060296e3a"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027MAX_VISIBLE_USAGE_PROVIDERS\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/components/profile/usageChartData.ts"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"5db61c247ca7e1fa5db1eb1b88e95a1acf8ea60ae93ff3658fcb41fbe3a31e14"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027formatQuantityWords\u0027: Nothing ultimately consumes this binding: its only referrer is the re-export in packages/frontend/src/lib/capital/ledger/index.ts, whose re-exported name has no consumer either. Removing it is therefore not a one-file change \u2014 drop the re-export line in packages/frontend/src/lib/capital/ledger/index.ts in the same commit, or the barrel will import a name that no longer exists."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/lib/capital/ledger/format.ts"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ab675eeacc894edffb15ebfa88ee6ede4a5ed73b489b871ba16a3eb06098085"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027EVENT_KIND_LABELS\u0027: Nothing ultimately consumes this binding: its only referrer is the re-export in packages/frontend/src/lib/capital/ledger/index.ts, whose re-exported name has no consumer either. Removing it is therefore not a one-file change \u2014 drop the re-export line in packages/frontend/src/lib/capital/ledger/index.ts in the same commit, or the barrel will import a name that no longer exists."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/lib/capital/ledger/labels.ts"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"14b71e43754f34e1ba51422e1d8917b50b7f9a6cd41e521c4a1e57679158af82"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027DirectoryRow\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/lib/capital/ledger/model.ts"},"region":{"startLine":808}}}],"partialFingerprints":{"codehealthFindingId/v1":"78f45cd9680084665a5c8806cf6e6eb41532e5e8558ba75a316b60c38a3f7510"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027RelationType\u0027: Nothing ultimately consumes this binding: its only referrer is the re-export in packages/frontend/src/lib/capital/ledger/index.ts, whose re-exported name has no consumer either. Removing it is therefore not a one-file change \u2014 drop the re-export line in packages/frontend/src/lib/capital/ledger/index.ts in the same commit, or the barrel will import a name that no longer exists."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/lib/capital/ledger/schema.ts"},"region":{"startLine":381}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a654dfd4d97bce8da1e9e7d902a230db908af34a1bfdcbe89ab481709bce403"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027OrgIds\u0027: Nothing ultimately consumes this binding: its only referrer is the re-export in packages/frontend/src/lib/capital/ledger/index.ts, whose re-exported name has no consumer either. Removing it is therefore not a one-file change \u2014 drop the re-export line in packages/frontend/src/lib/capital/ledger/index.ts in the same commit, or the barrel will import a name that no longer exists."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/lib/capital/ledger/schema.ts"},"region":{"startLine":461}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0a7fa047234a0a86e7d86459bfb09d6d096d2699dc1017176d62ddf35d6f33c"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027Participant\u0027: Nothing ultimately consumes this binding: its only referrer is the re-export in packages/frontend/src/lib/capital/ledger/index.ts, whose re-exported name has no consumer either. Removing it is therefore not a one-file change \u2014 drop the re-export line in packages/frontend/src/lib/capital/ledger/index.ts in the same commit, or the barrel will import a name that no longer exists."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/lib/capital/ledger/schema.ts"},"region":{"startLine":466}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6f15e87709026b57b0cc4a115ceefe5a8ab965d97cbd971ec67001cb782a89d"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027Relation\u0027: Nothing ultimately consumes this binding: its only referrer is the re-export in packages/frontend/src/lib/capital/ledger/index.ts, whose re-exported name has no consumer either. Removing it is therefore not a one-file change \u2014 drop the re-export line in packages/frontend/src/lib/capital/ledger/index.ts in the same commit, or the barrel will import a name that no longer exists."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/lib/capital/ledger/schema.ts"},"region":{"startLine":467}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a8ef8746852ba8f0c013ed1bd9821a9363f1cb955de468bd4af2c73411daeaf"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027EventFile\u0027: Nothing ultimately consumes this binding: its only referrer is the re-export in packages/frontend/src/lib/capital/ledger/index.ts, whose re-exported name has no consumer either. Removing it is therefore not a one-file change \u2014 drop the re-export line in packages/frontend/src/lib/capital/ledger/index.ts in the same commit, or the barrel will import a name that no longer exists."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/lib/capital/ledger/schema.ts"},"region":{"startLine":468}}}],"partialFingerprints":{"codehealthFindingId/v1":"44cd625bcc02d2af779a3a3ce2225e990d8695caa8e4fbcfef427bdca0081e67"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027roundUrl\u0027: Nothing ultimately consumes this binding: its only referrer is the re-export in packages/frontend/src/lib/capital/index.ts, whose re-exported name has no consumer either. Removing it is therefore not a one-file change \u2014 drop the re-export line in packages/frontend/src/lib/capital/index.ts in the same commit, or the barrel will import a name that no longer exists."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/lib/capital/urls.ts"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"09356cafcf829eb49ff3649197c676cc9bc4443e1c70c71b6cb1aad221991acc"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027dealUrl\u0027: Nothing ultimately consumes this binding: its only referrer is the re-export in packages/frontend/src/lib/capital/index.ts, whose re-exported name has no consumer either. Removing it is therefore not a one-file change \u2014 drop the re-export line in packages/frontend/src/lib/capital/index.ts in the same commit, or the barrel will import a name that no longer exists."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/lib/capital/urls.ts"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"d73b22f123f9e71be44af49e9e4f47ca3e871c9b078aacaeda6dacb92634fa2c"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027FONT_SIZE\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/lib/constants.ts"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9fe1ccab6461a7fba6cba9415b0352062195206ea11bc71460d773718e24933"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027ISO_ORIGIN\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/lib/constants.ts"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe8eb0d006900cc679e8d2bffab23fad8aea668d891760852ef9e4fb5a927bfc"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027CUBE_GAP\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/lib/constants.ts"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"22da48d4ca6ffab8c4a5f4cc5155d935559cb34621e6a43a1a509d754b0a072e"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027calculateCanvasWidth\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/lib/constants.ts"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4bd2542c0a66273e88874e86099550dd5d081a0f02a4e3fa6caada22d51b175"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027calculateCanvasHeight\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/lib/constants.ts"},"region":{"startLine":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad8f0cf3c62a707acafa92a0a1ca953eb17ce6aef6e75fed3f98eff059a70aa3"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027TOOLTIP_DELAY\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/lib/constants.ts"},"region":{"startLine":245}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0433069fff0f808a85f50765081b41fd483ae21ff00a1c14627328e25b315f9"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027THEME_TRANSITION_DURATION\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/lib/constants.ts"},"region":{"startLine":246}}}],"partialFingerprints":{"codehealthFindingId/v1":"2638b638ad877f2e903a2aab6b79c50be486c1dfd6b78f63bc082a8272b613b8"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027INTERACTION_DEBOUNCE\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/lib/constants.ts"},"region":{"startLine":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"2757cb72bd3aaf21dd8beafd20a3e399e72cfe51777cdad5517667574057259e"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027requireGroupRole\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/lib/groups/permissions.ts"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"d81d179b437b775215d39c88d7b57aae775fc1fa0d48f782d9b303646f3123d5"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027canManageGroupMember\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/lib/groups/permissions.ts"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f26d16e1f4d6c1b1de1862daf077becf6e3a828f92579704db6c72a698e6d3c"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027getGradeColor\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/lib/themes.ts"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fd8d96adf4b260494ff43972da74e30e57c8225ca0ab028dce2d8241276bf85"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027GraphState\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/lib/types.ts"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"e820d037bc60f41748d6de905d5da59bafdac629c0cc2dc632961b8615b91939"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027CellHitResult\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/lib/types.ts"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad7b42967bf5f6e1276d9279bfa2c6794b3f79bb0cba5a1c900b20571354b25e"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027fillMissingDays\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/lib/utils.ts"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"5aaeefaab3d6fc49a81f7e48cc5ea6d65807c56e1255d5567537ab6b5e3c0303"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027formatDateFull\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/lib/utils.ts"},"region":{"startLine":285}}}],"partialFingerprints":{"codehealthFindingId/v1":"1081f3713a1dc535bb052a3e3f967ae236f7a0541643bf209a065640a0795778"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027getDayName\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/lib/utils.ts"},"region":{"startLine":289}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2c087c147c596f6963e25325e57efe1392f1292ed890a9c95049b464e099f23"}},{"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":"R8","level":"warning","message":{"text":"Unused dependency \u0027@tanstack/react-virtual\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":"f1b1456aed74ff1f5597e4656cd5b243c6f23abd7f46d1a77fe1448120059a1c"}},{"ruleId":"R8","level":"warning","message":{"text":"Unused dependency \u0027react-is\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":"708ca97e4d36e0e358fb4db671d3a911a2fefb5769fbb82e8cda3396d45da5fb"}},{"ruleId":"S1","level":"error","message":{"text":"TLS certificate validation disabled: \u0060.danger_accept_invalid_certs(true)\u0060 is set on a TLS client, so every peer certificate is accepted \u2014 including one an attacker presents. Chain, expiry, revocation and hostname are all skipped, so an attacker on the network path can present any certificate and read or rewrite the traffic \u2014 the connection is encrypted to the attacker, not to the intended host. Remove the override so the TLS stack verifies the peer \u2014 reqwest, native-tls, rustls and openssl\u0027s \u0060SslConnector\u0060 all check the chain and hostname when nothing is set. If the server presents a self-signed or privately-issued certificate, trust THAT issuer rather than every certificate: \u0060reqwest::ClientBuilder::add_root_certificate(Certificate::from_pem(\u2026))\u0060, a rustls \u0060RootCertStore\u0060 holding its CA, or \u0060SslConnectorBuilder::set_ca_file\u0060, which keeps the chain and hostname checks on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/antigravity.rs"},"region":{"startLine":2692}}}],"partialFingerprints":{"codehealthFindingId/v1":"ecc7e1514bf7caa488570aa4b9cd79644d6235c9e964ce33a61b9fb19544ddda"}},{"ruleId":"S1","level":"note","message":{"text":"No security response headers detected: None of the 11 security response headers the OWASP Secure Headers Project recommends (Content-Security-Policy, Strict-Transport-Security, X-Content-Type-Options, X-Frame-Options, \u2026) is configured \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: \u0060index == 0 or value[index - 1].isspace()\u0060 appears character-identically in 2 files \u2014 scripts/check-release-workflow-safety.py, scripts/check-workflow-toolchain-paths.py. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/check-release-workflow-safety.py"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"739490447c995e3431e9322fe83cd830f836f2d745874cf4e0c86a83e6ed4579"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!is_narrow \u0026\u0026 !is_very_narrow \u0026\u0026 inner.width \u003C full_layout_width\u0060 appears character-identically in 2 files \u2014 crates/tokscale-cli/src/tui/ui/daily.rs, crates/tokscale-cli/src/tui/ui/monthly.rs. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/ui/daily.rs"},"region":{"startLine":221}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa2171640516f85dc73b1cb39b4dbb2a890dca6d6d7823355b96ba915c46b00c"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060c.is_ascii_alphanumeric() || c == \u0027-\u0027 || c == \u0027_\u0027 || c == \u0027.\u0027\u0060 appears character-identically in 2 files \u2014 crates/tokscale-cli/src/antigravity.rs, crates/tokscale-core/src/sessions/cursor.rs. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/antigravity.rs"},"region":{"startLine":1078}}}],"partialFingerprints":{"codehealthFindingId/v1":"81ca9077b4c15dbd788457b018310c9d496e5343cd8e7bdaa3853d70dec0c070"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060first_ms \u003C= 0 || last_ms \u003C= 0 || last_ms \u003C first_ms\u0060 appears character-identically in 2 files \u2014 crates/tokscale-cli/src/tui/ui/dialog/session_detail.rs, crates/tokscale-cli/src/tui/ui/sessions.rs. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/ui/dialog/session_detail.rs"},"region":{"startLine":611}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1c825387cf9d18170b603f2f47bcf9e9dd409a834dc2a99ff4b3ae2150919ec"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060input == 0 \u0026\u0026 output == 0 \u0026\u0026 cache_read == 0 \u0026\u0026 cache_write == 0\u0060 appears character-identically in 2 files \u2014 crates/tokscale-core/src/sessions/devin.rs, crates/tokscale-core/src/sessions/kimi.rs. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/sessions/devin.rs"},"region":{"startLine":753}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bcea65cefc7140c93e5ebd78b121a81b62ab3657a4381f06f2cb4b861f73a5a"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060input == 0 \u0026\u0026 output == 0 \u0026\u0026 cache_read == 0 \u0026\u0026 cache_write == 0 \u0026\u0026 reasoning == 0\u0060 appears character-identically in 3 files \u2014 crates/tokscale-cli/src/antigravity.rs, crates/tokscale-core/src/sessions/antigravity.rs, crates/tokscale-core/src/sessions/antigravity_cli.rs. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/antigravity.rs"},"region":{"startLine":3405}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d7668481d1c6e3272323e8867dbc55899b881ba5a3d47c8b28ff465a518f42f"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060response.status() == reqwest::StatusCode::UNAUTHORIZED || response.status() == reqwest::StatusCode::FORBIDDEN\u0060 appears character-identically in 2 files \u2014 crates/tokscale-cli/src/cursor.rs, crates/tokscale-cli/src/warp.rs. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/cursor.rs"},"region":{"startLine":1958}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe71dabaca63ba3d5767e07a377fc40e12661dd110e57c3a1ae5920ccb484dad"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060status == reqwest::StatusCode::UNAUTHORIZED || status == reqwest::StatusCode::FORBIDDEN\u0060 appears character-identically in 9 files \u2014 crates/tokscale-cli/src/commands/report.rs, crates/tokscale-cli/src/commands/usage/claude.rs, crates/tokscale-cli/src/commands/usage/codex.rs, crates/tokscale-cli/src/commands/usage/copilot.rs. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/commands/report.rs"},"region":{"startLine":1017}}}],"partialFingerprints":{"codehealthFindingId/v1":"c279f4005fc131dfb6af6a6606481e8220b670df668aa73d8fec5084e5370478"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060window[0] == \u0022.claude\u0022 \u0026\u0026 window[1] == \u0022projects\u0022\u0060 appears character-identically in 2 files \u2014 crates/tokscale-core/src/sessions/cherrystudio.rs, crates/tokscale-core/src/sessions/claudecode.rs. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/sessions/cherrystudio.rs"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"292d09113699c750dd77ffabfce8b77e53db78598a000bc2d0c38d6d83167488"}},{"ruleId":"X2","level":"note","message":{"text":"Not all async functions that make a request accept an AbortSignal: Only 5/15 async functions that make a cancellable request (fetch, axios, ky, ofetch, got, undici, node:http) accept an AbortSignal or pass one on, so a request keeps running after whatever wanted it has given up \u2014 a page navigated away from, an unmounted component, a timed-out job. Take a \u0060signal\u0060 (or an options object that carries one) and hand it to the request; where nothing could ever cancel the call, omitting it is a deliberate choice \u2014 judge against how the function is used."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"bd89d014f84408f7063269aa5892ba3df7c9af3e981ecfb0752c5731bc62d406"}},{"ruleId":"X2","level":"warning","message":{"text":"Async function without AbortSignal: fetchArrayBuffer: \u0060fetchArrayBuffer\u0060 awaits \u0060fetch(\u2026)\u0060 but neither accepts an AbortSignal nor passes one on, so its caller cannot stop the request once it has started. Accept \u0060{ signal }\u0060 and pass it through: \u0060fetch(url, { signal })\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/lib/og/fonts.ts"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"5249dbf9cf64afdb51605759d21866290dd2c7e138e8feba00b05425b0db62c2"}},{"ruleId":"X2","level":"warning","message":{"text":"Async function without AbortSignal: loadManrope: \u0060loadManrope\u0060 awaits \u0060fetch(\u2026)\u0060 but neither accepts an AbortSignal nor passes one on, so its caller cannot stop the request once it has started. Accept \u0060{ signal }\u0060 and pass it through: \u0060fetch(url, { signal })\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/lib/og/fonts.ts"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"198353d80b36728cf7fb08ef99577a032799c428c72b3ae937dccd3a2cc7d1b0"}},{"ruleId":"X2","level":"warning","message":{"text":"Async function without AbortSignal: exchangeCodeForToken: \u0060exchangeCodeForToken\u0060 awaits \u0060fetch(\u2026)\u0060 but neither accepts an AbortSignal nor passes one on, so its caller cannot stop the request once it has started. Accept \u0060{ signal }\u0060 and pass it through: \u0060fetch(url, { signal })\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/lib/auth/github.ts"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"2af857f80db3b38347c76801245aae2af5e312fa400a375f2e30b282dfe2c701"}},{"ruleId":"X2","level":"warning","message":{"text":"Async function without AbortSignal: getGitHubUser: \u0060getGitHubUser\u0060 awaits \u0060fetch(\u2026)\u0060 but neither accepts an AbortSignal nor passes one on, so its caller cannot stop the request once it has started. Accept \u0060{ signal }\u0060 and pass it through: \u0060fetch(url, { signal })\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/lib/auth/github.ts"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5ea6a4c2a23ca73302650f3024dedc5cacca34e29687063f65d8b55cc9f7b4f"}},{"ruleId":"X2","level":"warning","message":{"text":"Async function without AbortSignal: getGitHubUserEmail: \u0060getGitHubUserEmail\u0060 awaits \u0060fetch(\u2026)\u0060 but neither accepts an AbortSignal nor passes one on, so its caller cannot stop the request once it has started. Accept \u0060{ signal }\u0060 and pass it through: \u0060fetch(url, { signal })\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/lib/auth/github.ts"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"a117c2aaa91737ea4d0118fe1cfff5dfdd22da2c9735a9ad5ef3ac116afddd33"}},{"ruleId":"X2","level":"warning","message":{"text":"Async function without AbortSignal: onConfirm: \u0060onConfirm\u0060 awaits \u0060fetch(\u2026)\u0060 but neither accepts an AbortSignal nor passes one on, so its caller cannot stop the request once it has started. Accept \u0060{ signal }\u0060 and pass it through: \u0060fetch(url, { signal })\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/app/settings/SettingsClient.tsx"},"region":{"startLine":542}}}],"partialFingerprints":{"codehealthFindingId/v1":"cce02f7d3f3332baa27bcc1733a6e970ed9da02e1dc18351d52a79e06ff0bc21"}},{"ruleId":"X2","level":"warning","message":{"text":"Async function without AbortSignal: onConfirm: \u0060onConfirm\u0060 awaits \u0060fetch(\u2026)\u0060 but neither accepts an AbortSignal nor passes one on, so its caller cannot stop the request once it has started. Accept \u0060{ signal }\u0060 and pass it through: \u0060fetch(url, { signal })\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/app/settings/SettingsClient.tsx"},"region":{"startLine":579}}}],"partialFingerprints":{"codehealthFindingId/v1":"668ab192bb15323876cf20eab16538a90714bd7e430f1239aa135f7e1c60810d"}},{"ruleId":"X2","level":"warning","message":{"text":"Async function without AbortSignal: fetchApiTokens: \u0060fetchApiTokens\u0060 awaits \u0060fetch(\u2026)\u0060 but neither accepts an AbortSignal nor passes one on, so its caller cannot stop the request once it has started. Accept \u0060{ signal }\u0060 and pass it through: \u0060fetch(url, { signal })\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/app/settings/SettingsClient.tsx"},"region":{"startLine":697}}}],"partialFingerprints":{"codehealthFindingId/v1":"077ae6a6695c8f51c95123aee5d29aa97e8b0e8583dc336378851df27e091686"}},{"ruleId":"X2","level":"warning","message":{"text":"Async function without AbortSignal: fetchDevices: \u0060fetchDevices\u0060 awaits \u0060fetch(\u2026)\u0060 but neither accepts an AbortSignal nor passes one on, so its caller cannot stop the request once it has started. Accept \u0060{ signal }\u0060 and pass it through: \u0060fetch(url, { signal })\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/app/settings/SettingsClient.tsx"},"region":{"startLine":703}}}],"partialFingerprints":{"codehealthFindingId/v1":"4432653caae2a738680ac6b4f24eb2b0130f1bcfc2ad48f944c61ca4f5a10489"}},{"ruleId":"X2","level":"warning","message":{"text":"Async function without AbortSignal: loadSettings: \u0060loadSettings\u0060 awaits \u0060fetch(\u2026)\u0060 but neither accepts an AbortSignal nor passes one on, so its caller cannot stop the request once it has started. Accept \u0060{ signal }\u0060 and pass it through: \u0060fetch(url, { signal })\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/app/settings/SettingsClient.tsx"},"region":{"startLine":740}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc715d0d943fa21b3e5d156b884cbeda190ce4a1aa06fd4d1e3452b130df094a"}},{"ruleId":"X5","level":"note","message":{"text":"Null assertions (\u0060!\u0060) override strict null checking: ~0.7 \u0060!\u0060 null assertions per 1k TypeScript source lines \u2014 54 assertion(s) across the 79998 source line(s) of the 344 TypeScript file(s) read, which is the only code the operator asserts anything in (a \u0060!\u0060 in a \u0060.js\u0060 file is not this operator and was not counted, and one in a file whose null checking is off silences nothing). Densest: packages/frontend/scripts/capital/build-org-ids.ts (10), packages/frontend/src/lib/capital/ledger/model.ts (7), packages/frontend/scripts/capital/verify-quotes.ts (4). Each one tells the compiler to trust the author about null, suppressing the very diagnostic \u0060strictNullChecks\u0060 exists to produce. Many are correct: each is a claim the checker could not verify, and it is wrong only where the value can in fact be missing, so review the densest places first."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"1d83a7c69636a6290f63000d5c19b2073be1fa772f51977532af9ca6f745fc2a"}},{"ruleId":"X7","level":"note","message":{"text":"Pending state with no failure state: The view draws \u0060Loading 3D view...\u0060 under \u0060! obeliskLoaded\u0060, but \u0060obeliskLoaded\u0060 is settled by a load that can fail and the component draws no failure state, so a failed load is shown as \u0022not yet\u0022 for ever, or as the loaded state over its initial value. Give the component a failure state and draw it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/components/TokenGraph3D.tsx"},"region":{"startLine":318}}}],"partialFingerprints":{"codehealthFindingId/v1":"f20a59928bd69628edc9dd8b44d6d413c5e85ccaa64c5e17a8a54b1378def5f4"}},{"ruleId":"X7","level":"note","message":{"text":"Pending state with no failure state: The view draws \u0060\u003CLoadingSkeleton aria-hidden=\u0022true\u0022/\u003E\u0060 under \u0060isLoading\u0060, but \u0060isLoading\u0060 is settled by a load that can fail and the component draws no failure state, so a failed load is shown as \u0022not yet\u0022 for ever, or as the loaded state over its initial value. Give the component a failure state and draw it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/components/layout/Navigation.tsx"},"region":{"startLine":559}}}],"partialFingerprints":{"codehealthFindingId/v1":"0866448a39ba9b34296fc3eaecf64be5c07d84bd2388514b5b0b1b09c1a01913"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on Err: \u0060get_api_base_url\u0060 turns every \u0060Err\u0060 into \u0060\u0022https://tokscale.ai\u0022.to_string()\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the error or propagate it with \u0060?\u0060. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the arm or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/auth.rs"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"7576ff0ff392a26359941229beb24a758c64c9acd2f2569f52feb2198ce737df"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on Err: \u0060discover_claude_project_roots\u0060 turns every \u0060Err\u0060 into \u0060Vec::new()\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the error or propagate it with \u0060?\u0060. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the arm or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/cc_mirror.rs"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb7d50959c1459ba8684ef043de2f773aca4695baab11204ea1eb430e5d03c52"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on Err: \u0060discover_senpi_omo_children_roots\u0060 turns every \u0060Err\u0060 into \u0060Vec::new()\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the error or propagate it with \u0060?\u0060. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the arm or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/scanner.rs"},"region":{"startLine":1142}}}],"partialFingerprints":{"codehealthFindingId/v1":"add0b1e0b91b5d7f73b9a52283548c5e1b5bc84e888d21e2fa49d6fd01b132c7"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on Err: \u0060senpi_project_cwds_from_session_dir\u0060 turns every \u0060Err\u0060 into \u0060Vec::new()\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the error or propagate it with \u0060?\u0060. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the arm or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/scanner.rs"},"region":{"startLine":1191}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f581769f40fa7a387a4ac0ecb387c1f5a5012938cc0d84504b0cde5003e7200"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on Err: \u0060discover_openclaw_agent_dbs\u0060 turns every \u0060Err\u0060 into \u0060Vec::new()\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the error or propagate it with \u0060?\u0060. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the arm or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/scanner.rs"},"region":{"startLine":1358}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fe62cc19a345f4fb103fe5a861603e991b7480f4223ee95efd099cd8fbf025a"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on Err: \u0060discover_opencode_dbs\u0060 turns every \u0060Err\u0060 into \u0060Vec::new()\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the error or propagate it with \u0060?\u0060. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the arm or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/scanner.rs"},"region":{"startLine":1397}}}],"partialFingerprints":{"codehealthFindingId/v1":"96fe52ff88b06fc9b17ce3a8cb73bd6bfe672545376791af359c4f4cd84d353e"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on Err: \u0060discover_micode_dbs\u0060 turns every \u0060Err\u0060 into \u0060Vec::new()\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the error or propagate it with \u0060?\u0060. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the arm or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/scanner.rs"},"region":{"startLine":1458}}}],"partialFingerprints":{"codehealthFindingId/v1":"b05796cc3bbaaafd4088d7dfdfa2eec7818ea89cd5391d66501dd126cafabeea"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on Err: \u0060scan_crush_registry\u0060 turns every \u0060Err\u0060 into \u0060Vec::new()\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the error or propagate it with \u0060?\u0060. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the arm or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/scanner.rs"},"region":{"startLine":1611}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7dbeff87f66b7c98239276b63b5fa4400ee4f46996a78b65c84ed7ffbdf7085"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on Err: \u0060parse_amp_file\u0060 turns every \u0060Err\u0060 into \u0060Vec::new()\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the error or propagate it with \u0060?\u0060. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the arm or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/sessions/amp.rs"},"region":{"startLine":297}}}],"partialFingerprints":{"codehealthFindingId/v1":"85f4b19d19e44e5621d76518a4f61c42420a1f4fc139fd1ce5ce8a7fb7a95a67"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on Err: \u0060parent_session_paths_for_cache_bounded\u0060 turns every \u0060Err\u0060 into \u0060Vec::new()\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the error or propagate it with \u0060?\u0060. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the arm or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/sessions/claudecode.rs"},"region":{"startLine":233}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e8ef9f2b89f1299ebc2b1d4c437b7ceaace5321bd79c1926e458959ca3eb0cb"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on Err: \u0060read_cline_cli_manifest\u0060 turns every \u0060Err\u0060 into \u0060ClineCliManifest::default()\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the error or propagate it with \u0060?\u0060. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the arm or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/sessions/cline.rs"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b56a17d1a91e067ef595a8010518a6a74e692c5c867ce831b07222fe853ee6d"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on Err: \u0060parse_codebuff_file\u0060 turns every \u0060Err\u0060 into \u0060Vec::new()\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the error or propagate it with \u0060?\u0060. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the arm or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/sessions/codebuff.rs"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"554d9ba413bf730712c8d220d95fd8b85a99936525e60df9bf2e9ca8a5a7f6d2"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on Err: \u0060read_events_metadata\u0060 turns every \u0060Err\u0060 into \u0060SessionStateMetadata::default()\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the error or propagate it with \u0060?\u0060. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the arm or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/sessions/copilot_desktop.rs"},"region":{"startLine":451}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f573f846fb031879db87b66ff9c2a95916cc6373118682f971d9c15fd9f765c"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on Err: \u0060transcript_turns_bounded\u0060 turns every \u0060Err\u0060 into \u0060Vec::new()\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the error or propagate it with \u0060?\u0060. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the arm or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/sessions/droid.rs"},"region":{"startLine":352}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee0dd080f2151da105856d3af46a162fa7855f4a22321a9fda22589e1eb0b9fe"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on Err: \u0060parse_droid_file\u0060 turns every \u0060Err\u0060 into \u0060Vec::new()\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the error or propagate it with \u0060?\u0060. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the arm or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/sessions/droid.rs"},"region":{"startLine":745}}}],"partialFingerprints":{"codehealthFindingId/v1":"0cebe36422b961eb9ca0b1b102f394e14f38f375acef00bc229564f1cac6692c"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on Err: \u0060parse_freebuff_file\u0060 turns every \u0060Err\u0060 into \u0060Vec::new()\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the error or propagate it with \u0060?\u0060. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the arm or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/sessions/freebuff.rs"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bc0440657ce9ee2076ad8f9a6311c998d72b6f7c5c3cd6cbb36b4906e8dd6e2"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on Err: \u0060parse_grok_updates_file\u0060 turns every \u0060Err\u0060 into \u0060Vec::new()\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the error or propagate it with \u0060?\u0060. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the arm or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/sessions/grok.rs"},"region":{"startLine":495}}}],"partialFingerprints":{"codehealthFindingId/v1":"c374fb198a9df2f051c2a7c06a44a519cd0a472572d31fdb0252ee1323ab1dea"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on Err: \u0060parse_grok_unified_log_file\u0060 turns every \u0060Err\u0060 into \u0060Vec::new()\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the error or propagate it with \u0060?\u0060. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the arm or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/sessions/grok.rs"},"region":{"startLine":699}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bc2d77829eaf0d6ccca7b4063e1faffcd8622e2e4f2027f1609a42ee1337d0d"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on Err: \u0060hermes_log_paths\u0060 turns every \u0060Err\u0060 into \u0060Vec::new()\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the error or propagate it with \u0060?\u0060. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the arm or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/sessions/hermes.rs"},"region":{"startLine":304}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2fe6a4dba718df83b8236f3cb3e46083688832048f73d19c5a6114cb79efd0f"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on Err: \u0060parse_hindsight_file\u0060 turns every \u0060Err\u0060 into \u0060Vec::new()\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the error or propagate it with \u0060?\u0060. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the arm or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/sessions/hindsight.rs"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9e44c5fc37d5d961a28e330f983cc48c0dc3f04f405755530e82484feaff8f8"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on Err: \u0060parse_jcode_file\u0060 turns every \u0060Err\u0060 into \u0060Vec::new()\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the error or propagate it with \u0060?\u0060. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the arm or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/sessions/jcode.rs"},"region":{"startLine":325}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe869d8bfc6ef93a1a9a139f5e63d0f5642c1b92cdc5acc6425da15e3f047e5e"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on Err: \u0060parse_kiro_file\u0060 turns every \u0060Err\u0060 into \u0060Vec::new()\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the error or propagate it with \u0060?\u0060. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the arm or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/sessions/kiro.rs"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"58f8febca94046dcc8eb769e3d5774d1e17cfe42c580513e37a6b8f4b3dd1d5d"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on Err: \u0060parse_kiro_ide_session_file\u0060 turns every \u0060Err\u0060 into \u0060Vec::new()\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the error or propagate it with \u0060?\u0060. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the arm or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/sessions/kiro.rs"},"region":{"startLine":617}}}],"partialFingerprints":{"codehealthFindingId/v1":"787ba936f959949f71e11d68cca7358be90832c9e93a17f550be75f222e55bf7"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on Err: \u0060parse_kiro_global_storage_file\u0060 turns every \u0060Err\u0060 into \u0060Vec::new()\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the error or propagate it with \u0060?\u0060. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the arm or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/sessions/kiro.rs"},"region":{"startLine":1113}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c634f5317c8dd8978cc10fcfc0b5bc6e1f6567ee3a04046482e12d1b4da4363"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on Err: \u0060attribute_client_responses\u0060 turns every \u0060Err\u0060 into \u00600\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the error or propagate it with \u0060?\u0060. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the arm or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/sessions/magpie.rs"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f15279afba48a1193df64c3952e3cad8b529f28fb055da04f0c6c83931c89e8"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on Err: \u0060parse_mux_file\u0060 turns every \u0060Err\u0060 into \u0060vec![]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the error or propagate it with \u0060?\u0060. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the arm or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/sessions/mux.rs"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca2fe4874079f53f087da2ce363fbbc14d8d9bc7d8684d151b4360a42675f8eb"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on Err: \u0060parse_openclaw_index\u0060 turns every \u0060Err\u0060 into \u0060Vec::new()\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the error or propagate it with \u0060?\u0060. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the arm or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/sessions/openclaw.rs"},"region":{"startLine":448}}}],"partialFingerprints":{"codehealthFindingId/v1":"19c7878d9af4b5977b9b34e39b05080e39fa2c24c572fac2390648099e0a959a"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on Err: \u0060read_index\u0060 turns every \u0060Err\u0060 into \u0060Index::default()\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the error or propagate it with \u0060?\u0060. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the arm or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/sessions/proma.rs"},"region":{"startLine":209}}}],"partialFingerprints":{"codehealthFindingId/v1":"cefa8787e84d6354ebf5576b934836b4f85f8598dec8fdf7cd128d04ed990609"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on Err: \u0060parse_reasonix_file\u0060 turns every \u0060Err\u0060 into \u0060Vec::new()\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the error or propagate it with \u0060?\u0060. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the arm or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/sessions/reasonix.rs"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d16f6c3ea109032c98eb8f02ed272a66d6a923ed26ca69024a4d943874ee812"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on Err: \u0060parse_trae_file\u0060 turns every \u0060Err\u0060 into \u0060Vec::new()\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the error or propagate it with \u0060?\u0060. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the arm or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/sessions/trae.rs"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"62d8c6878e8574537306a98aa353ba2b4dac918a6458ffea0bda53da8b3fcef4"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on Err: \u0060parse_vibe_file\u0060 turns every \u0060Err\u0060 into \u0060Vec::new()\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the error or propagate it with \u0060?\u0060. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the arm or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/sessions/vibe.rs"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"40b83479dee419d61f25a8d69008675e10ca92fc57a64a42853101cdf47adc9c"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on Err: \u0060parse_warp_file\u0060 turns every \u0060Err\u0060 into \u0060Vec::new()\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the error or propagate it with \u0060?\u0060. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the arm or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/sessions/warp.rs"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"89502bd01a12d2af7f542f76101d80c11512e804e07aad3d4643bf7e2dc1760f"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060getProfileDevices\u0060 swallows every exception into \u0060return []\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/app/u/[username]/page.tsx"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a8d928b060a1d828b17a76cdad09763b109e29743bde36f221c79292a546f2b"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060sourceHost\u0060 swallows every exception into \u0060return \u0022Source\u0022\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/components/explore/ModelBenchmarks.tsx"},"region":{"startLine":366}}}],"partialFingerprints":{"codehealthFindingId/v1":"cafd05ecbd97ef6bd1f471bdfe93405a785f28a9ce0b0ecaff9d86aebb671a68"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060getStargazersCount\u0060 swallows every exception into \u0060return 0\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/lib/github.ts"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b94d257ae3db3e0323705e0f4ac3d9bb24bdd565bd82382a9eebd31ee2e6d2e"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060getBrowserTimeZone\u0060 swallows every exception into \u0060return \u0022UTC\u0022\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/lib/timezone.ts"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d41592a2e3b7d7d2778e422aa0412e7796371b69e70a013495eb160feab39d5"}}],"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":"Use of Unmaintained Third Party Components","shortDescription":{"text":"Use of Unmaintained Third Party Components"},"helpUri":"https://cwe.mitre.org/data/definitions/1104.html"},{"id":"CWE-1284","guid":"85c6f270-a062-d45c-98ec-8792760915c0","name":"CWE-1284","shortDescription":{"text":"CWE-1284"},"helpUri":"https://cwe.mitre.org/data/definitions/1284.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-319","guid":"7af97476-9f0d-4458-9163-3d2043918a1a","name":"Cleartext Transmission of Sensitive Information","shortDescription":{"text":"Cleartext Transmission of Sensitive Information"},"helpUri":"https://cwe.mitre.org/data/definitions/319.html"},{"id":"CWE-353","guid":"09d7e902-d4ee-f05d-ae6c-0a1554d0c18f","name":"Missing Support for Integrity Check","shortDescription":{"text":"Missing Support for Integrity Check"},"helpUri":"https://cwe.mitre.org/data/definitions/353.html"},{"id":"CWE-494","guid":"b8a65e0d-e459-4a55-a931-fc1136482375","name":"Download of Code Without Integrity Check","shortDescription":{"text":"Download of Code Without Integrity Check"},"helpUri":"https://cwe.mitre.org/data/definitions/494.html"},{"id":"CWE-506","guid":"401d6455-56e3-0552-9a39-f77461673e3f","name":"Embedded Malicious Code","shortDescription":{"text":"Embedded Malicious Code"},"helpUri":"https://cwe.mitre.org/data/definitions/506.html"},{"id":"CWE-522","guid":"71fb233e-ce6a-ae57-9419-ef8373540b09","name":"Insufficiently Protected Credentials","shortDescription":{"text":"Insufficiently Protected Credentials"},"helpUri":"https://cwe.mitre.org/data/definitions/522.html"},{"id":"CWE-732","guid":"1da27e8f-b330-7650-ab63-bd61953eae5d","name":"Incorrect Permission Assignment for Critical Resource","shortDescription":{"text":"Incorrect Permission Assignment for Critical Resource"},"helpUri":"https://cwe.mitre.org/data/definitions/732.html"},{"id":"CWE-77","guid":"332c8ade-6612-9f56-a06b-d8d90b1a8750","name":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/77.html"},{"id":"CWE-78","guid":"2e31ceaf-c7ae-2e5e-9661-cfb1362789cf","name":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/78.html"},{"id":"CWE-79","guid":"fd45580b-e8c4-fc5e-8c2f-aa8fab0b4dbf","name":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)","shortDescription":{"text":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/79.html"},{"id":"CWE-798","guid":"5e8f057d-fee3-995a-a0cb-9fc5b0d174d1","name":"Use of Hard-coded Credentials","shortDescription":{"text":"Use of Hard-coded Credentials"},"helpUri":"https://cwe.mitre.org/data/definitions/798.html"},{"id":"CWE-829","guid":"13c33925-97fb-5a5e-b40c-56d328b8a4d7","name":"Inclusion of Functionality from Untrusted Control Sphere","shortDescription":{"text":"Inclusion of Functionality from Untrusted Control Sphere"},"helpUri":"https://cwe.mitre.org/data/definitions/829.html"},{"id":"CWE-862","guid":"2d96ecd7-f7f1-7f55-9f3a-43bb5bafdf33","name":"Missing Authorization","shortDescription":{"text":"Missing Authorization"},"helpUri":"https://cwe.mitre.org/data/definitions/862.html"},{"id":"CWE-89","guid":"6d08fdad-37eb-c150-bbf0-d7d946863407","name":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/89.html"},{"id":"CWE-937","guid":"16f316ae-415c-b354-a59b-1f7905f756e9","name":"Using Components with Known Vulnerabilities","shortDescription":{"text":"Using Components with Known Vulnerabilities"},"helpUri":"https://cwe.mitre.org/data/definitions/937.html"},{"id":"CWE-94","guid":"75e7f50c-6c2f-dd52-bf40-bf6c52b861fd","name":"Improper Control of Generation of Code (\u0027Code Injection\u0027)","shortDescription":{"text":"Improper Control of Generation of Code (\u0027Code Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/94.html"}]},{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61","version":"2025","organization":"OWASP Foundation","informationUri":"https://top10.owasp.org/2025/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10:2025 web application security risks."},"taxa":[{"id":"A01:2025","guid":"df693558-c822-0452-8f7b-4d53cb6bcc59","name":"Broken Access Control","shortDescription":{"text":"Broken Access Control"},"helpUri":"https://top10.owasp.org/2025/A01_2025-Broken_Access_Control/"},{"id":"A02:2025","guid":"668dee9e-41bc-6354-97d0-fdf8f40c50c1","name":"Security Misconfiguration","shortDescription":{"text":"Security Misconfiguration"},"helpUri":"https://top10.owasp.org/2025/A02_2025-Security_Misconfiguration/"},{"id":"A03:2025","guid":"168e227c-7735-2e57-bc6e-997affe644c5","name":"Software Supply Chain Failures","shortDescription":{"text":"Software Supply Chain Failures"},"helpUri":"https://top10.owasp.org/2025/A03_2025-Software_Supply_Chain_Failures/"},{"id":"A04:2025","guid":"6a9f5bfd-1a56-6453-beec-a7eff0ba3007","name":"Cryptographic Failures","shortDescription":{"text":"Cryptographic Failures"},"helpUri":"https://top10.owasp.org/2025/A04_2025-Cryptographic_Failures/"},{"id":"A05:2025","guid":"87e86033-3231-8458-8e4a-5cb82743553a","name":"Injection","shortDescription":{"text":"Injection"},"helpUri":"https://top10.owasp.org/2025/A05_2025-Injection/"},{"id":"A06:2025","guid":"491554d7-b8e4-9652-91a9-53700dc92ece","name":"Insecure Design","shortDescription":{"text":"Insecure Design"},"helpUri":"https://top10.owasp.org/2025/A06_2025-Insecure_Design/"},{"id":"A07:2025","guid":"334ddd78-539d-d35c-83dd-253647eb7eaf","name":"Authentication Failures","shortDescription":{"text":"Authentication Failures"},"helpUri":"https://top10.owasp.org/2025/A07_2025-Authentication_Failures/"},{"id":"A08:2025","guid":"84b0c297-710e-9a5f-9335-936ecb260c36","name":"Software or Data Integrity Failures","shortDescription":{"text":"Software or Data Integrity Failures"},"helpUri":"https://top10.owasp.org/2025/A08_2025-Software_or_Data_Integrity_Failures/"}]},{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35","organization":"OWASP Foundation","informationUri":"https://owasp.org/www-project-top-10-ci-cd-security-risks/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10 CI/CD Security Risks."},"taxa":[{"id":"CICD-SEC-3","guid":"458c83a6-ebf7-cf55-8cc3-b4d949bbf271","name":"Dependency Chain Abuse","shortDescription":{"text":"Dependency Chain Abuse"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-03-Dependency-Chain-Abuse"},{"id":"CICD-SEC-6","guid":"f2ee2486-b260-2952-a41f-6b67fa713940","name":"Insufficient Credential Hygiene","shortDescription":{"text":"Insufficient Credential Hygiene"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-06-Insufficient-Credential-Hygiene"},{"id":"CICD-SEC-7","guid":"4c4af28d-49e3-2d51-b597-e1396c49658b","name":"Insecure System Configuration","shortDescription":{"text":"Insecure System Configuration"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-07-Insecure-System-Configuration"},{"id":"CICD-SEC-8","guid":"b6b2dacf-a168-4957-876e-a8c73ee00eb0","name":"Ungoverned Usage of 3rd Party Services","shortDescription":{"text":"Ungoverned Usage of 3rd Party Services"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-08-Ungoverned-Usage-of-3rd-Party-Services"},{"id":"CICD-SEC-9","guid":"b3d36727-0395-5b51-94c4-5e173d62eab3","name":"Improper Artifact Integrity Validation","shortDescription":{"text":"Improper Artifact Integrity Validation"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-09-Improper-Artifact-Integrity-Validation"}]}],"properties":{"codehealthPublication":{"public":true,"notice":"This is the PUBLIC form of this artifact. Findings are listed in full, but the details of SECURITY findings \u2014 which rule fired, in which file, on which line, and how to fix it \u2014 are deliberately withheld, and any secret-scanner results are excluded entirely. Where detail is absent here it was REMOVED FOR PUBLICATION; it is not missing from the analysis. The complete artifact is available from the repository owner.","securityFindingsRedacted":172,"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."]}]}