{"$schema":"https://json.schemastore.org/sarif-2.1.0.json","version":"2.1.0","runs":[{"tool":{"driver":{"name":"codehealth","informationUri":"https://codehealth.canine.dev","rules":[{"id":"D1","name":"Cyclomatic Complexity","shortDescription":{"text":"Cyclomatic Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/D1"},{"id":"D2","name":"Cognitive Complexity","shortDescription":{"text":"Cognitive Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/D2"},{"id":"D3","name":"God Classes","shortDescription":{"text":"God Classes"},"helpUri":"https://codehealth.canine.dev/dimensions/D3"},{"id":"D4","name":"Code Duplication","shortDescription":{"text":"Code Duplication"},"helpUri":"https://codehealth.canine.dev/dimensions/D4"},{"id":"D5","name":"Coupling","shortDescription":{"text":"Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D5"},{"id":"D6","name":"Cohesion (LCOM4)","shortDescription":{"text":"Cohesion (LCOM4)"},"helpUri":"https://codehealth.canine.dev/dimensions/D6"},{"id":"D7","name":"Architectural Integrity","shortDescription":{"text":"Architectural Integrity"},"helpUri":"https://codehealth.canine.dev/dimensions/D7"},{"id":"D8","name":"Code Coverage","shortDescription":{"text":"Code Coverage"},"helpUri":"https://codehealth.canine.dev/dimensions/D8"},{"id":"D10","name":"Test Quality","shortDescription":{"text":"Test Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D10"},{"id":"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":"D17","name":"Explicit Debt","shortDescription":{"text":"Explicit Debt"},"helpUri":"https://codehealth.canine.dev/dimensions/D17"},{"id":"D19","name":"Documentation Quality","shortDescription":{"text":"Documentation Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D19"},{"id":"D20","name":"ADR Quality","shortDescription":{"text":"ADR Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D20"},{"id":"D24","name":"Comment Value","shortDescription":{"text":"Comment Value"},"helpUri":"https://codehealth.canine.dev/dimensions/D24"},{"id":"D26","name":"Project Cohesion","shortDescription":{"text":"Project Cohesion"},"helpUri":"https://codehealth.canine.dev/dimensions/D26"},{"id":"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":"D40","name":"Network Egress Confinement","shortDescription":{"text":"Network Egress Confinement"},"helpUri":"https://codehealth.canine.dev/dimensions/D40"},{"id":"D41","name":"Kernel \u0026 Syscall Confinement","shortDescription":{"text":"Kernel \u0026 Syscall Confinement"},"helpUri":"https://codehealth.canine.dev/dimensions/D41"},{"id":"D43","name":"Malicious Dependencies","shortDescription":{"text":"Malicious Dependencies"},"helpUri":"https://codehealth.canine.dev/dimensions/D43","relationships":[{"target":{"id":"CWE-506","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-506"],"owasp":"A08:2025"}},{"id":"D44","name":"Platform End-of-Life","shortDescription":{"text":"Platform End-of-Life"},"helpUri":"https://codehealth.canine.dev/dimensions/D44"},{"id":"AC1","name":"Text alternatives","shortDescription":{"text":"Text alternatives"},"helpUri":"https://codehealth.canine.dev/dimensions/AC1"},{"id":"AC2","name":"Forms \u0026 labels","shortDescription":{"text":"Forms \u0026 labels"},"helpUri":"https://codehealth.canine.dev/dimensions/AC2"},{"id":"AC3","name":"Page structure","shortDescription":{"text":"Page structure"},"helpUri":"https://codehealth.canine.dev/dimensions/AC3"},{"id":"AC4","name":"Keyboard semantics","shortDescription":{"text":"Keyboard semantics"},"helpUri":"https://codehealth.canine.dev/dimensions/AC4"},{"id":"AC5","name":"ARIA correctness","shortDescription":{"text":"ARIA correctness"},"helpUri":"https://codehealth.canine.dev/dimensions/AC5"},{"id":"AC6","name":"Visual \u0026 motion safety","shortDescription":{"text":"Visual \u0026 motion safety"},"helpUri":"https://codehealth.canine.dev/dimensions/AC6"},{"id":"AX10","name":"Code composition","shortDescription":{"text":"Code composition"},"helpUri":"https://codehealth.canine.dev/dimensions/AX10"},{"id":"AX2","name":"Stateful singletons","shortDescription":{"text":"Stateful singletons"},"helpUri":"https://codehealth.canine.dev/dimensions/AX2"},{"id":"AX3","name":"Project dependency cycles","shortDescription":{"text":"Project dependency cycles"},"helpUri":"https://codehealth.canine.dev/dimensions/AX3"},{"id":"AX4","name":"Dependency direction","shortDescription":{"text":"Dependency direction"},"helpUri":"https://codehealth.canine.dev/dimensions/AX4"},{"id":"AX8","name":"Test isolation","shortDescription":{"text":"Test isolation"},"helpUri":"https://codehealth.canine.dev/dimensions/AX8"},{"id":"AX9","name":"CQS / query purity","shortDescription":{"text":"CQS / query purity"},"helpUri":"https://codehealth.canine.dev/dimensions/AX9"},{"id":"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":"C2","name":"Access Controls","shortDescription":{"text":"Access Controls"},"helpUri":"https://codehealth.canine.dev/dimensions/C2"},{"id":"C3","name":"Audit Trail","shortDescription":{"text":"Audit Trail"},"helpUri":"https://codehealth.canine.dev/dimensions/C3"},{"id":"C4","name":"Data Retention","shortDescription":{"text":"Data Retention"},"helpUri":"https://codehealth.canine.dev/dimensions/C4"},{"id":"DM4","name":"Rich vs anemic domain model","shortDescription":{"text":"Rich vs anemic domain model"},"helpUri":"https://codehealth.canine.dev/dimensions/DM4"},{"id":"DM5","name":"Encapsulated state","shortDescription":{"text":"Encapsulated state"},"helpUri":"https://codehealth.canine.dev/dimensions/DM5"},{"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":"GD1","name":"Unfinished \u0026 placeholder code","shortDescription":{"text":"Unfinished \u0026 placeholder code"},"helpUri":"https://codehealth.canine.dev/dimensions/GD1"},{"id":"IC1","name":"Incompleteness \u0026 stubs","shortDescription":{"text":"Incompleteness \u0026 stubs"},"helpUri":"https://codehealth.canine.dev/dimensions/IC1"},{"id":"M1","name":"Documentation (README)","shortDescription":{"text":"Documentation (README)"},"helpUri":"https://codehealth.canine.dev/dimensions/M1"},{"id":"M2","name":"Architecture documentation","shortDescription":{"text":"Architecture documentation"},"helpUri":"https://codehealth.canine.dev/dimensions/M2"},{"id":"M3","name":"Folder \u0026 project structure","shortDescription":{"text":"Folder \u0026 project structure"},"helpUri":"https://codehealth.canine.dev/dimensions/M3"},{"id":"M4","name":"Documentation accuracy","shortDescription":{"text":"Documentation accuracy"},"helpUri":"https://codehealth.canine.dev/dimensions/M4"},{"id":"P1","name":"CI/CD gates","shortDescription":{"text":"CI/CD gates"},"helpUri":"https://codehealth.canine.dev/dimensions/P1"},{"id":"P10","name":"Library API \u0026 versioning","shortDescription":{"text":"Library API \u0026 versioning"},"helpUri":"https://codehealth.canine.dev/dimensions/P10"},{"id":"P12","name":"CI test-gate honesty","shortDescription":{"text":"CI test-gate honesty"},"helpUri":"https://codehealth.canine.dev/dimensions/P12"},{"id":"P2","name":"Observability","shortDescription":{"text":"Observability"},"helpUri":"https://codehealth.canine.dev/dimensions/P2"},{"id":"P3","name":"Security \u0026 performance tooling","shortDescription":{"text":"Security \u0026 performance tooling"},"helpUri":"https://codehealth.canine.dev/dimensions/P3"},{"id":"P4","name":"Deployment \u0026 Rollback","shortDescription":{"text":"Deployment \u0026 Rollback"},"helpUri":"https://codehealth.canine.dev/dimensions/P4"},{"id":"P5","name":"DR \u0026 Backup","shortDescription":{"text":"DR \u0026 Backup"},"helpUri":"https://codehealth.canine.dev/dimensions/P5"},{"id":"P6","name":"Release Hygiene","shortDescription":{"text":"Release Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/P6"},{"id":"P7","name":"Outbound HTTP resilience","shortDescription":{"text":"Outbound HTTP resilience"},"helpUri":"https://codehealth.canine.dev/dimensions/P7"},{"id":"P8","name":"Schema migrations","shortDescription":{"text":"Schema migrations"},"helpUri":"https://codehealth.canine.dev/dimensions/P8"},{"id":"PF1","name":"Benchmark discipline","shortDescription":{"text":"Benchmark discipline"},"helpUri":"https://codehealth.canine.dev/dimensions/PF1"},{"id":"PF3","name":"Async \u0026 latency hygiene","shortDescription":{"text":"Async \u0026 latency hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/PF3"},{"id":"R1","name":"Type Safety","shortDescription":{"text":"Type Safety"},"helpUri":"https://codehealth.canine.dev/dimensions/R1"},{"id":"R10","name":"Code Duplication","shortDescription":{"text":"Code Duplication"},"helpUri":"https://codehealth.canine.dev/dimensions/R10"},{"id":"R11","name":"Import Boundaries","shortDescription":{"text":"Import Boundaries"},"helpUri":"https://codehealth.canine.dev/dimensions/R11"},{"id":"R2","name":"Cyclomatic Complexity","shortDescription":{"text":"Cyclomatic Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/R2"},{"id":"R3","name":"Large Files","shortDescription":{"text":"Large Files"},"helpUri":"https://codehealth.canine.dev/dimensions/R3"},{"id":"R4","name":"Test Coverage","shortDescription":{"text":"Test Coverage"},"helpUri":"https://codehealth.canine.dev/dimensions/R4"},{"id":"R5","name":"Dependency Freshness","shortDescription":{"text":"Dependency Freshness"},"helpUri":"https://codehealth.canine.dev/dimensions/R5"},{"id":"R6","name":"Tooling","shortDescription":{"text":"Tooling"},"helpUri":"https://codehealth.canine.dev/dimensions/R6"},{"id":"R7","name":"Dead Code","shortDescription":{"text":"Dead Code"},"helpUri":"https://codehealth.canine.dev/dimensions/R7"},{"id":"R8","name":"Dependency Hygiene","shortDescription":{"text":"Dependency Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/R8"},{"id":"R9","name":"Circular Imports","shortDescription":{"text":"Circular Imports"},"helpUri":"https://codehealth.canine.dev/dimensions/R9"},{"id":"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":"X12","name":"Unreachable branch","shortDescription":{"text":"Unreachable branch"},"helpUri":"https://codehealth.canine.dev/dimensions/X12"},{"id":"X13","name":"Undrained process stream","shortDescription":{"text":"Undrained process stream"},"helpUri":"https://codehealth.canine.dev/dimensions/X13"},{"id":"X14","name":"Bypassable address classification","shortDescription":{"text":"Bypassable address classification"},"helpUri":"https://codehealth.canine.dev/dimensions/X14"},{"id":"X15","name":"Unvalidated length from an untrusted reader","shortDescription":{"text":"Unvalidated length from an untrusted reader"},"helpUri":"https://codehealth.canine.dev/dimensions/X15"},{"id":"X16","name":"Unfloored truncation loop","shortDescription":{"text":"Unfloored truncation loop"},"helpUri":"https://codehealth.canine.dev/dimensions/X16"},{"id":"X17","name":"Uncapped recursion over a caller-supplied document","shortDescription":{"text":"Uncapped recursion over a caller-supplied document"},"helpUri":"https://codehealth.canine.dev/dimensions/X17"},{"id":"X18","name":"Disposal-pattern correctness","shortDescription":{"text":"Disposal-pattern correctness"},"helpUri":"https://codehealth.canine.dev/dimensions/X18"},{"id":"X19","name":"Unrestored process-global state","shortDescription":{"text":"Unrestored process-global state"},"helpUri":"https://codehealth.canine.dev/dimensions/X19"},{"id":"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":"X25","name":"Inert configuration knob","shortDescription":{"text":"Inert configuration knob"},"helpUri":"https://codehealth.canine.dev/dimensions/X25"},{"id":"X26","name":"Unsynchronised callback handoff","shortDescription":{"text":"Unsynchronised callback handoff"},"helpUri":"https://codehealth.canine.dev/dimensions/X26"},{"id":"X27","name":"Collection changed while being enumerated","shortDescription":{"text":"Collection changed while being enumerated"},"helpUri":"https://codehealth.canine.dev/dimensions/X27"},{"id":"X28","name":"Index access outside its own emptiness guard","shortDescription":{"text":"Index access outside its own emptiness guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X28"},{"id":"X29","name":"Per-element action decided by a fixed element","shortDescription":{"text":"Per-element action decided by a fixed element"},"helpUri":"https://codehealth.canine.dev/dimensions/X29"},{"id":"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":"crab::run_cli_stub (cyclomatic 252): crab::run_cli_stub has cyclomatic complexity 252 (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":"crab/src/main.rs"},"region":{"startLine":3110}}}],"partialFingerprints":{"codehealthFindingId/v1":"95942ca674d8075e1013dd67622459dfc43fb258eda698266706e1109530ad54"}},{"ruleId":"D1","level":"warning","message":{"text":"App.RepositoryPage (cyclomatic 117): App.RepositoryPage has cyclomatic complexity 117 (threshold 15). Of this number, 40 points are the body\u0027s own statements and 77 belong to 11 function items inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/App.tsx"},"region":{"startLine":511}}}],"partialFingerprints":{"codehealthFindingId/v1":"1237801180628e2ac267a761d762320e5ef2eb23652a5d2e8b643e71503cbdc9"}},{"ruleId":"D1","level":"warning","message":{"text":"Cmd::output_mode (cyclomatic 105): Cmd::output_mode has cyclomatic complexity 105 (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: Cmd::schema_name (cyclomatic 143) 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":"crab/src/main.rs"},"region":{"startLine":2093}}}],"partialFingerprints":{"codehealthFindingId/v1":"29b7ffdcba9b6e8b5a414229e792120802b3bf9d6ad051b4235db74e05c04d11"}},{"ruleId":"D1","level":"warning","message":{"text":"verify-nfs-smoke-report.self_test (cyclomatic 97): verify-nfs-smoke-report.self_test has cyclomatic complexity 97 (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":"crab/scripts/verify-nfs-smoke-report.py"},"region":{"startLine":3256}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ac1c667ab227a2b33b7cfd2cf441ff1eb986b79afd124233f5b98db67d497b0"}},{"ruleId":"D1","level":"warning","message":{"text":"crab::cmd::lfs::run_lfs_with_cancel (cyclomatic 76): crab::cmd::lfs::run_lfs_with_cancel has cyclomatic complexity 76 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/cmd/lfs/mod.rs"},"region":{"startLine":727}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d3d13294ead7db59002341b2a12936a08203a619e3d2ed9132b8956c5f532f0"}},{"ruleId":"D1","level":"warning","message":{"text":"crab::cmd::add::execute_add (cyclomatic 74): crab::cmd::add::execute_add has cyclomatic complexity 74 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/cmd/add.rs"},"region":{"startLine":932}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3e582daadbfb0d851d266ffe4dd354a0619f6192925a8f264e1885810f1a766"}},{"ruleId":"D1","level":"warning","message":{"text":"verify-large-repo-rustfs-report.verify_report (cyclomatic 67): verify-large-repo-rustfs-report.verify_report has cyclomatic complexity 67 (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":"crab/scripts/verify-large-repo-rustfs-report.py"},"region":{"startLine":475}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebef0c348bfc55822df5bf5f148794e9104132530c10c52e7187a3a8990b7115"}},{"ruleId":"D1","level":"warning","message":{"text":"verify-nfs-smoke-report.check_native_read_benchmark_artifact (cyclomatic 63): verify-nfs-smoke-report.check_native_read_benchmark_artifact has cyclomatic complexity 63 (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":"crab/scripts/verify-nfs-smoke-report.py"},"region":{"startLine":957}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bcf075dd535761e3e0b6b17607aa7ce9c4a1f72ad02560d6b6f8e6cfd2466ff"}},{"ruleId":"D1","level":"warning","message":{"text":"PushPipeline::try_apply_add_push_plans (cyclomatic 62): PushPipeline::try_apply_add_push_plans 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":"crab/src/git/push.rs"},"region":{"startLine":10673}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a8eff29b313237034a016c589623578064ed4ca00cf2751e9049e306b650d84"}},{"ruleId":"D1","level":"warning","message":{"text":"data-workbench.DataWorkbench (cyclomatic 61): data-workbench.DataWorkbench has cyclomatic complexity 61 (threshold 15). Of this number, 27 points are the body\u0027s own statements and 34 belong to 12 function items inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/data-workbench.tsx"},"region":{"startLine":301}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e4c876c81f306e4d4b918673a559255c0a1175b3e0a8ac47113270f27f47aa0"}},{"ruleId":"D1","level":"warning","message":{"text":"crab::git::push_native::run_native_push_inner (cyclomatic 59): crab::git::push_native::run_native_push_inner has cyclomatic complexity 59 (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":"crab/src/git/push_native.rs"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"64d14a9c9ece6e5ee01ba51fd6a158b47a748591ca7344aafc4b1c624ed3fffb"}},{"ruleId":"D1","level":"warning","message":{"text":"nfs-evidence-summary.self_test (cyclomatic 58): nfs-evidence-summary.self_test has cyclomatic complexity 58 (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":"crab/scripts/nfs-evidence-summary.py"},"region":{"startLine":1409}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc8ef078765d82df88e6cba6856e9881339aa299d377270dc52170d201cf61ef"}},{"ruleId":"D1","level":"warning","message":{"text":"PushPipeline::verify_xorb_refs_with_committed_receipts (cyclomatic 55): PushPipeline::verify_xorb_refs_with_committed_receipts has cyclomatic complexity 55 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/git/push.rs"},"region":{"startLine":9892}}}],"partialFingerprints":{"codehealthFindingId/v1":"76b0c9a0b2d8afc07ea9f4ae4b9af9f34a6ff16ba2af2b8ed242bb19193d90b1"}},{"ruleId":"D1","level":"warning","message":{"text":"tree.RepositoryTree (cyclomatic 55): tree.RepositoryTree has cyclomatic complexity 55 (threshold 15). Most of this is not in the body itself: 15 of the 55 points are its own statements and the rest belongs to 16 function literals inside it that branch (lines 209, 271, 317, \u2026). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/tree.tsx"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebd0b60885a7fc908bcd50e6d442a89f6a29b2fd0cf4263be0703f614cf15197"}},{"ruleId":"D1","level":"warning","message":{"text":"crab::cmd::run::run_dag (cyclomatic 53): crab::cmd::run::run_dag has cyclomatic complexity 53 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/cmd/run.rs"},"region":{"startLine":1471}}}],"partialFingerprints":{"codehealthFindingId/v1":"47af40a132a066856e6f086c2d064ba1e8b98f4e18e78ca213ea33df7e02c1a6"}},{"ruleId":"D1","level":"warning","message":{"text":"crab_workflow::executor::run_inner (cyclomatic 53): crab_workflow::executor::run_inner has cyclomatic complexity 53 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-workflow/src/executor.rs"},"region":{"startLine":310}}}],"partialFingerprints":{"codehealthFindingId/v1":"84ac4d7817dec716b1b2471528f4c4e63b7133223a6a75b76e30db2abc836671"}},{"ruleId":"D1","level":"warning","message":{"text":"content.FileView (cyclomatic 49): content.FileView has cyclomatic complexity 49 (threshold 15). Most of this is not in the body itself: 6 of the 49 points are its own statements and the rest belongs to 9 function literals inside it that branch (lines 269, 275, 161, \u2026). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/content.tsx"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"49170f53b3ec424d5b18916b863fc893e9eb54ab9e35929d36fbe7e75cbf0a2e"}},{"ruleId":"D1","level":"warning","message":{"text":"git-architecture-player.GitArchitecturePlayer (cyclomatic 47): git-architecture-player.GitArchitecturePlayer has cyclomatic complexity 47 (threshold 15). Most of this is not in the body itself: 8 of the 47 points are its own statements and the rest belongs to 7 function items inside it that branch (a function literal at line 488, a function literal at line 524, moveTabFocus, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/web/components/blog/git-architecture-player.tsx"},"region":{"startLine":301}}}],"partialFingerprints":{"codehealthFindingId/v1":"78946a2da3f3593a3448ee30f78c7d99b96591cd3ce33801a3e2cf2ef5f3dbd4"}},{"ruleId":"D1","level":"warning","message":{"text":"crab_http_server::api::execute (cyclomatic 46): crab_http_server::api::execute has cyclomatic complexity 46 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-http-server/src/api.rs"},"region":{"startLine":468}}}],"partialFingerprints":{"codehealthFindingId/v1":"b04867a5a86c56b349a5eacbf54e2bdf9f40e50f34abbc0826fcbcd8b00e4e3b"}},{"ruleId":"D1","level":"warning","message":{"text":"PushPipeline::upload_xorb_batch (cyclomatic 45): PushPipeline::upload_xorb_batch has cyclomatic complexity 45 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/git/push.rs"},"region":{"startLine":11835}}}],"partialFingerprints":{"codehealthFindingId/v1":"343c8345044de1c2f18d70a1be3d94fb13bec0cba47f26fd3115f7df414e3091"}},{"ruleId":"D1","level":"warning","message":{"text":"crab::lfs::transfer_agent::run_transfer_agent_with_resolver (cyclomatic 45): crab::lfs::transfer_agent::run_transfer_agent_with_resolver has cyclomatic complexity 45 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/lfs/transfer_agent.rs"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"1be15a78b84924ae97533caaf923230f3047aabc4ff0100309bce4a450204bcb"}},{"ruleId":"D1","level":"warning","message":{"text":"verify-nfs-smoke-report.check_mount_doctor_artifact (cyclomatic 44): verify-nfs-smoke-report.check_mount_doctor_artifact has cyclomatic complexity 44 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/scripts/verify-nfs-smoke-report.py"},"region":{"startLine":407}}}],"partialFingerprints":{"codehealthFindingId/v1":"913a674d7343bab23571146f1566b6beb8d94ec9bc8fa91bf24f5e4afa1d4170"}},{"ruleId":"D1","level":"warning","message":{"text":"nfs-evidence-summary.benchmark_consistency_blockers (cyclomatic 42): nfs-evidence-summary.benchmark_consistency_blockers 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":"crab/scripts/nfs-evidence-summary.py"},"region":{"startLine":721}}}],"partialFingerprints":{"codehealthFindingId/v1":"50d32e0d013bc08ca10ea37e580f39dd29ccafc0c6172d135d2b7041847da518"}},{"ruleId":"D1","level":"warning","message":{"text":"verify-nfs-smoke-report.check_mount_status_artifact (cyclomatic 42): verify-nfs-smoke-report.check_mount_status_artifact 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":"crab/scripts/verify-nfs-smoke-report.py"},"region":{"startLine":1263}}}],"partialFingerprints":{"codehealthFindingId/v1":"efa3fa54dd9840764cc0cc563d870520439227973b1b3070e55a501ae4d1f8a3"}},{"ruleId":"D1","level":"warning","message":{"text":"crab_metadata::git_visibility::storage::apply_catalog_journal_edits (cyclomatic 41): crab_metadata::git_visibility::storage::apply_catalog_journal_edits has cyclomatic complexity 41 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own 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/crab-metadata/src/git_visibility.rs"},"region":{"startLine":3352}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2e610c359279145cfc8e6063f9c7caa630b17261655eb557b70b127edefe656"}},{"ruleId":"D1","level":"warning","message":{"text":"crab_workflow::dvc_inventory::verify_output (cyclomatic 41): crab_workflow::dvc_inventory::verify_output has cyclomatic complexity 41 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own 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/crab-workflow/src/dvc_inventory.rs"},"region":{"startLine":1826}}}],"partialFingerprints":{"codehealthFindingId/v1":"5479f9a43fb6b068f48c314fe6cb6f098829f055f533f2e9300597e94a75a37b"}},{"ruleId":"D1","level":"warning","message":{"text":"Config::apply_overlay (cyclomatic 40): Config::apply_overlay has cyclomatic complexity 40 (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":"crab/src/core/config.rs"},"region":{"startLine":2079}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fe0b2ded2dc9054de0a40123aadcdd73760db99c2af7f24b8ee38372c5bee54"}},{"ruleId":"D1","level":"warning","message":{"text":"crab::cmd::metadb::rebuild_git_object_locators (cyclomatic 40): crab::cmd::metadb::rebuild_git_object_locators has cyclomatic complexity 40 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/cmd/metadb.rs"},"region":{"startLine":2688}}}],"partialFingerprints":{"codehealthFindingId/v1":"c15777f16af007dfe846e6b280487870482a6b876745f1e28748bc711a1f6940"}},{"ruleId":"D1","level":"warning","message":{"text":"crab::cmd::push::run_push_once (cyclomatic 39): crab::cmd::push::run_push_once 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":"crab/src/cmd/push.rs"},"region":{"startLine":533}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a419c6de055ba43608bf51ff05f8f8f359a46d3e7271fdbea6651dd90abc756"}},{"ruleId":"D1","level":"warning","message":{"text":"crab::cmd::diff::run_diff (cyclomatic 38): crab::cmd::diff::run_diff has cyclomatic complexity 38 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/cmd/diff.rs"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"24ee4111dfb0b8dc18e06c49567a33745eaae0f5e399bb507d1f8c21438a021e"}},{"ruleId":"D1","level":"warning","message":{"text":"crab::tier::provider::s3::parse_xml_to_sdk_rules (cyclomatic 38): crab::tier::provider::s3::parse_xml_to_sdk_rules has cyclomatic complexity 38 (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":"crab/src/tier/provider/s3.rs"},"region":{"startLine":677}}}],"partialFingerprints":{"codehealthFindingId/v1":"28d3c6945cb67f766135a03395ae5ab31b7eabbb190aa18b2df37a38ac1be7aa"}},{"ruleId":"D1","level":"warning","message":{"text":"crab_cache_server::bin::crab_cache::evidence (cyclomatic 38): crab_cache_server::bin::crab_cache::evidence has cyclomatic complexity 38 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-cache-server/src/bin/crab_cache.rs"},"region":{"startLine":422}}}],"partialFingerprints":{"codehealthFindingId/v1":"35e71f632810cc9d5a32015e48bc577a867780ee5c4356f06ac72afc13457821"}},{"ruleId":"D1","level":"warning","message":{"text":"nfs-read-path-bench-report.validate_report (cyclomatic 38): nfs-read-path-bench-report.validate_report has cyclomatic complexity 38 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/scripts/nfs-read-path-bench-report.py"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d230e2c122fe34121109813a120b25857fdb41c24c1aeae40a3b5a7c51c37ac"}},{"ruleId":"D1","level":"warning","message":{"text":"crab::cmd::hydrate::run_selected_hydration (cyclomatic 37): crab::cmd::hydrate::run_selected_hydration 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":"crab/src/cmd/hydrate.rs"},"region":{"startLine":2322}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d748a08751bc42c8e1b85c5a66c248f8036d6c56052d7e87274d1429c1b1954"}},{"ruleId":"D1","level":"warning","message":{"text":"crab_read::upload_pack::plan_with_operation (cyclomatic 37): crab_read::upload_pack::plan_with_operation 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/crab-read/src/upload_pack.rs"},"region":{"startLine":640}}}],"partialFingerprints":{"codehealthFindingId/v1":"4033290593058ea968bf5cb78ebad30d780dd95f2624ff0313033ea34678ee46"}},{"ruleId":"D1","level":"warning","message":{"text":"nfs-evidence-summary.threshold_evidence_tier (cyclomatic 37): nfs-evidence-summary.threshold_evidence_tier has cyclomatic complexity 37 (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":"crab/scripts/nfs-evidence-summary.py"},"region":{"startLine":958}}}],"partialFingerprints":{"codehealthFindingId/v1":"b879b7044e03d2e7e22e531d8ee4caea23b51bbfdb3f19b600fcb264b816fb31"}},{"ruleId":"D1","level":"warning","message":{"text":"crab::cmd::metadb::diagnose_acceleration_health (cyclomatic 36): crab::cmd::metadb::diagnose_acceleration_health has cyclomatic complexity 36 (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":"crab/src/cmd/metadb.rs"},"region":{"startLine":3606}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c9ca132ce27cee10508109e5cd0c0f9e986c48b9897765d469ddb16c446d65a"}},{"ruleId":"D1","level":"warning","message":{"text":"Index::insert_file_push_plans (cyclomatic 36): Index::insert_file_push_plans has cyclomatic complexity 36 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-staging/src/index.rs"},"region":{"startLine":6335}}}],"partialFingerprints":{"codehealthFindingId/v1":"8703ee59449eab86b0ecea79bea7d617a30653bc76130cbe3962022c5d5c3a3f"}},{"ruleId":"D1","level":"warning","message":{"text":"Store::put_multipart_file_resumable (cyclomatic 36): Store::put_multipart_file_resumable has cyclomatic complexity 36 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-storage/src/store.rs"},"region":{"startLine":1792}}}],"partialFingerprints":{"codehealthFindingId/v1":"eecadeb07af9797971ffed7cefbe661f5b347cc1dc9e1acabe58f0ce3090d71f"}},{"ruleId":"D1","level":"warning","message":{"text":"verify-provider-qualification-report.verify_report (cyclomatic 36): verify-provider-qualification-report.verify_report has cyclomatic complexity 36 (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":"crab/scripts/verify-provider-qualification-report.py"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"0073c213e0175c718d0a7b9bead6f6e0df0f05dd14c2dfeda99d86636ea14f29"}},{"ruleId":"D1","level":"warning","message":{"text":"git-import.GitImport (cyclomatic 36): git-import.GitImport has cyclomatic complexity 36 (threshold 15). Of this number, 17 points are the body\u0027s own statements and 19 belong to 6 function items inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/git-import.tsx"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"a83b40bde3dfadc3e78e190b25667c6872d25670fb6cfa2e3e4b34920e9d21f3"}},{"ruleId":"D1","level":"warning","message":{"text":"crab::git::remote_helper::dispatch_batch (cyclomatic 35): crab::git::remote_helper::dispatch_batch has cyclomatic complexity 35 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/git/remote_helper.rs"},"region":{"startLine":1366}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c50f8f2b30145a2e8d7329dd836319ba93550d9a7f5f3bbbaa77ab82978caa4"}},{"ruleId":"D1","level":"warning","message":{"text":"crab::run_optimize_command (cyclomatic 35): crab::run_optimize_command has cyclomatic complexity 35 (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: Cmd::schema_name (cyclomatic 143) 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":"crab/src/main.rs"},"region":{"startLine":5288}}}],"partialFingerprints":{"codehealthFindingId/v1":"f43a7eece97ad6a81b1c4eaaccae5f5800b748330a781b878a9e71ab95920ff5"}},{"ruleId":"D1","level":"warning","message":{"text":"settings.MemberSettings (cyclomatic 35): settings.MemberSettings has cyclomatic complexity 35 (threshold 15). Most of this is not in the body itself: 15 of the 35 points are its own statements and the rest belongs to 8 function items inside it that branch (save, load, saveMember, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/settings.tsx"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5830d7a85d1a7e2d55ff8ebb9f1b5a5db2dea3820460e11b8edea36db272489"}},{"ruleId":"D1","level":"warning","message":{"text":"App.App (cyclomatic 35): App.App has cyclomatic complexity 35 (threshold 15). Of this number, 16 points are the body\u0027s own statements and 19 belong to 9 function items inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/App.tsx"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"90387e8628fceace230a8ade4b77da5934f328cdf60107d14007964748ca221b"}},{"ruleId":"D1","level":"warning","message":{"text":"PushPipeline::apply_decisions_with_sha_map (cyclomatic 34): PushPipeline::apply_decisions_with_sha_map 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":"crab/src/git/push.rs"},"region":{"startLine":7457}}}],"partialFingerprints":{"codehealthFindingId/v1":"029c8dffcee6f149365a2a101134890ea0d6f6ad2d8d63530aaf6e2f82131a62"}},{"ruleId":"D1","level":"warning","message":{"text":"crab_read::upload_pack_wire::parse_fetch (cyclomatic 34): crab_read::upload_pack_wire::parse_fetch 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/crab-read/src/upload_pack_wire.rs"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"711e93098c32a3c062dea20989943c65e5e344182ec1d21d19f71c51143e2993"}},{"ruleId":"D1","level":"warning","message":{"text":"Config::validate (cyclomatic 34): Config::validate 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/crab-s3-gateway/src/config.rs"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe8dd8d30b542e1f7750599cb7390c53c65b5650e3e7db3f6d5353d17c51b71a"}},{"ruleId":"D1","level":"warning","message":{"text":"qualify_reader_retention.main (cyclomatic 34): qualify_reader_retention.main 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/crab-http-server/deploy/cell-issue-fleet/qualify_reader_retention.py"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"72f0c1d8c20c84eca198fa50882e5d2cfcdd158e26e073ee27088f00cbec7724"}},{"ruleId":"D1","level":"warning","message":{"text":"revision-picker.RevisionPicker (cyclomatic 34): revision-picker.RevisionPicker has cyclomatic complexity 34 (threshold 15). Of this number, 16 points are the body\u0027s own statements and 18 belong to 7 function items inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/revision-picker.tsx"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9ba50c8f644238ae7d3a7cc3f2eaaf16845b4ddb7fb914eee47d1a09f52cda5"}},{"ruleId":"D1","level":"warning","message":{"text":"crab_http_server::peer::dispatch_forwarded_request (cyclomatic 33): crab_http_server::peer::dispatch_forwarded_request has cyclomatic complexity 33 (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/crab-http-server/src/peer.rs"},"region":{"startLine":968}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb809bd69ea12875f9c1e8dcbed05374a1dbdfb4b83ae459a26e36e78a783871"}},{"ruleId":"D1","level":"warning","message":{"text":"crab_staging::stream::stage_file_streaming_inner (cyclomatic 33): crab_staging::stream::stage_file_streaming_inner 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/crab-staging/src/stream.rs"},"region":{"startLine":602}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebe6ccd1de4a9cbf96089a1e0431e384a24b3e3d327c244b3450f8408dcdf834"}},{"ruleId":"D1","level":"warning","message":{"text":"check-release-archive-contents.check_release_workflow (cyclomatic 33): check-release-archive-contents.check_release_workflow 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":"crab/scripts/release/check-release-archive-contents.py"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"ceae1f7c918c03388b95b03031931282f3e13ff2ab15b8e823a5a977fbbcbc53"}},{"ruleId":"D1","level":"warning","message":{"text":"action_traces.join (cyclomatic 33): action_traces.join 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/crab-http-server/deploy/cell-issue-fleet/action_traces.py"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"866fbf8379e057327fbc2889c8b0cf0ceba2b37321ed5cd8c138a482d18a024b"}},{"ruleId":"D1","level":"warning","message":{"text":"crab::cmd::clone::run_clone_in (cyclomatic 32): crab::cmd::clone::run_clone_in 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":"crab/src/cmd/clone.rs"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"a82141f611a60861e895127b4dc8c133018a26f89fdae6d65dfc1463f2b9cfe1"}},{"ruleId":"D1","level":"warning","message":{"text":"crab::lfs::migrate::migrate_import_with_store_options (cyclomatic 32): crab::lfs::migrate::migrate_import_with_store_options 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":"crab/src/lfs/migrate.rs"},"region":{"startLine":1395}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c0c8b3650ffa5d0751e4fac70a829b1e33cbb45a6cc16aa5bfb70cb47f92d38"}},{"ruleId":"D1","level":"warning","message":{"text":"verify_sdk_capabilities.validate (cyclomatic 32): verify_sdk_capabilities.validate 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":"crab/scripts/verify_sdk_capabilities.py"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"43ddeba65d6082dc656b91d8d33f939b7039d21392ef6aba2f098cb5d97d2dcb"}},{"ruleId":"D1","level":"warning","message":{"text":"knowledge-check.KnowledgeCheck (cyclomatic 32): knowledge-check.KnowledgeCheck has cyclomatic complexity 32 (threshold 15). Most of this is not in the body itself: 9 of the 32 points are its own statements and the rest belongs to 2 function items inside it that branch (a function literal at line 95, verify). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/web/components/library/knowledge-check.tsx"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3fdd29c30db43ef1b9fe3134f53fb1d53cc1c77a63501d29ccbdab51f3af1d7"}},{"ruleId":"D1","level":"warning","message":{"text":"PushPipeline::classify_chunks (cyclomatic 31): PushPipeline::classify_chunks 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":"crab/src/git/push.rs"},"region":{"startLine":11167}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c9d019f72107b4ec01930ca4ea2b1a15aea87b5f3a155316684c53cd3b668e9"}},{"ruleId":"D1","level":"warning","message":{"text":"PushPipeline::post_success_cleanup (cyclomatic 31): PushPipeline::post_success_cleanup 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":"crab/src/git/push.rs"},"region":{"startLine":15833}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7b02cd5ec426825005f21f231d57e3181a3e644e0af7b3ed4a3bc0013a051c9"}},{"ruleId":"D1","level":"warning","message":{"text":"crab_read::upload_pack::enqueue_children (cyclomatic 31): crab_read::upload_pack::enqueue_children 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/crab-read/src/upload_pack.rs"},"region":{"startLine":1810}}}],"partialFingerprints":{"codehealthFindingId/v1":"b42d2ce29d430674d44e4ecec8905afeaa609fee78414058f90b7f4b92923586"}},{"ruleId":"D1","level":"warning","message":{"text":"crab_workflow::dvc_inventory::inventory_project (cyclomatic 31): crab_workflow::dvc_inventory::inventory_project 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/crab-workflow/src/dvc_inventory.rs"},"region":{"startLine":536}}}],"partialFingerprints":{"codehealthFindingId/v1":"a605a63e834e5d377b1d0e6a0e8137772fe2db3bc8416dcebe37e6d51a622c01"}},{"ruleId":"D1","level":"warning","message":{"text":"pulls.PullReviewThreads (cyclomatic 31): pulls.PullReviewThreads has cyclomatic complexity 31 (threshold 15). Of this number, 19 points are the body\u0027s own statements and 12 belong to 4 function items inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pulls.tsx"},"region":{"startLine":796}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b3f5542f1614ac96bf4e903fb1bbb509a9dbbf068b9d9fd9dcfbfd25f4a4c3a"}},{"ruleId":"D1","level":"warning","message":{"text":"PushPipeline::pack_xorbs_with_output (cyclomatic 30): PushPipeline::pack_xorbs_with_output has cyclomatic complexity 30 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/git/push.rs"},"region":{"startLine":11460}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bc8bcbd9ddee4acf7d473879327bdfdf6adaa579a80f3b9ce1d1010c1a26677"}},{"ruleId":"D1","level":"warning","message":{"text":"crab::cmd::repack::run_repack_locked (cyclomatic 30): crab::cmd::repack::run_repack_locked 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":"crab/src/cmd/repack.rs"},"region":{"startLine":286}}}],"partialFingerprints":{"codehealthFindingId/v1":"74ecc99069bad27182b084a2c81be7a2e59c4c7f8cc9b7e963e8be194de0fb84"}},{"ruleId":"D1","level":"warning","message":{"text":"crab::cmd::replica::render_status (cyclomatic 30): crab::cmd::replica::render_status has cyclomatic complexity 30 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/cmd/replica.rs"},"region":{"startLine":12987}}}],"partialFingerprints":{"codehealthFindingId/v1":"5cbf2660cf901a33bbf0fdd16347f7251bab3170188cc1d2a810c02b243587bc"}},{"ruleId":"D1","level":"warning","message":{"text":"Verifier.verify_route_contract_behavior (cyclomatic 30): Verifier.verify_route_contract_behavior has cyclomatic complexity 30 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/scripts/verify-cache-service-smoke-report.py"},"region":{"startLine":819}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ff465dda3b0797e6e05feb84ee044264b2bf3e146b013e70b033942c7b07f2a"}},{"ruleId":"D1","level":"warning","message":{"text":"pulls.ReviewThreadCard (cyclomatic 30): pulls.ReviewThreadCard has cyclomatic complexity 30 (threshold 15). Of this number, 28 points are the body\u0027s own statements and 2 belong to 2 function items inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pulls.tsx"},"region":{"startLine":1139}}}],"partialFingerprints":{"codehealthFindingId/v1":"aaed9025986dbe56ab5b7cb659eccb06a5beedf6544737a37373db1e35bdd4d3"}},{"ruleId":"D1","level":"warning","message":{"text":"crab::cmd::dehydrate::run_dehydrate_in (cyclomatic 29): crab::cmd::dehydrate::run_dehydrate_in 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":"crab/src/cmd/dehydrate.rs"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d067824a273d8f5181f379c12e89938274dd9700c94fa5a350e5189dc87ced8"}},{"ruleId":"D1","level":"warning","message":{"text":"crab::cmd::replica::validate_live_smoke_evidence (cyclomatic 29): crab::cmd::replica::validate_live_smoke_evidence has cyclomatic complexity 29 (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":"crab/src/cmd/replica.rs"},"region":{"startLine":4617}}}],"partialFingerprints":{"codehealthFindingId/v1":"8675833a5c4c05eedfee6914d829779ea95eabc9c62bc1a8f280c112a6a2b26f"}},{"ruleId":"D1","level":"warning","message":{"text":"crab::cmd::run::run_inline_single_stage (cyclomatic 29): crab::cmd::run::run_inline_single_stage 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":"crab/src/cmd/run.rs"},"region":{"startLine":545}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f3e670fad7d98d31d0cf8529742164e197a4e924c690e932a63809d40598882"}},{"ruleId":"D1","level":"warning","message":{"text":"crab::lfs::migrate::migrate_export_with_options (cyclomatic 29): crab::lfs::migrate::migrate_export_with_options 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":"crab/src/lfs/migrate.rs"},"region":{"startLine":2109}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6bd30c83d86edb36a53f9fd49b3440932f8e58bd41af18df5e1ec174b106b23"}},{"ruleId":"D1","level":"warning","message":{"text":"crab_metadata::split_commit_graph::update_split_commit_graph (cyclomatic 29): crab_metadata::split_commit_graph::update_split_commit_graph 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/crab-metadata/src/split_commit_graph.rs"},"region":{"startLine":425}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffbe0f1c78cc4928383397c23b2202da63f41b49948b1656240f03840c374f80"}},{"ruleId":"D1","level":"warning","message":{"text":"nfs-evidence-summary.smoke_summary_consistency_blockers (cyclomatic 29): nfs-evidence-summary.smoke_summary_consistency_blockers 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":"crab/scripts/nfs-evidence-summary.py"},"region":{"startLine":841}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe0eb08c9705412042ca77546991c9cafd98c5b35e70b2f07ac89993618607ac"}},{"ruleId":"D1","level":"warning","message":{"text":"qualify_reader_perf.main (cyclomatic 29): qualify_reader_perf.main 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/crab-http-server/deploy/cell-issue-fleet/qualify_reader_perf.py"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee734cd5b0c3a49789e2d08d4b7083731d92cab404e554210ce80531611177dd"}},{"ruleId":"D1","level":"warning","message":{"text":"pulls.PullDetail (cyclomatic 29): pulls.PullDetail has cyclomatic complexity 29 (threshold 15). Most of this is not in the body itself: 8 of the 29 points are its own statements and the rest belongs to one function literal inside it that branches (line 651). The decisions are inside the literal, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literal\u0027s work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pulls.tsx"},"region":{"startLine":614}}}],"partialFingerprints":{"codehealthFindingId/v1":"33c2b85e4abd781f00fd1ae0592d0932b6299b2452fa3414941a82afbcb2af5e"}},{"ruleId":"D1","level":"warning","message":{"text":"ChunkIndexStore::get_batch_with_candidates_inner (cyclomatic 28): ChunkIndexStore::get_batch_with_candidates_inner 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":"crab/src/metadata/metadb/stores/chunk_index.rs"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"4eb575cc718313f6e82bc2c762e0dcb7275e30cc13e035bb912af41e7891ce20"}},{"ruleId":"D1","level":"warning","message":{"text":"crab::cmd::add::collect_literal_candidates (cyclomatic 28): crab::cmd::add::collect_literal_candidates 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":"crab/src/cmd/add.rs"},"region":{"startLine":2670}}}],"partialFingerprints":{"codehealthFindingId/v1":"e079faa2e0be228ec75fb6ba70e8c01998719869e3f4a1cc342c4d688a8eb04c"}},{"ruleId":"D1","level":"warning","message":{"text":"crab::cmd::metadb::generation_owner_sample (cyclomatic 28): crab::cmd::metadb::generation_owner_sample 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":"crab/src/cmd/metadb.rs"},"region":{"startLine":661}}}],"partialFingerprints":{"codehealthFindingId/v1":"019d35969099bc44f7468b61a1f841aec82bc450b47500a08a02bcc9cee068bf"}},{"ruleId":"D1","level":"warning","message":{"text":"crab::git::push_native::phase_discover (cyclomatic 28): crab::git::push_native::phase_discover 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":"crab/src/git/push_native.rs"},"region":{"startLine":1055}}}],"partialFingerprints":{"codehealthFindingId/v1":"a016931b336d32baf33d008d45439899439350e19a677666a24aee181dc81163"}},{"ruleId":"D1","level":"warning","message":{"text":"crab_sdk::client::mutation::native_content::prepare_native_sources (cyclomatic 28): crab_sdk::client::mutation::native_content::prepare_native_sources has cyclomatic complexity 28 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-sdk/src/client/mutation/native_content.rs"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"59392fa83d0914671366504e0e94b0fe46f4d48475f54b5a9cee2fb0a842f06d"}},{"ruleId":"D1","level":"warning","message":{"text":"XorbBuilder::push_precompressed_with_reserve_and_admission (cyclomatic 28): XorbBuilder::push_precompressed_with_reserve_and_admission 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/crab-xet/src/xorb/builder.rs"},"region":{"startLine":536}}}],"partialFingerprints":{"codehealthFindingId/v1":"47267af2ff4c88e7c45f6305f93e14d84c86ba115a27cf6a668e6cc08a4a8036"}},{"ruleId":"D1","level":"warning","message":{"text":"nfs-evidence-summary.render_threshold_suggestions (cyclomatic 28): nfs-evidence-summary.render_threshold_suggestions 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":"crab/scripts/nfs-evidence-summary.py"},"region":{"startLine":1249}}}],"partialFingerprints":{"codehealthFindingId/v1":"06b5c751b0b69c41e153b6177ba5decfec173d76c4f1626f07ad5fd531da2e29"}},{"ruleId":"D1","level":"warning","message":{"text":"ReadFailure::with_cause (cyclomatic 27): ReadFailure::with_cause has cyclomatic complexity 27 (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":"crab/src/core/error/read_failure.rs"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"a68d3c121b297c90cf6b9f08b8ab8df81fd0c2a8846a22f923609c27ec13bb1a"}},{"ruleId":"D1","level":"warning","message":{"text":"crab::cmd::mirror::reconcile::apply_plan (cyclomatic 27): crab::cmd::mirror::reconcile::apply_plan has cyclomatic complexity 27 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/cmd/mirror/reconcile.rs"},"region":{"startLine":621}}}],"partialFingerprints":{"codehealthFindingId/v1":"aaf212eef2942d54629bee07053cc8d1b71bf2360a2054881bd605e93ab0af8c"}},{"ruleId":"D1","level":"warning","message":{"text":"crab::git::remote_helper::handle_option (cyclomatic 27): crab::git::remote_helper::handle_option has cyclomatic complexity 27 (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":"crab/src/git/remote_helper.rs"},"region":{"startLine":1118}}}],"partialFingerprints":{"codehealthFindingId/v1":"40e7b9d0b4865c251cd3c3500ec95f929bd996669331a2b7c3890dd4dca338f1"}},{"ruleId":"D1","level":"warning","message":{"text":"UpdatePull::execute (cyclomatic 27): UpdatePull::execute has cyclomatic complexity 27 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-http-server/src/cells/repository/pulls.rs"},"region":{"startLine":444}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd8dafbf2b91357483e521ddc38b43fe13b6158bd914463312ccbc3022d3d43e"}},{"ruleId":"D1","level":"warning","message":{"text":"PreparedContent::new (cyclomatic 27): PreparedContent::new 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/crab-remote/src/prepare.rs"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ad2fcbdc78ca69a012a19d1e31c4461e9c40a9b1b6253271cf61028092bcd44"}},{"ruleId":"D1","level":"warning","message":{"text":"check-architecture-gates.check_xet_module_scope (cyclomatic 27): check-architecture-gates.check_xet_module_scope 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":"crab/scripts/check-architecture-gates.py"},"region":{"startLine":2918}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbbcd09b768363880cdc55eb853b8c94b7125e3ecd39991a1c14ff6e0863ce7e"}},{"ruleId":"D1","level":"warning","message":{"text":"verify-nfs-smoke-report.check_write_journal_runtime_status (cyclomatic 27): verify-nfs-smoke-report.check_write_journal_runtime_status has cyclomatic complexity 27 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/scripts/verify-nfs-smoke-report.py"},"region":{"startLine":832}}}],"partialFingerprints":{"codehealthFindingId/v1":"de9f6ad283cb4d7f5f5b4d2e5105267bad4438bd287b45b980d54410aad90a2c"}},{"ruleId":"D1","level":"warning","message":{"text":"pulls.MergePanel (cyclomatic 27): pulls.MergePanel has cyclomatic complexity 27 (threshold 15). Of this number, 24 points are the body\u0027s own statements and 3 belong to one function literal inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pulls.tsx"},"region":{"startLine":1761}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3a28525a7236b7b9115454e49e3337b1ff481cf010893ea45e0f73b0685b686"}},{"ruleId":"D1","level":"warning","message":{"text":"AddRemoteChunkClassifier::lookup_existing_candidates (cyclomatic 26): AddRemoteChunkClassifier::lookup_existing_candidates has cyclomatic complexity 26 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/git/push.rs"},"region":{"startLine":4316}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3cee025cc091e5a0ae028faa981b049b039035189f4cb6c950d69cbba134239"}},{"ruleId":"D1","level":"warning","message":{"text":"crab::cmd::migrate::run_migrate_from_dvc_with_options (cyclomatic 26): crab::cmd::migrate::run_migrate_from_dvc_with_options 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":"crab/src/cmd/migrate.rs"},"region":{"startLine":922}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa62f27eb51c3100915f16afec05b5e70565686681d0c922260c5dbb2d158820"}},{"ruleId":"D1","level":"warning","message":{"text":"crab::cmd::replica::doctor_findings (cyclomatic 26): crab::cmd::replica::doctor_findings 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":"crab/src/cmd/replica.rs"},"region":{"startLine":9247}}}],"partialFingerprints":{"codehealthFindingId/v1":"234aa70da996d4b09c6d45bbd6150e57ab95abbe55e53e93077187a5b9eb5596"}},{"ruleId":"D1","level":"warning","message":{"text":"UpdateIssue::execute (cyclomatic 26): UpdateIssue::execute has cyclomatic complexity 26 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-http-server/src/cells/repository/operations.rs"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"79d55d31e9de955fda308901c68dd9e353c664773345c693262432e3018062d9"}},{"ruleId":"D1","level":"warning","message":{"text":"crab_s3_gateway::multipart::register_part (cyclomatic 26): crab_s3_gateway::multipart::register_part 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/crab-s3-gateway/src/multipart.rs"},"region":{"startLine":526}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9c81ac243c05287bf795f73e6b388882ba916972230825fd6ef82d8cae2a36a"}},{"ruleId":"D1","level":"warning","message":{"text":"crab_s3_gateway::mutation::build_commit (cyclomatic 26): crab_s3_gateway::mutation::build_commit has cyclomatic complexity 26 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-s3-gateway/src/mutation.rs"},"region":{"startLine":2404}}}],"partialFingerprints":{"codehealthFindingId/v1":"07f6d9268e9df73604dc07110de166b5b2c64f4dafb83a02626425f009375a8f"}},{"ruleId":"D1","level":"warning","message":{"text":"verify_git_capability_matrix.validate_report (cyclomatic 26): verify_git_capability_matrix.validate_report has cyclomatic complexity 26 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/scripts/verify_git_capability_matrix.py"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"774933e88b59ac953df7dcaeb62943792e71a0e0109b79c6ec8e944083aa08c7"}},{"ruleId":"D1","level":"warning","message":{"text":"crab::cmd::gc::bucket::execute_bucket_journal (cyclomatic 25): crab::cmd::gc::bucket::execute_bucket_journal 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":"crab/src/cmd/gc/bucket.rs"},"region":{"startLine":911}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee5108821e14a222eab6871d3e56987eddcd65b3ab484b520aa4c23e091c14d3"}},{"ruleId":"D1","level":"warning","message":{"text":"crab::cmd::history_recovery::verify_history (cyclomatic 25): crab::cmd::history_recovery::verify_history 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":"crab/src/cmd/history_recovery.rs"},"region":{"startLine":680}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2f0c8ee0ed97c2505f9bfe2ed89e58c52e76b4d502de74db30bd2f751bfd215"}},{"ruleId":"D1","level":"warning","message":{"text":"crab::cmd::init::run_init_inner (cyclomatic 25): crab::cmd::init::run_init_inner 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":"crab/src/cmd/init.rs"},"region":{"startLine":233}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5d39af8bcfbd1862b3ee4e44af595cc997d30483bb953741d855b64fc44cbe0"}},{"ruleId":"D1","level":"warning","message":{"text":"crab::cmd::setup::run_setup_at (cyclomatic 25): crab::cmd::setup::run_setup_at 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":"crab/src/cmd/setup.rs"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"a362eb2a7cb712b68c9a00f298e15a150a1475ff41e33e151c3d57f734e33f51"}},{"ruleId":"D1","level":"warning","message":{"text":"crab::diff::formatter::format_human (cyclomatic 25): crab::diff::formatter::format_human 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":"crab/src/diff/formatter.rs"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e90b631a0702785db354d97814ce9fc32add4c89655e9706038435e21ba4cc0"}},{"ruleId":"D1","level":"warning","message":{"text":"crab::git::push::repair_git_visibility_if_current_with_options (cyclomatic 25): crab::git::push::repair_git_visibility_if_current_with_options 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":"crab/src/git/push.rs"},"region":{"startLine":6139}}}],"partialFingerprints":{"codehealthFindingId/v1":"3431591cf5776600675d68658318a62108d674ab015d8ac6bfdad3261b427de8"}},{"ruleId":"D1","level":"warning","message":{"text":"crab_http_server::api::read (cyclomatic 25): crab_http_server::api::read 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/crab-http-server/src/api.rs"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6212afcd7f838f56426bba6799ce33337f2202aa311727082be384d0bee58c3"}},{"ruleId":"D1","level":"warning","message":{"text":"crab_http_server::pulls::edit (cyclomatic 25): crab_http_server::pulls::edit has cyclomatic complexity 25 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-http-server/src/pulls.rs"},"region":{"startLine":538}}}],"partialFingerprints":{"codehealthFindingId/v1":"95f8629ddabe47061be6fec507c7c1fa34e1862aed6b2c9084575fc006b6d107"}},{"ruleId":"D1","level":"warning","message":{"text":"crab_http_server::receive::publish::publish_attempt (cyclomatic 25): crab_http_server::receive::publish::publish_attempt 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/crab-http-server/src/receive/publish.rs"},"region":{"startLine":434}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ae6ca9320f233a24194c4c8802c7fa241f3ea66de0588735414842763cc2d71"}},{"ruleId":"D1","level":"warning","message":{"text":"crab_http_server::server::boundary_request (cyclomatic 25): crab_http_server::server::boundary_request has cyclomatic complexity 25 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-http-server/src/server.rs"},"region":{"startLine":2263}}}],"partialFingerprints":{"codehealthFindingId/v1":"843bd293696fb951f0c66323ad6fece5275300e774fa5e4ac8003683f433b592"}},{"ruleId":"D1","level":"warning","message":{"text":"GitObjectLocatorWriter::write_locations_inner (cyclomatic 25): GitObjectLocatorWriter::write_locations_inner 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/crab-metadata/src/git_object_locator/writer.rs"},"region":{"startLine":558}}}],"partialFingerprints":{"codehealthFindingId/v1":"24e3c904fa74eb1ca22465c22ab704c0e298039c93678c023be2dcce3fbf8c0d"}},{"ruleId":"D1","level":"warning","message":{"text":"crab_workflow::dvc_inventory::parse_config (cyclomatic 25): crab_workflow::dvc_inventory::parse_config 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/crab-workflow/src/dvc_inventory.rs"},"region":{"startLine":1627}}}],"partialFingerprints":{"codehealthFindingId/v1":"6dd1d9a80b1b73bb4adbade43e175efcd7190d4ca7c7e5ee4a13acf27fd18d91"}},{"ruleId":"D1","level":"warning","message":{"text":"check-architecture-gates.check_cache_server_runtime_scope (cyclomatic 25): check-architecture-gates.check_cache_server_runtime_scope 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":"crab/scripts/check-architecture-gates.py"},"region":{"startLine":3823}}}],"partialFingerprints":{"codehealthFindingId/v1":"979d25bca558b6b272f2aa31554aac644cb14b268eb3d01659bbb41aa7afd5d9"}},{"ruleId":"D1","level":"warning","message":{"text":"check-architecture-gates.check_metadata_module_scope (cyclomatic 25): check-architecture-gates.check_metadata_module_scope 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":"crab/scripts/check-architecture-gates.py"},"region":{"startLine":4591}}}],"partialFingerprints":{"codehealthFindingId/v1":"80fa602cc500e40381812d09cd679f645cbb879fbcb25cb543fb56fb29307bc4"}},{"ruleId":"D1","level":"warning","message":{"text":"verify-nfs-smoke-report.validate (cyclomatic 25): verify-nfs-smoke-report.validate 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":"crab/scripts/verify-nfs-smoke-report.py"},"region":{"startLine":1940}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bcfbac817414b1000e06b6147bf2c6f76417fafcf699bb898326fdaa5d0ba50"}},{"ruleId":"D1","level":"warning","message":{"text":"qualify_mode_rollout.main (cyclomatic 25): qualify_mode_rollout.main 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/crab-http-server/deploy/cell-issue-fleet/qualify_mode_rollout.py"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"6db4bf41652e2870de901a0f0869325b0256c6ec0455efaaed655945a4e071a6"}},{"ruleId":"D1","level":"warning","message":{"text":"content.DiffView (cyclomatic 25): content.DiffView has cyclomatic complexity 25 (threshold 15). Most of this is not in the body itself: 4 of the 25 points are its own statements and the rest belongs to 8 function literals inside it that branch (lines 974, 932, 1005, \u2026). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/content.tsx"},"region":{"startLine":915}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a8cee9679c5a5aa18cd4728dc242f091cbc534f54dd577b2d88b1af274fc9cc"}},{"ruleId":"D1","level":"warning","message":{"text":"PushPipeline::upload_packs (cyclomatic 24): PushPipeline::upload_packs has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This is NOT this file\u0027s highest cyclomatic complexity: PushRejectReason::fmt (cyclomatic 25) 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":"crab/src/git/push.rs"},"region":{"startLine":13183}}}],"partialFingerprints":{"codehealthFindingId/v1":"66b4a95e4eac7d10b5b154a0021aab65571b9aae00b77321c4b604152bf8af5f"}},{"ruleId":"D1","level":"warning","message":{"text":"crab::cmd::exp::emit_diff (cyclomatic 24): crab::cmd::exp::emit_diff has cyclomatic complexity 24 (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":"crab/src/cmd/exp.rs"},"region":{"startLine":5977}}}],"partialFingerprints":{"codehealthFindingId/v1":"71411956d389ab753525bd25252c83d8e509d70552918764b1c915497ff507de"}},{"ruleId":"D1","level":"warning","message":{"text":"crab::git::upload_pack_wire::open_repository_with_visibility_requirement (cyclomatic 24): crab::git::upload_pack_wire::open_repository_with_visibility_requirement 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":"crab/src/git/upload_pack_wire.rs"},"region":{"startLine":890}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb5a3e7c2431d70739c5cec539ed7cc485724207c72ffd1d5d97b50008cffa04"}},{"ruleId":"D1","level":"warning","message":{"text":"crab::import::journal::deserialize_list (cyclomatic 24): crab::import::journal::deserialize_list has cyclomatic complexity 24 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/import/journal.rs"},"region":{"startLine":709}}}],"partialFingerprints":{"codehealthFindingId/v1":"554d05bfac3073de46025f515369d831ed16b50eb6f22e84aca3b552f0bbce97"}},{"ruleId":"D1","level":"warning","message":{"text":"crab_git::receive_plan::validate (cyclomatic 24): crab_git::receive_plan::validate 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/crab-git/src/receive_plan.rs"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f529332d47cb89858bfaed48c8319964450e924abe567d7e1ca9254a21def7b"}},{"ruleId":"D1","level":"warning","message":{"text":"crab_git::receive_wire::read_request_with_limits (cyclomatic 24): crab_git::receive_wire::read_request_with_limits 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/crab-git/src/receive_wire.rs"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"0588bab6814c2a06a53e3846ccd83d5005227cd1c98463286b4f634753fbdaf3"}},{"ruleId":"D1","level":"warning","message":{"text":"crab_metadata::ref_journal::materialize_ref_journal (cyclomatic 24): crab_metadata::ref_journal::materialize_ref_journal has cyclomatic complexity 24 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-metadata/src/ref_journal.rs"},"region":{"startLine":625}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2a5970d7507502c4ffe50444f1ad7efa244c0ac19edcff96c8a9b62996d8918"}},{"ruleId":"D1","level":"warning","message":{"text":"crab_s3_gateway::multipart::reconcile_capacity_slot (cyclomatic 24): crab_s3_gateway::multipart::reconcile_capacity_slot has cyclomatic complexity 24 (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/crab-s3-gateway/src/multipart.rs"},"region":{"startLine":1425}}}],"partialFingerprints":{"codehealthFindingId/v1":"9cbd7f782237d861093c5e092df9f2eaae3b7ed3feb3971dfc138aff8c3e2fdf"}},{"ruleId":"D1","level":"warning","message":{"text":"crab_staging::add_push_plan::prepare_one_file_plan_with_existing_refs (cyclomatic 24): crab_staging::add_push_plan::prepare_one_file_plan_with_existing_refs 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/crab-staging/src/add_push_plan.rs"},"region":{"startLine":748}}}],"partialFingerprints":{"codehealthFindingId/v1":"f46e70eb250e86723ded4f30e20463bf7a5bfb6e88a68dc997ee4f06f2180b69"}},{"ruleId":"D1","level":"warning","message":{"text":"crab_vfs::publish::commit_overlay_with_snapshot (cyclomatic 24): crab_vfs::publish::commit_overlay_with_snapshot 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/crab-vfs/src/publish.rs"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc4a97fd3085ad3246b2813b020f8360ec2bd0aba3a73b1396ea7f0eb9eaf799"}},{"ruleId":"D1","level":"warning","message":{"text":"settings.BranchProtectionSettings (cyclomatic 24): settings.BranchProtectionSettings has cyclomatic complexity 24 (threshold 15). Most of this is not in the body itself: 9 of the 24 points are its own statements and the rest belongs to 4 function items inside it that branch (a function literal at line 1064, replaceRules, saveRule, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/settings.tsx"},"region":{"startLine":919}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ab927f352974973af4ac1064dd5d3b3305b2f41035d65415754fb0c9bb917af"}},{"ruleId":"D1","level":"warning","message":{"text":"PushPipeline::build_shard_with_session (cyclomatic 23): PushPipeline::build_shard_with_session has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This is NOT this file\u0027s highest cyclomatic complexity: PushRejectReason::fmt (cyclomatic 25) 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":"crab/src/git/push.rs"},"region":{"startLine":12384}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0b8b7470634cbd031cd6bda8fe14cdf6cfe39e652d1e2819aa6e7d7b333e4a5"}},{"ruleId":"D1","level":"warning","message":{"text":"OptimizeCmd::schema_name (cyclomatic 23): OptimizeCmd::schema_name has cyclomatic complexity 23 (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: Cmd::schema_name (cyclomatic 143) 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":"crab/src/main.rs"},"region":{"startLine":1476}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9a053abdd9a8cffdf46894d3b50fd223da8dea90e7ecb5c3c2d3feb8800af4f"}},{"ruleId":"D1","level":"warning","message":{"text":"crab::cmd::exp::apply_checkpoint_record_to (cyclomatic 23): crab::cmd::exp::apply_checkpoint_record_to 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":"crab/src/cmd/exp.rs"},"region":{"startLine":2133}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ce8a97daa952985a34c91c946f722b8bdb65c234c5324cf40216e6fd951503b"}},{"ruleId":"D1","level":"warning","message":{"text":"crab::cmd::replica::doctor_fix_plan (cyclomatic 23): crab::cmd::replica::doctor_fix_plan 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":"crab/src/cmd/replica.rs"},"region":{"startLine":9591}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb5aafa019ff4b1589cb108b53fbd88630734e5f9a97e66595e2bcefbecb5176"}},{"ruleId":"D1","level":"warning","message":{"text":"crab::cmd::worktree::run_add (cyclomatic 23): crab::cmd::worktree::run_add 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":"crab/src/cmd/worktree.rs"},"region":{"startLine":371}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9bec074969633befcf3632878e8c783f472e148a7e7704aebdea9a026790e77"}},{"ruleId":"D1","level":"warning","message":{"text":"crab::git::push::warm_uploaded_xorb_cache (cyclomatic 23): crab::git::push::warm_uploaded_xorb_cache has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This is NOT this file\u0027s highest cyclomatic complexity: PushRejectReason::fmt (cyclomatic 25) 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":"crab/src/git/push.rs"},"region":{"startLine":5262}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f06e8d10d003143a327bd16dd6bc60fe5050e0b9bb18e7ef8e9fa082a1b1e77"}},{"ruleId":"D1","level":"warning","message":{"text":"crab_http_server::cells::scheduler::recover_node_session (cyclomatic 23): crab_http_server::cells::scheduler::recover_node_session 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/crab-http-server/src/cells/scheduler.rs"},"region":{"startLine":1190}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a9c173c67b23dcfe5c58358631ba45f9b4dc3be8e8f8da8ab5ddbfdc9422992"}},{"ruleId":"D1","level":"warning","message":{"text":"GitVisibilityCatalogV1::validate_binding (cyclomatic 23): GitVisibilityCatalogV1::validate_binding 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/crab-metadata/src/git_visibility.rs"},"region":{"startLine":1956}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3a8f2a7447bd1e4762dc962c3b485a30e5581ecca0798a6e486d915c1297d97"}},{"ruleId":"D1","level":"warning","message":{"text":"crab_metadata::path_state::codec::decode_layer (cyclomatic 23): crab_metadata::path_state::codec::decode_layer 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/crab-metadata/src/path_state/codec.rs"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"135b70ba376f8107e38596f783e61fb7456b9e55a848af0fc6849fbb2056f695"}},{"ruleId":"D1","level":"warning","message":{"text":"crab_metadata::ref_journal::validate_transaction (cyclomatic 23): crab_metadata::ref_journal::validate_transaction 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/crab-metadata/src/ref_journal.rs"},"region":{"startLine":1038}}}],"partialFingerprints":{"codehealthFindingId/v1":"395618f5e25e67383c7e76599286007d6c919eed3815324704671b30d3c7f444"}},{"ruleId":"D1","level":"warning","message":{"text":"crab_workflow::dvc_inventory::parse_pipeline_outputs (cyclomatic 23): crab_workflow::dvc_inventory::parse_pipeline_outputs 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/crab-workflow/src/dvc_inventory.rs"},"region":{"startLine":1003}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b195df66d3c49d9142f6f68a7f8ee2eec8cd50b49fbf1e839324cf155ada248"}},{"ruleId":"D1","level":"warning","message":{"text":"check-architecture-gates.rust_brace_delta (cyclomatic 23): check-architecture-gates.rust_brace_delta 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":"crab/scripts/check-architecture-gates.py"},"region":{"startLine":2274}}}],"partialFingerprints":{"codehealthFindingId/v1":"800bcc4dfd1a6a35935937f0ed4ca2afbd7bef6f4264683d266c82b93ab4bd2c"}},{"ruleId":"D1","level":"warning","message":{"text":"check-architecture-gates.check_cache_store_module_scope (cyclomatic 23): check-architecture-gates.check_cache_store_module_scope 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":"crab/scripts/check-architecture-gates.py"},"region":{"startLine":3376}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec276f553d8c834fe8f6d8991878d16ccc3656607236f4009ca8971264d2ccca"}},{"ruleId":"D1","level":"warning","message":{"text":"check-architecture-gates.check_auth_store_adapter_scope (cyclomatic 23): check-architecture-gates.check_auth_store_adapter_scope 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":"crab/scripts/check-architecture-gates.py"},"region":{"startLine":3891}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e2b17a8e022abe86331a560de6a252bda9d7f80a4f89f1f04d95cbb119249bc"}},{"ruleId":"D1","level":"warning","message":{"text":"verify-nfs-smoke-report.compare_native_read_reports (cyclomatic 23): verify-nfs-smoke-report.compare_native_read_reports 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":"crab/scripts/verify-nfs-smoke-report.py"},"region":{"startLine":2459}}}],"partialFingerprints":{"codehealthFindingId/v1":"f839ac622a3cac9f97e0e13464c5496974a765e5b2857b024149d8f136bc7312"}},{"ruleId":"D1","level":"warning","message":{"text":"fault.main (cyclomatic 23): fault.main 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/crab-http-server/deploy/cell-issue-fleet/fault.py"},"region":{"startLine":315}}}],"partialFingerprints":{"codehealthFindingId/v1":"93339ac218a4c8b90f7cc735781760bfef864a593524d8db662e0f88dde15cab"}},{"ruleId":"D1","level":"warning","message":{"text":"load.main (cyclomatic 23): load.main 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/crab-http-server/deploy/cell-issue-fleet/load.py"},"region":{"startLine":565}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7b6cf7afa839993d2e538fd11a773025233c1eba3da70708fde168e6a807328"}},{"ruleId":"D1","level":"warning","message":{"text":"git-access.GitAccess (cyclomatic 23): git-access.GitAccess has cyclomatic complexity 23 (threshold 15). Of this number, 12 points are the body\u0027s own statements and 11 belong to 3 function items inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/git-access.tsx"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"791a0955b4c926dd728bb6f692b04aa1bb0e46460f4e330090bab9e0e5d14b62"}},{"ruleId":"D1","level":"warning","message":{"text":"Config::apply_auth_overlay (cyclomatic 22): Config::apply_auth_overlay 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":"crab/src/core/config.rs"},"region":{"startLine":2514}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2b0e781b1b96ccba77401286b6e5709e38474ba98d965d6f91957c51170b321"}},{"ruleId":"D1","level":"warning","message":{"text":"crab::cmd::exp::render_exp_diff_markdown (cyclomatic 22): crab::cmd::exp::render_exp_diff_markdown has cyclomatic complexity 22 (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":"crab/src/cmd/exp.rs"},"region":{"startLine":6066}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e2789d465279ec27b88b78cff0ac239cfc221ebada58e33772c56c0fdbe0b4b"}},{"ruleId":"D1","level":"warning","message":{"text":"crab::cmd::gc::execute_journaled_deletes (cyclomatic 22): crab::cmd::gc::execute_journaled_deletes 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":"crab/src/cmd/gc/mod.rs"},"region":{"startLine":1248}}}],"partialFingerprints":{"codehealthFindingId/v1":"d30ee5f5b0ba872afb4030f65c85d71021a0106195551db84a2ee92377577a91"}},{"ruleId":"D1","level":"warning","message":{"text":"crab::cmd::install::run_install_in (cyclomatic 22): crab::cmd::install::run_install_in 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":"crab/src/cmd/install.rs"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"6afddf7ae1fee3940f5d0fd4e3052eabe46410132f7f40d0c55f0141b17af784"}},{"ruleId":"D1","level":"warning","message":{"text":"crab_git::incoming_pack::quarantine (cyclomatic 22): crab_git::incoming_pack::quarantine 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/crab-git/src/incoming_pack.rs"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"b299d05124fd650adbd14ca3d7d67515c444243fecc892993312e45fd188f926"}},{"ruleId":"D1","level":"warning","message":{"text":"LfsObjectStore::get_verified_stream_at (cyclomatic 22): LfsObjectStore::get_verified_stream_at 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/crab-lfs/src/object_store.rs"},"region":{"startLine":775}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb96a98846aa01abe283af8611d7bad27a1564b5559be174bc5a8933cda413f9"}},{"ruleId":"D1","level":"warning","message":{"text":"Index::insert_recipe_lease (cyclomatic 22): Index::insert_recipe_lease 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/crab-staging/src/index.rs"},"region":{"startLine":5060}}}],"partialFingerprints":{"codehealthFindingId/v1":"78203f1f1ce371690422a4f4bb73487186905a85f79e3890f03a486ceb0e7c69"}},{"ruleId":"D1","level":"warning","message":{"text":"crab_workflow::dvc_inventory::apply_lock_output_metadata (cyclomatic 22): crab_workflow::dvc_inventory::apply_lock_output_metadata 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/crab-workflow/src/dvc_inventory.rs"},"region":{"startLine":1376}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ce829224dd40f3989a4b738db374308ecf58ea696c437a5933df53748534c85"}},{"ruleId":"D1","level":"warning","message":{"text":"check-architecture-gates.check_coordination_module_scope (cyclomatic 22): check-architecture-gates.check_coordination_module_scope 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":"crab/scripts/check-architecture-gates.py"},"region":{"startLine":3113}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bfcef5fda3bc836add268a3266252dbcf320f30d840bcea6b2c26380937c40c"}},{"ruleId":"D1","level":"warning","message":{"text":"check-architecture-gates.check_cache_module_scope (cyclomatic 22): check-architecture-gates.check_cache_module_scope 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":"crab/scripts/check-architecture-gates.py"},"region":{"startLine":3172}}}],"partialFingerprints":{"codehealthFindingId/v1":"837a0070049fa648b3b92aa798d5ebed384ed43c59daf0b2980056cf3c670928"}},{"ruleId":"D1","level":"warning","message":{"text":"check-architecture-gates.check_lfs_module_scope (cyclomatic 22): check-architecture-gates.check_lfs_module_scope 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":"crab/scripts/check-architecture-gates.py"},"region":{"startLine":4465}}}],"partialFingerprints":{"codehealthFindingId/v1":"08152fed62fa88fc0f8edf84b50e3160e92930353742153ff010967cacbbf3a2"}},{"ruleId":"D1","level":"warning","message":{"text":"TailFault.run (cyclomatic 22): TailFault.run 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/crab-http-server/deploy/cell-issue-fleet/fault.py"},"region":{"startLine":226}}}],"partialFingerprints":{"codehealthFindingId/v1":"94e1bdee04b554ede881bd4c9fdf881821b7874eceb70d4020c149057764b3d2"}},{"ruleId":"D1","level":"warning","message":{"text":"issues.IssueDetail (cyclomatic 22): issues.IssueDetail has cyclomatic complexity 22 (threshold 15). Of this number, 15 points are the body\u0027s own statements and 7 belong to 4 function literals inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/issues.tsx"},"region":{"startLine":304}}}],"partialFingerprints":{"codehealthFindingId/v1":"adad47ae99b362afe995f03087236a300812b69a0f0a1e583474571d1a05af9f"}},{"ruleId":"D1","level":"warning","message":{"text":"PushPipeline::commit_ref_journal (cyclomatic 21): PushPipeline::commit_ref_journal has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This is NOT this file\u0027s highest cyclomatic complexity: PushRejectReason::fmt (cyclomatic 25) 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":"crab/src/git/push.rs"},"region":{"startLine":8758}}}],"partialFingerprints":{"codehealthFindingId/v1":"96ddc5ddeb83608e2a260cf0e4add0be7c22bfe6577441354d7b06cb9b02bb69"}},{"ruleId":"D1","level":"warning","message":{"text":"PushPipeline::validate_committed_chunk_candidates (cyclomatic 21): PushPipeline::validate_committed_chunk_candidates has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This is NOT this file\u0027s highest cyclomatic complexity: PushRejectReason::fmt (cyclomatic 25) 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":"crab/src/git/push.rs"},"region":{"startLine":14222}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6fa893b1df007143a3db88ed25f131ade67fcb56120704c68a4786b7b8c1188"}},{"ruleId":"D1","level":"warning","message":{"text":"LfsConfig::apply_env (cyclomatic 21): LfsConfig::apply_env 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":"crab/src/lfs/config.rs"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc992a4e123b9e701e89106fc468d81676710aea4aeef9be07225b4da25d8b19"}},{"ruleId":"D1","level":"warning","message":{"text":"crab::cmd::exp::run_exp_run_with_id (cyclomatic 21): crab::cmd::exp::run_exp_run_with_id 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":"crab/src/cmd/exp.rs"},"region":{"startLine":1324}}}],"partialFingerprints":{"codehealthFindingId/v1":"699d6d40d26ef9f7308b7cfdc03df2e0833a5e05f3823a3caf7d8736c3a80992"}},{"ruleId":"D1","level":"warning","message":{"text":"crab::cmd::exp::run_exp_remove_local (cyclomatic 21): crab::cmd::exp::run_exp_remove_local 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":"crab/src/cmd/exp.rs"},"region":{"startLine":2627}}}],"partialFingerprints":{"codehealthFindingId/v1":"adec1d509a7a7291947f264787e8f8078d06496fd03a245230a7a20905df7238"}},{"ruleId":"D1","level":"warning","message":{"text":"crab::cmd::lfs::fetch::run_lfs_fetch (cyclomatic 21): crab::cmd::lfs::fetch::run_lfs_fetch 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":"crab/src/cmd/lfs/fetch.rs"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"8113028cbb84e063cc82e4e5bc2ea81ea4c0c10e19aa916bd0574c406ba4fd36"}},{"ruleId":"D1","level":"warning","message":{"text":"crab::cmd::migrate::ingest_verified_sources (cyclomatic 21): crab::cmd::migrate::ingest_verified_sources 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":"crab/src/cmd/migrate.rs"},"region":{"startLine":1858}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f475eceb13bcb88a373dae791c3fc2f3af79ae664940b567a8de17dc94904c4"}},{"ruleId":"D1","level":"warning","message":{"text":"PushAdmissionTicket::try_admit (cyclomatic 21): PushAdmissionTicket::try_admit 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/crab-coordination/src/push_admission.rs"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"6dad2f7469657ba5549e2edd9114e911b5ecdbe3c1ab1e35c07ee5c8ab546ed4"}},{"ruleId":"D1","level":"warning","message":{"text":"crab_http_server::git_import::normalize_source (cyclomatic 21): crab_http_server::git_import::normalize_source 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/crab-http-server/src/git_import.rs"},"region":{"startLine":912}}}],"partialFingerprints":{"codehealthFindingId/v1":"315be690f667ac442d58deacbe80f230d7c45118e5a51c301ca2b19e3734790b"}},{"ruleId":"D1","level":"warning","message":{"text":"crab_http_server::server::serve (cyclomatic 21): crab_http_server::server::serve has cyclomatic complexity 21 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-http-server/src/server.rs"},"region":{"startLine":1074}}}],"partialFingerprints":{"codehealthFindingId/v1":"196a8bac4fbd17e70404beb1f550868a5d8eb8e8cef87d1e7d1c9ba7b847f335"}},{"ruleId":"D1","level":"warning","message":{"text":"GitVisibilityIndex::validate (cyclomatic 21): GitVisibilityIndex::validate 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/crab-metadata/src/git_visibility.rs"},"region":{"startLine":934}}}],"partialFingerprints":{"codehealthFindingId/v1":"a59cbd56dd01928192ffc00628467ef3543a2591cfae973e2298a0753087a7c5"}},{"ruleId":"D1","level":"warning","message":{"text":"crab_read::selection::referenced_object_gap (cyclomatic 21): crab_read::selection::referenced_object_gap 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/crab-read/src/selection.rs"},"region":{"startLine":320}}}],"partialFingerprints":{"codehealthFindingId/v1":"91a81708a90c8b0667a2bdbcb1dffb998704cdacaf498baf9fbc0d70b2ff1ca7"}},{"ruleId":"D1","level":"warning","message":{"text":"RemoteGitRepository::open_inner (cyclomatic 21): RemoteGitRepository::open_inner has cyclomatic complexity 21 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-remote-git/src/repository.rs"},"region":{"startLine":495}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca55c5627e4c59954edcb5424acf907a1bd7f16f5b3716354faf80e6178d3c0e"}},{"ruleId":"D1","level":"warning","message":{"text":"Index::claim_prepared_chunks (cyclomatic 21): Index::claim_prepared_chunks 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/crab-staging/src/index.rs"},"region":{"startLine":2283}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f4a7f75c03349dc16d9c1d87f17dd3fc1b281afde55b37b81b8724f4f524137"}},{"ruleId":"D1","level":"warning","message":{"text":"CheckpointLineage::append (cyclomatic 21): CheckpointLineage::append 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/crab-workflow/src/checkpoint.rs"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac989eb95f167ba0c248d60a17b8dfe509dfd728b88283d136a1c5444585d68e"}},{"ruleId":"D1","level":"warning","message":{"text":"Lockfile::diff_against_resolved (cyclomatic 21): Lockfile::diff_against_resolved has cyclomatic complexity 21 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-workflow/src/lockfile.rs"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f3872e3cdfb525d792d3a9aa611b13213561ff1acc693f6d5e0b903480e141c"}},{"ruleId":"D1","level":"warning","message":{"text":"verify-nfs-smoke-report.check_writeback_artifact (cyclomatic 21): verify-nfs-smoke-report.check_writeback_artifact 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":"crab/scripts/verify-nfs-smoke-report.py"},"region":{"startLine":1601}}}],"partialFingerprints":{"codehealthFindingId/v1":"f52cb9be70b0618581a55c2e100579e4839a28eaf352fc014ffadd4fddf34d3b"}},{"ruleId":"D1","level":"warning","message":{"text":"verify_git_capability_matrix.validate (cyclomatic 21): verify_git_capability_matrix.validate 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":"crab/scripts/verify_git_capability_matrix.py"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3919432e5e51f8e39c31f2767f99e8912325cce49ca3dd8cf95d6731a96c3e4"}},{"ruleId":"D1","level":"warning","message":{"text":"data-query.statementBoundary (cyclomatic 21): data-query.statementBoundary 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":"packages/ui/src/data-query.ts"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"52ceac03b8f6519fc3e65e8dea3d834b221acafcd197a204200c2a92ad8c453b"}},{"ruleId":"D1","level":"warning","message":{"text":"discussion.Editor (cyclomatic 21): discussion.Editor has cyclomatic complexity 21 (threshold 15). Most of this is not in the body itself: 4 of the 21 points are its own statements and the rest belongs to 5 function items inside it that branch (formatShortcut, a function literal at line 253, a function literal at line 303, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/discussion.tsx"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9e337d76c693fc27d5900bcb93a4ca8256dafb5e789e07c76a2359d680c9dd7"}},{"ruleId":"D1","level":"warning","message":{"text":"hero-section.HeroSection (cyclomatic 21): hero-section.HeroSection has cyclomatic complexity 21 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/web/components/marketing/hero-section.tsx"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e9de9680d3947aac3027b3afea4b860e963414131627f932c2f323b37e3a8f1"}},{"ruleId":"D1","level":"warning","message":{"text":"Config::apply_push_overlay (cyclomatic 20): Config::apply_push_overlay 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":"crab/src/core/config.rs"},"region":{"startLine":2307}}}],"partialFingerprints":{"codehealthFindingId/v1":"f193a3cd2f83a16de5fb24917be2f8e1eeb53b38b07f637750b41059102ee03f"}},{"ruleId":"D1","level":"warning","message":{"text":"PushPipeline::upload_packed_xorb_stream (cyclomatic 20): PushPipeline::upload_packed_xorb_stream has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This is NOT this file\u0027s highest cyclomatic complexity: PushRejectReason::fmt (cyclomatic 25) 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":"crab/src/git/push.rs"},"region":{"startLine":12250}}}],"partialFingerprints":{"codehealthFindingId/v1":"28ddb5116cb72b065866f9b1eacdcc7342083136c512054cdc6c94b0eb0f572f"}},{"ruleId":"D1","level":"warning","message":{"text":"crab::cmd::add::filter_clean_indexed_candidates (cyclomatic 20): crab::cmd::add::filter_clean_indexed_candidates 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":"crab/src/cmd/add.rs"},"region":{"startLine":2886}}}],"partialFingerprints":{"codehealthFindingId/v1":"29e8433cd8fac8ed45360a6ea08a7bc210890bf9b44cea93a22f7a804b41f072"}},{"ruleId":"D1","level":"warning","message":{"text":"crab::cmd::data::collect_git_entries (cyclomatic 20): crab::cmd::data::collect_git_entries 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":"crab/src/cmd/data.rs"},"region":{"startLine":1117}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfc9a065fab6a95afcebc570ea8d1b572f2ece5a1d4b62af4b4af6fe0257a21b"}},{"ruleId":"D1","level":"warning","message":{"text":"crab::cmd::exp::remove_remote_experiments (cyclomatic 20): crab::cmd::exp::remove_remote_experiments 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":"crab/src/cmd/exp.rs"},"region":{"startLine":3351}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1ca241031408405b63409f2aa42288f21dea6844cdd009889c3f1f4fcdefe82"}},{"ruleId":"D1","level":"warning","message":{"text":"crab::cmd::recover::recovery_inventory_items (cyclomatic 20): crab::cmd::recover::recovery_inventory_items has cyclomatic complexity 20 (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":"crab/src/cmd/recover.rs"},"region":{"startLine":672}}}],"partialFingerprints":{"codehealthFindingId/v1":"f848b36fe29fd15f3790cae88eae96358089d97ee449694ab1cae31e6404084c"}},{"ruleId":"D1","level":"warning","message":{"text":"crab::git::remote_helper::read_batch (cyclomatic 20): crab::git::remote_helper::read_batch 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":"crab/src/git/remote_helper.rs"},"region":{"startLine":1025}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7df15c34da1823aee32b8d82f2500f679a9dd4319936e23b093be0baf00d468"}},{"ruleId":"D1","level":"warning","message":{"text":"crab_cache::xet_chunk_cache::verify_xet_chunk_cache_entry (cyclomatic 20): crab_cache::xet_chunk_cache::verify_xet_chunk_cache_entry 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/crab-cache/src/xet_chunk_cache.rs"},"region":{"startLine":655}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ec2c06fe47121164a7b73fa0efdb9ce769d3c7e55ebd25346c4c57f8e408426"}},{"ruleId":"D1","level":"warning","message":{"text":"Authentication::revoke_identity (cyclomatic 20): Authentication::revoke_identity has cyclomatic complexity 20 (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/crab-http-server/src/auth.rs"},"region":{"startLine":729}}}],"partialFingerprints":{"codehealthFindingId/v1":"02b710d9cb7c4cb52b10be53ac3de3f2ed59dd8809910bcd902173b5c312789b"}},{"ruleId":"D1","level":"warning","message":{"text":"RepositoryCellRouter::rebalance_once (cyclomatic 20): RepositoryCellRouter::rebalance_once 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/crab-http-server/src/cells/router.rs"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"6302d5343873e556a45d1b2070c5f5d3128711214d0e3549009bb8314b81381f"}},{"ruleId":"D1","level":"warning","message":{"text":"RepositoryCellScheduler::scan_cycle (cyclomatic 20): RepositoryCellScheduler::scan_cycle 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/crab-http-server/src/cells/scheduler.rs"},"region":{"startLine":307}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a13c4dfda2b1237d53e3b5a8976f7a2d9d9af10522550bfec8ba3a71b82f27c"}},{"ruleId":"D1","level":"warning","message":{"text":"PeerHttpRoundTrip::owner (cyclomatic 20): PeerHttpRoundTrip::owner 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/crab-http-server/src/peer/client.rs"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a98fd376e01504a95fb0146c3ae42ab288ca511fc440ce8835ed4118fa0066d"}},{"ruleId":"D1","level":"warning","message":{"text":"crab_remote::publication::acquire_ref_leases (cyclomatic 20): crab_remote::publication::acquire_ref_leases 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/crab-remote/src/publication.rs"},"region":{"startLine":275}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5b904fa071c1ff75108f7a0dc17fb10bcfa89d209cffd88e6c2b9a304f849ec"}},{"ruleId":"D1","level":"warning","message":{"text":"ReadFlights::run (cyclomatic 20): ReadFlights::run 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/crab-remote-git/src/runtime/read_flight.rs"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"f637789e32e2cdbee8783b87ac43159e4f54124036542e5425e2c200c47602f4"}},{"ruleId":"D1","level":"warning","message":{"text":"Gateway::complete_multipart_upload (cyclomatic 20): Gateway::complete_multipart_upload 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":"crates/crab-s3-gateway/src/gateway.rs"},"region":{"startLine":2428}}}],"partialFingerprints":{"codehealthFindingId/v1":"966c4ddbe1d0200d14d34b1abe8fdc5fc78f926a00f9273011191b62278362ff"}},{"ruleId":"D1","level":"warning","message":{"text":"FuseResolver::readdir_page (cyclomatic 20): FuseResolver::readdir_page 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/crab-vfs/src/resolver.rs"},"region":{"startLine":355}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bf2390f22de5df37d7cb5519a3dea886cbeccc70f5af088c9af90de6af37a37"}},{"ruleId":"D1","level":"warning","message":{"text":"crab_workflow::artifact::visit_reachable_remote_artifact_objects (cyclomatic 20): crab_workflow::artifact::visit_reachable_remote_artifact_objects 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/crab-workflow/src/artifact.rs"},"region":{"startLine":769}}}],"partialFingerprints":{"codehealthFindingId/v1":"1285947c79b3066e526075b32b6b5dd25586137a3bd60f2e2f2f442147fcf1ca"}},{"ruleId":"D1","level":"warning","message":{"text":"crab_workflow::executor::verify_and_hash_outs (cyclomatic 20): crab_workflow::executor::verify_and_hash_outs 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/crab-workflow/src/executor.rs"},"region":{"startLine":1167}}}],"partialFingerprints":{"codehealthFindingId/v1":"8082fa6e69f73bfc6904c72fb762172e010423f18726cea2f8bf29a86c3b2e17"}},{"ruleId":"D1","level":"warning","message":{"text":"crab_workflow::source::validate_descriptor (cyclomatic 20): crab_workflow::source::validate_descriptor 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":"crates/crab-workflow/src/source.rs"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"9caf7d3a061233c24bc2ed394e7d7a13dd9566d740b5d2b43093d284986ef0af"}},{"ruleId":"D1","level":"warning","message":{"text":"crab_workflow::stage_runtime::hash_object_store_location (cyclomatic 20): crab_workflow::stage_runtime::hash_object_store_location 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/crab-workflow/src/stage_runtime.rs"},"region":{"startLine":528}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ad139656a44493a1f337041ac5c7502ffaefc818f4b89b4982204dbd32f24f2"}},{"ruleId":"D1","level":"warning","message":{"text":"check-architecture-gates.check_diff_module_scope (cyclomatic 20): check-architecture-gates.check_diff_module_scope 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":"crab/scripts/check-architecture-gates.py"},"region":{"startLine":4405}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff87ff8d21792755ef957e3e61bd21b19e2521a9c3e4ab880dd83988a0f61e5c"}},{"ruleId":"D1","level":"warning","message":{"text":"check-architecture-gates.check_storage_module_scope (cyclomatic 20): check-architecture-gates.check_storage_module_scope 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":"crab/scripts/check-architecture-gates.py"},"region":{"startLine":4527}}}],"partialFingerprints":{"codehealthFindingId/v1":"bcce64d02d1b23d1b59ffdb747b591078150b56cedcd868a2a13c511576748bc"}},{"ruleId":"D1","level":"warning","message":{"text":"verify-nfs-smoke-report.check_unmount_artifact (cyclomatic 20): verify-nfs-smoke-report.check_unmount_artifact 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":"crab/scripts/verify-nfs-smoke-report.py"},"region":{"startLine":1698}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc050a7032483b33db7267dffb02c56c1615a4daac6be5afab17a8befda3cd00"}},{"ruleId":"D1","level":"warning","message":{"text":"verify-nfs-smoke-report.main (cyclomatic 20): verify-nfs-smoke-report.main has cyclomatic complexity 20 (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":"crab/scripts/verify-nfs-smoke-report.py"},"region":{"startLine":4865}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ab014cd508c75f8d05287613d83bc782d5bbf88f42fc70e43beccc8543c740b"}},{"ruleId":"D1","level":"warning","message":{"text":"pdf-preview.PdfPreview (cyclomatic 20): pdf-preview.PdfPreview has cyclomatic complexity 20 (threshold 15). Most of this is not in the body itself: 3 of the 20 points are its own statements and the rest belongs to 7 function literals inside it that branch (lines 56, 79, 37, \u2026). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pdf-preview.tsx"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"eaa8bfd11b6c0bc8ea04c915662325097a92ddf1b852000cc62bf1343676634e"}},{"ruleId":"D1","level":"warning","message":{"text":"AddRemoteCandidateCache::persist_results_inner (cyclomatic 19): AddRemoteCandidateCache::persist_results_inner 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":"crab/src/cache/add_remote_candidates.rs"},"region":{"startLine":408}}}],"partialFingerprints":{"codehealthFindingId/v1":"c10ce9ad8d3febe6faf3dc5415f3974b343e178a66991aee5a14ccffd09e5aa6"}},{"ruleId":"D1","level":"warning","message":{"text":"AddProgress::render_batch_line (cyclomatic 19): AddProgress::render_batch_line has cyclomatic complexity 19 (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":"crab/src/cmd/add.rs"},"region":{"startLine":522}}}],"partialFingerprints":{"codehealthFindingId/v1":"22544590141c651467e8c979c21d76d9a1ef32446efde2d910bbb6f0c4bd36f8"}},{"ruleId":"D1","level":"warning","message":{"text":"PushPipeline::lookup_staging (cyclomatic 19): PushPipeline::lookup_staging has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This is NOT this file\u0027s highest cyclomatic complexity: PushRejectReason::fmt (cyclomatic 25) 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":"crab/src/git/push.rs"},"region":{"startLine":9598}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f2731a5c2d9595f649d96b09c476973d35a29923a451695cfbbb22d813a9cf1"}},{"ruleId":"D1","level":"warning","message":{"text":"crab::cmd::add::publish_git_index_entries_with_tracking (cyclomatic 19): crab::cmd::add::publish_git_index_entries_with_tracking 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":"crab/src/cmd/add.rs"},"region":{"startLine":3798}}}],"partialFingerprints":{"codehealthFindingId/v1":"379972e4f2c647157c261857f5ea4c3c44896c9e411cd85f1e6ac96d83a0f4ae"}},{"ruleId":"D1","level":"warning","message":{"text":"crab::cmd::exp::build_diff_payload (cyclomatic 19): crab::cmd::exp::build_diff_payload 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":"crab/src/cmd/exp.rs"},"region":{"startLine":5584}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c609aa91cb87d8863a0c0faf39ca5fd5d527afc9d9f2003d527492f8b39333c"}},{"ruleId":"D1","level":"warning","message":{"text":"crab::cmd::gc::run_gc_impl (cyclomatic 19): crab::cmd::gc::run_gc_impl 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":"crab/src/cmd/gc/mod.rs"},"region":{"startLine":1061}}}],"partialFingerprints":{"codehealthFindingId/v1":"155e7aa4bdb242490f58445703f8c003d42a4ee9b75844ea41a5f7127c2e0130"}},{"ruleId":"D1","level":"warning","message":{"text":"crab::cmd::gc::bucket::run_bucket_gc_streaming (cyclomatic 19): crab::cmd::gc::bucket::run_bucket_gc_streaming 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":"crab/src/cmd/gc/bucket.rs"},"region":{"startLine":544}}}],"partialFingerprints":{"codehealthFindingId/v1":"12aa1ee474fba1cfc7ddbf2d0145ee06ff28f3482939dad7670cf64af7066d5b"}},{"ruleId":"D1","level":"warning","message":{"text":"crab::cmd::metadb::rebuild_with_guard (cyclomatic 19): crab::cmd::metadb::rebuild_with_guard 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":"crab/src/cmd/metadb.rs"},"region":{"startLine":2471}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e43200aab5976925aea6899db8d2c8060fb3686ad29de056315950d9cbcf084"}},{"ruleId":"D1","level":"warning","message":{"text":"crab::git::filter_process::dispatch_command (cyclomatic 19): crab::git::filter_process::dispatch_command 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":"crab/src/git/filter_process.rs"},"region":{"startLine":1081}}}],"partialFingerprints":{"codehealthFindingId/v1":"1dcc499a73f1f79ece468f44906d9783e2ccbe84ea29c9265d8641d9f2857a82"}},{"ruleId":"D1","level":"warning","message":{"text":"crab::git::process::communicate (cyclomatic 19): crab::git::process::communicate 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":"crab/src/git/process.rs"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"71f1835802d1398bec9847dacf32bd4f195e5bc8ae69f6ffe0f9c543f0c240f9"}},{"ruleId":"D1","level":"warning","message":{"text":"crab::git::push::upsert_pack_metadata (cyclomatic 19): crab::git::push::upsert_pack_metadata has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This is NOT this file\u0027s highest cyclomatic complexity: PushRejectReason::fmt (cyclomatic 25) 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":"crab/src/git/push.rs"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf43ec3b7679ce3f1e363cf885ef616e859c7ab4a62ca0ecbcb42c55737c67fd"}},{"ruleId":"D1","level":"warning","message":{"text":"crab::hydrate::batch::hydrate_batch (cyclomatic 19): crab::hydrate::batch::hydrate_batch 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":"crab/src/hydrate/batch.rs"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"6144291db22252f740cb7cdd2f3f91153756d18413f6f3a73aa0e0c9dc1d98f8"}},{"ruleId":"D1","level":"warning","message":{"text":"crab::lfs::migrate::inject_gitattributes_for_import (cyclomatic 19): crab::lfs::migrate::inject_gitattributes_for_import 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":"crab/src/lfs/migrate.rs"},"region":{"startLine":1963}}}],"partialFingerprints":{"codehealthFindingId/v1":"51f9f93d9d3b9fab5a66ef9f79891096e50b6ea903b4bb35506ebda44a0bbf3d"}},{"ruleId":"D1","level":"warning","message":{"text":"crab::optimize::xorbs::executor::process_batch (cyclomatic 19): crab::optimize::xorbs::executor::process_batch 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":"crab/src/optimize/xorbs/executor.rs"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"41e7e94b95cfa949a84243bb95d3d29700677c90a9daac747b3acab9d6512450"}},{"ruleId":"D1","level":"warning","message":{"text":"crab_auth::managed::openapi::compare_schema (cyclomatic 19): crab_auth::managed::openapi::compare_schema 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/crab-auth/src/managed/openapi.rs"},"region":{"startLine":673}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7aa7d3f6e1a9dd85ce0a186e846b152fa6432f9242f46a3fbb4da1faa5faebd"}},{"ruleId":"D1","level":"warning","message":{"text":"CacheHealthReport::issue (cyclomatic 19): CacheHealthReport::issue 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/crab-cache/src/health.rs"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"85c74612dd17bfbd0d636bbeb91a6e61ab04d915b85d107702e9bda6f62fba8f"}},{"ruleId":"D1","level":"warning","message":{"text":"crab_cache::local_cache::maintenance::verify_file (cyclomatic 19): crab_cache::local_cache::maintenance::verify_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/crab-cache/src/local_cache/maintenance.rs"},"region":{"startLine":401}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe5810ae8a7cfc0b2f4e5095408d7fbe6acbef3163280dd3dbeb198dc805c75f"}},{"ruleId":"D1","level":"warning","message":{"text":"crab_http_server::pulls::merge::execute (cyclomatic 19): crab_http_server::pulls::merge::execute 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/crab-http-server/src/pulls/merge.rs"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"22db3ac93168dce131f5d7a84f58f9b6dc3b51a25941b5d5439cdfda7687b428"}},{"ruleId":"D1","level":"warning","message":{"text":"GitCatalogVisibilityIndex::apply_ordinal_edit (cyclomatic 19): GitCatalogVisibilityIndex::apply_ordinal_edit 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/crab-metadata/src/git_visibility.rs"},"region":{"startLine":685}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f0ecc60ea3fca4677317bb62a5ee5b0f7c7bd35e3e1fb8f4efd558af223e6cc"}},{"ruleId":"D1","level":"warning","message":{"text":"crab_metadata::ref_journal::commit_ref_transaction_inner (cyclomatic 19): crab_metadata::ref_journal::commit_ref_transaction_inner 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/crab-metadata/src/ref_journal.rs"},"region":{"startLine":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"08e594abcfbf870cda50b86d900a1bd352c8ae894b4da1b6566e956237a44fff"}},{"ruleId":"D1","level":"warning","message":{"text":"crab_read::integrity::verify_origin_recipe (cyclomatic 19): crab_read::integrity::verify_origin_recipe 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/crab-read/src/integrity.rs"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"691f93ba543f9e499f2090c5b849b488723fbf6b3513fa501bfd76058cf897c5"}},{"ruleId":"D1","level":"warning","message":{"text":"crab_read::upload_pack_wire::read_command_request (cyclomatic 19): crab_read::upload_pack_wire::read_command_request 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/crab-read/src/upload_pack_wire.rs"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"b31255f861792766ab8950c14b61a4e396d406ecea58e25c983d2518a05e42e8"}},{"ruleId":"D1","level":"warning","message":{"text":"LocalTools::run (cyclomatic 19): LocalTools::run 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/crab-remote/src/local.rs"},"region":{"startLine":425}}}],"partialFingerprints":{"codehealthFindingId/v1":"d28de511dda3df4d101e787c0f2f990373fbfb3dae5c7a332dbe34815d16d1cc"}},{"ruleId":"D1","level":"warning","message":{"text":"crab_staging::stream::flush_batch (cyclomatic 19): crab_staging::stream::flush_batch 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/crab-staging/src/stream.rs"},"region":{"startLine":1351}}}],"partialFingerprints":{"codehealthFindingId/v1":"138330b24fd04399ea4a5e426f8eb33b2984d2887ca3db7f26af5c5286bdd253"}},{"ruleId":"D1","level":"warning","message":{"text":"crab_types::pointer::is_pointer (cyclomatic 19): crab_types::pointer::is_pointer 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/crab-types/src/pointer.rs"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d53a53d95cddf0c4f442308c1418f3589b9d885e381ca780cb9fea047b8440b"}},{"ruleId":"D1","level":"warning","message":{"text":"crab_workflow::cache::pull_remote_with_artifact_stores (cyclomatic 19): crab_workflow::cache::pull_remote_with_artifact_stores 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/crab-workflow/src/cache.rs"},"region":{"startLine":1090}}}],"partialFingerprints":{"codehealthFindingId/v1":"938cbd88c2c173fd03c7a0bd04b577122ceb24270614c7788f355420cca80d10"}},{"ruleId":"D1","level":"warning","message":{"text":"crab_workflow::hydra::split_resolver_args (cyclomatic 19): crab_workflow::hydra::split_resolver_args 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/crab-workflow/src/hydra.rs"},"region":{"startLine":1197}}}],"partialFingerprints":{"codehealthFindingId/v1":"f677f75e9cc8fa0e958f0e27cfb9b754d18ae149b67874493e1ad7a10ee2c94d"}},{"ruleId":"D1","level":"warning","message":{"text":"crab_workflow::yaml::stage_from_raw (cyclomatic 19): crab_workflow::yaml::stage_from_raw has cyclomatic complexity 19 (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/crab-workflow/src/yaml.rs"},"region":{"startLine":1219}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e13b94d087d6eb6b8c0a86eb4e63ebc1d7395d4a5e9b54d546e445b14bb08fc"}},{"ruleId":"D1","level":"warning","message":{"text":"check-architecture-gates.check_cell_runtime_server_boundary (cyclomatic 19): check-architecture-gates.check_cell_runtime_server_boundary 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":"crab/scripts/check-architecture-gates.py"},"region":{"startLine":2420}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fd4823826bc5a2af14bc8b5e79dd035f4d2ba4c367ba96d7be12abe5a0dc333"}},{"ruleId":"D1","level":"warning","message":{"text":"check-architecture-gates.check_auth_module_scope (cyclomatic 19): check-architecture-gates.check_auth_module_scope 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":"crab/scripts/check-architecture-gates.py"},"region":{"startLine":3609}}}],"partialFingerprints":{"codehealthFindingId/v1":"6efa47b3fbb3b14833cd65db018dd7aa4550bed996d59777e64531f9bd04c906"}},{"ruleId":"D1","level":"warning","message":{"text":"verify-nfs-smoke-report.verify_directory (cyclomatic 19): verify-nfs-smoke-report.verify_directory 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":"crab/scripts/verify-nfs-smoke-report.py"},"region":{"startLine":2170}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a5cb13a6aaa4e596bfb81b8ebb1632dce0f552d0b1119944fb7d005888d19d6"}},{"ruleId":"D1","level":"warning","message":{"text":"import_image.artifact_metadata (cyclomatic 19): import_image.artifact_metadata 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/crab-http-server/deploy/cell-issue-fleet/import_image.py"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"102b4ab244b0c234f658fdd08ff1c3db8e7033737d89f994fd5a992fd000fad4"}},{"ruleId":"D1","level":"warning","message":{"text":"browse.Directory (cyclomatic 19): browse.Directory has cyclomatic complexity 19 (threshold 15). Most of this is not in the body itself: 2 of the 19 points are its own statements and the rest belongs to 3 function literals inside it that branch (lines 147, 202, 137). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/browse.tsx"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"a78ac91cb786d22da29c928987817e1aace5c3b7cdbb0d0cf61e9372d4f5530f"}},{"ruleId":"D1","level":"warning","message":{"text":"issues.IssueList (cyclomatic 19): issues.IssueList has cyclomatic complexity 19 (threshold 15). Most of this is not in the body itself: 3 of the 19 points are its own statements and the rest belongs to 4 function literals inside it that branch (lines 155, 136, 123, \u2026). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/issues.tsx"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"17c797a2d5939d210270d02c34d6fe12ad6cdfcb9030ce8e37c0f5cffb675583"}},{"ruleId":"D1","level":"warning","message":{"text":"release-form.NewRelease (cyclomatic 19): release-form.NewRelease has cyclomatic complexity 19 (threshold 15). Of this number, 11 points are the body\u0027s own statements and 8 belong to one function item inside it that branches. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/release-form.tsx"},"region":{"startLine":375}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5a85ebdd9a370abdebc6524ab33c3add977f50e0cf37520babc8d59b6f35efb"}},{"ruleId":"D1","level":"warning","message":{"text":"settings.DefaultBranchSettings (cyclomatic 19): settings.DefaultBranchSettings has cyclomatic complexity 19 (threshold 15). Of this number, 13 points are the body\u0027s own statements and 6 belong to one function item inside it that branches. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/settings.tsx"},"region":{"startLine":587}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb407828f6c45eec25c5d3ff660f56845d77585ec8e645c648efe86f2eadc895"}},{"ruleId":"D1","level":"warning","message":{"text":"StoreChecker::verify_pointer_data (cyclomatic 18): StoreChecker::verify_pointer_data has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/cmd/fsck_store.rs"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1ca9f11bc994554c862c430e931ecb70cfaa8be1d7f120a39df64e9162d04ce"}},{"ruleId":"D1","level":"warning","message":{"text":"Config::apply_cache_overlay (cyclomatic 18): Config::apply_cache_overlay 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":"crab/src/core/config.rs"},"region":{"startLine":2424}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e9c2e74ef30067fe2b021b8f3108e340aa6476389837c1197f64eb33a478d3f"}},{"ruleId":"D1","level":"warning","message":{"text":"PushPipeline::evaluate_decisions_with_sha_map (cyclomatic 18): PushPipeline::evaluate_decisions_with_sha_map has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This is NOT this file\u0027s highest cyclomatic complexity: PushRejectReason::fmt (cyclomatic 25) 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":"crab/src/git/push.rs"},"region":{"startLine":7262}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f97589ad674e674c473cb3dfb156921fd6ad593089b9275ad03e7789992493f"}},{"ruleId":"D1","level":"warning","message":{"text":"PushPipeline::upload_shard_and_file_index (cyclomatic 18): PushPipeline::upload_shard_and_file_index has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This is NOT this file\u0027s highest cyclomatic complexity: PushRejectReason::fmt (cyclomatic 25) 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":"crab/src/git/push.rs"},"region":{"startLine":12753}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3e3ce6116fdb2d114da58d89c7713f7696a635d9e0660ffd0b8928076e4e956"}},{"ruleId":"D1","level":"warning","message":{"text":"crab::cmd::hydrate::sibling_cow_candidates (cyclomatic 18): crab::cmd::hydrate::sibling_cow_candidates 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":"crab/src/cmd/hydrate.rs"},"region":{"startLine":1739}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4152dd52a68bf9917c5d0e6c4b126406dfab23d0aa309224d11a442c4e6aa62"}},{"ruleId":"D1","level":"warning","message":{"text":"crab::cmd::metadb::generation_owner_loop (cyclomatic 18): crab::cmd::metadb::generation_owner_loop 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":"crab/src/cmd/metadb.rs"},"region":{"startLine":501}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e2666136bdffd966c1daab069b948c2bcb5786bd24ace8ea07bf7649ac770a7"}},{"ruleId":"D1","level":"warning","message":{"text":"crab::cmd::metadb::maintain_split_commit_graph (cyclomatic 18): crab::cmd::metadb::maintain_split_commit_graph 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":"crab/src/cmd/metadb.rs"},"region":{"startLine":1131}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebed326d23774d3974a29edb0de0f4f834d0ca8efaf68c3d1738737eddf5b29b"}},{"ruleId":"D1","level":"warning","message":{"text":"crab::git::upload_pack_wire::serve_admitted (cyclomatic 18): crab::git::upload_pack_wire::serve_admitted 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":"crab/src/git/upload_pack_wire.rs"},"region":{"startLine":599}}}],"partialFingerprints":{"codehealthFindingId/v1":"5048e723fe50e26870e52d630c4a4a0d9eae3e37ecd4ea648ce840c9b7b2a011"}},{"ruleId":"D1","level":"warning","message":{"text":"crab::git::upload_pack_wire::write_fetch_response (cyclomatic 18): crab::git::upload_pack_wire::write_fetch_response has cyclomatic complexity 18 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/git/upload_pack_wire.rs"},"region":{"startLine":1594}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f224891c9179dbe7aa4b969d3acb878deff72aeb78a352d02c710d349a44985"}},{"ruleId":"D1","level":"warning","message":{"text":"crab::lfs::track::track_escaped_with_options (cyclomatic 18): crab::lfs::track::track_escaped_with_options 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":"crab/src/lfs/track.rs"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"5937f7f8d2ac40bad426677af15ab213af97bc03e4f2f0e5e5c2b61a09b3fccc"}},{"ruleId":"D1","level":"warning","message":{"text":"GcFenceState::validate (cyclomatic 18): GcFenceState::validate has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-coordination/src/gc_fence.rs"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"2566c791da1c6b6a4b1d09dc33b341cb5b8cff998e8ae3cecba215f4b0b94ac5"}},{"ruleId":"D1","level":"warning","message":{"text":"UpdatePullReviewThread::execute (cyclomatic 18): UpdatePullReviewThread::execute 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/crab-http-server/src/cells/repository/pull_review_threads.rs"},"region":{"startLine":329}}}],"partialFingerprints":{"codehealthFindingId/v1":"0454c15a3949b11e9de6598491877258cf04c8e5a29b8331bab782e736106255"}},{"ruleId":"D1","level":"warning","message":{"text":"RepositoryCellScheduler::process_cell (cyclomatic 18): RepositoryCellScheduler::process_cell 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/crab-http-server/src/cells/scheduler.rs"},"region":{"startLine":682}}}],"partialFingerprints":{"codehealthFindingId/v1":"489df484e2e7bf611c616c0f8c3b9421692630528cab13744a5ae0e2d7ae126f"}},{"ruleId":"D1","level":"warning","message":{"text":"RepositoryCellScheduler::schedule_node_recovery (cyclomatic 18): RepositoryCellScheduler::schedule_node_recovery 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/crab-http-server/src/cells/scheduler.rs"},"region":{"startLine":870}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c5ec9ab9b7f165542bdbbad1e604444ba9050e3f338e733480bc90b9fe3e982"}},{"ruleId":"D1","level":"warning","message":{"text":"crab_http_server::issues::edit (cyclomatic 18): crab_http_server::issues::edit has cyclomatic complexity 18 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-http-server/src/issues.rs"},"region":{"startLine":426}}}],"partialFingerprints":{"codehealthFindingId/v1":"225bf5161b5f5285c936c6850398f76c415535913e16e9960d08de6afa8621c7"}},{"ruleId":"D1","level":"warning","message":{"text":"GitObjectLocatorWriter::load_or_initialize (cyclomatic 18): GitObjectLocatorWriter::load_or_initialize has cyclomatic complexity 18 (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/crab-metadata/src/git_object_locator/writer.rs"},"region":{"startLine":264}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9b899ec38c179e8892044ac9040ba0d204c01310ccee2550447ffe17b0d70cb"}},{"ruleId":"D1","level":"warning","message":{"text":"crab_metadata::git_object_locator::reader::lookup_strategy (cyclomatic 18): crab_metadata::git_object_locator::reader::lookup_strategy has cyclomatic complexity 18 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-metadata/src/git_object_locator/reader.rs"},"region":{"startLine":892}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b9779b8edcf70daa839c772905fbf0239b96b12250124a58e9a3020c6b94603"}},{"ruleId":"D1","level":"warning","message":{"text":"Gateway::list_objects_v2 (cyclomatic 18): Gateway::list_objects_v2 has cyclomatic complexity 18 (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/crab-s3-gateway/src/gateway.rs"},"region":{"startLine":2921}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cb1f02fa474e3f8836e08554a01a879d9b327267de0b127c46bdcc11f29666a"}},{"ruleId":"D1","level":"warning","message":{"text":"crab_sdk::local::push::content::prepare (cyclomatic 18): crab_sdk::local::push::content::prepare 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/crab-sdk/src/local/push/content.rs"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"6abbd0feaae8e1748d774bf5983a614760da58a2d52725cc5838a6f33f6ad67b"}},{"ruleId":"D1","level":"warning","message":{"text":"Store::put_multipart_source_once (cyclomatic 18): Store::put_multipart_source_once 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/crab-storage/src/store.rs"},"region":{"startLine":2484}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e6a2b6d1e86bbb106f6859d4eecb224d160dd4c469c3635d55eeca4947f2a6f"}},{"ruleId":"D1","level":"warning","message":{"text":"crab_workflow::cache::push_all_local_with_artifact_stores_and_cancel (cyclomatic 18): crab_workflow::cache::push_all_local_with_artifact_stores_and_cancel 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/crab-workflow/src/cache.rs"},"region":{"startLine":1357}}}],"partialFingerprints":{"codehealthFindingId/v1":"01bdf59603e07385d613b3b8f942e004b7afdea131fe34d36d669c88dbd47399"}},{"ruleId":"D1","level":"warning","message":{"text":"crab_workflow::dvc_inventory::parse_pointer (cyclomatic 18): crab_workflow::dvc_inventory::parse_pointer 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/crab-workflow/src/dvc_inventory.rs"},"region":{"startLine":834}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb2956caade5e48a5f00faf024e0d6285a4bc156cc32b75b25b21a22667bfe06"}},{"ruleId":"D1","level":"warning","message":{"text":"check-architecture-gates.check_workflow_module_scope (cyclomatic 18): check-architecture-gates.check_workflow_module_scope 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":"crab/scripts/check-architecture-gates.py"},"region":{"startLine":4708}}}],"partialFingerprints":{"codehealthFindingId/v1":"2756ff606a90c35303f8f2afd3ed8e756818ad24d82bb5231cac18d732750a11"}},{"ruleId":"D1","level":"warning","message":{"text":"verify-nfs-smoke-report.check_mount_list_artifact (cyclomatic 18): verify-nfs-smoke-report.check_mount_list_artifact 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":"crab/scripts/verify-nfs-smoke-report.py"},"region":{"startLine":351}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8b887524976303475bbc90789dd6d1e52e931cd2f27e60e895a2da081055a00"}},{"ruleId":"D1","level":"warning","message":{"text":"verify-sdk-read-only.main (cyclomatic 18): verify-sdk-read-only.main 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":"crab/scripts/verify-sdk-read-only.py"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"67a6fb44df0ee4dbf54fd8412e1cd245ae1be0cbd38f80e5857029da2655a842"}},{"ruleId":"D1","level":"warning","message":{"text":"qualify.run_stage (cyclomatic 18): qualify.run_stage 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/crab-http-server/deploy/cell-issue-fleet/qualify.py"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf88613359b02844664a9afefe190dc5732b5d189024e8282200391af1c89ba1"}},{"ruleId":"D1","level":"warning","message":{"text":"qualify_reader_first_loss.main (cyclomatic 18): qualify_reader_first_loss.main 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/crab-http-server/deploy/cell-issue-fleet/qualify_reader_first_loss.py"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ccca72b60f884fd5d4d9e881731a4d1919bae898e165ec35dc04f81adb67a67"}},{"ruleId":"D1","level":"warning","message":{"text":"pulls.PullList (cyclomatic 18): pulls.PullList has cyclomatic complexity 18 (threshold 15). Most of this is not in the body itself: 3 of the 18 points are its own statements and the rest belongs to 4 function literals inside it that branch (lines 371, 349, 375, \u2026). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pulls.tsx"},"region":{"startLine":305}}}],"partialFingerprints":{"codehealthFindingId/v1":"99c7ea48e6d67f961aace579b8c7cbddeb9a9f20ecfeedf1e603c040bce6de32"}},{"ruleId":"D1","level":"warning","message":{"text":"pulls.RequiredChecks (cyclomatic 18): pulls.RequiredChecks has cyclomatic complexity 18 (threshold 15). Most of this is not in the body itself: 8 of the 18 points are its own statements and the rest belongs to 3 function literals inside it that branch (lines 1998, 1970, 1973). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pulls.tsx"},"region":{"startLine":1957}}}],"partialFingerprints":{"codehealthFindingId/v1":"09ead545f09c2b5743aa02ac0eaa557aa92f60c040f6f549a1972a795a6cf5e6"}},{"ruleId":"D1","level":"warning","message":{"text":"S3VersionedList::walk_versions (cyclomatic 17): S3VersionedList::walk_versions 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":"crab/src/import/versions.rs"},"region":{"startLine":754}}}],"partialFingerprints":{"codehealthFindingId/v1":"9737007a78871fa7fd0bcee8c2c2ef31f8d0a679d17acd009e25936a4102b593"}},{"ruleId":"D1","level":"warning","message":{"text":"TransferCoordinator::execute (cyclomatic 17): TransferCoordinator::execute 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":"crab/src/lfs/coordinator.rs"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"c05e274d484189d4fddac66bf4c9c3976fecdaa1bcc25b1ca86f1c07ac234803"}},{"ruleId":"D1","level":"warning","message":{"text":"OptimizeCmd::output_mode (cyclomatic 17): OptimizeCmd::output_mode 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: Cmd::schema_name (cyclomatic 143) 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":"crab/src/main.rs"},"region":{"startLine":1436}}}],"partialFingerprints":{"codehealthFindingId/v1":"11062903088743ce1eeac5d64cff4316893617f6ff2f647f377d898cc1cf5005"}},{"ruleId":"D1","level":"warning","message":{"text":"AzureReplicationControlPlaneBackend::apply (cyclomatic 17): AzureReplicationControlPlaneBackend::apply 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: crab::replication::control_plane_check_code (cyclomatic 18) 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":"crab/src/replication/mod.rs"},"region":{"startLine":476}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3fe060a17955a6f1ec9a2598b6034692efc71f0d997da9d726e0c19829edc71"}},{"ruleId":"D1","level":"warning","message":{"text":"crab::cmd::dehydrate::query_dirty_files_via_gix (cyclomatic 17): crab::cmd::dehydrate::query_dirty_files_via_gix 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":"crab/src/cmd/dehydrate.rs"},"region":{"startLine":657}}}],"partialFingerprints":{"codehealthFindingId/v1":"e19a0f338e1e452bd1aba320188be9e1c04b4f2b93efae548dc12e7c7895adc7"}},{"ruleId":"D1","level":"warning","message":{"text":"crab::cmd::fsck::run_fsck (cyclomatic 17): crab::cmd::fsck::run_fsck 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":"crab/src/cmd/fsck.rs"},"region":{"startLine":570}}}],"partialFingerprints":{"codehealthFindingId/v1":"d842c74b9f6be7eee235c9b0321596c3b3cba22b832e8496ce92fd9c1135f4a8"}},{"ruleId":"D1","level":"warning","message":{"text":"crab::cmd::gc::finish_repo_gc_from_marks (cyclomatic 17): crab::cmd::gc::finish_repo_gc_from_marks 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":"crab/src/cmd/gc/mod.rs"},"region":{"startLine":789}}}],"partialFingerprints":{"codehealthFindingId/v1":"82f13085d0d8b03b87521d7db7879ed49e486a82b517ed52cba3620498fc0d9a"}},{"ruleId":"D1","level":"warning","message":{"text":"crab::cmd::optimize::xorbs::run_apply (cyclomatic 17): crab::cmd::optimize::xorbs::run_apply 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":"crab/src/cmd/optimize/xorbs.rs"},"region":{"startLine":440}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ef7136e496f14405ab5314ad8c4cd09856d104bac446be9e8e55727c3019aed"}},{"ruleId":"D1","level":"warning","message":{"text":"crab::cmd::replica::validate_repair_args (cyclomatic 17): crab::cmd::replica::validate_repair_args has cyclomatic complexity 17 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators. This is NOT this file\u0027s highest cyclomatic complexity: crab::cmd::replica::exec (cyclomatic 22) 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":"crab/src/cmd/replica.rs"},"region":{"startLine":3465}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4b50112a9119ae55e10081d6878bdd88cf7894614d920b1082625e5f1273dab"}},{"ruleId":"D1","level":"warning","message":{"text":"crab::cmd::replica::verify_evidence_file (cyclomatic 17): crab::cmd::replica::verify_evidence_file 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. This is NOT this file\u0027s highest cyclomatic complexity: crab::cmd::replica::exec (cyclomatic 22) 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":"crab/src/cmd/replica.rs"},"region":{"startLine":4202}}}],"partialFingerprints":{"codehealthFindingId/v1":"6844de4e8b7a656141a5c756549a0d74d372526238291ea4f7b1a8e266ddf6a2"}},{"ruleId":"D1","level":"warning","message":{"text":"crab::cmd::run::run_validate (cyclomatic 17): crab::cmd::run::run_validate 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":"crab/src/cmd/run.rs"},"region":{"startLine":1114}}}],"partialFingerprints":{"codehealthFindingId/v1":"1038752d751c2b27e4458d64a80d7d0730bf4856c1cc0277627701a9e5c35e06"}},{"ruleId":"D1","level":"warning","message":{"text":"crab::cmd::ship::run_ship (cyclomatic 17): crab::cmd::ship::run_ship 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":"crab/src/cmd/ship.rs"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c16c167827bfba6066a6b27ac5194bc09e85dad911c9f8b90daf2679df5fefb"}},{"ruleId":"D1","level":"warning","message":{"text":"crab::cmd::workflow_checkpoint::snapshot_checkpoint (cyclomatic 17): crab::cmd::workflow_checkpoint::snapshot_checkpoint 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":"crab/src/cmd/workflow_checkpoint.rs"},"region":{"startLine":333}}}],"partialFingerprints":{"codehealthFindingId/v1":"770c2e57b658d207c70bf88dbd68eae3c3af2a2deabc1058b7cb4d1fd0a0e808"}},{"ruleId":"D1","level":"warning","message":{"text":"crab::git::clean::glob_match_impl (cyclomatic 17): crab::git::clean::glob_match_impl 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":"crab/src/git/clean.rs"},"region":{"startLine":2618}}}],"partialFingerprints":{"codehealthFindingId/v1":"8de62d57c99a2b658f1688ce26e5a7e9fcecf1a0612aa3d7d1f64ab74722c723"}},{"ruleId":"D1","level":"warning","message":{"text":"crab::git::filter_process::run_filter_loop_with_lfs_source (cyclomatic 17): crab::git::filter_process::run_filter_loop_with_lfs_source 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":"crab/src/git/filter_process.rs"},"region":{"startLine":734}}}],"partialFingerprints":{"codehealthFindingId/v1":"44efa23b7667c302f84cfd8cdc58a15ceede94d799bbeb71684a54059875258a"}},{"ruleId":"D1","level":"warning","message":{"text":"crab::git::filter_process::smudge_content (cyclomatic 17): crab::git::filter_process::smudge_content 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":"crab/src/git/filter_process.rs"},"region":{"startLine":1410}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b2531d25641f3521967b556f23a98bd10a31af3331a1016f666be1c243ce8c0"}},{"ruleId":"D1","level":"warning","message":{"text":"crab::import::ingest::record_outcome (cyclomatic 17): crab::import::ingest::record_outcome 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":"crab/src/import/ingest.rs"},"region":{"startLine":905}}}],"partialFingerprints":{"codehealthFindingId/v1":"aca3ab1084c4af13fec2282d1ddd3fbe1ab9a72e9158b36a1d432212716fa9f0"}},{"ruleId":"D1","level":"warning","message":{"text":"GcFenceLease::acquire_with_holder (cyclomatic 17): GcFenceLease::acquire_with_holder 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/crab-coordination/src/gc_fence.rs"},"region":{"startLine":411}}}],"partialFingerprints":{"codehealthFindingId/v1":"266527e42f2064fbe9260e4a4232617d69c9a471fd7c7ef6b660d0735f85fd20"}},{"ruleId":"D1","level":"warning","message":{"text":"crab_git::repack::consolidate_pack_suffix_with_options (cyclomatic 17): crab_git::repack::consolidate_pack_suffix_with_options 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/crab-git/src/repack.rs"},"region":{"startLine":495}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf0f88273ec6f25885209c6970b13c3ebe5c6b294da5ddef9344d3b349fe57ce"}},{"ruleId":"D1","level":"warning","message":{"text":"NodePublisher::run_shared (cyclomatic 17): NodePublisher::run_shared 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. This is NOT this file\u0027s highest cyclomatic complexity: crab_http_server::peer::required_mutation_action (cyclomatic 22) 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/crab-http-server/src/peer.rs"},"region":{"startLine":358}}}],"partialFingerprints":{"codehealthFindingId/v1":"0211de9c7b2dc146f8fa5e607f6aa833283dc88ce2ad1246ab49169817a865c1"}},{"ruleId":"D1","level":"warning","message":{"text":"crab_http_server::assets::serve (cyclomatic 17): crab_http_server::assets::serve 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/crab-http-server/src/assets.rs"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ad06c4e8fb3c70200b71e2a8f055c7f85f2b315e770c55a3597c564d32b9f11"}},{"ruleId":"D1","level":"warning","message":{"text":"crab_http_server::git::upload_pack (cyclomatic 17): crab_http_server::git::upload_pack 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. This is NOT this file\u0027s highest cyclomatic complexity: GitError::into_response (cyclomatic 18) 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/crab-http-server/src/git.rs"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"69e35ef6a439d9971869eb6a2476a2fa4093e3aba2df40f9542f50f191ecc94f"}},{"ruleId":"D1","level":"warning","message":{"text":"crab_http_server::peer::authorize_repository (cyclomatic 17): crab_http_server::peer::authorize_repository 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: crab_http_server::peer::required_mutation_action (cyclomatic 22) 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/crab-http-server/src/peer.rs"},"region":{"startLine":1795}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c03f79ee51106f1c9319f9e92cbcd0a903d61b652496240458a2f1bd426e828"}},{"ruleId":"D1","level":"warning","message":{"text":"crab_read::upload_pack::visibility_object_selection (cyclomatic 17): crab_read::upload_pack::visibility_object_selection 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/crab-read/src/upload_pack.rs"},"region":{"startLine":955}}}],"partialFingerprints":{"codehealthFindingId/v1":"3af164c7573d5ed0b527537d64db3752228593c71b442be7e232cef43b21e1d3"}},{"ruleId":"D1","level":"warning","message":{"text":"RemoteGitSnapshot::blame (cyclomatic 17): RemoteGitSnapshot::blame 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/crab-remote-git/src/snapshot.rs"},"region":{"startLine":654}}}],"partialFingerprints":{"codehealthFindingId/v1":"a623225e0585cd2bdc2554ab7c8ffae8a2bc68f98258a90e5319184f988fff83"}},{"ruleId":"D1","level":"warning","message":{"text":"crab_remote_git::reader::parse_pack_index (cyclomatic 17): crab_remote_git::reader::parse_pack_index 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/crab-remote-git/src/reader.rs"},"region":{"startLine":2407}}}],"partialFingerprints":{"codehealthFindingId/v1":"f195aa5d1a553ce1a4422042a05c8fd3197ec9dc8d32326fd522bbadfcf58b0c"}},{"ruleId":"D1","level":"warning","message":{"text":"Gateway::start_multipart_maintenance (cyclomatic 17): Gateway::start_multipart_maintenance 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/crab-s3-gateway/src/gateway.rs"},"region":{"startLine":527}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6a68ce054d1a7c3dd3ad9ea2234afdb1f6543276caaadfae9a99f0d9f218191"}},{"ruleId":"D1","level":"warning","message":{"text":"crab_sdk::local::fetch::prepare_fetch_intent (cyclomatic 17): crab_sdk::local::fetch::prepare_fetch_intent 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/crab-sdk/src/local/fetch.rs"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"4567ee76e887350cc5486ca3b1f93ea67baa9bb836e450fd64d4c84744eac778"}},{"ruleId":"D1","level":"warning","message":{"text":"crab_sdk::runtime::execute (cyclomatic 17): crab_sdk::runtime::execute 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/crab-sdk/src/runtime.rs"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e90a7a0a1fc2f8ba115ae5ee004f9dd80e35dac1d681660ac9cc7641a9bfe40"}},{"ruleId":"D1","level":"warning","message":{"text":"crab_staging::stage_owned_chunks_batch_blocking (cyclomatic 17): crab_staging::stage_owned_chunks_batch_blocking 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/crab-staging/src/lib.rs"},"region":{"startLine":1808}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf4a294075882d8290a7bcdc5de6ca7cdd811d8f42a07ac22434bd0a4335f356"}},{"ruleId":"D1","level":"warning","message":{"text":"CrabFs::setattr (cyclomatic 17): CrabFs::setattr 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/crab-vfs/src/fuse.rs"},"region":{"startLine":643}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1abd249107066126e19f8ed14fe12c746aac726a36af97c11d735bc4a6e8e30"}},{"ruleId":"D1","level":"warning","message":{"text":"crab_workflow::executor::resolve_dep_hashes_with_wdir_allow_missing_remote_aliases (cyclomatic 17): crab_workflow::executor::resolve_dep_hashes_with_wdir_allow_missing_remote_aliases 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/crab-workflow/src/executor.rs"},"region":{"startLine":2432}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc6db4d34031fb5b053e276fd217c61837e8a3518a918fd2cd13150576128657"}},{"ruleId":"D1","level":"warning","message":{"text":"crab_write::generation::maintain_path_state (cyclomatic 17): crab_write::generation::maintain_path_state 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/crab-write/src/generation.rs"},"region":{"startLine":335}}}],"partialFingerprints":{"codehealthFindingId/v1":"a880e469c0b74c0f81ecadf3efdf410f594e0cee591100dc9f0cfdc40e6b41d2"}},{"ruleId":"D1","level":"warning","message":{"text":"check-architecture-gates.check_workspace_dependency_sources (cyclomatic 17): check-architecture-gates.check_workspace_dependency_sources 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":"crab/scripts/check-architecture-gates.py"},"region":{"startLine":2564}}}],"partialFingerprints":{"codehealthFindingId/v1":"f98b08cc95a7292c533799a0fc613713ef80caecbdd982d1226f47c6d1d1fdcf"}},{"ruleId":"D1","level":"warning","message":{"text":"check-architecture-gates.check_read_module_scope (cyclomatic 17): check-architecture-gates.check_read_module_scope 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":"crab/scripts/check-architecture-gates.py"},"region":{"startLine":4122}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c219fcb39819ace21526712af256df5bb7bc491807575c05177a554c163db69"}},{"ruleId":"D1","level":"warning","message":{"text":"check-architecture-gates.check_deleted_workflow_reexport_adapters_removed (cyclomatic 17): check-architecture-gates.check_deleted_workflow_reexport_adapters_removed 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":"crab/scripts/check-architecture-gates.py"},"region":{"startLine":4758}}}],"partialFingerprints":{"codehealthFindingId/v1":"117c4ef9eecd7178c0e1fb33929787a97169d497357ab56752abc50ecfb5c027"}},{"ruleId":"D1","level":"warning","message":{"text":"nfs-evidence-summary.render_benchmark_markdown (cyclomatic 17): nfs-evidence-summary.render_benchmark_markdown 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":"crab/scripts/nfs-evidence-summary.py"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"28ec57be45bfb98abce4fe2a3051d69d20a7ed8ebabd033163df654b5c230d53"}},{"ruleId":"D1","level":"warning","message":{"text":"check-install-layout.check_layout (cyclomatic 17): check-install-layout.check_layout 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":"crab/scripts/release/check-install-layout.py"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e06e706f3ef14a2047e2d0de97f83d06a08047ea9ef82514412a4c2d43806cb"}},{"ruleId":"D1","level":"warning","message":{"text":"verify-nfs-smoke-report.compare_directory (cyclomatic 17): verify-nfs-smoke-report.compare_directory 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":"crab/scripts/verify-nfs-smoke-report.py"},"region":{"startLine":2641}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9639a880556d775cafa9f46b7d737c899450e5c289e6f50e69e03603b329c22"}},{"ruleId":"D1","level":"warning","message":{"text":"qualify_read_replicas.prove_reader_targets (cyclomatic 17): qualify_read_replicas.prove_reader_targets 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/crab-http-server/deploy/cell-issue-fleet/qualify_read_replicas.py"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"20a84b09f45abd4cced18af03183fb4d1e0c2a122e9a2da1a27c391500c64a8a"}},{"ruleId":"D1","level":"warning","message":{"text":"qualify_reader_partition.qualify (cyclomatic 17): qualify_reader_partition.qualify 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/crab-http-server/deploy/cell-issue-fleet/qualify_reader_partition.py"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e216bc5d9a9421adf128ecf94a81ad2bc4fb7b15f5e38bc5284adecda3ed477"}},{"ruleId":"D1","level":"warning","message":{"text":"content-editor.UploadFiles (cyclomatic 17): content-editor.UploadFiles has cyclomatic complexity 17 (threshold 15). Most of this is not in the body itself: 3 of the 17 points are its own statements and the rest belongs to 3 function items inside it that branch (submit, selectFiles, a function literal at line 480). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/content-editor.tsx"},"region":{"startLine":333}}}],"partialFingerprints":{"codehealthFindingId/v1":"24a892abde8e8f635027cdda8cbe72b4a68e5600a9b3e14361244fb1c0fcf145"}},{"ruleId":"D1","level":"warning","message":{"text":"refs.RefsPage (cyclomatic 17): refs.RefsPage has cyclomatic complexity 17 (threshold 15). Of this number, 16 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/refs.tsx"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"f824b21b105bbc99296bf5ae20d49bdce0ff796167411138ca481b3918a962ff"}},{"ruleId":"D1","level":"warning","message":{"text":"page.PricingPage (cyclomatic 17): page.PricingPage has cyclomatic complexity 17 (threshold 15). Most of this is not in the body itself: 1 of the 17 points is its own statement and the rest belongs to 3 function literals inside it that branch (lines 372, 509, 440). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/web/app/pricing/page.tsx"},"region":{"startLine":298}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a57ffb86c3bd0ac61e8bf1f1b56c7b3f89582ef54eb24dd4d746cca20620e8e"}},{"ruleId":"D1","level":"warning","message":{"text":"Config::validate_push (cyclomatic 16): Config::validate_push has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/core/config.rs"},"region":{"startLine":1975}}}],"partialFingerprints":{"codehealthFindingId/v1":"56e31eb612201c5816e27e70d9bec0b8eb4f499133b482a92581c7beab2839de"}},{"ruleId":"D1","level":"warning","message":{"text":"CleanSession::crab_clean_stream (cyclomatic 16): CleanSession::crab_clean_stream has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/git/clean.rs"},"region":{"startLine":2084}}}],"partialFingerprints":{"codehealthFindingId/v1":"00915fc413cb26e4c059dbfaf6a28ba5579e8d9e9a82dbba03151e7f9556c033"}},{"ruleId":"D1","level":"warning","message":{"text":"ShardSynchronizer::resolve_incremental_delta (cyclomatic 16): ShardSynchronizer::resolve_incremental_delta 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":"crab/src/metadata/shard_sync.rs"},"region":{"startLine":426}}}],"partialFingerprints":{"codehealthFindingId/v1":"afeabae95393ba66c8ab0b2fb0e1bb404dd9370dc5c8067b494833cd32c1b637"}},{"ruleId":"D1","level":"warning","message":{"text":"GoogleGcsReplicationControlPlaneClient::validate_policy (cyclomatic 16): GoogleGcsReplicationControlPlaneClient::validate_policy has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This is NOT this file\u0027s highest cyclomatic complexity: crab::replication::control_plane_check_code (cyclomatic 18) 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":"crab/src/replication/mod.rs"},"region":{"startLine":3324}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a51d7e6d34bc3bdd858ea65a30f8ecbede37d1e4a7296623f17c4f50790fdc6"}},{"ruleId":"D1","level":"warning","message":{"text":"crab::cmd::add::walk_candidates (cyclomatic 16): crab::cmd::add::walk_candidates 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":"crab/src/cmd/add.rs"},"region":{"startLine":3138}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d8e6a3c6a4a7bc785bce9551b4e472826f4ae350f49221e37dcb3bb93faeaa3"}},{"ruleId":"D1","level":"warning","message":{"text":"crab::cmd::data::fetch_descriptor_source (cyclomatic 16): crab::cmd::data::fetch_descriptor_source 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":"crab/src/cmd/data.rs"},"region":{"startLine":726}}}],"partialFingerprints":{"codehealthFindingId/v1":"25283023718886f493b59670d84f28791d5ec740d6c9a9b1312e2c571a3cc3a1"}},{"ruleId":"D1","level":"warning","message":{"text":"crab::cmd::diff_driver::run_diff_driver (cyclomatic 16): crab::cmd::diff_driver::run_diff_driver has cyclomatic complexity 16 (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":"crab/src/cmd/diff_driver.rs"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f48d22d99b008fce893abac117e2ae49878e609d534a4eccf7d53f89169423d"}},{"ruleId":"D1","level":"warning","message":{"text":"crab::cmd::push::execute_push (cyclomatic 16): crab::cmd::push::execute_push 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":"crab/src/cmd/push.rs"},"region":{"startLine":223}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f2a156d28d1735ce9cd685009daf2adf1d7f42846caa7fbd673508e84678750"}},{"ruleId":"D1","level":"warning","message":{"text":"crab::cmd::replica::redacted_evidence_secret_string_kind (cyclomatic 16): crab::cmd::replica::redacted_evidence_secret_string_kind has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages. This is NOT this file\u0027s highest cyclomatic complexity: crab::cmd::replica::exec (cyclomatic 22) 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":"crab/src/cmd/replica.rs"},"region":{"startLine":5759}}}],"partialFingerprints":{"codehealthFindingId/v1":"5981903c62057094e52fe5408c5211f2b7be0265b202976dd40b7f1aff5fee5b"}},{"ruleId":"D1","level":"warning","message":{"text":"crab::cmd::run::execute_stage_parallel (cyclomatic 16): crab::cmd::run::execute_stage_parallel 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":"crab/src/cmd/run.rs"},"region":{"startLine":2128}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2536de4f8bdbe93c09ae0130bd0b06050d3f9f4f909f10482c3aa37cef26375"}},{"ruleId":"D1","level":"warning","message":{"text":"crab::cmd::run::execute_one_stage_from_yaml_with_jsonl (cyclomatic 16): crab::cmd::run::execute_one_stage_from_yaml_with_jsonl 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":"crab/src/cmd/run.rs"},"region":{"startLine":2771}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5fd15a0487a0233f5008ccd151fe0713bc8bb8e6aee94cc31948f0f7f1f65a2"}},{"ruleId":"D1","level":"warning","message":{"text":"crab::cmd::run::try_pull_missing_deps (cyclomatic 16): crab::cmd::run::try_pull_missing_deps has cyclomatic complexity 16 (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":"crab/src/cmd/run.rs"},"region":{"startLine":4514}}}],"partialFingerprints":{"codehealthFindingId/v1":"16fc01bc947ffc989576716e60aeded77f895c4db6ca5551db6a8502f1acbb05"}},{"ruleId":"D1","level":"warning","message":{"text":"crab::cmd::worktree::resolve_add_hydration_policy (cyclomatic 16): crab::cmd::worktree::resolve_add_hydration_policy 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":"crab/src/cmd/worktree.rs"},"region":{"startLine":477}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed7a834a463358d1c81503757fb879e0d56f076819181a81b858984327830b67"}},{"ruleId":"D1","level":"warning","message":{"text":"crab::git::push::verified_existing_remote_xorbs (cyclomatic 16): crab::git::push::verified_existing_remote_xorbs has cyclomatic complexity 16 (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: PushRejectReason::fmt (cyclomatic 25) 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":"crab/src/git/push.rs"},"region":{"startLine":1235}}}],"partialFingerprints":{"codehealthFindingId/v1":"43119417434e8dd075e2210e670d71d25f9329ea6c92f67eeae811ec52479f77"}},{"ruleId":"D1","level":"warning","message":{"text":"crab::lfs::migrate::remove_gitattributes_for_export (cyclomatic 16): crab::lfs::migrate::remove_gitattributes_for_export 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":"crab/src/lfs/migrate.rs"},"region":{"startLine":2344}}}],"partialFingerprints":{"codehealthFindingId/v1":"278aada02a8c03e825101ead913d6b93a9a5702f11749aff470e0782736419ea"}},{"ruleId":"D1","level":"warning","message":{"text":"crab_auth_server::receive::promote_pack_metadata_union (cyclomatic 16): crab_auth_server::receive::promote_pack_metadata_union 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/crab-auth-server/src/receive.rs"},"region":{"startLine":487}}}],"partialFingerprints":{"codehealthFindingId/v1":"07c8f3e458ce5b8b52916316fd8cb0afd3bc123edd796e20439ea62e4d561b8e"}},{"ruleId":"D1","level":"warning","message":{"text":"crab_auth_server::receive::commit_service_git_locators_with_source (cyclomatic 16): crab_auth_server::receive::commit_service_git_locators_with_source has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-auth-server/src/receive.rs"},"region":{"startLine":1765}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c9c0d2f7606be46bce95f9edba71a883271cce95dd118c9a104cf042d239988"}},{"ruleId":"D1","level":"warning","message":{"text":"crab_cache::local_cache::cached_remote_xorb_index (cyclomatic 16): crab_cache::local_cache::cached_remote_xorb_index has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-cache/src/local_cache.rs"},"region":{"startLine":1455}}}],"partialFingerprints":{"codehealthFindingId/v1":"897b947e32d39d0c93b0ef9a0a85ee6bb0e52847ae1175535dc3156938e40679"}},{"ruleId":"D1","level":"warning","message":{"text":"crab_cache_server::bin::crab_cache::onboarding (cyclomatic 16): crab_cache_server::bin::crab_cache::onboarding 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/crab-cache-server/src/bin/crab_cache.rs"},"region":{"startLine":578}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0fab570ed7e2610645da5b7c6397b0cecb642d37235ba9932e3c0b66b42d545"}},{"ruleId":"D1","level":"warning","message":{"text":"crab_cache_server::handlers::fetch_and_cache_data_locked (cyclomatic 16): crab_cache_server::handlers::fetch_and_cache_data_locked 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/crab-cache-server/src/handlers.rs"},"region":{"startLine":1619}}}],"partialFingerprints":{"codehealthFindingId/v1":"c278bff1d8cd6ffed76532e2e96e00b0413369234068d8b9fbbc3dfafbebf9f9"}},{"ruleId":"D1","level":"warning","message":{"text":"Validator::parse (cyclomatic 16): Validator::parse 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/crab-git/src/receive_plan.rs"},"region":{"startLine":397}}}],"partialFingerprints":{"codehealthFindingId/v1":"108da5ae0aff5ec2f48cbd581be2ffd33d05d67ee4b412c15adbfd2fb9a5d2cd"}},{"ruleId":"D1","level":"warning","message":{"text":"crab_git::pack::install_pack_files_from_paths_with_identity (cyclomatic 16): crab_git::pack::install_pack_files_from_paths_with_identity has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-git/src/pack.rs"},"region":{"startLine":418}}}],"partialFingerprints":{"codehealthFindingId/v1":"3590186e3a17878a7357d300bedaf359c5f4ba8832c488eaaeab650620039baa"}},{"ruleId":"D1","level":"warning","message":{"text":"ApplyProjectionBatch::execute (cyclomatic 16): ApplyProjectionBatch::execute 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/crab-http-server/src/cells/repository/projection.rs"},"region":{"startLine":233}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bd3d4902f06f8c706bfaae8a4c4f031322f30e895c50c4e4b8d3734d98d34d0"}},{"ruleId":"D1","level":"warning","message":{"text":"RepositoryCellScheduler::schedule_migrations (cyclomatic 16): RepositoryCellScheduler::schedule_migrations 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/crab-http-server/src/cells/scheduler.rs"},"region":{"startLine":488}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c3d2f398921ae9dc384925862790132043ca94d49fe157f6ec298262767fe98"}},{"ruleId":"D1","level":"warning","message":{"text":"Config::validate (cyclomatic 16): Config::validate 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/crab-http-server/src/config.rs"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"60965a2e4adcb58e91f755b26631ef829fbdfe4153c6aa4f5a7f736f2eead9ca"}},{"ruleId":"D1","level":"warning","message":{"text":"crab_metadata::path_state::append_path_state (cyclomatic 16): crab_metadata::path_state::append_path_state 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/crab-metadata/src/path_state.rs"},"region":{"startLine":294}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3842a124c7352e53aa145a8263d155e3e889de0f0751e36f6d8feeb910ea1cf"}},{"ruleId":"D1","level":"warning","message":{"text":"crab_metadata::path_state::validate_descriptor (cyclomatic 16): crab_metadata::path_state::validate_descriptor 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/crab-metadata/src/path_state.rs"},"region":{"startLine":710}}}],"partialFingerprints":{"codehealthFindingId/v1":"f74a4dbf146faf6a295a567e4fc14bc955e133abb29c1231713ffe8f1494ce51"}},{"ruleId":"D1","level":"warning","message":{"text":"StoreClient::load_shard_for_file (cyclomatic 16): StoreClient::load_shard_for_file has cyclomatic complexity 16 (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/crab-read/src/store_client.rs"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"41d2efa9bcce6b1c3454f3ace120af13e61ba3ca39b5e6a75c416ab33ae16f17"}},{"ruleId":"D1","level":"warning","message":{"text":"crab_read::upload_pack::plan_from_visibility_catalog_ordinals (cyclomatic 16): crab_read::upload_pack::plan_from_visibility_catalog_ordinals 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/crab-read/src/upload_pack.rs"},"region":{"startLine":1361}}}],"partialFingerprints":{"codehealthFindingId/v1":"dcdb02b21ae163e5296ce9230161a6c4d4e971b7ad4ed157d9857b4c18300c60"}},{"ruleId":"D1","level":"warning","message":{"text":"crab_remote::prepare::prepare (cyclomatic 16): crab_remote::prepare::prepare 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/crab-remote/src/prepare.rs"},"region":{"startLine":841}}}],"partialFingerprints":{"codehealthFindingId/v1":"af58db651e67457ab4c62ac1b330acdebd1c4949547fd44677bc69775e1b84c2"}},{"ruleId":"D1","level":"warning","message":{"text":"crab_s3_gateway::mutation::upload_built_batch (cyclomatic 16): crab_s3_gateway::mutation::upload_built_batch 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/crab-s3-gateway/src/mutation.rs"},"region":{"startLine":1770}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9c68cfd68fced30a3dd8459fcb6584b55cfadb9a473371dc58567a67244d6e4"}},{"ruleId":"D1","level":"warning","message":{"text":"crab_vfs::ipc_server::handle_mount (cyclomatic 16): crab_vfs::ipc_server::handle_mount has cyclomatic complexity 16 (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/crab-vfs/src/ipc_server.rs"},"region":{"startLine":555}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1cf9015bb59b48080a5b69d937e4db952e1bdf8ea820792b0f84eba109d6b82"}},{"ruleId":"D1","level":"warning","message":{"text":"DvcMigrationJournal::validate (cyclomatic 16): DvcMigrationJournal::validate has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-workflow/src/dvc_inventory.rs"},"region":{"startLine":448}}}],"partialFingerprints":{"codehealthFindingId/v1":"34aca53988608458b931872388822d88ebd910d9965d4b4d777fb99be9050391"}},{"ruleId":"D1","level":"warning","message":{"text":"crab_workflow::artifact::validate_remote_envelope (cyclomatic 16): crab_workflow::artifact::validate_remote_envelope 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/crab-workflow/src/artifact.rs"},"region":{"startLine":1307}}}],"partialFingerprints":{"codehealthFindingId/v1":"51ee2701e49a5b7aae56fb0d85557e58b77180fc535691b8ff2a2b6504a60858"}},{"ruleId":"D1","level":"warning","message":{"text":"crab_workflow::hydra::find_interpolation_end (cyclomatic 16): crab_workflow::hydra::find_interpolation_end 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/crab-workflow/src/hydra.rs"},"region":{"startLine":890}}}],"partialFingerprints":{"codehealthFindingId/v1":"00946b759f7022e5da57ed6238ed95d0539683d0165bce3d04b8d8286a53e2eb"}},{"ruleId":"D1","level":"warning","message":{"text":"crab_workflow::resume::decide (cyclomatic 16): crab_workflow::resume::decide 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/crab-workflow/src/resume.rs"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"4967c11e623875a06a8ace5d560337eb0ea4453c2423cb0b6ab57940b859622f"}},{"ruleId":"D1","level":"warning","message":{"text":"check-architecture-gates.check_git_module_scope (cyclomatic 16): check-architecture-gates.check_git_module_scope 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":"crab/scripts/check-architecture-gates.py"},"region":{"startLine":4276}}}],"partialFingerprints":{"codehealthFindingId/v1":"19972980cefb77b2b6cd988429e6d78ab4d56d3f117cb5b6ca86e234ba9164a7"}},{"ruleId":"D1","level":"warning","message":{"text":"check-architecture-gates.check_deleted_metadata_reexport_adapters_removed (cyclomatic 16): check-architecture-gates.check_deleted_metadata_reexport_adapters_removed 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":"crab/scripts/check-architecture-gates.py"},"region":{"startLine":4661}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c2ddd8c06695b695903b9ab65f594038b4dd51bbea4956421594d2e3926bf89"}},{"ruleId":"D1","level":"warning","message":{"text":"nfs-evidence-summary.render_smoke_markdown (cyclomatic 16): nfs-evidence-summary.render_smoke_markdown 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":"crab/scripts/nfs-evidence-summary.py"},"region":{"startLine":350}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1467d1cc22948b5ef73071d9b569a2c7af1030c858645fdd8b043fa638c47c3"}},{"ruleId":"D1","level":"warning","message":{"text":"qualify_sdk.compare_read (cyclomatic 16): qualify_sdk.compare_read 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":"crab/scripts/qualify_sdk.py"},"region":{"startLine":250}}}],"partialFingerprints":{"codehealthFindingId/v1":"d09b0f3024edb8d15545d5e29e2cc7ac37bf11aff2eb03c22111e2634170ec8d"}},{"ruleId":"D1","level":"warning","message":{"text":"verify-nfs-smoke-report.check_remount_artifact (cyclomatic 16): verify-nfs-smoke-report.check_remount_artifact has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/scripts/verify-nfs-smoke-report.py"},"region":{"startLine":1864}}}],"partialFingerprints":{"codehealthFindingId/v1":"9da5640649ebd5a195c2615cc30f0946428fcd26406792d2b353223fa820e806"}},{"ruleId":"D1","level":"warning","message":{"text":"TailFault.preflight (cyclomatic 16): TailFault.preflight 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/crab-http-server/deploy/cell-issue-fleet/fault.py"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"7738c0664c6a0e526ebedf26507f7e6c8c90cdc2e0db6ad2d9cf58e3fcb596c9"}},{"ruleId":"D1","level":"warning","message":{"text":"fault.verify_unique_results (cyclomatic 16): fault.verify_unique_results 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/crab-http-server/deploy/cell-issue-fleet/fault.py"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf681ca3016f7db247288f23a6e81aefb6a97c5848fd20d3f9c93807306d430b"}},{"ruleId":"D1","level":"warning","message":{"text":"load.wait_for_placement (cyclomatic 16): load.wait_for_placement 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/crab-http-server/deploy/cell-issue-fleet/load.py"},"region":{"startLine":337}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b31cbddeaf942700ca77a31f02dc0a6e0bd5e7e8319639b0d25143ca4efb0ac"}},{"ruleId":"D1","level":"warning","message":{"text":"load.observe_nodes (cyclomatic 16): load.observe_nodes 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/crab-http-server/deploy/cell-issue-fleet/load.py"},"region":{"startLine":442}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9d6a201906631180e0e1180fad711990f8a32fe5a61f7ac7843f8a76538fd8d"}},{"ruleId":"D1","level":"warning","message":{"text":"qualify.prove_owner_loss (cyclomatic 16): qualify.prove_owner_loss 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/crab-http-server/deploy/cell-issue-fleet/qualify.py"},"region":{"startLine":322}}}],"partialFingerprints":{"codehealthFindingId/v1":"4158b9193261c7f94992a0ccef42a20b5e4e781874d138a27bce876db0308ea9"}},{"ruleId":"D1","level":"warning","message":{"text":"qualify.main (cyclomatic 16): qualify.main 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/crab-http-server/deploy/cell-issue-fleet/qualify.py"},"region":{"startLine":375}}}],"partialFingerprints":{"codehealthFindingId/v1":"c67ae22f6572ed9bf2bdc6792bff222f3bb10c54b69f57c7ee177e7173ea4558"}},{"ruleId":"D1","level":"warning","message":{"text":"content.ChangeWorkspace (cyclomatic 16): content.ChangeWorkspace has cyclomatic complexity 16 (threshold 15). Most of this is not in the body itself: 4 of the 16 points are its own statements and the rest belongs to 6 function items inside it that branch (a function literal at line 710, a function literal at line 715, scrollToChange, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/content.tsx"},"region":{"startLine":684}}}],"partialFingerprints":{"codehealthFindingId/v1":"dead11b02ef948d474cd8d04ec6684490e5f2b9425cfaf032a90a7cdeb399107"}},{"ruleId":"D1","level":"warning","message":{"text":"content.ChangeTree (cyclomatic 16): content.ChangeTree has cyclomatic complexity 16 (threshold 15). Most of this is not in the body itself: 7 of the 16 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 834, 882). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/content.tsx"},"region":{"startLine":800}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7924a7a177a17d122718d8f6642d5604bb9e56bc5de586c3ddcade8a5abba84"}},{"ruleId":"D1","level":"warning","message":{"text":"release-form.EditReleaseForm (cyclomatic 16): release-form.EditReleaseForm has cyclomatic complexity 16 (threshold 15). Of this number, 9 points are the body\u0027s own statements and 7 belong to one function item inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/release-form.tsx"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"7de026b68fb76ebc52010ab64db4b2bed8a03807dc06c97bcf03f3fa19e87c4b"}},{"ruleId":"D1","level":"warning","message":{"text":"settings.ArchiveSettings (cyclomatic 16): settings.ArchiveSettings has cyclomatic complexity 16 (threshold 15). Of this number, 12 points are the body\u0027s own statements and 4 belong to one function item inside it that branches. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/settings.tsx"},"region":{"startLine":776}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cae620ff4fa8f40b68555c09be91e9206fab37923a5153ef381c573663b03b8"}},{"ruleId":"D2","level":"warning","message":{"text":"App.RepositoryPage (cognitive 372): App.RepositoryPage has cognitive complexity 372 (threshold 15). Drivers by points: ternaries 49 (322 pts), boolean chains 39, if/else 10 (11 pts) (nesting depth added 274). Of this number, 40 points are the body\u0027s own statements and 332 belong to 11 function items inside it that branch. To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/App.tsx"},"region":{"startLine":511}}}],"partialFingerprints":{"codehealthFindingId/v1":"55751da20ba77cf5ffec3562ccc991c16a4e6a8bdfd33b1a87c8a3d92cf93b09"}},{"ruleId":"D2","level":"warning","message":{"text":"crab::run_cli_stub (cognitive 289): crab::run_cli_stub has cognitive complexity 289 (threshold 15). Drivers by points: if/else 87 (191 pts), match/switch 33 (82 pts), boolean chains 11, loops 1 (5 pts) (nesting depth added 157). 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":"crab/src/main.rs"},"region":{"startLine":3110}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f28cc0573b3102c0ab644d01aa32853b53baf164f73e5e29b9bd5f88dc77fdd"}},{"ruleId":"D2","level":"warning","message":{"text":"crab::cmd::add::execute_add (cognitive 141): crab::cmd::add::execute_add has cognitive complexity 141 (threshold 15). Drivers by points: if/else 57 (109 pts), loops 9 (19 pts), match/switch 4 (7 pts), boolean chains 6 (nesting depth added 65). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/cmd/add.rs"},"region":{"startLine":932}}}],"partialFingerprints":{"codehealthFindingId/v1":"37185b94e7643437e0f68ea506d20f8ea0e2c4e1b1d2aee02d9ee01b0af5dcc7"}},{"ruleId":"D2","level":"warning","message":{"text":"crab::cmd::lfs::run_lfs_with_cancel (cognitive 139): crab::cmd::lfs::run_lfs_with_cancel has cognitive complexity 139 (threshold 15). Drivers by points: if/else 34 (97 pts), loops 6 (26 pts), match/switch 6 (15 pts), boolean chains 1 (nesting depth added 92). 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":"crab/src/cmd/lfs/mod.rs"},"region":{"startLine":727}}}],"partialFingerprints":{"codehealthFindingId/v1":"0214d27aef285ccf132f82ec7db7e6d7ff35710429ccea77230d9c961b80fcf0"}},{"ruleId":"D2","level":"warning","message":{"text":"PushPipeline::try_apply_add_push_plans (cognitive 123): PushPipeline::try_apply_add_push_plans has cognitive complexity 123 (threshold 15). Drivers by points: if/else 31 (67 pts), loops 17 (34 pts), match/switch 6 (18 pts), boolean chains 4 (nesting depth added 65). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/git/push.rs"},"region":{"startLine":10673}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e7136e3f0e4a9651ffccc415015e48ebc25d276fa22e5fbc41361331c0c5454"}},{"ruleId":"D2","level":"warning","message":{"text":"crab::cmd::run::run_dag (cognitive 112): crab::cmd::run::run_dag has cognitive complexity 112 (threshold 15). Drivers by points: if/else 35 (83 pts), boolean chains 12, loops 7 (10 pts), match/switch 3 (7 pts) (nesting depth added 55). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/cmd/run.rs"},"region":{"startLine":1471}}}],"partialFingerprints":{"codehealthFindingId/v1":"24e170d5f8ca7f6e259ea95031ad780d3b98d46918ff1cc8151fbee35dfc7443"}},{"ruleId":"D2","level":"warning","message":{"text":"crab_workflow::executor::run_inner (cognitive 111): crab_workflow::executor::run_inner has cognitive complexity 111 (threshold 15). Drivers by points: if/else 47 (81 pts), match/switch 4 (11 pts), loops 4 (10 pts), boolean chains 9 (nesting depth added 47). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-workflow/src/executor.rs"},"region":{"startLine":310}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd0042c21b9cc54448cf3b40ae046eedd9f86e7c3f9e6cd9214abc2510b87d1f"}},{"ruleId":"D2","level":"warning","message":{"text":"verify-nfs-smoke-report.self_test (cognitive 104): verify-nfs-smoke-report.self_test has cognitive complexity 104 (threshold 15). Drivers by points: if/else 78 (83 pts), loops 13 (16 pts), boolean chains 5 (nesting depth added 8). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/scripts/verify-nfs-smoke-report.py"},"region":{"startLine":3256}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf3897baeed39f1c00d958d5930792546aca3b975f74f68ba0e2ef4dcac0f5c3"}},{"ruleId":"D2","level":"warning","message":{"text":"crab::lfs::transfer_agent::run_transfer_agent_with_resolver (cognitive 102): crab::lfs::transfer_agent::run_transfer_agent_with_resolver has cognitive complexity 102 (threshold 15). Drivers by points: if/else 23 (67 pts), match/switch 14 (29 pts), loops 4 (5 pts), boolean chains 1 (nesting depth added 60). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/lfs/transfer_agent.rs"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4979463da03073407901ea703ce804e6ea37fc176bbb2e2433a8f671fe8f2b6"}},{"ruleId":"D2","level":"warning","message":{"text":"Index::insert_file_push_plans (cognitive 102): Index::insert_file_push_plans has cognitive complexity 102 (threshold 15). Drivers by points: if/else 22 (61 pts), loops 13 (38 pts), boolean chains 3 (nesting depth added 64). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-staging/src/index.rs"},"region":{"startLine":6335}}}],"partialFingerprints":{"codehealthFindingId/v1":"2223bac2d5d3ddf850633376bc429d61de70122aea504c91d5b8bacd82eed309"}},{"ruleId":"D2","level":"warning","message":{"text":"Store::put_multipart_file_resumable (cognitive 101): Store::put_multipart_file_resumable has cognitive complexity 101 (threshold 15). Drivers by points: if/else 24 (65 pts), match/switch 10 (30 pts), boolean chains 3, loops 2 (3 pts) (nesting depth added 62). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-storage/src/store.rs"},"region":{"startLine":1792}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4d595bad3ecb574ab7682215da6fa75c5e3e566c52243690a62b5a58af4610e"}},{"ruleId":"D2","level":"warning","message":{"text":"PushPipeline::upload_xorb_batch (cognitive 94): PushPipeline::upload_xorb_batch has cognitive complexity 94 (threshold 15). Drivers by points: if/else 31 (60 pts), match/switch 8 (23 pts), boolean chains 7, loops 3 (4 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":"crab/src/git/push.rs"},"region":{"startLine":11835}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c09895cab338d6a53bf68e0584207a0a35a29c407fe92b6c8c1d3b1ea8f55fb"}},{"ruleId":"D2","level":"warning","message":{"text":"crab_cache_server::bin::crab_cache::evidence (cognitive 90): crab_cache_server::bin::crab_cache::evidence has cognitive complexity 90 (threshold 15). Drivers by points: if/else 42 (87 pts), boolean chains 2, match/switch 1 (nesting depth added 45). 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/crab-cache-server/src/bin/crab_cache.rs"},"region":{"startLine":422}}}],"partialFingerprints":{"codehealthFindingId/v1":"b74d470f4d209a2871e1e85a35a005f8427bb15a66a27326a639d9c76f3edd7e"}},{"ruleId":"D2","level":"warning","message":{"text":"nfs-evidence-summary.benchmark_consistency_blockers (cognitive 88): nfs-evidence-summary.benchmark_consistency_blockers has cognitive complexity 88 (threshold 15). Drivers by points: if/else 29 (73 pts), loops 5 (10 pts), boolean chains 5 (nesting depth added 49). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/scripts/nfs-evidence-summary.py"},"region":{"startLine":721}}}],"partialFingerprints":{"codehealthFindingId/v1":"43af04f5e2687ad80c0e8c0a19b9232e7e4ee55d4882654fbc4c48b45882962b"}},{"ruleId":"D2","level":"warning","message":{"text":"crab_read::upload_pack::plan_with_operation (cognitive 81): crab_read::upload_pack::plan_with_operation has cognitive complexity 81 (threshold 15). Drivers by points: if/else 27 (63 pts), loops 6 (11 pts), boolean chains 7 (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/crab-read/src/upload_pack.rs"},"region":{"startLine":640}}}],"partialFingerprints":{"codehealthFindingId/v1":"cac15fc77f5540d6fb98a53d7f773274a15dc45db6457b25035075c043f9154e"}},{"ruleId":"D2","level":"warning","message":{"text":"PushPipeline::verify_xorb_refs_with_committed_receipts (cognitive 80): PushPipeline::verify_xorb_refs_with_committed_receipts has cognitive complexity 80 (threshold 15). Drivers by points: if/else 34 (56 pts), loops 10 (16 pts), boolean chains 5, match/switch 3 (nesting depth added 28). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/git/push.rs"},"region":{"startLine":9892}}}],"partialFingerprints":{"codehealthFindingId/v1":"e451746c3ac845c36a1339fe9687d87f1e42b2c28990f20c4315cbb64896c6e1"}},{"ruleId":"D2","level":"warning","message":{"text":"crab::git::push_native::run_native_push_inner (cognitive 80): crab::git::push_native::run_native_push_inner has cognitive complexity 80 (threshold 15). Drivers by points: if/else 39 (49 pts), match/switch 9 (17 pts), boolean chains 11, loops 1 (3 pts) (nesting depth added 20). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/git/push_native.rs"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"acb1be1c676e68425fb853ed49a7ca8d9837a66316470c8ac01551c26f8d38df"}},{"ruleId":"D2","level":"warning","message":{"text":"PushPipeline::post_success_cleanup (cognitive 78): PushPipeline::post_success_cleanup has cognitive complexity 78 (threshold 15). Drivers by points: if/else 20 (51 pts), loops 6 (18 pts), match/switch 3 (6 pts), boolean chains 3 (nesting depth added 46). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/git/push.rs"},"region":{"startLine":15833}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf3d7d3cf3ddab2d443173df272c1ab30ed3e811630b2d3f9a40d3f910ab4dce"}},{"ruleId":"D2","level":"warning","message":{"text":"crab_workflow::dvc_inventory::verify_output (cognitive 78): crab_workflow::dvc_inventory::verify_output has cognitive complexity 78 (threshold 15). Drivers by points: if/else 25 (44 pts), match/switch 7 (22 pts), boolean chains 6, loops 3 (6 pts) (nesting depth added 37). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-workflow/src/dvc_inventory.rs"},"region":{"startLine":1826}}}],"partialFingerprints":{"codehealthFindingId/v1":"959f299e03707a688b70d48fc224ffe75a490d875510af211e9125ae04ff4358"}},{"ruleId":"D2","level":"warning","message":{"text":"verify-large-repo-rustfs-report.verify_report (cognitive 77): verify-large-repo-rustfs-report.verify_report has cognitive complexity 77 (threshold 15). Drivers by points: if/else 24 (30 pts), boolean chains 27, loops 16 (20 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":"crab/scripts/verify-large-repo-rustfs-report.py"},"region":{"startLine":475}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ac059af7b8f8eef92a64fc98d418e1feb8a3b1b2cfd062f9e19431c9e8f9d53"}},{"ruleId":"D2","level":"warning","message":{"text":"crab::git::remote_helper::dispatch_batch (cognitive 76): crab::git::remote_helper::dispatch_batch has cognitive complexity 76 (threshold 15). Drivers by points: if/else 24 (39 pts), match/switch 8 (28 pts), loops 3 (7 pts), boolean chains 2 (nesting depth added 39). 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":"crab/src/git/remote_helper.rs"},"region":{"startLine":1366}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e16ce6d457a49e67c5b6761d15009b1dff90297dc0a3a2d3bafd70be81d6f2b"}},{"ruleId":"D2","level":"warning","message":{"text":"data-workbench.DataWorkbench (cognitive 75): data-workbench.DataWorkbench has cognitive complexity 75 (threshold 15). Drivers by points: ternaries 21 (37 pts), boolean chains 19, if/else 14 (16 pts), error handling 3 (nesting depth added 18). Of this number, 40 points are the body\u0027s own statements and 35 belong to 12 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":"packages/ui/src/data-workbench.tsx"},"region":{"startLine":301}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e2943455625fc24ddd502c23558c8a0f679a5a72772a77f6fd1881a10390969"}},{"ruleId":"D2","level":"warning","message":{"text":"crab::cmd::diff::run_diff (cognitive 72): crab::cmd::diff::run_diff has cognitive complexity 72 (threshold 15). Drivers by points: if/else 35 (62 pts), match/switch 4 (6 pts), boolean chains 2, loops 2 (nesting depth added 29). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/cmd/diff.rs"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca86ffbb1852cc34eea2d98838954154a372240846ef538589e5629d4e92f2f3"}},{"ruleId":"D2","level":"warning","message":{"text":"tree.RepositoryTree (cognitive 71): tree.RepositoryTree has cognitive complexity 71 (threshold 15). Drivers by points: if/else 24 (30 pts), ternaries 11 (24 pts), boolean chains 10, loops 5 (6 pts), error handling 1 (nesting depth added 20). Of this number, 19 points are the body\u0027s own statements and 52 belong to 16 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/tree.tsx"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"01b4bb70c2e06964b1665f652e440d51810a6a33216c210943bc01f7ef9cab9c"}},{"ruleId":"D2","level":"warning","message":{"text":"crab::git::push_native::phase_discover (cognitive 66): crab::git::push_native::phase_discover has cognitive complexity 66 (threshold 15). Drivers by points: if/else 22 (41 pts), match/switch 6 (14 pts), loops 4 (9 pts), boolean chains 2 (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":"crab/src/git/push_native.rs"},"region":{"startLine":1055}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f2a6dcef3ec86cc2382b695dfb1f8d41879a2f93d887e489dbc9416d1ef786d"}},{"ruleId":"D2","level":"warning","message":{"text":"verify-nfs-smoke-report.check_native_read_benchmark_artifact (cognitive 66): verify-nfs-smoke-report.check_native_read_benchmark_artifact has cognitive complexity 66 (threshold 15). Drivers by points: if/else 33 (39 pts), boolean chains 20, loops 5, error handling 1, ternaries 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/scripts/verify-nfs-smoke-report.py"},"region":{"startLine":957}}}],"partialFingerprints":{"codehealthFindingId/v1":"0dcc92b22394b295df6936a0b7e412784b3ef4da5dbd1a5904c717219b120b41"}},{"ruleId":"D2","level":"warning","message":{"text":"crab_http_server::api::execute (cognitive 64): crab_http_server::api::execute has cognitive complexity 64 (threshold 15). Drivers by points: if/else 19 (39 pts), loops 4 (14 pts), match/switch 5 (8 pts), boolean chains 3 (nesting depth added 33). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-http-server/src/api.rs"},"region":{"startLine":468}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2d91db5a5bd8d5c230d915b33a665eeb6ad56c3bf47f588cbaaa6d909969f9b"}},{"ruleId":"D2","level":"warning","message":{"text":"crab_read::upload_pack::enqueue_children (cognitive 64): crab_read::upload_pack::enqueue_children has cognitive complexity 64 (threshold 15). Drivers by points: if/else 20 (42 pts), loops 5 (16 pts), boolean chains 3, match/switch 2 (3 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/crab-read/src/upload_pack.rs"},"region":{"startLine":1810}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab3fe44b2f9bc7a51aa7676e0af605739d219dcc4b662e86c1f456c894db3cac"}},{"ruleId":"D2","level":"warning","message":{"text":"nfs-evidence-summary.self_test (cognitive 64): nfs-evidence-summary.self_test has cognitive complexity 64 (threshold 15). Drivers by points: if/else 38 (47 pts), loops 7, boolean chains 6, error handling 4 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/scripts/nfs-evidence-summary.py"},"region":{"startLine":1409}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e12965c14880b7f6280f349861453ebcb14aa55952117944caabd01ae4d8ca1"}},{"ruleId":"D2","level":"warning","message":{"text":"nfs-read-path-bench-report.validate_report (cognitive 64): nfs-read-path-bench-report.validate_report has cognitive complexity 64 (threshold 15). Drivers by points: if/else 28 (47 pts), boolean chains 10, loops 3 (7 pts) (nesting depth added 23). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/scripts/nfs-read-path-bench-report.py"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"824405a4706087c00cc6b1a02aae21354fc606e9746beb959220ef2e19b9f8a4"}},{"ruleId":"D2","level":"warning","message":{"text":"verify-nfs-smoke-report.check_mount_doctor_artifact (cognitive 63): verify-nfs-smoke-report.check_mount_doctor_artifact has cognitive complexity 63 (threshold 15). Drivers by points: if/else 26 (42 pts), loops 5 (9 pts), boolean chains 8, ternaries 1 (3 pts), error handling 1 (nesting depth added 22). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/scripts/verify-nfs-smoke-report.py"},"region":{"startLine":407}}}],"partialFingerprints":{"codehealthFindingId/v1":"efc609afe207e260a618d9f41b9a1ae39d2733eefb87883f42bb2f3c84552edc"}},{"ruleId":"D2","level":"warning","message":{"text":"crab::cmd::metadb::rebuild_git_object_locators (cognitive 62): crab::cmd::metadb::rebuild_git_object_locators has cognitive complexity 62 (threshold 15). Drivers by points: if/else 21 (38 pts), match/switch 6 (12 pts), loops 6 (9 pts), boolean chains 3 (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":"crab/src/cmd/metadb.rs"},"region":{"startLine":2688}}}],"partialFingerprints":{"codehealthFindingId/v1":"a92550d4cb2f0c60bcbd1e1469e6dab9af3aad878bc060904acf0d8e8d6a6a42"}},{"ruleId":"D2","level":"warning","message":{"text":"crab::cmd::push::run_push_once (cognitive 62): crab::cmd::push::run_push_once has cognitive complexity 62 (threshold 15). Drivers by points: if/else 24 (41 pts), match/switch 8 (16 pts), boolean chains 5 (nesting depth added 25). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/cmd/push.rs"},"region":{"startLine":533}}}],"partialFingerprints":{"codehealthFindingId/v1":"d06f60b42a5a44fa5b1be656e1ada4bf12d951ce7a66fe305639fe47e2ecded4"}},{"ruleId":"D2","level":"warning","message":{"text":"crab::lfs::migrate::migrate_import_with_store_options (cognitive 61): crab::lfs::migrate::migrate_import_with_store_options has cognitive complexity 61 (threshold 15). Drivers by points: if/else 21 (44 pts), loops 8 (11 pts), boolean chains 4, match/switch 2 (nesting depth added 26). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/lfs/migrate.rs"},"region":{"startLine":1395}}}],"partialFingerprints":{"codehealthFindingId/v1":"d36a00817e6905f8b77c1139f22a083e1331c847cb873d2c209d8a087bdeceea"}},{"ruleId":"D2","level":"warning","message":{"text":"crab_metadata::git_visibility::storage::apply_catalog_journal_edits (cognitive 61): crab_metadata::git_visibility::storage::apply_catalog_journal_edits has cognitive complexity 61 (threshold 15). Drivers by points: if/else 18 (37 pts), match/switch 6 (10 pts), loops 7 (9 pts), boolean chains 5 (nesting depth added 25). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-metadata/src/git_visibility.rs"},"region":{"startLine":3352}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bbd46669a34732d6f011bfd470502ad48b68ae9cec945b73c72fc210c35d71d"}},{"ruleId":"D2","level":"warning","message":{"text":"verify-nfs-smoke-report.check_mount_status_artifact (cognitive 61): verify-nfs-smoke-report.check_mount_status_artifact has cognitive complexity 61 (threshold 15). Drivers by points: if/else 27 (40 pts), boolean chains 13, loops 3 (7 pts), error handling 1 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/scripts/verify-nfs-smoke-report.py"},"region":{"startLine":1263}}}],"partialFingerprints":{"codehealthFindingId/v1":"4808fe3dc4b4ccadb276d6ed5715085570d87b7316c528df5859f0ed7aa26a6e"}},{"ruleId":"D2","level":"warning","message":{"text":"PushPipeline::pack_xorbs_with_output (cognitive 58): PushPipeline::pack_xorbs_with_output has cognitive complexity 58 (threshold 15). Drivers by points: if/else 21 (44 pts), loops 5 (11 pts), boolean chains 3 (nesting depth added 29). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/git/push.rs"},"region":{"startLine":11460}}}],"partialFingerprints":{"codehealthFindingId/v1":"988ddc935f3002da9310ea579464044a0a0bfb339dfa008c35b81cde9fa536bb"}},{"ruleId":"D2","level":"warning","message":{"text":"crab::cmd::replica::render_status (cognitive 58): crab::cmd::replica::render_status has cognitive complexity 58 (threshold 15). Drivers by points: if/else 25 (47 pts), loops 3 (6 pts), boolean chains 4, match/switch 1 (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":"crab/src/cmd/replica.rs"},"region":{"startLine":12987}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fc0c372d75a903a1fb9440e65ff841ebc7d251bb7dba38bff19f73e8374ac1f"}},{"ruleId":"D2","level":"warning","message":{"text":"crab::diff::formatter::format_human (cognitive 57): crab::diff::formatter::format_human has cognitive complexity 57 (threshold 15). Drivers by points: if/else 15 (30 pts), match/switch 5 (16 pts), loops 4 (9 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":"crab/src/diff/formatter.rs"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"956a930f312efa01090a68701333c92d15ef51fc727069e1a764ecf26fb60aaa"}},{"ruleId":"D2","level":"warning","message":{"text":"crab::cmd::gc::bucket::execute_bucket_journal (cognitive 56): crab::cmd::gc::bucket::execute_bucket_journal has cognitive complexity 56 (threshold 15). Drivers by points: if/else 13 (35 pts), match/switch 6 (17 pts), loops 3 (4 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":"crab/src/cmd/gc/bucket.rs"},"region":{"startLine":911}}}],"partialFingerprints":{"codehealthFindingId/v1":"68fa488cad2a1c482c18f6af1521c638767dece91075e0cf3bedd12a5ab31d00"}},{"ruleId":"D2","level":"warning","message":{"text":"crab::cmd::migrate::run_migrate_from_dvc_with_options (cognitive 56): crab::cmd::migrate::run_migrate_from_dvc_with_options has cognitive complexity 56 (threshold 15). Drivers by points: if/else 17 (42 pts), boolean chains 6, match/switch 2 (6 pts), loops 1 (2 pts) (nesting depth added 30). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/cmd/migrate.rs"},"region":{"startLine":922}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd3942902c1417d794f77d32cf1eaf3cdac633a01f35a44aa3967a28f13b34dc"}},{"ruleId":"D2","level":"warning","message":{"text":"crab::cmd::hydrate::run_selected_hydration (cognitive 55): crab::cmd::hydrate::run_selected_hydration has cognitive complexity 55 (threshold 15). Drivers by points: if/else 31 (46 pts), boolean chains 5, loops 1 (2 pts), match/switch 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":"crab/src/cmd/hydrate.rs"},"region":{"startLine":2322}}}],"partialFingerprints":{"codehealthFindingId/v1":"05e7e9ebe89a0f2587cea34a286db88d59392d5e28a1d4d2e8672639376e3361"}},{"ruleId":"D2","level":"warning","message":{"text":"content.FileView (cognitive 55): content.FileView has cognitive complexity 55 (threshold 15). Drivers by points: ternaries 18 (33 pts), boolean chains 15, if/else 5 (7 pts) (nesting depth added 17). Most of this is not in the body itself: 4 of the 55 points are its own statements and the rest belongs to 9 function literals inside it that branch (lines 269, 275, 161, \u2026). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/content.tsx"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"34164dcbec3a4684799806350612090a31b073b967fb0b9bccb8d20d0b779dc8"}},{"ruleId":"D2","level":"warning","message":{"text":"PushPipeline::apply_decisions_with_sha_map (cognitive 54): PushPipeline::apply_decisions_with_sha_map has cognitive complexity 54 (threshold 15). Drivers by points: if/else 29 (40 pts), loops 6 (8 pts), boolean chains 4, match/switch 2 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/git/push.rs"},"region":{"startLine":7457}}}],"partialFingerprints":{"codehealthFindingId/v1":"582905ab617823410a39f6bfb3aeb70ff0a56f8c651df93e94dcee3a0b542429"}},{"ruleId":"D2","level":"warning","message":{"text":"crab_workflow::dvc_inventory::parse_pipeline_outputs (cognitive 54): crab_workflow::dvc_inventory::parse_pipeline_outputs has cognitive complexity 54 (threshold 15). Drivers by points: if/else 13 (37 pts), match/switch 4 (12 pts), loops 2 (3 pts), boolean chains 2 (nesting depth added 33). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-workflow/src/dvc_inventory.rs"},"region":{"startLine":1003}}}],"partialFingerprints":{"codehealthFindingId/v1":"78d294ab80ccdb0e19c1bb2a24df6da1a0c58010830b69e38bac2b09777ddd16"}},{"ruleId":"D2","level":"warning","message":{"text":"crab_workflow::dvc_inventory::apply_lock_output_metadata (cognitive 54): crab_workflow::dvc_inventory::apply_lock_output_metadata has cognitive complexity 54 (threshold 15). Drivers by points: if/else 13 (38 pts), loops 4 (7 pts), match/switch 2 (7 pts), boolean chains 2 (nesting depth added 33). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-workflow/src/dvc_inventory.rs"},"region":{"startLine":1376}}}],"partialFingerprints":{"codehealthFindingId/v1":"65b0a72347ba80d9cc44b8249086799e09c6fa605c8e9c5513b6eba06ce93128"}},{"ruleId":"D2","level":"warning","message":{"text":"action_traces.join (cognitive 54): action_traces.join has cognitive complexity 54 (threshold 15). Drivers by points: if/else 20 (41 pts), boolean chains 8, loops 2, ternaries 1 (2 pts), error handling 1 (nesting depth added 22). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-http-server/deploy/cell-issue-fleet/action_traces.py"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"67c3ca40f9e155c64536478c74549a568578032d82937c5658af7b6bdae3d63a"}},{"ruleId":"D2","level":"warning","message":{"text":"git-architecture-player.GitArchitecturePlayer (cognitive 54): git-architecture-player.GitArchitecturePlayer has cognitive complexity 54 (threshold 15). Drivers by points: ternaries 33 (42 pts), if/else 9, boolean chains 3 (nesting depth added 9). Most of this is not in the body itself: 8 of the 54 points are its own statements and the rest belongs to 7 function items inside it that branch (a function literal at line 524, a function literal at line 488, a function literal at line 400, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/web/components/blog/git-architecture-player.tsx"},"region":{"startLine":301}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b51bd417edd658fd6d8fd416c32f547b0dc9f916b76fdece54aafe1506f9501"}},{"ruleId":"D2","level":"warning","message":{"text":"crab::lfs::migrate::migrate_export_with_options (cognitive 53): crab::lfs::migrate::migrate_export_with_options has cognitive complexity 53 (threshold 15). Drivers by points: if/else 21 (38 pts), loops 7 (10 pts), boolean chains 4, 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":"crab/src/lfs/migrate.rs"},"region":{"startLine":2109}}}],"partialFingerprints":{"codehealthFindingId/v1":"271681c790930bb75a90851444a121981d02eb04e10b6cff3054f51b2914127e"}},{"ruleId":"D2","level":"warning","message":{"text":"ChunkIndexStore::get_batch_with_candidates_inner (cognitive 52): ChunkIndexStore::get_batch_with_candidates_inner has cognitive complexity 52 (threshold 15). Drivers by points: if/else 21 (36 pts), loops 5 (8 pts), match/switch 2 (7 pts), boolean chains 1 (nesting depth added 23). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/metadata/metadb/stores/chunk_index.rs"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b5ff429cfcca437abf2398c4de2357f8773eb990b21bb24655870a3370b8587"}},{"ruleId":"D2","level":"warning","message":{"text":"verify_sdk_capabilities.validate (cognitive 52): verify_sdk_capabilities.validate has cognitive complexity 52 (threshold 15). Drivers by points: if/else 20 (38 pts), loops 5 (7 pts), boolean chains 5, ternaries 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":"crab/scripts/verify_sdk_capabilities.py"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7f42b881163ef171aa8ef1ef37293233b037330f29624c38cb0eacad38704db"}},{"ruleId":"D2","level":"warning","message":{"text":"PushPipeline::classify_chunks (cognitive 51): PushPipeline::classify_chunks has cognitive complexity 51 (threshold 15). Drivers by points: if/else 19 (33 pts), loops 9 (15 pts), match/switch 2 (3 pts) (nesting depth added 21). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/git/push.rs"},"region":{"startLine":11167}}}],"partialFingerprints":{"codehealthFindingId/v1":"51a63e3e91f5fba895fed4a43b769b0810ff5c74faa5ca05ca9d907955e1f90a"}},{"ruleId":"D2","level":"warning","message":{"text":"crab::cmd::dehydrate::query_dirty_files_via_gix (cognitive 51): crab::cmd::dehydrate::query_dirty_files_via_gix has cognitive complexity 51 (threshold 15). Drivers by points: if/else 16 (44 pts), match/switch 2 (5 pts), loops 1 (2 pts) (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":"crab/src/cmd/dehydrate.rs"},"region":{"startLine":657}}}],"partialFingerprints":{"codehealthFindingId/v1":"855a3712ecb7b5337d7a8cf2b1c29716952aa1207b751a6237d365a92c4aa8e3"}},{"ruleId":"D2","level":"warning","message":{"text":"crab::cmd::setup::run_setup_at (cognitive 50): crab::cmd::setup::run_setup_at has cognitive complexity 50 (threshold 15). Drivers by points: if/else 26 (48 pts), boolean chains 1, match/switch 1 (nesting depth added 22). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/cmd/setup.rs"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"628486d171a4ba36f5688f00f25a22f0b39dedd12c8151f5a53c02edacad4894"}},{"ruleId":"D2","level":"warning","message":{"text":"Gateway::start_multipart_maintenance (cognitive 50): Gateway::start_multipart_maintenance has cognitive complexity 50 (threshold 15). Drivers by points: if/else 9 (27 pts), match/switch 4 (14 pts), loops 3 (8 pts), boolean chains 1 (nesting depth added 33). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-s3-gateway/src/gateway.rs"},"region":{"startLine":527}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b939abdc3269d8fed1105a80fd4a3f9ad1ff6b8e11bcf6cd5481e2af54dffb2"}},{"ruleId":"D2","level":"warning","message":{"text":"crab_s3_gateway::multipart::register_part (cognitive 50): crab_s3_gateway::multipart::register_part has cognitive complexity 50 (threshold 15). Drivers by points: if/else 16 (37 pts), match/switch 5 (10 pts), boolean chains 2, loops 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/crab-s3-gateway/src/multipart.rs"},"region":{"startLine":526}}}],"partialFingerprints":{"codehealthFindingId/v1":"9aabb808a195e344d333d91f19c986a29d07f3de01999526ad4100fd83c3c807"}},{"ruleId":"D2","level":"warning","message":{"text":"crab::cmd::clone::run_clone_in (cognitive 49): crab::cmd::clone::run_clone_in has cognitive complexity 49 (threshold 15). Drivers by points: if/else 29 (43 pts), boolean chains 5, match/switch 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":"crab/src/cmd/clone.rs"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8150baa96d8f0c8b6bab12d9c5e541cf2370d2e9e451d56eb7443f4972ab59b"}},{"ruleId":"D2","level":"warning","message":{"text":"crab::cmd::metadb::diagnose_acceleration_health (cognitive 49): crab::cmd::metadb::diagnose_acceleration_health has cognitive complexity 49 (threshold 15). Drivers by points: if/else 18 (23 pts), match/switch 13 (21 pts), boolean chains 5 (nesting depth added 13). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/cmd/metadb.rs"},"region":{"startLine":3606}}}],"partialFingerprints":{"codehealthFindingId/v1":"053fc0174823ab00a60f6126291a5f231f7218d200d146b7e6c74b2fca04b22e"}},{"ruleId":"D2","level":"warning","message":{"text":"crab::git::upload_pack_wire::open_repository_with_visibility_requirement (cognitive 49): crab::git::upload_pack_wire::open_repository_with_visibility_requirement has cognitive complexity 49 (threshold 15). Drivers by points: if/else 15 (38 pts), match/switch 3 (8 pts), boolean chains 2, loops 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":"crab/src/git/upload_pack_wire.rs"},"region":{"startLine":890}}}],"partialFingerprints":{"codehealthFindingId/v1":"731be104e3541339f599ca93ec47c98e1edc3af6548b51b53cc0cf44a3a7f035"}},{"ruleId":"D2","level":"warning","message":{"text":"App.App (cognitive 49): App.App has cognitive complexity 49 (threshold 15). Drivers by points: ternaries 13 (31 pts), boolean chains 12, if/else 5, error handling 1 (nesting depth added 18). Of this number, 24 points are the body\u0027s own statements and 25 belong to 9 function items inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/App.tsx"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bf369492001cc8efa83e3c5661860274f64f1bfc57da959a85627c1b31c4bd2"}},{"ruleId":"D2","level":"warning","message":{"text":"AddRemoteChunkClassifier::lookup_existing_candidates (cognitive 48): AddRemoteChunkClassifier::lookup_existing_candidates has cognitive complexity 48 (threshold 15). Drivers by points: if/else 11 (21 pts), match/switch 6 (17 pts), loops 4 (9 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":"crab/src/git/push.rs"},"region":{"startLine":4316}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c0e5cce11bf537495b11822a61635931d82511f666888745064db7d81925193"}},{"ruleId":"D2","level":"warning","message":{"text":"crab::cmd::dehydrate::run_dehydrate_in (cognitive 48): crab::cmd::dehydrate::run_dehydrate_in has cognitive complexity 48 (threshold 15). Drivers by points: if/else 26 (41 pts), match/switch 3 (4 pts), loops 1 (2 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":"crab/src/cmd/dehydrate.rs"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"556c4b8a2c50055c447ca6d4c84c268f8a3806cf0c5ad015606dd11240fe18cb"}},{"ruleId":"D2","level":"warning","message":{"text":"crab_sdk::client::mutation::native_content::prepare_native_sources (cognitive 48): crab_sdk::client::mutation::native_content::prepare_native_sources has cognitive complexity 48 (threshold 15). Drivers by points: if/else 8 (20 pts), loops 10 (17 pts), boolean chains 7, match/switch 2 (4 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/crab-sdk/src/client/mutation/native_content.rs"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"d608d67499297809c66bb5aa160cda4d568969bdc82e547281e40e97325fa1c9"}},{"ruleId":"D2","level":"warning","message":{"text":"crab_staging::add_push_plan::prepare_one_file_plan_with_existing_refs (cognitive 48): crab_staging::add_push_plan::prepare_one_file_plan_with_existing_refs has cognitive complexity 48 (threshold 15). Drivers by points: if/else 19 (40 pts), loops 5 (6 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/crab-staging/src/add_push_plan.rs"},"region":{"startLine":748}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f52dfe963ca4111711445283b02dee7b585e08d4e87036684e27aea1c03fc1c"}},{"ruleId":"D2","level":"warning","message":{"text":"crab::cmd::exp::emit_diff (cognitive 47): crab::cmd::exp::emit_diff has cognitive complexity 47 (threshold 15). Drivers by points: loops 8 (24 pts), if/else 9 (18 pts), boolean chains 4, match/switch 1 (nesting depth added 25). 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":"crab/src/cmd/exp.rs"},"region":{"startLine":5977}}}],"partialFingerprints":{"codehealthFindingId/v1":"70b8a08f6dfba606770a88d380ce66e46fd6e57f64bab1f174548d89dac9c8cf"}},{"ruleId":"D2","level":"warning","message":{"text":"crab::cmd::run::run_inline_single_stage (cognitive 47): crab::cmd::run::run_inline_single_stage has cognitive complexity 47 (threshold 15). Drivers by points: if/else 20 (32 pts), boolean chains 7, match/switch 3 (6 pts), loops 2 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/cmd/run.rs"},"region":{"startLine":545}}}],"partialFingerprints":{"codehealthFindingId/v1":"edd500355d86d34965ed8da0d30f0b249cd54b752838a1bddb20f36493978710"}},{"ruleId":"D2","level":"warning","message":{"text":"qualify_reader_perf.main (cognitive 47): qualify_reader_perf.main has cognitive complexity 47 (threshold 15). Drivers by points: if/else 18 (35 pts), loops 4 (5 pts), boolean chains 4, ternaries 2 (3 pts) (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-http-server/deploy/cell-issue-fleet/qualify_reader_perf.py"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"763376229848add928d85c7e6ac116cc63537970143f7db9bd81d8ca608313a2"}},{"ruleId":"D2","level":"warning","message":{"text":"crab_git::receive_wire::read_request_with_limits (cognitive 46): crab_git::receive_wire::read_request_with_limits has cognitive complexity 46 (threshold 15). Drivers by points: if/else 13 (32 pts), match/switch 2 (6 pts), boolean chains 4, loops 2 (4 pts) (nesting depth added 25). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-git/src/receive_wire.rs"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"d68abe5fb9d4963ee57596605a438f078a43f9ce7bdd58cdb6050720c921c43a"}},{"ruleId":"D2","level":"warning","message":{"text":"crab_read::selection::referenced_object_gap (cognitive 46): crab_read::selection::referenced_object_gap has cognitive complexity 46 (threshold 15). Drivers by points: if/else 10 (29 pts), loops 4 (10 pts), match/switch 3 (7 pts) (nesting depth added 29). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-read/src/selection.rs"},"region":{"startLine":320}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddaa4392774c88c35d5dab4cf46cd22841e2c2292f28d9409ec312a6c37b2a18"}},{"ruleId":"D2","level":"warning","message":{"text":"crab_remote::publication::acquire_ref_leases (cognitive 46): crab_remote::publication::acquire_ref_leases has cognitive complexity 46 (threshold 15). Drivers by points: if/else 10 (26 pts), match/switch 5 (16 pts), loops 2 (3 pts), boolean chains 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/crab-remote/src/publication.rs"},"region":{"startLine":275}}}],"partialFingerprints":{"codehealthFindingId/v1":"177781ad04034c82a1c5797dd7a0b4cea368ebf3b15a274e5e910c861acafe87"}},{"ruleId":"D2","level":"warning","message":{"text":"check-architecture-gates.check_xet_module_scope (cognitive 46): check-architecture-gates.check_xet_module_scope has cognitive complexity 46 (threshold 15). Drivers by points: if/else 12 (29 pts), loops 6 (9 pts), boolean chains 5, error handling 1 (3 pts) (nesting depth added 22). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/scripts/check-architecture-gates.py"},"region":{"startLine":2918}}}],"partialFingerprints":{"codehealthFindingId/v1":"80b7e1e6732f068818384a97674c9cc7d9d40cac185699bfacef1b76e65705cc"}},{"ruleId":"D2","level":"warning","message":{"text":"nfs-evidence-summary.smoke_summary_consistency_blockers (cognitive 46): nfs-evidence-summary.smoke_summary_consistency_blockers has cognitive complexity 46 (threshold 15). Drivers by points: if/else 17 (35 pts), boolean chains 5, loops 2 (3 pts), ternaries 1 (3 pts) (nesting depth added 21). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/scripts/nfs-evidence-summary.py"},"region":{"startLine":841}}}],"partialFingerprints":{"codehealthFindingId/v1":"da50fa958389f2f791c1b7241f4a13b4df9ac0ebe5c898143b4e0644ba116965"}},{"ruleId":"D2","level":"warning","message":{"text":"pulls.MergePanel (cognitive 46): pulls.MergePanel has cognitive complexity 46 (threshold 15). Drivers by points: ternaries 14 (34 pts), boolean chains 7, if/else 4 (5 pts) (nesting depth added 21). Of this number, 39 points are the body\u0027s own statements and 7 belong to one function literal inside it that branches. To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pulls.tsx"},"region":{"startLine":1761}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bd77a033648197b32381118935d009b436dad138559f475e1da2d3fbc577cfb"}},{"ruleId":"D2","level":"warning","message":{"text":"crab::tier::provider::s3::parse_xml_to_sdk_rules (cognitive 45): crab::tier::provider::s3::parse_xml_to_sdk_rules has cognitive complexity 45 (threshold 15). Drivers by points: if/else 9 (26 pts), match/switch 5 (16 pts), boolean chains 2, loops 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":"crab/src/tier/provider/s3.rs"},"region":{"startLine":677}}}],"partialFingerprints":{"codehealthFindingId/v1":"a198fef7a3f340ff5710a61c3cc588587d3a716e730f3aeefc550023c673ed2d"}},{"ruleId":"D2","level":"warning","message":{"text":"crab_metadata::ref_journal::materialize_ref_journal (cognitive 45): crab_metadata::ref_journal::materialize_ref_journal has cognitive complexity 45 (threshold 15). Drivers by points: if/else 7 (16 pts), loops 9 (16 pts), match/switch 3 (10 pts), boolean chains 3 (nesting depth added 23). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-metadata/src/ref_journal.rs"},"region":{"startLine":625}}}],"partialFingerprints":{"codehealthFindingId/v1":"b79d87143dda6ab97494bc9cbd8bf48c25a752967d049ffbae70d085981e8572"}},{"ruleId":"D2","level":"warning","message":{"text":"crab_workflow::cache::pull_remote_with_artifact_stores (cognitive 45): crab_workflow::cache::pull_remote_with_artifact_stores has cognitive complexity 45 (threshold 15). Drivers by points: if/else 10 (28 pts), match/switch 5 (12 pts), loops 2 (5 pts) (nesting depth added 28). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-workflow/src/cache.rs"},"region":{"startLine":1090}}}],"partialFingerprints":{"codehealthFindingId/v1":"9338c325f94cb23074250f69bb2a682d1db0096ca0dea212bce8bc50988c5cb3"}},{"ruleId":"D2","level":"warning","message":{"text":"crab_workflow::dvc_inventory::inventory_project (cognitive 45): crab_workflow::dvc_inventory::inventory_project has cognitive complexity 45 (threshold 15). Drivers by points: if/else 13 (22 pts), loops 11, boolean chains 6, match/switch 2 (6 pts) (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-workflow/src/dvc_inventory.rs"},"region":{"startLine":536}}}],"partialFingerprints":{"codehealthFindingId/v1":"08f79056c6350f6d2d5b16a8ab53c5a08452abc043b8cfbe67dd0aa54892bcae"}},{"ruleId":"D2","level":"warning","message":{"text":"crab_workflow::executor::verify_and_hash_outs (cognitive 45): crab_workflow::executor::verify_and_hash_outs has cognitive complexity 45 (threshold 15). Drivers by points: if/else 19 (40 pts), boolean chains 2, match/switch 1 (2 pts), loops 1 (nesting depth added 22). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-workflow/src/executor.rs"},"region":{"startLine":1167}}}],"partialFingerprints":{"codehealthFindingId/v1":"899721aae87244288cac468aab55b62df345151d6ff34a5765b5f123696db4c5"}},{"ruleId":"D2","level":"warning","message":{"text":"crab::cmd::add::collect_literal_candidates (cognitive 44): crab::cmd::add::collect_literal_candidates has cognitive complexity 44 (threshold 15). Drivers by points: if/else 14 (28 pts), loops 6 (8 pts), match/switch 2 (5 pts), boolean chains 3 (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/cmd/add.rs"},"region":{"startLine":2670}}}],"partialFingerprints":{"codehealthFindingId/v1":"878e1450a7f5d4c14ae72f8c2de48b98b79c39e49d52e8716a1cdce0da1f6bba"}},{"ruleId":"D2","level":"warning","message":{"text":"crab::cmd::gc::execute_journaled_deletes (cognitive 44): crab::cmd::gc::execute_journaled_deletes has cognitive complexity 44 (threshold 15). Drivers by points: if/else 11 (30 pts), match/switch 4 (9 pts), boolean chains 4, loops 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":"crab/src/cmd/gc/mod.rs"},"region":{"startLine":1248}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0013c4d6588054a855666698816994d5bf79db7bb28ed06fcd434acd6790334"}},{"ruleId":"D2","level":"warning","message":{"text":"crab::git::push::warm_uploaded_xorb_cache (cognitive 44): crab::git::push::warm_uploaded_xorb_cache has cognitive complexity 44 (threshold 15). Drivers by points: if/else 14 (23 pts), match/switch 8 (19 pts), boolean chains 2 (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":"crab/src/git/push.rs"},"region":{"startLine":5262}}}],"partialFingerprints":{"codehealthFindingId/v1":"f18d5b346890e25c2096eb46b0748c54960eac89bd8c9727140af4d09f32012e"}},{"ruleId":"D2","level":"warning","message":{"text":"check-release-archive-contents.check_release_workflow (cognitive 44): check-release-archive-contents.check_release_workflow has cognitive complexity 44 (threshold 15). Drivers by points: if/else 14 (25 pts), loops 11, error handling 7 (8 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":"crab/scripts/release/check-release-archive-contents.py"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"46355397865aa14a98b5dc8bcfe259bbcb0b3db232311451e34e1db4086fa083"}},{"ruleId":"D2","level":"warning","message":{"text":"crab::cmd::migrate::ingest_verified_sources (cognitive 43): crab::cmd::migrate::ingest_verified_sources has cognitive complexity 43 (threshold 15). Drivers by points: if/else 20 (38 pts), boolean chains 4, loops 1 (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/cmd/migrate.rs"},"region":{"startLine":1858}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d515c8aea5f7202b4e23e6dc34ca71c8f06d14b9e8147074274b30b8dafa5fa"}},{"ruleId":"D2","level":"warning","message":{"text":"crab::cmd::replica::doctor_findings (cognitive 43): crab::cmd::replica::doctor_findings has cognitive complexity 43 (threshold 15). Drivers by points: if/else 20 (34 pts), loops 5 (7 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":"crab/src/cmd/replica.rs"},"region":{"startLine":9247}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a9ef6177542d86c3e0e886f90f8622d54c0e3882d1e789c9428df27bd8a8d93"}},{"ruleId":"D2","level":"warning","message":{"text":"Config::validate (cognitive 43): Config::validate has cognitive complexity 43 (threshold 15). Drivers by points: if/else 19 (29 pts), boolean chains 10, loops 2, match/switch 1 (2 pts) (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-s3-gateway/src/config.rs"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"1020b0f5186cbb492f8b05aa3577bba5c8556f542ef30cf996567d92d4f0e769"}},{"ruleId":"D2","level":"warning","message":{"text":"PushPipeline::upload_packs (cognitive 42): PushPipeline::upload_packs has cognitive complexity 42 (threshold 15). Drivers by points: if/else 18 (30 pts), match/switch 3 (7 pts), loops 2 (4 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":"crab/src/git/push.rs"},"region":{"startLine":13183}}}],"partialFingerprints":{"codehealthFindingId/v1":"72c81fbf9a0224ae5c8b495a63b9cd98fc492916751f48e0d8f44cb9fd4b51d6"}},{"ruleId":"D2","level":"warning","message":{"text":"RemoteGitSnapshot::blame (cognitive 42): RemoteGitSnapshot::blame has cognitive complexity 42 (threshold 15). Drivers by points: if/else 11 (30 pts), loops 5 (12 pts) (nesting depth added 26). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-remote-git/src/snapshot.rs"},"region":{"startLine":654}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b12afae6fdb351a6590354d59b0e12f89aa06b754eac5eac1c695b377bf17a4"}},{"ruleId":"D2","level":"warning","message":{"text":"check-architecture-gates.rust_brace_delta (cognitive 42): check-architecture-gates.rust_brace_delta has cognitive complexity 42 (threshold 15). Drivers by points: if/else 15 (36 pts), boolean chains 5, loops 1 (nesting depth added 21). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/scripts/check-architecture-gates.py"},"region":{"startLine":2274}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0251e2ea4eeb3ea3fce40fca75c15ae60468cda0c80c6568d6c6cacdb1857bd"}},{"ruleId":"D2","level":"warning","message":{"text":"crab::cmd::push::execute_push (cognitive 41): crab::cmd::push::execute_push has cognitive complexity 41 (threshold 15). Drivers by points: if/else 10 (34 pts), boolean chains 4, match/switch 1 (2 pts), loops 1 (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":"crab/src/cmd/push.rs"},"region":{"startLine":223}}}],"partialFingerprints":{"codehealthFindingId/v1":"059913d768cbbb69cb4aff099d956a61fb896a034c58770d12b1994e090db146"}},{"ruleId":"D2","level":"warning","message":{"text":"crab::git::upload_pack_wire::serve_admitted (cognitive 41): crab::git::upload_pack_wire::serve_admitted has cognitive complexity 41 (threshold 15). Drivers by points: if/else 8 (24 pts), match/switch 6 (15 pts), boolean chains 1, loops 1 (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":"crab/src/git/upload_pack_wire.rs"},"region":{"startLine":599}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbfa8883ae1901a52fe5dde099528f6bb01edb937c326e17ff63db7abf705c60"}},{"ruleId":"D2","level":"warning","message":{"text":"crab_metadata::split_commit_graph::update_split_commit_graph (cognitive 41): crab_metadata::split_commit_graph::update_split_commit_graph has cognitive complexity 41 (threshold 15). Drivers by points: if/else 14 (23 pts), loops 7 (10 pts), boolean chains 6, match/switch 1 (2 pts) (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-metadata/src/split_commit_graph.rs"},"region":{"startLine":425}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3256c239e45797a6008ec85b92c0a5fd4aecb24a4e48ae7be3ef754c5c530c0"}},{"ruleId":"D2","level":"warning","message":{"text":"crab_staging::stream::stage_file_streaming_inner (cognitive 41): crab_staging::stream::stage_file_streaming_inner has cognitive complexity 41 (threshold 15). Drivers by points: if/else 24 (31 pts), boolean chains 6, match/switch 4 (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/crab-staging/src/stream.rs"},"region":{"startLine":602}}}],"partialFingerprints":{"codehealthFindingId/v1":"1710557addb33fa8064eba72f8a4bbd327d485d5483a9afbae6552bdd14950f4"}},{"ruleId":"D2","level":"warning","message":{"text":"check-architecture-gates.check_workspace_dependency_sources (cognitive 41): check-architecture-gates.check_workspace_dependency_sources has cognitive complexity 41 (threshold 15). Drivers by points: if/else 10 (32 pts), loops 5 (8 pts), boolean chains 1 (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":"crab/scripts/check-architecture-gates.py"},"region":{"startLine":2564}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbbb5f664cb3d1ef5f2fc84f51642a2e7e2eb3501c3d11071dcb27da6333d904"}},{"ruleId":"D2","level":"warning","message":{"text":"nfs-evidence-summary.render_threshold_suggestions (cognitive 41): nfs-evidence-summary.render_threshold_suggestions has cognitive complexity 41 (threshold 15). Drivers by points: if/else 14 (24 pts), boolean chains 10, loops 3 (7 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":"crab/scripts/nfs-evidence-summary.py"},"region":{"startLine":1249}}}],"partialFingerprints":{"codehealthFindingId/v1":"561e6481e75d2b7faece248e4809c3a7d531dec8d4c30dea1b2b318b3dde40fe"}},{"ruleId":"D2","level":"warning","message":{"text":"qualify_reader_retention.main (cognitive 41): qualify_reader_retention.main has cognitive complexity 41 (threshold 15). Drivers by points: if/else 18 (27 pts), boolean chains 7, loops 5 (6 pts), ternaries 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-http-server/deploy/cell-issue-fleet/qualify_reader_retention.py"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"12d92fb4cd5c4ac8e88710ef5acb517228d605b6754f3ae5f34effb9c5435d38"}},{"ruleId":"D2","level":"warning","message":{"text":"crab_http_server::peer::dispatch_forwarded_request (cognitive 40): crab_http_server::peer::dispatch_forwarded_request has cognitive complexity 40 (threshold 15). Drivers by points: if/else 16 (22 pts), match/switch 9 (15 pts), boolean chains 3 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-http-server/src/peer.rs"},"region":{"startLine":968}}}],"partialFingerprints":{"codehealthFindingId/v1":"30ee3e666daedb5a0e29b91573c24d136f22b3d0c5b18b0b5e1a590c3494253f"}},{"ruleId":"D2","level":"warning","message":{"text":"crab_workflow::dvc_inventory::parse_config (cognitive 40): crab_workflow::dvc_inventory::parse_config has cognitive complexity 40 (threshold 15). Drivers by points: if/else 15 (28 pts), boolean chains 6, loops 5 (6 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/crab-workflow/src/dvc_inventory.rs"},"region":{"startLine":1627}}}],"partialFingerprints":{"codehealthFindingId/v1":"e61f4b997937ff0b4a150256d16c982e0c62a43f65d787e2f117ddb5d17ddc48"}},{"ruleId":"D2","level":"warning","message":{"text":"crab_workflow::executor::resolve_dep_hashes_with_wdir_allow_missing_remote_aliases (cognitive 40): crab_workflow::executor::resolve_dep_hashes_with_wdir_allow_missing_remote_aliases has cognitive complexity 40 (threshold 15). Drivers by points: if/else 11 (25 pts), match/switch 4 (14 pts), loops 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/crab-workflow/src/executor.rs"},"region":{"startLine":2432}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d1c96d3f7f5fa2bbbeb64595853955f6eaeebbb81f64c80f491da93ad38c820"}},{"ruleId":"D2","level":"warning","message":{"text":"check-architecture-gates.check_cell_runtime_server_boundary (cognitive 40): check-architecture-gates.check_cell_runtime_server_boundary has cognitive complexity 40 (threshold 15). Drivers by points: if/else 8 (22 pts), loops 7 (14 pts), boolean chains 2, ternaries 1 (2 pts) (nesting depth added 22). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/scripts/check-architecture-gates.py"},"region":{"startLine":2420}}}],"partialFingerprints":{"codehealthFindingId/v1":"5499b2f6b2aa2e60fa4a8329c3c6061da0fa40c6d59c26e180a59edd65fc985a"}},{"ruleId":"D2","level":"warning","message":{"text":"check-architecture-gates.check_cache_server_runtime_scope (cognitive 40): check-architecture-gates.check_cache_server_runtime_scope has cognitive complexity 40 (threshold 15). Drivers by points: if/else 13 (24 pts), loops 5 (8 pts), boolean chains 5, error handling 1 (3 pts) (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/scripts/check-architecture-gates.py"},"region":{"startLine":3823}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ac9a488c3d745287a8af009fb385812cd9732d84f8e7f3ab64548fc7cee3a2f"}},{"ruleId":"D2","level":"warning","message":{"text":"Config::apply_overlay (cognitive 39): Config::apply_overlay has cognitive complexity 39 (threshold 15). Drivers by points: if/else 38, 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":"crab/src/core/config.rs"},"region":{"startLine":2079}}}],"partialFingerprints":{"codehealthFindingId/v1":"dad8bd515ebc9547cf3543ab71d4af27c45df5cd1b9d065affca6caca2ba6e8a"}},{"ruleId":"D2","level":"warning","message":{"text":"PushPipeline::evaluate_decisions_with_sha_map (cognitive 39): PushPipeline::evaluate_decisions_with_sha_map has cognitive complexity 39 (threshold 15). Drivers by points: if/else 8 (20 pts), match/switch 4 (13 pts), boolean chains 5, loops 1 (nesting depth added 21). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/git/push.rs"},"region":{"startLine":7262}}}],"partialFingerprints":{"codehealthFindingId/v1":"097ac39b065cd88586b56fbd1f97b2cab8e6039ddad0901e53a216e353dbf15d"}},{"ruleId":"D2","level":"warning","message":{"text":"ShardSynchronizer::resolve_incremental_delta (cognitive 39): ShardSynchronizer::resolve_incremental_delta has cognitive complexity 39 (threshold 15). Drivers by points: if/else 14 (34 pts), loops 2 (4 pts), boolean chains 1 (nesting depth added 22). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/metadata/shard_sync.rs"},"region":{"startLine":426}}}],"partialFingerprints":{"codehealthFindingId/v1":"83b9b58b03314be2d11b95aa89f723a987059047a240598891aa9f95d72ba438"}},{"ruleId":"D2","level":"warning","message":{"text":"crab::cmd::history_recovery::verify_history (cognitive 39): crab::cmd::history_recovery::verify_history has cognitive complexity 39 (threshold 15). Drivers by points: if/else 14 (24 pts), loops 6 (9 pts), match/switch 2 (4 pts), boolean chains 2 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/cmd/history_recovery.rs"},"region":{"startLine":680}}}],"partialFingerprints":{"codehealthFindingId/v1":"e52e32cc0a4619d99e17ab27fbcff11274ae8b73b2110d4fb0e0d04aeed96ea9"}},{"ruleId":"D2","level":"warning","message":{"text":"crab::import::journal::deserialize_list (cognitive 39): crab::import::journal::deserialize_list has cognitive complexity 39 (threshold 15). Drivers by points: match/switch 4 (15 pts), if/else 6 (12 pts), loops 4 (10 pts), boolean chains 2 (nesting depth added 23). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/import/journal.rs"},"region":{"startLine":709}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc6874e4f82979738894a1fb6292fcfcfaf370442178f5f98d5af744c667acd5"}},{"ruleId":"D2","level":"warning","message":{"text":"crab_auth_server::receive::validate_segmented_index (cognitive 39): crab_auth_server::receive::validate_segmented_index has cognitive complexity 39 (threshold 15). Drivers by points: if/else 10 (24 pts), loops 4 (12 pts), match/switch 1 (2 pts), boolean chains 1 (nesting depth added 23). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-auth-server/src/receive.rs"},"region":{"startLine":2277}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a2c583b50e53cb35fc4dbfbb87c02f4c085319c82a1af12fd85c6b72eae373f"}},{"ruleId":"D2","level":"warning","message":{"text":"crab_cache_server::bin::crab_cache::onboarding (cognitive 39): crab_cache_server::bin::crab_cache::onboarding has cognitive complexity 39 (threshold 15). Drivers by points: if/else 17 (33 pts), match/switch 3 (6 pts) (nesting depth added 19). 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/crab-cache-server/src/bin/crab_cache.rs"},"region":{"startLine":578}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ef2cea6ed9cd8aab0c837b7e26a40a072f48857bd299ebccab38f4f684ef76c"}},{"ruleId":"D2","level":"warning","message":{"text":"crab_git::incoming_pack::quarantine (cognitive 39): crab_git::incoming_pack::quarantine has cognitive complexity 39 (threshold 15). Drivers by points: if/else 12 (24 pts), match/switch 3 (7 pts), loops 4 (6 pts), boolean chains 2 (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-git/src/incoming_pack.rs"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d164c19717c6476c22b8d5e004f555185a60a840a7c54aefeb31ac950b98527"}},{"ruleId":"D2","level":"warning","message":{"text":"crab_read::upload_pack_wire::parse_fetch (cognitive 39): crab_read::upload_pack_wire::parse_fetch has cognitive complexity 39 (threshold 15). Drivers by points: if/else 11 (28 pts), boolean chains 8, match/switch 1 (2 pts), loops 1 (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-read/src/upload_pack_wire.rs"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9c2b80d4557628db6b5cfd39721e26954b975b38d0f8598795ba3a051616790"}},{"ruleId":"D2","level":"warning","message":{"text":"RemoteGitRepository::generate_pack_with_bases_mode (cognitive 39): RemoteGitRepository::generate_pack_with_bases_mode has cognitive complexity 39 (threshold 15). Drivers by points: if/else 8 (19 pts), match/switch 5 (18 pts), loops 1 (2 pts) (nesting depth added 25). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-remote-git/src/pack.rs"},"region":{"startLine":713}}}],"partialFingerprints":{"codehealthFindingId/v1":"45d4b7d5aa91f52bc8839216bbe3f75155ba7e8b8d4fc9a075dcc57148f9cb1a"}},{"ruleId":"D2","level":"warning","message":{"text":"crab_workflow::cache::push_all_local_with_artifact_stores_and_cancel (cognitive 39): crab_workflow::cache::push_all_local_with_artifact_stores_and_cancel has cognitive complexity 39 (threshold 15). Drivers by points: if/else 10 (24 pts), match/switch 4 (12 pts), loops 2 (3 pts) (nesting depth added 23). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-workflow/src/cache.rs"},"region":{"startLine":1357}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a939147ef8d18d1f6e57b8a0cde31f50bf282864ed8d564e14a28534fc2bdf4"}},{"ruleId":"D2","level":"warning","message":{"text":"check-architecture-gates.check_cache_module_scope (cognitive 39): check-architecture-gates.check_cache_module_scope has cognitive complexity 39 (threshold 15). Drivers by points: if/else 10 (24 pts), loops 6 (9 pts), boolean chains 3, error handling 1 (3 pts) (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/scripts/check-architecture-gates.py"},"region":{"startLine":3172}}}],"partialFingerprints":{"codehealthFindingId/v1":"43177d43bf24bb11ad46524fc9e9c73938adaf00f8c1131544cef7fe608cb0ca"}},{"ruleId":"D2","level":"warning","message":{"text":"check-architecture-gates.check_metadata_module_scope (cognitive 39): check-architecture-gates.check_metadata_module_scope has cognitive complexity 39 (threshold 15). Drivers by points: if/else 12 (23 pts), loops 7 (10 pts), boolean chains 3, error handling 1 (3 pts) (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/scripts/check-architecture-gates.py"},"region":{"startLine":4591}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b813cf49adf5158e3ba7473f6e3a0df16e2156b5c883f54b03b7eb52bd85bb9"}},{"ruleId":"D2","level":"warning","message":{"text":"crab::git::remote_helper::read_batch (cognitive 38): crab::git::remote_helper::read_batch has cognitive complexity 38 (threshold 15). Drivers by points: if/else 13 (33 pts), match/switch 2 (4 pts), loops 1 (nesting depth added 22). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/git/remote_helper.rs"},"region":{"startLine":1025}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9aab16aa8f349f4bbf11ffbb25e2cad5950cf985f978691b0692df335a8d577"}},{"ruleId":"D2","level":"warning","message":{"text":"NodePublisher::run_shared (cognitive 38): NodePublisher::run_shared has cognitive complexity 38 (threshold 15). Drivers by points: if/else 6 (23 pts), match/switch 5 (11 pts), loops 2 (3 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/crab-http-server/src/peer.rs"},"region":{"startLine":358}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2e31acc9a12a2a8e61908221a2704868dc8523a24044648be692f939af4466c"}},{"ruleId":"D2","level":"warning","message":{"text":"ReadFlights::run (cognitive 38): ReadFlights::run has cognitive complexity 38 (threshold 15). Drivers by points: if/else 12 (25 pts), match/switch 4 (8 pts), loops 3 (4 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/crab-remote-git/src/runtime/read_flight.rs"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"78c260f2a262b951ae323f64737b9f433a68d8264ea233dc0e9922ca5025b95a"}},{"ruleId":"D2","level":"warning","message":{"text":"crab_s3_gateway::attributes::load_objects (cognitive 38): crab_s3_gateway::attributes::load_objects has cognitive complexity 38 (threshold 15). Drivers by points: if/else 7 (24 pts), loops 4 (11 pts), match/switch 1 (2 pts), boolean chains 1 (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/crab-s3-gateway/src/attributes.rs"},"region":{"startLine":483}}}],"partialFingerprints":{"codehealthFindingId/v1":"8693b06b3a8840572a26fb99e169d2c672ea5fb7629b80de9f4c07c92e4a908c"}},{"ruleId":"D2","level":"warning","message":{"text":"crab_staging::stream::flush_batch (cognitive 38): crab_staging::stream::flush_batch has cognitive complexity 38 (threshold 15). Drivers by points: if/else 11 (23 pts), loops 5 (12 pts), boolean chains 3 (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-staging/src/stream.rs"},"region":{"startLine":1351}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bb028c899b5178948db3b2077303fd156be782c8b9db9cde47e1b296d7e4b17"}},{"ruleId":"D2","level":"warning","message":{"text":"crab_vfs::publish::commit_overlay_with_snapshot (cognitive 38): crab_vfs::publish::commit_overlay_with_snapshot has cognitive complexity 38 (threshold 15). Drivers by points: if/else 24 (37 pts), match/switch 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/crab-vfs/src/publish.rs"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"80c48664ab4adbf09c19320a4b3cd91da77e1228d51fa10373dba530bf6c5867"}},{"ruleId":"D2","level":"warning","message":{"text":"PythonLiteralParser::parse_brace (cognitive 38): PythonLiteralParser::parse_brace has cognitive complexity 38 (threshold 15). Drivers by points: if/else 14 (34 pts), loops 2 (4 pts) (nesting depth added 22). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-workflow/src/params.rs"},"region":{"startLine":554}}}],"partialFingerprints":{"codehealthFindingId/v1":"463593bfa3605dedf121d33471bfe6688ee7cc9b7e582db00baafe65a385cfe2"}},{"ruleId":"D2","level":"warning","message":{"text":"check-architecture-gates.check_auth_store_adapter_scope (cognitive 38): check-architecture-gates.check_auth_store_adapter_scope has cognitive complexity 38 (threshold 15). Drivers by points: if/else 12 (23 pts), loops 7 (10 pts), error handling 1 (3 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":"crab/scripts/check-architecture-gates.py"},"region":{"startLine":3891}}}],"partialFingerprints":{"codehealthFindingId/v1":"b21ad8ecb3def3e42eb2b24d82a15433997a642d7d06b153ac4605eb59d6e33b"}},{"ruleId":"D2","level":"warning","message":{"text":"verify-provider-qualification-report.verify_report (cognitive 38): verify-provider-qualification-report.verify_report has cognitive complexity 38 (threshold 15). Drivers by points: if/else 25 (28 pts), boolean chains 8, loops 2 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/scripts/verify-provider-qualification-report.py"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bfe6d3e2731bdfa9cf88b6bb0c58ce6ccf532a9857aec49ca99ced9c678775b"}},{"ruleId":"D2","level":"warning","message":{"text":"crab::cmd::exp::apply_checkpoint_record_to (cognitive 37): crab::cmd::exp::apply_checkpoint_record_to has cognitive complexity 37 (threshold 15). Drivers by points: if/else 10 (18 pts), loops 5 (9 pts), match/switch 3 (6 pts), boolean chains 4 (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":"crab/src/cmd/exp.rs"},"region":{"startLine":2133}}}],"partialFingerprints":{"codehealthFindingId/v1":"49d88f64a32db3515ed7d9027e675f09a8981adb5f4764c536791082085d272a"}},{"ruleId":"D2","level":"warning","message":{"text":"crab::import::ingest::record_outcome (cognitive 37): crab::import::ingest::record_outcome has cognitive complexity 37 (threshold 15). Drivers by points: if/else 14 (32 pts), match/switch 3 (5 pts) (nesting depth added 20). 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":"crab/src/import/ingest.rs"},"region":{"startLine":905}}}],"partialFingerprints":{"codehealthFindingId/v1":"24edff4431c64ff25053f7f170df57bdaec26795d8d701a5421bb1271ca555f4"}},{"ruleId":"D2","level":"warning","message":{"text":"crab::lfs::migrate::inject_gitattributes_for_import (cognitive 37): crab::lfs::migrate::inject_gitattributes_for_import has cognitive complexity 37 (threshold 15). Drivers by points: if/else 8 (18 pts), match/switch 3 (9 pts), loops 4 (8 pts), boolean chains 2 (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":"crab/src/lfs/migrate.rs"},"region":{"startLine":1963}}}],"partialFingerprints":{"codehealthFindingId/v1":"214d2e242bcb59984dc70c077b08375084f3d10511de802323cbc7f5ab1e44aa"}},{"ruleId":"D2","level":"warning","message":{"text":"PreparedContent::new (cognitive 37): PreparedContent::new has cognitive complexity 37 (threshold 15). Drivers by points: if/else 12 (22 pts), boolean chains 8, loops 4 (5 pts), 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/crab-remote/src/prepare.rs"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"97c6b6b19f712c4384a370285bc0bde9304dc6c66014a943f7044f68788ff5c8"}},{"ruleId":"D2","level":"warning","message":{"text":"XorbBuilder::push_precompressed_with_reserve_and_admission (cognitive 37): XorbBuilder::push_precompressed_with_reserve_and_admission has cognitive complexity 37 (threshold 15). Drivers by points: if/else 17 (24 pts), boolean chains 10, match/switch 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/crab-xet/src/xorb/builder.rs"},"region":{"startLine":536}}}],"partialFingerprints":{"codehealthFindingId/v1":"678c02490da31b3976ef75f23d8d5216cefbf2d8cb19c1aff31da8c59aeb7717"}},{"ruleId":"D2","level":"warning","message":{"text":"nfs-evidence-summary.threshold_evidence_tier (cognitive 37): nfs-evidence-summary.threshold_evidence_tier has cognitive complexity 37 (threshold 15). Drivers by points: if/else 27 (28 pts), boolean chains 5, ternaries 4 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/scripts/nfs-evidence-summary.py"},"region":{"startLine":958}}}],"partialFingerprints":{"codehealthFindingId/v1":"7318196d4316e9b0144a945a8a841b7159f7f47b842109760b851b3a79cc5d78"}},{"ruleId":"D2","level":"warning","message":{"text":"revision-picker.RevisionPicker (cognitive 37): revision-picker.RevisionPicker has cognitive complexity 37 (threshold 15). Drivers by points: ternaries 15 (25 pts), boolean chains 7, if/else 4, error handling 1 (nesting depth added 10). Most of this is not in the body itself: 14 of the 37 points are its own statements and the rest belongs to 7 function items inside it that branch (a function literal at line 172, createBranch, a function literal at line 140, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/revision-picker.tsx"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"cee4f1eb4b34b519aea9ec62863b981f8b015281c9571c120744d6634b49b715"}},{"ruleId":"D2","level":"warning","message":{"text":"PushPipeline::upload_packed_xorb_stream (cognitive 36): PushPipeline::upload_packed_xorb_stream has cognitive complexity 36 (threshold 15). Drivers by points: if/else 10 (24 pts), match/switch 2 (6 pts), boolean chains 5, loops 1 (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/git/push.rs"},"region":{"startLine":12250}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ad9bba233e89cfc4aedb9256dc5a791d797ea43100bb4d04bf90c7f9a15ff93"}},{"ruleId":"D2","level":"warning","message":{"text":"check-architecture-gates.check_cache_store_module_scope (cognitive 36): check-architecture-gates.check_cache_store_module_scope has cognitive complexity 36 (threshold 15). Drivers by points: if/else 12 (22 pts), loops 6 (9 pts), error handling 1 (3 pts), boolean chains 2 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/scripts/check-architecture-gates.py"},"region":{"startLine":3376}}}],"partialFingerprints":{"codehealthFindingId/v1":"009d311c6477d47bc3f24a899b754ebabd045a37518151eecff5a136a9820968"}},{"ruleId":"D2","level":"warning","message":{"text":"check-architecture-gates.check_lfs_module_scope (cognitive 36): check-architecture-gates.check_lfs_module_scope has cognitive complexity 36 (threshold 15). Drivers by points: if/else 12 (23 pts), loops 6 (9 pts), error handling 1 (3 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":"crab/scripts/check-architecture-gates.py"},"region":{"startLine":4465}}}],"partialFingerprints":{"codehealthFindingId/v1":"10c20a657f4cf7d47ccdd100dd6d84fed23e3254f92878a2be568a92e4b7942f"}},{"ruleId":"D2","level":"warning","message":{"text":"verify-nfs-smoke-report.compare_native_read_reports (cognitive 36): verify-nfs-smoke-report.compare_native_read_reports has cognitive complexity 36 (threshold 15). Drivers by points: if/else 12 (19 pts), loops 6 (12 pts), boolean chains 3, ternaries 1 (2 pts) (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/scripts/verify-nfs-smoke-report.py"},"region":{"startLine":2459}}}],"partialFingerprints":{"codehealthFindingId/v1":"946c7010b646558246b6d50527b417458659d53a97c0334a6e2b5acd52b5c73a"}},{"ruleId":"D2","level":"warning","message":{"text":"settings.MemberSettings (cognitive 36): settings.MemberSettings has cognitive complexity 36 (threshold 15). Drivers by points: if/else 12 (13 pts), boolean chains 12, ternaries 6 (9 pts), error handling 2 (nesting depth added 4). Most of this is not in the body itself: 11 of the 36 points are its own statements and the rest belongs to 8 function items inside it that branch (save, load, saveMember, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/settings.tsx"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"3110a92697182869acdef74501f80d42a3c95195ad8198710cda619f2ff88241"}},{"ruleId":"D2","level":"warning","message":{"text":"PushPipeline::build_shard_with_session (cognitive 35): PushPipeline::build_shard_with_session has cognitive complexity 35 (threshold 15). Drivers by points: if/else 12 (23 pts), loops 5, match/switch 2 (4 pts), boolean chains 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":"crab/src/git/push.rs"},"region":{"startLine":12384}}}],"partialFingerprints":{"codehealthFindingId/v1":"120b00bd0bb9e0a952853fe1ba5afafe42e6a29b12b8bfb412799b94bcd76e0f"}},{"ruleId":"D2","level":"warning","message":{"text":"crab::cmd::add::publish_git_index_entries_with_tracking (cognitive 35): crab::cmd::add::publish_git_index_entries_with_tracking has cognitive complexity 35 (threshold 15). Drivers by points: if/else 9 (19 pts), loops 7 (12 pts), boolean chains 2, match/switch 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":"crab/src/cmd/add.rs"},"region":{"startLine":3798}}}],"partialFingerprints":{"codehealthFindingId/v1":"86df39c3523fc4ab32daea8d7cfaffb11cfa71fdc468da70cbc5520b7fdfe1aa"}},{"ruleId":"D2","level":"warning","message":{"text":"crab::cmd::data::collect_git_entries (cognitive 35): crab::cmd::data::collect_git_entries has cognitive complexity 35 (threshold 15). Drivers by points: if/else 19 (28 pts), match/switch 2 (4 pts), loops 2, 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":"crab/src/cmd/data.rs"},"region":{"startLine":1117}}}],"partialFingerprints":{"codehealthFindingId/v1":"192146d5cfb81c6fcac604b56c806f8b3d75bbb86eab78beafef573011d2b2de"}},{"ruleId":"D2","level":"warning","message":{"text":"crab::cmd::exp::render_exp_diff_markdown (cognitive 35): crab::cmd::exp::render_exp_diff_markdown has cognitive complexity 35 (threshold 15). Drivers by points: loops 8 (19 pts), if/else 7 (10 pts), boolean chains 6 (nesting depth added 14). 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":"crab/src/cmd/exp.rs"},"region":{"startLine":6066}}}],"partialFingerprints":{"codehealthFindingId/v1":"10c2d6e7dbf20ec128940e96b18f825e6e0043194dbbd43733fe9ccf5811b41d"}},{"ruleId":"D2","level":"warning","message":{"text":"crab::cmd::gc::bucket::gc_file_indexes_partitioned (cognitive 35): crab::cmd::gc::bucket::gc_file_indexes_partitioned has cognitive complexity 35 (threshold 15). Drivers by points: if/else 7 (24 pts), match/switch 3 (7 pts), loops 2 (3 pts), boolean chains 1 (nesting depth added 22). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/cmd/gc/bucket.rs"},"region":{"startLine":2301}}}],"partialFingerprints":{"codehealthFindingId/v1":"49e0e5ceb8121cbadb7168eb36f1c1c94876eed5ac2a4d7da65795070562bb84"}},{"ruleId":"D2","level":"warning","message":{"text":"crab::cmd::metadb::scan_all_keys (cognitive 35): crab::cmd::metadb::scan_all_keys has cognitive complexity 35 (threshold 15). Drivers by points: if/else 10 (31 pts), match/switch 2 (3 pts), loops 1 (nesting depth added 22). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/cmd/metadb.rs"},"region":{"startLine":1632}}}],"partialFingerprints":{"codehealthFindingId/v1":"618caf71e5a6a3d4159743dbb627a28acf06698dcf4b8757d5ad3447a7960b79"}},{"ruleId":"D2","level":"warning","message":{"text":"crab::hydrate::batch::hydrate_batch (cognitive 35): crab::hydrate::batch::hydrate_batch has cognitive complexity 35 (threshold 15). Drivers by points: if/else 9 (14 pts), loops 7 (14 pts), match/switch 3 (7 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":"crab/src/hydrate/batch.rs"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e5d5f2abbef2926f9f37b4cc6add853f0b6e5871b85c9e1463bf0288e1a02af"}},{"ruleId":"D2","level":"warning","message":{"text":"crab::optimize::xorbs::executor::process_batch (cognitive 35): crab::optimize::xorbs::executor::process_batch has cognitive complexity 35 (threshold 15). Drivers by points: if/else 8 (17 pts), match/switch 5 (10 pts), loops 5 (8 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":"crab/src/optimize/xorbs/executor.rs"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"5846a84843b3ea1175c7737d5c64a346ec778be2e8f882bb6835e24da112e36e"}},{"ruleId":"D2","level":"warning","message":{"text":"crab_git::receive_plan::validate (cognitive 35): crab_git::receive_plan::validate has cognitive complexity 35 (threshold 15). Drivers by points: if/else 14 (24 pts), loops 5 (6 pts), boolean chains 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/crab-git/src/receive_plan.rs"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0b5634ba803c5528a8f402525fc1f9bf8fc780fef9532118dee89b89f006d72"}},{"ruleId":"D2","level":"warning","message":{"text":"GitObjectLocatorWriter::write_locations_inner (cognitive 35): GitObjectLocatorWriter::write_locations_inner has cognitive complexity 35 (threshold 15). Drivers by points: if/else 19 (28 pts), boolean chains 4, match/switch 1 (2 pts), loops 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-metadata/src/git_object_locator/writer.rs"},"region":{"startLine":558}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb97f213b75fddb6e30285f85527162628f060d160e2de8d2dbcbff303b1eacf"}},{"ruleId":"D2","level":"warning","message":{"text":"crab_metadata::path_state::codec::decode_layer (cognitive 35): crab_metadata::path_state::codec::decode_layer has cognitive complexity 35 (threshold 15). Drivers by points: if/else 13 (23 pts), boolean chains 4, loops 3 (4 pts), match/switch 2 (4 pts) (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-metadata/src/path_state/codec.rs"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0a84de33d74341b458ea341f888ee3400be6d2c87ea1ec740e9c9cc95425866"}},{"ruleId":"D2","level":"warning","message":{"text":"crab_s3_gateway::multipart::reconcile_capacity_slot (cognitive 35): crab_s3_gateway::multipart::reconcile_capacity_slot has cognitive complexity 35 (threshold 15). Drivers by points: match/switch 8 (17 pts), if/else 7 (16 pts), boolean chains 2 (nesting depth added 18). 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/crab-s3-gateway/src/multipart.rs"},"region":{"startLine":1425}}}],"partialFingerprints":{"codehealthFindingId/v1":"c598fb37f3d414b1a2ed751ef066e730ef773efac29658e4168e2242d57fc223"}},{"ruleId":"D2","level":"warning","message":{"text":"crab_workflow::artifact::visit_reachable_remote_artifact_objects (cognitive 35): crab_workflow::artifact::visit_reachable_remote_artifact_objects has cognitive complexity 35 (threshold 15). Drivers by points: if/else 12 (24 pts), loops 6 (9 pts), match/switch 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/crab-workflow/src/artifact.rs"},"region":{"startLine":769}}}],"partialFingerprints":{"codehealthFindingId/v1":"5838e252bac3a4a266084e9076a4b9b0325d80eaf07c35ffdf84370115692e85"}},{"ruleId":"D2","level":"warning","message":{"text":"check-architecture-gates.check_coordination_module_scope (cognitive 35): check-architecture-gates.check_coordination_module_scope has cognitive complexity 35 (threshold 15). Drivers by points: if/else 10 (21 pts), loops 6 (9 pts), error handling 1 (3 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":"crab/scripts/check-architecture-gates.py"},"region":{"startLine":3113}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a1ad29f0cfae6b8451e8b9d9070c0e314f9171f8a0fe848f74bb41fc3a58ef2"}},{"ruleId":"D2","level":"warning","message":{"text":"crab::cmd::init::run_init_inner (cognitive 34): crab::cmd::init::run_init_inner has cognitive complexity 34 (threshold 15). Drivers by points: if/else 20 (27 pts), boolean chains 4, loops 2, match/switch 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/cmd/init.rs"},"region":{"startLine":233}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e4940cef67ed661a4e63ad5c7acbc36169ad0e9bbf9e53e882e80f4cf822783"}},{"ruleId":"D2","level":"warning","message":{"text":"crab::cmd::metadb::generation_owner_sample (cognitive 34): crab::cmd::metadb::generation_owner_sample has cognitive complexity 34 (threshold 15). Drivers by points: if/else 21 (24 pts), boolean chains 5, 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":"crab/src/cmd/metadb.rs"},"region":{"startLine":661}}}],"partialFingerprints":{"codehealthFindingId/v1":"e95b2d848610f0d714439d9e0465adc9326bd59ef819bacfb29390113c6ec370"}},{"ruleId":"D2","level":"warning","message":{"text":"crab::cmd::repack::run_repack_locked (cognitive 34): crab::cmd::repack::run_repack_locked has cognitive complexity 34 (threshold 15). Drivers by points: if/else 23 (25 pts), match/switch 4 (5 pts), boolean chains 2, loops 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":"crab/src/cmd/repack.rs"},"region":{"startLine":286}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd20f43f1f1dbb93590982f6bf7da68e7c555e9207f62826aa41ad2d638dd3f5"}},{"ruleId":"D2","level":"warning","message":{"text":"crab::cmd::run::run_validate (cognitive 34): crab::cmd::run::run_validate has cognitive complexity 34 (threshold 15). Drivers by points: if/else 12 (24 pts), match/switch 4 (7 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":"crab/src/cmd/run.rs"},"region":{"startLine":1114}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e9710e7b4f6d72afb5a0fc07d95e2285cdd3f04913d7719bc055954a086c9ab"}},{"ruleId":"D2","level":"warning","message":{"text":"PeerHttpRoundTrip::owner (cognitive 34): PeerHttpRoundTrip::owner has cognitive complexity 34 (threshold 15). Drivers by points: if/else 14 (28 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/crab-http-server/src/peer/client.rs"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"322ec64edb63a8c2d5e80abc33de4accebd48a867fecdfdbc08f9b9328ab0655"}},{"ruleId":"D2","level":"warning","message":{"text":"crab_http_server::cells::release_migrations_at (cognitive 34): crab_http_server::cells::release_migrations_at has cognitive complexity 34 (threshold 15). Drivers by points: if/else 9 (27 pts), loops 3 (6 pts), boolean chains 1 (nesting depth added 21). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-http-server/src/cells.rs"},"region":{"startLine":1077}}}],"partialFingerprints":{"codehealthFindingId/v1":"05f928e7e28534feb7319fa2905a8b6f27b3c3d002c7dac1c9a1f0fb3f70b903"}},{"ruleId":"D2","level":"warning","message":{"text":"GitObjectLocatorWriter::sweep_stale_pack_membership (cognitive 34): GitObjectLocatorWriter::sweep_stale_pack_membership has cognitive complexity 34 (threshold 15). Drivers by points: if/else 10 (29 pts), loops 2 (3 pts), boolean chains 2 (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/crab-metadata/src/git_object_locator/writer.rs"},"region":{"startLine":1126}}}],"partialFingerprints":{"codehealthFindingId/v1":"016c05eec4c6a7ffdc3cc840852138f2f70a3c9f554d99509462591e8cfbb646"}},{"ruleId":"D2","level":"warning","message":{"text":"GitVisibilityCatalogV1::validate_binding (cognitive 34): GitVisibilityCatalogV1::validate_binding has cognitive complexity 34 (threshold 15). Drivers by points: if/else 12 (22 pts), boolean chains 6, loops 4 (6 pts) (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-metadata/src/git_visibility.rs"},"region":{"startLine":1956}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5c765c9252bb3b23da6bc45506c1c1b7f9fc2ebb401eaac375c9df9bbf67767"}},{"ruleId":"D2","level":"warning","message":{"text":"crab_remote_git::visibility::rebuild_with_operation (cognitive 34): crab_remote_git::visibility::rebuild_with_operation has cognitive complexity 34 (threshold 15). Drivers by points: if/else 7 (25 pts), loops 4 (9 pts) (nesting depth added 23). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-remote-git/src/visibility.rs"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"493ca8c64a7a042936daeb324749cdd4c2e53184b1677ffe7c94a67a4e90de09"}},{"ruleId":"D2","level":"warning","message":{"text":"crab_sdk::local::push::content::prepare (cognitive 34): crab_sdk::local::push::content::prepare has cognitive complexity 34 (threshold 15). Drivers by points: if/else 11 (24 pts), loops 4 (8 pts), boolean chains 2 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-sdk/src/local/push/content.rs"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"ccf30bc9f23996e3e2657c12f605f7ae048a0e74be2e75a5b1bdd42326a6a20c"}},{"ruleId":"D2","level":"warning","message":{"text":"crab_workflow::executor::resolve_dep_hashes_with_wdir_remote_aliases (cognitive 34): crab_workflow::executor::resolve_dep_hashes_with_wdir_remote_aliases has cognitive complexity 34 (threshold 15). Drivers by points: if/else 11 (27 pts), match/switch 2 (6 pts), loops 1 (nesting depth added 20). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-workflow/src/executor.rs"},"region":{"startLine":2291}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd726e73dd7339e058b15a01f29b880b6806ced6e57d02ce6dae8457ae20eff3"}},{"ruleId":"D2","level":"warning","message":{"text":"crab_workflow::status::format_text (cognitive 34): crab_workflow::status::format_text has cognitive complexity 34 (threshold 15). Drivers by points: if/else 9 (24 pts), loops 3 (9 pts), boolean chains 1 (nesting depth added 21). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-workflow/src/status.rs"},"region":{"startLine":268}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7835faff984d3a36e2e7d11c9385b76507e0ac250323aef5545ed6b9a808891"}},{"ruleId":"D2","level":"warning","message":{"text":"git-import.GitImport (cognitive 34): git-import.GitImport has cognitive complexity 34 (threshold 15). Drivers by points: boolean chains 18, ternaries 5 (8 pts), if/else 7, error handling 1 (nesting depth added 3). Most of this is not in the body itself: 14 of the 34 points are its own statements and the rest belongs to 6 function items inside it that branch (submit, a function literal at line 49, a function literal at line 40, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/git-import.tsx"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"af6f73b4f60ccde772d8520051bd5c4565b43d33e767fae8f16a5e7783b719b1"}},{"ruleId":"D2","level":"warning","message":{"text":"pulls.PullDetail (cognitive 34): pulls.PullDetail has cognitive complexity 34 (threshold 15). Drivers by points: ternaries 18 (27 pts), boolean chains 7 (nesting depth added 9). Most of this is not in the body itself: 6 of the 34 points are its own statements and the rest belongs to one function literal inside it that branches (line 651). The decisions are inside the literal, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literal\u0027s work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pulls.tsx"},"region":{"startLine":614}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e51a828360bdd846c0edfed036d7f924a4e4cab46feaefb6e6a97c4eb0a1422"}},{"ruleId":"D2","level":"warning","message":{"text":"AddRemoteCandidateCache::persist_results_inner (cognitive 33): AddRemoteCandidateCache::persist_results_inner has cognitive complexity 33 (threshold 15). Drivers by points: if/else 11 (17 pts), loops 10 (16 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":"crab/src/cache/add_remote_candidates.rs"},"region":{"startLine":408}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f283d2d13f0928c26b2d5e28ae885280d0de97b21bfc235eb5d3db1a9167b68"}},{"ruleId":"D2","level":"warning","message":{"text":"crab::cmd::lfs::fetch::run_lfs_fetch (cognitive 33): crab::cmd::lfs::fetch::run_lfs_fetch has cognitive complexity 33 (threshold 15). Drivers by points: if/else 20 (27 pts), boolean chains 3, loops 1 (3 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/cmd/lfs/fetch.rs"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"6171270b021cfadc2218c2f88c4c0a4dc2634485bcb015b84afccc5e09eb8648"}},{"ruleId":"D2","level":"warning","message":{"text":"crab::git::clean::glob_match_impl (cognitive 33): crab::git::clean::glob_match_impl has cognitive complexity 33 (threshold 15). Drivers by points: if/else 9 (21 pts), boolean chains 6, loops 3 (6 pts) (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/git/clean.rs"},"region":{"startLine":2618}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a7aa43f42daa698c889611aee32dc2899b059a36240b250f8e3a3d22f0cc9b4"}},{"ruleId":"D2","level":"warning","message":{"text":"crab::lfs::migrate::remove_gitattributes_for_export (cognitive 33): crab::lfs::migrate::remove_gitattributes_for_export has cognitive complexity 33 (threshold 15). Drivers by points: if/else 6 (15 pts), match/switch 3 (9 pts), loops 4 (8 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":"crab/src/lfs/migrate.rs"},"region":{"startLine":2344}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5860130ba9add5a60941d7a00ef1defa9cb7098e95d6f30b8e96e9818e8679a"}},{"ruleId":"D2","level":"warning","message":{"text":"crab_cache_server::cache_store::reconcile_unindexed_files (cognitive 33): crab_cache_server::cache_store::reconcile_unindexed_files has cognitive complexity 33 (threshold 15). Drivers by points: if/else 4 (20 pts), loops 3 (8 pts), match/switch 2 (4 pts), boolean chains 1 (nesting depth added 23). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-cache-server/src/cache_store.rs"},"region":{"startLine":1675}}}],"partialFingerprints":{"codehealthFindingId/v1":"070acc81501db07a10cb25f776f44dd6a1cafb0e7900eaf25b0d05c090e72116"}},{"ruleId":"D2","level":"warning","message":{"text":"PushAdmissionTicket::try_admit (cognitive 33): PushAdmissionTicket::try_admit has cognitive complexity 33 (threshold 15). Drivers by points: if/else 8 (18 pts), match/switch 6 (13 pts), loops 2 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-coordination/src/push_admission.rs"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"30a592feab1eb24e8bcd44d6f9990b16207ba6446647a27a292d51c5a5531770"}},{"ruleId":"D2","level":"warning","message":{"text":"Validator::changed_path_hashes (cognitive 33): Validator::changed_path_hashes has cognitive complexity 33 (threshold 15). Drivers by points: if/else 10 (25 pts), loops 4 (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/crab-git/src/receive_plan/changed_paths.rs"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"4421de859cb92c2684d99555f18cc5e240d94b6fbea832cd475b560a46949876"}},{"ruleId":"D2","level":"warning","message":{"text":"Index::claim_prepared_chunks (cognitive 33): Index::claim_prepared_chunks has cognitive complexity 33 (threshold 15). Drivers by points: if/else 10 (20 pts), loops 8 (11 pts), boolean chains 2 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-staging/src/index.rs"},"region":{"startLine":2283}}}],"partialFingerprints":{"codehealthFindingId/v1":"a282fc87bfc59ef68b2febd547d0f6f337c0309a74d031ba0f68b02b2bf4ad95"}},{"ruleId":"D2","level":"warning","message":{"text":"Index::locate_batch (cognitive 33): Index::locate_batch has cognitive complexity 33 (threshold 15). Drivers by points: if/else 6 (18 pts), loops 7 (15 pts) (nesting depth added 20). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-staging/src/index.rs"},"region":{"startLine":7718}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f504af146317cda0c7d1c8970f2d4a12554667b4f0bd52a5e50da07056c2f62"}},{"ruleId":"D2","level":"warning","message":{"text":"check-architecture-gates.check_workspace_xet_dependency_sources (cognitive 33): check-architecture-gates.check_workspace_xet_dependency_sources has cognitive complexity 33 (threshold 15). Drivers by points: if/else 9 (25 pts), loops 5 (8 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":"crab/scripts/check-architecture-gates.py"},"region":{"startLine":2633}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac412c04c628742decb09d64827f402a42dd20408a68370319bd5deddfd25a21"}},{"ruleId":"D2","level":"warning","message":{"text":"check-architecture-gates.check_storage_module_scope (cognitive 33): check-architecture-gates.check_storage_module_scope has cognitive complexity 33 (threshold 15). Drivers by points: if/else 10 (20 pts), loops 6 (9 pts), error handling 1 (3 pts), boolean chains 1 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/scripts/check-architecture-gates.py"},"region":{"startLine":4527}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2bc410b1783b7546e78f2baba814031a8f9b6ee6865df44350545013c3429b3"}},{"ruleId":"D2","level":"warning","message":{"text":"load.observe_nodes (cognitive 33): load.observe_nodes has cognitive complexity 33 (threshold 15). Drivers by points: if/else 8 (23 pts), loops 3 (5 pts), error handling 1 (3 pts), boolean chains 2 (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-http-server/deploy/cell-issue-fleet/load.py"},"region":{"startLine":442}}}],"partialFingerprints":{"codehealthFindingId/v1":"b186d38ed0cf9f608ad15609bdfa9b241d53b1fb187897f5d752c34418546ae9"}},{"ruleId":"D2","level":"warning","message":{"text":"data-query.statementBoundary (cognitive 33): data-query.statementBoundary has cognitive complexity 33 (threshold 15). Drivers by points: if/else 14 (27 pts), boolean chains 5, loops 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":"packages/ui/src/data-query.ts"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"2492a61b4f4dc681619e62d2511ff0396d28adaf66cbf5f32d5b04815fac731b"}},{"ruleId":"D2","level":"warning","message":{"text":"code-symbols.worker.containingName (cognitive 33): code-symbols.worker.containingName has cognitive complexity 33 (threshold 15). Drivers by points: if/else 9 (27 pts), ternaries 1 (5 pts), loops 1 (nesting depth added 22). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/code-symbols.worker.ts"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"f20a1a82f36d23e4ced78944c643daca76425e424dff8325d88e7b8c45381101"}},{"ruleId":"D2","level":"warning","message":{"text":"crab::cmd::params::default_targets (cognitive 32): crab::cmd::params::default_targets has cognitive complexity 32 (threshold 15). Drivers by points: if/else 8 (14 pts), loops 4 (14 pts), match/switch 1 (4 pts) (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/cmd/params.rs"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"5360e4aa0fa5bbe6b74b3ee863fde571a67f080729d1b12fa24d3cbe6bb1e672"}},{"ruleId":"D2","level":"warning","message":{"text":"crab::cmd::run::execute_one_stage_from_yaml_with_jsonl (cognitive 32): crab::cmd::run::execute_one_stage_from_yaml_with_jsonl has cognitive complexity 32 (threshold 15). Drivers by points: if/else 10 (21 pts), match/switch 3 (6 pts), boolean chains 3, loops 2 (nesting depth added 14). 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":"crab/src/cmd/run.rs"},"region":{"startLine":2771}}}],"partialFingerprints":{"codehealthFindingId/v1":"b33049f0009d273e43c7630a7fb8fb0e517e82f2eb020d9f729113e66d5be125"}},{"ruleId":"D2","level":"warning","message":{"text":"crab::cmd::ship::run_ship (cognitive 32): crab::cmd::ship::run_ship has cognitive complexity 32 (threshold 15). Drivers by points: if/else 20 (29 pts), match/switch 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":"crab/src/cmd/ship.rs"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"daeaae0e49f5d6aea650f3f84cc354d2b735ee1db87d6de36142bd3c843d897e"}},{"ruleId":"D2","level":"warning","message":{"text":"crab::optimize::xorbs::reconcile::load_mapping (cognitive 32): crab::optimize::xorbs::reconcile::load_mapping has cognitive complexity 32 (threshold 15). Drivers by points: if/else 8 (23 pts), loops 4 (8 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":"crab/src/optimize/xorbs/reconcile.rs"},"region":{"startLine":254}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd83d9d10f0b8eb8a22de54a819becd2e8f9cb3cb23e8df6d728f802f0c4e954"}},{"ruleId":"D2","level":"warning","message":{"text":"RepositoryCellScheduler::scan_cycle (cognitive 32): RepositoryCellScheduler::scan_cycle has cognitive complexity 32 (threshold 15). Drivers by points: if/else 13 (22 pts), boolean chains 5, loops 3 (5 pts) (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-http-server/src/cells/scheduler.rs"},"region":{"startLine":307}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c5665669c2c90345d1035d547b12d2832236b829dda03a00f7090067f582079"}},{"ruleId":"D2","level":"warning","message":{"text":"RemoteGitRepository::open_inner (cognitive 32): RemoteGitRepository::open_inner has cognitive complexity 32 (threshold 15). Drivers by points: match/switch 6 (16 pts), if/else 7 (13 pts), boolean chains 2, loops 1 (nesting depth added 16). 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/crab-remote-git/src/repository.rs"},"region":{"startLine":495}}}],"partialFingerprints":{"codehealthFindingId/v1":"13b81495d1f89abc3986e8f15467df8af3d41a9c903a8ee5f79d38b73a7bd70a"}},{"ruleId":"D2","level":"warning","message":{"text":"Verifier.verify_route_contract_behavior (cognitive 32): Verifier.verify_route_contract_behavior has cognitive complexity 32 (threshold 15). Drivers by points: boolean chains 16, ternaries 6 (7 pts), loops 5, if/else 2 (4 pts) (nesting depth added 3). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/scripts/verify-cache-service-smoke-report.py"},"region":{"startLine":819}}}],"partialFingerprints":{"codehealthFindingId/v1":"b68a3359d6f560d432cb4b9ed7acf49fbac72c0e7fcd8b93460b43ed9a62f9c1"}},{"ruleId":"D2","level":"warning","message":{"text":"verify-nfs-smoke-report.verify_directory (cognitive 32): verify-nfs-smoke-report.verify_directory has cognitive complexity 32 (threshold 15). Drivers by points: if/else 14 (22 pts), loops 4 (10 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":"crab/scripts/verify-nfs-smoke-report.py"},"region":{"startLine":2170}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc42cfa3ca28f193ed286d20a42454e8cb2b4fb68d740405baf23be41415dd6f"}},{"ruleId":"D2","level":"warning","message":{"text":"qualify_read_replicas.prove_reader_targets (cognitive 32): qualify_read_replicas.prove_reader_targets has cognitive complexity 32 (threshold 15). Drivers by points: if/else 9 (21 pts), boolean chains 5, error handling 1 (3 pts), loops 2 (3 pts) (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-http-server/deploy/cell-issue-fleet/qualify_read_replicas.py"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fff8395b1423c4e0824f66f8c7431f06526be4317eeaba39227a2f259569b3f"}},{"ruleId":"D2","level":"warning","message":{"text":"PushPipeline::verify_remote_file_index_candidates (cognitive 31): PushPipeline::verify_remote_file_index_candidates has cognitive complexity 31 (threshold 15). Drivers by points: match/switch 5 (19 pts), loops 4 (8 pts), if/else 3 (4 pts) (nesting depth added 19). 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":"crab/src/git/push.rs"},"region":{"startLine":14645}}}],"partialFingerprints":{"codehealthFindingId/v1":"95da6eb2d9973fef78a70b7c25f55396efd15ca939c84bff6592c82877fb10ac"}},{"ruleId":"D2","level":"warning","message":{"text":"crab::cmd::hydrate::sibling_cow_candidates (cognitive 31): crab::cmd::hydrate::sibling_cow_candidates has cognitive complexity 31 (threshold 15). Drivers by points: if/else 8 (21 pts), match/switch 4 (5 pts), loops 2 (3 pts), boolean chains 2 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/cmd/hydrate.rs"},"region":{"startLine":1739}}}],"partialFingerprints":{"codehealthFindingId/v1":"e549c45c25261f0a21726cb20218d7309990c641470b2604488603598b438bcd"}},{"ruleId":"D2","level":"warning","message":{"text":"crab::cmd::mirror::reconcile::apply_plan (cognitive 31): crab::cmd::mirror::reconcile::apply_plan has cognitive complexity 31 (threshold 15). Drivers by points: if/else 14 (16 pts), boolean chains 8, match/switch 2 (5 pts), loops 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":"crab/src/cmd/mirror/reconcile.rs"},"region":{"startLine":621}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a44374c1832ff66031a8fc42842476491de141dcd8d0dac82206d08632ffb25"}},{"ruleId":"D2","level":"warning","message":{"text":"crab::cmd::run::resolve_dep_hashes_local (cognitive 31): crab::cmd::run::resolve_dep_hashes_local has cognitive complexity 31 (threshold 15). Drivers by points: if/else 10 (24 pts), match/switch 2 (6 pts), loops 1 (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/cmd/run.rs"},"region":{"startLine":3429}}}],"partialFingerprints":{"codehealthFindingId/v1":"c802b968b89a630b77e4a730251dc8b174a10caa781320841aee9f69d222a71e"}},{"ruleId":"D2","level":"warning","message":{"text":"crab::git::filter_process::smudge_content (cognitive 31): crab::git::filter_process::smudge_content has cognitive complexity 31 (threshold 15). Drivers by points: if/else 9 (21 pts), match/switch 3 (8 pts), boolean chains 2 (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":"crab/src/git/filter_process.rs"},"region":{"startLine":1410}}}],"partialFingerprints":{"codehealthFindingId/v1":"d74dc68fe175bebb93702585a727ab742b79c61bb5882b6b0db3d7f80e712f28"}},{"ruleId":"D2","level":"warning","message":{"text":"crab_http_server::receive::publish::publish_attempt (cognitive 31): crab_http_server::receive::publish::publish_attempt has cognitive complexity 31 (threshold 15). Drivers by points: if/else 16 (19 pts), boolean chains 6, match/switch 4 (6 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/crab-http-server/src/receive/publish.rs"},"region":{"startLine":434}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ae357b91fb6de673df0291ad0c755c847c411ffe825c0145385cd9c666e8c49"}},{"ruleId":"D2","level":"warning","message":{"text":"crab_read::upload_pack::visibility_object_selection (cognitive 31): crab_read::upload_pack::visibility_object_selection has cognitive complexity 31 (threshold 15). Drivers by points: if/else 11 (22 pts), loops 3 (6 pts), boolean chains 3 (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/crab-read/src/upload_pack.rs"},"region":{"startLine":955}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f928fd5fe1b9ccb057c0f3c2174b35cd9042aeebd1cb1d6c9c9afb5be60bcce"}},{"ruleId":"D2","level":"warning","message":{"text":"FuseResolver::readdir_page (cognitive 31): FuseResolver::readdir_page has cognitive complexity 31 (threshold 15). Drivers by points: if/else 7 (18 pts), loops 4 (7 pts), boolean chains 4, match/switch 1 (2 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/crab-vfs/src/resolver.rs"},"region":{"startLine":355}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8c1f89bd8b76b11e6731dd3f39a021ac94ef8abb49a2d052b62a8e9536b1fb7"}},{"ruleId":"D2","level":"warning","message":{"text":"check-architecture-gates.check_workspace_gitoxide_dependency_sources (cognitive 31): check-architecture-gates.check_workspace_gitoxide_dependency_sources has cognitive complexity 31 (threshold 15). Drivers by points: if/else 7 (23 pts), loops 5 (8 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. This shape REPEATS in the file: 2 other methods here (check-architecture-gates.check_workspace_provider_sdk_dependency_sources, check-architecture-gates.check_workspace_third_party_dependency_sources) 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":"crab/scripts/check-architecture-gates.py"},"region":{"startLine":2693}}}],"partialFingerprints":{"codehealthFindingId/v1":"2510d25ee286515b8d4ae606677ca6e1020196df7cc4d5c5f6dffd3e532fef92"}},{"ruleId":"D2","level":"warning","message":{"text":"check-architecture-gates.check_workspace_provider_sdk_dependency_sources (cognitive 31): check-architecture-gates.check_workspace_provider_sdk_dependency_sources has cognitive complexity 31 (threshold 15). Drivers by points: if/else 7 (23 pts), loops 5 (8 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. This shape REPEATS in the file: 2 other methods here (check-architecture-gates.check_workspace_gitoxide_dependency_sources, check-architecture-gates.check_workspace_third_party_dependency_sources) 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":"crab/scripts/check-architecture-gates.py"},"region":{"startLine":2743}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc2ffb9a950933bcaf74438ad77ba9d5faf37fa8eb7a372c813cf11d11c6a123"}},{"ruleId":"D2","level":"warning","message":{"text":"check-architecture-gates.check_workspace_third_party_dependency_sources (cognitive 31): check-architecture-gates.check_workspace_third_party_dependency_sources has cognitive complexity 31 (threshold 15). Drivers by points: if/else 7 (23 pts), loops 5 (8 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. This shape REPEATS in the file: 2 other methods here (check-architecture-gates.check_workspace_gitoxide_dependency_sources, check-architecture-gates.check_workspace_provider_sdk_dependency_sources) 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":"crab/scripts/check-architecture-gates.py"},"region":{"startLine":2793}}}],"partialFingerprints":{"codehealthFindingId/v1":"dec2958ebede46f806cf5d3628fa8f841fadce8e8c6c7cc6ddcecd87f2c6c0a5"}},{"ruleId":"D2","level":"warning","message":{"text":"check-architecture-gates.check_read_module_scope (cognitive 31): check-architecture-gates.check_read_module_scope has cognitive complexity 31 (threshold 15). Drivers by points: if/else 10 (19 pts), loops 5 (8 pts), error handling 1 (3 pts), boolean chains 1 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/scripts/check-architecture-gates.py"},"region":{"startLine":4122}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae7b2ab8b19ae861981396ae111ec0b842f220420a5726ab578632c012118dbe"}},{"ruleId":"D2","level":"warning","message":{"text":"check-architecture-gates.check_diff_module_scope (cognitive 31): check-architecture-gates.check_diff_module_scope has cognitive complexity 31 (threshold 15). Drivers by points: if/else 8 (16 pts), loops 6 (9 pts), boolean chains 3, error handling 1 (3 pts) (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/scripts/check-architecture-gates.py"},"region":{"startLine":4405}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c05c4083d9a48efe347e1f25ab19f9412208e9569af1730f8ca2640e977e986"}},{"ruleId":"D2","level":"warning","message":{"text":"check-architecture-gates.check_deleted_workflow_reexport_adapters_removed (cognitive 31): check-architecture-gates.check_deleted_workflow_reexport_adapters_removed has cognitive complexity 31 (threshold 15). Drivers by points: if/else 9 (20 pts), loops 6 (10 pts), boolean chains 1 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/scripts/check-architecture-gates.py"},"region":{"startLine":4758}}}],"partialFingerprints":{"codehealthFindingId/v1":"600835361ee55c64e8dcd7f4c6baccf59f394a1e348cad24266ca9cecec16995"}},{"ruleId":"D2","level":"warning","message":{"text":"fault.verify_unique_results (cognitive 31): fault.verify_unique_results has cognitive complexity 31 (threshold 15). Drivers by points: if/else 7 (20 pts), loops 4 (7 pts), boolean chains 4 (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/crab-http-server/deploy/cell-issue-fleet/fault.py"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"c26be7275471ff353cd99682862e431d6c42bf0c33b9e674634181d3265c10dd"}},{"ruleId":"D2","level":"warning","message":{"text":"StoreChecker::verify_pointer_data (cognitive 30): StoreChecker::verify_pointer_data has cognitive complexity 30 (threshold 15). Drivers by points: if/else 8 (15 pts), match/switch 7 (13 pts), loops 2 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/cmd/fsck_store.rs"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"37c0c0eac2e0ec65c254049b7d3c433d9559d796e91a50f45d45a1215aa439f5"}},{"ruleId":"D2","level":"warning","message":{"text":"crab::cmd::add::walk_candidates (cognitive 30): crab::cmd::add::walk_candidates has cognitive complexity 30 (threshold 15). Drivers by points: if/else 11 (27 pts), boolean chains 1, loops 1, match/switch 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":"crab/src/cmd/add.rs"},"region":{"startLine":3138}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe9a7ca7fd3686e7c03815ebfef371251c816a12aab9def12209f97982cb2b97"}},{"ruleId":"D2","level":"warning","message":{"text":"crab::cmd::exp::emit_show (cognitive 30): crab::cmd::exp::emit_show has cognitive complexity 30 (threshold 15). Drivers by points: if/else 9 (15 pts), loops 4 (12 pts), match/switch 2 (3 pts) (nesting depth added 15). 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":"crab/src/cmd/exp.rs"},"region":{"startLine":5882}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3b047fd01f5e5d35622d14460ebfea1af748ba6d400b28769ccd05439a6f443"}},{"ruleId":"D2","level":"warning","message":{"text":"crab::git::push::repair_git_visibility_if_current_with_options (cognitive 30): crab::git::push::repair_git_visibility_if_current_with_options has cognitive complexity 30 (threshold 15). Drivers by points: if/else 23 (25 pts), boolean chains 4, match/switch 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/git/push.rs"},"region":{"startLine":6139}}}],"partialFingerprints":{"codehealthFindingId/v1":"b31dc01187eaf991bee1f057fb41dd4ad4185a29bcde3517a43298548a64194b"}},{"ruleId":"D2","level":"warning","message":{"text":"crab::git::push::collect_remote_commit_graph_inputs (cognitive 30): crab::git::push::collect_remote_commit_graph_inputs has cognitive complexity 30 (threshold 15). Drivers by points: if/else 7 (19 pts), loops 5 (9 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":"crab/src/git/push.rs"},"region":{"startLine":17571}}}],"partialFingerprints":{"codehealthFindingId/v1":"63b31baa1c6d381a3496e0b275afbda9d3249341439a492fe3af1778554fe17f"}},{"ruleId":"D2","level":"warning","message":{"text":"crab::git::remote_helper::run_remote_helper_loop (cognitive 30): crab::git::remote_helper::run_remote_helper_loop has cognitive complexity 30 (threshold 15). Drivers by points: if/else 10 (23 pts), match/switch 2 (4 pts), boolean chains 2, 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":"crab/src/git/remote_helper.rs"},"region":{"startLine":803}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e897962b27133e153105b7a6156fbed19631b52c0f1c701759a0191e1d51097"}},{"ruleId":"D2","level":"warning","message":{"text":"crab_auth_server::receive::commit_service_metadata (cognitive 30): crab_auth_server::receive::commit_service_metadata has cognitive complexity 30 (threshold 15). Drivers by points: if/else 7 (17 pts), loops 5 (13 pts) (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-auth-server/src/receive.rs"},"region":{"startLine":1187}}}],"partialFingerprints":{"codehealthFindingId/v1":"94cdbf958b2b17b030f61ed40ab100f5c6c37e8accfd5afa3a5df517275d0b2b"}},{"ruleId":"D2","level":"warning","message":{"text":"crab_git::delta::walk_instructions (cognitive 30): crab_git::delta::walk_instructions has cognitive complexity 30 (threshold 15). Drivers by points: if/else 10 (23 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/crab-git/src/delta.rs"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"938b2c3ca186ed616af6b8899c8da168d358322940cdc1a5b995228ee896e7d9"}},{"ruleId":"D2","level":"warning","message":{"text":"Authentication::revoke_identity (cognitive 30): Authentication::revoke_identity has cognitive complexity 30 (threshold 15). Drivers by points: if/else 6 (14 pts), match/switch 3 (7 pts), loops 3 (5 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/crab-http-server/src/auth.rs"},"region":{"startLine":729}}}],"partialFingerprints":{"codehealthFindingId/v1":"49f7ce0e5b99ed1e88a2687853d248ee9990a76322a85ff24f3ac7419577c78d"}},{"ruleId":"D2","level":"warning","message":{"text":"crab_http_server::cells::scheduler::recover_node_session (cognitive 30): crab_http_server::cells::scheduler::recover_node_session has cognitive complexity 30 (threshold 15). Drivers by points: if/else 13 (21 pts), match/switch 9 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-http-server/src/cells/scheduler.rs"},"region":{"startLine":1190}}}],"partialFingerprints":{"codehealthFindingId/v1":"19ad41e874bdd372a7e13790dd25d0fcaa4527fcbd0df577e0f36f092bf26811"}},{"ruleId":"D2","level":"warning","message":{"text":"crab_metadata::path_state::validate_descriptor (cognitive 30): crab_metadata::path_state::validate_descriptor has cognitive complexity 30 (threshold 15). Drivers by points: if/else 6 (17 pts), loops 4 (8 pts), boolean chains 5 (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/crab-metadata/src/path_state.rs"},"region":{"startLine":710}}}],"partialFingerprints":{"codehealthFindingId/v1":"421f1b03aab4350e3125eb9ffe871fab0d75a241aefa2272a5e1e2d82e18e357"}},{"ruleId":"D2","level":"warning","message":{"text":"crab_read::integrity::verify_origin_recipe (cognitive 30): crab_read::integrity::verify_origin_recipe has cognitive complexity 30 (threshold 15). Drivers by points: if/else 13 (21 pts), match/switch 2 (5 pts), loops 2 (3 pts), 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/crab-read/src/integrity.rs"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb1302e72bde81f432d5b5abfedad7972b5091d924d00d9297ffef872a3c04e3"}},{"ruleId":"D2","level":"warning","message":{"text":"crab_workflow::executor::verify_and_hash_plots (cognitive 30): crab_workflow::executor::verify_and_hash_plots has cognitive complexity 30 (threshold 15). Drivers by points: if/else 15 (26 pts), match/switch 1 (3 pts), loops 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/crab-workflow/src/executor.rs"},"region":{"startLine":1717}}}],"partialFingerprints":{"codehealthFindingId/v1":"d33709e43a6b1f8aef7fc003b28f3200ea0de50167c15ee0c12c3c531ead500b"}},{"ruleId":"D2","level":"warning","message":{"text":"crab_write::generation::collect_commit_graph_inputs (cognitive 30): crab_write::generation::collect_commit_graph_inputs has cognitive complexity 30 (threshold 15). Drivers by points: if/else 7 (19 pts), loops 5 (9 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/crab-write/src/generation.rs"},"region":{"startLine":814}}}],"partialFingerprints":{"codehealthFindingId/v1":"faf49b758b6e188d9d297b80fa152fbb5521abc52cda4af056005cb81f118970"}},{"ruleId":"D2","level":"warning","message":{"text":"check-architecture-gates.check_auth_module_scope (cognitive 30): check-architecture-gates.check_auth_module_scope has cognitive complexity 30 (threshold 15). Drivers by points: if/else 8 (16 pts), loops 6 (9 pts), error handling 1 (3 pts), boolean chains 2 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/scripts/check-architecture-gates.py"},"region":{"startLine":3609}}}],"partialFingerprints":{"codehealthFindingId/v1":"ecd0028bfdcd5a652192722fd88d8d6b8137f463d74fd705a6147e0d3a3f8835"}},{"ruleId":"D2","level":"warning","message":{"text":"check-architecture-gates.check_workflow_module_scope (cognitive 30): check-architecture-gates.check_workflow_module_scope has cognitive complexity 30 (threshold 15). Drivers by points: if/else 8 (17 pts), loops 6 (9 pts), error handling 1 (3 pts), boolean chains 1 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/scripts/check-architecture-gates.py"},"region":{"startLine":4708}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c452a40a129d2ed86b964a5537f5ee62ba1f3d45e9e24766b145816a5181334"}},{"ruleId":"D2","level":"warning","message":{"text":"nfs-evidence-summary.render_benchmark_markdown (cognitive 30): nfs-evidence-summary.render_benchmark_markdown has cognitive complexity 30 (threshold 15). Drivers by points: if/else 8 (18 pts), loops 4 (8 pts), ternaries 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":"crab/scripts/nfs-evidence-summary.py"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f257d1d2298ab21f507b4416bafd0ad9e71fa0b93f1eb8803eaf985487d329a"}},{"ruleId":"D2","level":"warning","message":{"text":"verify-nfs-smoke-report.main (cognitive 30): verify-nfs-smoke-report.main has cognitive complexity 30 (threshold 15). Drivers by points: loops 5 (13 pts), if/else 9 (12 pts), boolean chains 4, error handling 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/scripts/verify-nfs-smoke-report.py"},"region":{"startLine":4865}}}],"partialFingerprints":{"codehealthFindingId/v1":"083edb27189a63d10d5f5cf6229f0706df290aa99102ce1a02f37dee7e988b1c"}},{"ruleId":"D2","level":"warning","message":{"text":"verify_git_capability_matrix.validate_report (cognitive 30): verify_git_capability_matrix.validate_report has cognitive complexity 30 (threshold 15). Drivers by points: if/else 14 (18 pts), boolean chains 9, loops 2 (3 pts) (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/scripts/verify_git_capability_matrix.py"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"b235329ec4822991144b43a49eccba2240837a2bc49f0f2ccf1d481717b16805"}},{"ruleId":"D2","level":"warning","message":{"text":"PushPipeline::commit_ref_journal (cognitive 29): PushPipeline::commit_ref_journal has cognitive complexity 29 (threshold 15). Drivers by points: if/else 15 (20 pts), boolean chains 4, match/switch 3, 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":"crab/src/git/push.rs"},"region":{"startLine":8758}}}],"partialFingerprints":{"codehealthFindingId/v1":"d464501848bded6fb2992cd5351cad9a43b292241b22cd97177a592c2ee6e48f"}},{"ruleId":"D2","level":"warning","message":{"text":"S3VersionedList::walk_versions (cognitive 29): S3VersionedList::walk_versions has cognitive complexity 29 (threshold 15). Drivers by points: if/else 9 (20 pts), boolean chains 4, loops 2 (3 pts), match/switch 1 (2 pts) (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/import/versions.rs"},"region":{"startLine":754}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a056b308953d004c428e0deebc7a373febbb8551f2428bedd09379520c832ff"}},{"ruleId":"D2","level":"warning","message":{"text":"crab::cmd::data::fetch_descriptor_source (cognitive 29): crab::cmd::data::fetch_descriptor_source has cognitive complexity 29 (threshold 15). Drivers by points: if/else 10 (25 pts), match/switch 2 (3 pts), boolean chains 1 (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":"crab/src/cmd/data.rs"},"region":{"startLine":726}}}],"partialFingerprints":{"codehealthFindingId/v1":"b83fdafe6891c52c7c83dad255d6eb16a1f601f21be3f046e6687a3c672710cf"}},{"ruleId":"D2","level":"warning","message":{"text":"crab::cmd::exp::emit_remove (cognitive 29): crab::cmd::exp::emit_remove has cognitive complexity 29 (threshold 15). Drivers by points: if/else 7 (15 pts), loops 3 (12 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":"crab/src/cmd/exp.rs"},"region":{"startLine":6601}}}],"partialFingerprints":{"codehealthFindingId/v1":"c06438bc9d3bbcf52dde79f9179619c721b0e5cd60caba9a578519171bc89430"}},{"ruleId":"D2","level":"warning","message":{"text":"crab::cmd::metadb::rebuild_with_guard (cognitive 29): crab::cmd::metadb::rebuild_with_guard has cognitive complexity 29 (threshold 15). Drivers by points: if/else 21 (25 pts), match/switch 1 (2 pts), boolean chains 1, loops 1 (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, 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":"crab/src/cmd/metadb.rs"},"region":{"startLine":2471}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfd459e0f2c1c5b95175382ef6b6087fef01e041f0519cc0eda3243ac90c91b2"}},{"ruleId":"D2","level":"warning","message":{"text":"crab::cmd::tier::run_tier (cognitive 29): crab::cmd::tier::run_tier has cognitive complexity 29 (threshold 15). Drivers by points: if/else 9 (20 pts), match/switch 3 (7 pts), boolean chains 2 (nesting depth added 15). 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":"crab/src/cmd/tier/mod.rs"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"38bb86ce2c77b03f894d03802b1e244d1fb8aeb1b546faef5371067dc35c3b14"}},{"ruleId":"D2","level":"warning","message":{"text":"crab::git::filter_process::dispatch_command (cognitive 29): crab::git::filter_process::dispatch_command has cognitive complexity 29 (threshold 15). Drivers by points: if/else 9 (16 pts), match/switch 5 (10 pts), boolean chains 3 (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":"crab/src/git/filter_process.rs"},"region":{"startLine":1081}}}],"partialFingerprints":{"codehealthFindingId/v1":"315e2b42070eef0a87e7b1f7e15f73dc34027c1c747aec37d00d5ba93899e040"}},{"ruleId":"D2","level":"warning","message":{"text":"crab_auth_server::view::objects::commit_view_metadb (cognitive 29): crab_auth_server::view::objects::commit_view_metadb has cognitive complexity 29 (threshold 15). Drivers by points: if/else 7 (20 pts), loops 4 (8 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/crab-auth-server/src/view/objects.rs"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"de7acf3347d98bbbcff3ecdd91fe3affd1797c9faf7a8f7bc6b4677aaf68c26d"}},{"ruleId":"D2","level":"warning","message":{"text":"UpdatePull::execute (cognitive 29): UpdatePull::execute has cognitive complexity 29 (threshold 15). Drivers by points: if/else 16 (18 pts), boolean chains 9, loops 1 (2 pts) (nesting depth added 3). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-http-server/src/cells/repository/pulls.rs"},"region":{"startLine":444}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5fea28da863f564833599f3aacf33453170bf642f7177906f884924b01078ce"}},{"ruleId":"D2","level":"warning","message":{"text":"crab_http_server::api::read (cognitive 29): crab_http_server::api::read has cognitive complexity 29 (threshold 15). Drivers by points: if/else 14 (17 pts), match/switch 5 (9 pts), boolean chains 3 (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/crab-http-server/src/api.rs"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a09ee48a9575aacf2dceb90c07d1078bb4ce1675600b363fa90bfe6ef8d0200"}},{"ruleId":"D2","level":"warning","message":{"text":"crab_http_server::git::upload_pack (cognitive 29): crab_http_server::git::upload_pack has cognitive complexity 29 (threshold 15). Drivers by points: if/else 9 (15 pts), loops 3 (10 pts), boolean chains 2, match/switch 2 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-http-server/src/git.rs"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"7252f338c41111ef36305336a80bbc3e3e63bf79a040b3cc5babf9ee0db35b22"}},{"ruleId":"D2","level":"warning","message":{"text":"Index::register_preparation_payloads (cognitive 29): Index::register_preparation_payloads has cognitive complexity 29 (threshold 15). Drivers by points: loops 7 (15 pts), if/else 6 (13 pts), boolean chains 1 (nesting depth added 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/crab-staging/src/index.rs"},"region":{"startLine":2539}}}],"partialFingerprints":{"codehealthFindingId/v1":"d84380cdd4ddaa722d9f0f1433c402be7ce70ca63568ddbc0745fd807791392a"}},{"ruleId":"D2","level":"warning","message":{"text":"Graph::build (cognitive 29): Graph::build has cognitive complexity 29 (threshold 15). Drivers by points: if/else 5 (15 pts), loops 6 (8 pts), match/switch 2 (6 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/crab-workflow/src/graph.rs"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"466e8e4ff4f184e8c6b6a4fe61201a4edb197a52494d8fb27efc9438f068df07"}},{"ruleId":"D2","level":"warning","message":{"text":"crab_workflow::artifact::validate_remote_envelope (cognitive 29): crab_workflow::artifact::validate_remote_envelope has cognitive complexity 29 (threshold 15). Drivers by points: if/else 9 (21 pts), match/switch 2 (4 pts), boolean chains 2, loops 1 (2 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/crab-workflow/src/artifact.rs"},"region":{"startLine":1307}}}],"partialFingerprints":{"codehealthFindingId/v1":"258385274aa40f74714580b359ac734d1310ca15510b4d299e0c747d09703372"}},{"ruleId":"D2","level":"warning","message":{"text":"crab_workflow::params_runtime::render_pr_comment (cognitive 29): crab_workflow::params_runtime::render_pr_comment has cognitive complexity 29 (threshold 15). Drivers by points: if/else 11 (19 pts), loops 3 (6 pts), 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/crab-workflow/src/params_runtime.rs"},"region":{"startLine":708}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc7d5bcf84782884191a1ddae289b8e8ddcd3f48eac8ce265f231d34f4c764ef"}},{"ruleId":"D2","level":"warning","message":{"text":"crab_workflow::stage_runtime::hash_object_store_location (cognitive 29): crab_workflow::stage_runtime::hash_object_store_location has cognitive complexity 29 (threshold 15). Drivers by points: if/else 16 (23 pts), boolean chains 4, loops 1, match/switch 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-workflow/src/stage_runtime.rs"},"region":{"startLine":528}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0c046a75d88e34c81b1eebbb22c083e03f4f8957720bd4c6fbdddc2a24bcc69"}},{"ruleId":"D2","level":"warning","message":{"text":"verify-nfs-smoke-report.compare_directory (cognitive 29): verify-nfs-smoke-report.compare_directory has cognitive complexity 29 (threshold 15). Drivers by points: if/else 12 (20 pts), loops 4 (9 pts) (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/scripts/verify-nfs-smoke-report.py"},"region":{"startLine":2641}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1fc835208b3460598f8ac7d0bb5179e6aaafa2858fe831935e6aa8186ffcf8b"}},{"ruleId":"D2","level":"warning","message":{"text":"verify_git_capability_matrix.validate (cognitive 29): verify_git_capability_matrix.validate has cognitive complexity 29 (threshold 15). Drivers by points: if/else 14 (22 pts), loops 3 (4 pts), boolean chains 3 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/scripts/verify_git_capability_matrix.py"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"a56c0c0d783679b06c81db69a06729aaf4bf8c8d8f02db1abf961b3e8203aa3b"}},{"ruleId":"D2","level":"warning","message":{"text":"PushPipeline::upload_shard_and_file_index (cognitive 28): PushPipeline::upload_shard_and_file_index has cognitive complexity 28 (threshold 15). Drivers by points: if/else 17 (23 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":"crab/src/git/push.rs"},"region":{"startLine":12753}}}],"partialFingerprints":{"codehealthFindingId/v1":"b14709189f9c829c089d06223804563ea93960c691b416f91503a0e1cbbb2284"}},{"ruleId":"D2","level":"warning","message":{"text":"GcsVersionedList::walk_versions (cognitive 28): GcsVersionedList::walk_versions has cognitive complexity 28 (threshold 15). Drivers by points: if/else 5 (17 pts), loops 3 (6 pts), boolean chains 3, match/switch 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":"crab/src/import/versions.rs"},"region":{"startLine":1095}}}],"partialFingerprints":{"codehealthFindingId/v1":"ccc371ba9d667848de663d33608cc919f5088e6201956828543ef778d5349cd2"}},{"ruleId":"D2","level":"warning","message":{"text":"crab::cmd::add::filter_clean_indexed_candidates (cognitive 28): crab::cmd::add::filter_clean_indexed_candidates has cognitive complexity 28 (threshold 15). Drivers by points: if/else 13 (16 pts), match/switch 6 (9 pts), loops 2, boolean chains 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":"crab/src/cmd/add.rs"},"region":{"startLine":2886}}}],"partialFingerprints":{"codehealthFindingId/v1":"af9694bba73cf9a8c9da03a44ab736f6dc1aec26fffc02917b4fad0ad23198ad"}},{"ruleId":"D2","level":"warning","message":{"text":"crab::cmd::optimize::xorbs::run_apply (cognitive 28): crab::cmd::optimize::xorbs::run_apply has cognitive complexity 28 (threshold 15). Drivers by points: if/else 14 (19 pts), loops 2 (5 pts), boolean chains 2, match/switch 2 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/cmd/optimize/xorbs.rs"},"region":{"startLine":440}}}],"partialFingerprints":{"codehealthFindingId/v1":"6cd3dcad993f18b384d51770adb5052d45bbfdd2c548cd70d5fe95dddb98777c"}},{"ruleId":"D2","level":"warning","message":{"text":"crab::cmd::recover::recovery_inventory_items (cognitive 28): crab::cmd::recover::recovery_inventory_items has cognitive complexity 28 (threshold 15). Drivers by points: loops 19 (28 pts) (nesting depth added 9). 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":"crab/src/cmd/recover.rs"},"region":{"startLine":672}}}],"partialFingerprints":{"codehealthFindingId/v1":"341c80545b21c7e52cea954159106d13ef7b10444703ced99edb5086f2aef2d6"}},{"ruleId":"D2","level":"warning","message":{"text":"crab_auth::managed::openapi::compare_schema (cognitive 28): crab_auth::managed::openapi::compare_schema has cognitive complexity 28 (threshold 15). Drivers by points: if/else 9 (15 pts), loops 6 (9 pts), boolean chains 2, match/switch 1 (2 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-auth/src/managed/openapi.rs"},"region":{"startLine":673}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c0ecc5959e0624ded73b9df85c9009b5bb478b34f3b2be10012a4f869031c93"}},{"ruleId":"D2","level":"warning","message":{"text":"crab_diff::pointer_pairs::pair_files (cognitive 28): crab_diff::pointer_pairs::pair_files has cognitive complexity 28 (threshold 15). Drivers by points: if/else 6 (22 pts), match/switch 2 (5 pts), loops 1 (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-diff/src/pointer_pairs.rs"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"61ca311223cbf0c921249ef92b8fc2ca505dde61526cdf31b6a4dd92028fd818"}},{"ruleId":"D2","level":"warning","message":{"text":"UpdateIssue::execute (cognitive 28): UpdateIssue::execute has cognitive complexity 28 (threshold 15). Drivers by points: if/else 20 (23 pts), boolean chains 5 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-http-server/src/cells/repository/operations.rs"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"211991e63471886f194f0b071b8c217e5607fb04e56a7993fb2a3e2b9108b028"}},{"ruleId":"D2","level":"warning","message":{"text":"TransitionPullMerge::execute (cognitive 28): TransitionPullMerge::execute has cognitive complexity 28 (threshold 15). Drivers by points: if/else 13 (25 pts), boolean chains 2, 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/crab-http-server/src/cells/repository/pulls.rs"},"region":{"startLine":1177}}}],"partialFingerprints":{"codehealthFindingId/v1":"578ff231cdb70b9edc8d18928d2bbb5d55713ebfbcbe66a95eb1c4ca96d6454f"}},{"ruleId":"D2","level":"warning","message":{"text":"RepositoryCellScheduler::schedule_node_recovery (cognitive 28): RepositoryCellScheduler::schedule_node_recovery has cognitive complexity 28 (threshold 15). Drivers by points: if/else 11 (19 pts), loops 2 (4 pts), match/switch 1 (3 pts), boolean chains 2 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-http-server/src/cells/scheduler.rs"},"region":{"startLine":870}}}],"partialFingerprints":{"codehealthFindingId/v1":"de25e45341cb763462eafcece278fdf5776f85d22e2a4e2697b12ace51562825"}},{"ruleId":"D2","level":"warning","message":{"text":"GitVisibilityIndex::validate (cognitive 28): GitVisibilityIndex::validate has cognitive complexity 28 (threshold 15). Drivers by points: if/else 9 (15 pts), loops 5 (7 pts), boolean chains 6 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-metadata/src/git_visibility.rs"},"region":{"startLine":934}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ecdad0afa819ae09fddf5c60afd607b8fcf14f0f711b1be36cf86b7cb3b7a1b"}},{"ruleId":"D2","level":"warning","message":{"text":"crab_s3_gateway::mutation::upload_built_batch (cognitive 28): crab_s3_gateway::mutation::upload_built_batch has cognitive complexity 28 (threshold 15). Drivers by points: if/else 10 (19 pts), loops 4 (6 pts), boolean chains 2, match/switch 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/crab-s3-gateway/src/mutation.rs"},"region":{"startLine":1770}}}],"partialFingerprints":{"codehealthFindingId/v1":"2041d21072fc5bc8e5903fb231dfe02456d3a2f67ab9cabb61af42efcfa84faa"}},{"ruleId":"D2","level":"warning","message":{"text":"crab_s3_gateway::mutation::build_commit (cognitive 28): crab_s3_gateway::mutation::build_commit has cognitive complexity 28 (threshold 15). Drivers by points: if/else 10 (16 pts), boolean chains 5, match/switch 4, loops 3 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-s3-gateway/src/mutation.rs"},"region":{"startLine":2404}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd4aa80a865c515dd867b364639bd40eb8073aee7dbd32bfb617d8ecb2bd6e40"}},{"ruleId":"D2","level":"warning","message":{"text":"crab_workflow::params_runtime::read_at_ref (cognitive 28): crab_workflow::params_runtime::read_at_ref has cognitive complexity 28 (threshold 15). Drivers by points: if/else 13 (22 pts), loops 2 (3 pts), match/switch 1 (2 pts), boolean chains 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-workflow/src/params_runtime.rs"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e035975c2f6eb8bf595c71f88be8adacc634ef10980f9070e74b838013f4980"}},{"ruleId":"D2","level":"warning","message":{"text":"check-architecture-gates.check_git_module_scope (cognitive 28): check-architecture-gates.check_git_module_scope has cognitive complexity 28 (threshold 15). Drivers by points: if/else 7 (15 pts), loops 6 (9 pts), error handling 1 (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":"crab/scripts/check-architecture-gates.py"},"region":{"startLine":4276}}}],"partialFingerprints":{"codehealthFindingId/v1":"645a20899d45c2bc7fa26d9cd38429b4ec730bc03c61f705eeae93b53f1ae7ec"}},{"ruleId":"D2","level":"warning","message":{"text":"check-architecture-gates.check_deleted_metadata_reexport_adapters_removed (cognitive 28): check-architecture-gates.check_deleted_metadata_reexport_adapters_removed has cognitive complexity 28 (threshold 15). Drivers by points: if/else 9 (19 pts), loops 5 (8 pts), boolean chains 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/scripts/check-architecture-gates.py"},"region":{"startLine":4661}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee512fb9cac4ddf1795e926bd16ed14b9fe451d13acefdbce9480bfc707f1812"}},{"ruleId":"D2","level":"warning","message":{"text":"verify-nfs-smoke-report.check_write_journal_runtime_status (cognitive 28): verify-nfs-smoke-report.check_write_journal_runtime_status has cognitive complexity 28 (threshold 15). Drivers by points: if/else 16 (20 pts), boolean chains 7, loops 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":"crab/scripts/verify-nfs-smoke-report.py"},"region":{"startLine":832}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfb38cc5f88f7f29e73daaf8438ee4c2bbcaef65db4c19e37a3547dfe3c55ae8"}},{"ruleId":"D2","level":"warning","message":{"text":"qualify.main (cognitive 28): qualify.main has cognitive complexity 28 (threshold 15). Drivers by points: if/else 9 (19 pts), loops 3 (5 pts), error handling 2, boolean chains 1, ternaries 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-http-server/deploy/cell-issue-fleet/qualify.py"},"region":{"startLine":375}}}],"partialFingerprints":{"codehealthFindingId/v1":"1cbb769219044f155e83d6563c80f91939d0677389fb00b3e82b1fbc83064b10"}},{"ruleId":"D2","level":"warning","message":{"text":"qualify_mode_rollout.main (cognitive 28): qualify_mode_rollout.main has cognitive complexity 28 (threshold 15). Drivers by points: if/else 15 (17 pts), loops 5 (7 pts), boolean chains 4 (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/crab-http-server/deploy/cell-issue-fleet/qualify_mode_rollout.py"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"3511d5181f7e6aabe95407d0cea55ba4da7208ec13eae3002e8823f23d0b38dc"}},{"ruleId":"D2","level":"warning","message":{"text":"PushPipeline::validate_committed_chunk_candidates (cognitive 27): PushPipeline::validate_committed_chunk_candidates has cognitive complexity 27 (threshold 15). Drivers by points: if/else 9 (16 pts), boolean chains 4, match/switch 2 (4 pts), loops 3 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/git/push.rs"},"region":{"startLine":14222}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c5b3e636bc0f40bffba15a274ee41784f11aa534fd783f02237e1dbca2b8122"}},{"ruleId":"D2","level":"warning","message":{"text":"GoogleGcsReplicationControlPlaneClient::validate_policy (cognitive 27): GoogleGcsReplicationControlPlaneClient::validate_policy has cognitive complexity 27 (threshold 15). Drivers by points: if/else 16 (24 pts), boolean chains 2, match/switch 1 (nesting depth added 8). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/replication/mod.rs"},"region":{"startLine":3324}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb0cd899eb6f3bd89bd7b2a10952d4d4d0a08a9f971563cd324fd0c4be808ad7"}},{"ruleId":"D2","level":"warning","message":{"text":"crab::cmd::exp::run_exp_run_with_id (cognitive 27): crab::cmd::exp::run_exp_run_with_id has cognitive complexity 27 (threshold 15). Drivers by points: if/else 17 (21 pts), boolean chains 3, match/switch 3 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/cmd/exp.rs"},"region":{"startLine":1324}}}],"partialFingerprints":{"codehealthFindingId/v1":"e70956fcd3a69e8de2dbd4d5d940165bcb62300c900ba5160b24b7bcfe4cf209"}},{"ruleId":"D2","level":"warning","message":{"text":"crab::cmd::exp::build_diff_payload (cognitive 27): crab::cmd::exp::build_diff_payload has cognitive complexity 27 (threshold 15). Drivers by points: if/else 6 (15 pts), loops 6, match/switch 3 (6 pts) (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/cmd/exp.rs"},"region":{"startLine":5584}}}],"partialFingerprints":{"codehealthFindingId/v1":"a44f7c4c949416cff0e43f3cd56af938338683ef1a0916aef909502728fa329c"}},{"ruleId":"D2","level":"warning","message":{"text":"crab::cmd::install::install_mirror_hooks (cognitive 27): crab::cmd::install::install_mirror_hooks has cognitive complexity 27 (threshold 15). Drivers by points: if/else 9 (25 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":"crab/src/cmd/install.rs"},"region":{"startLine":603}}}],"partialFingerprints":{"codehealthFindingId/v1":"d262b72d4fabeb98fa1ef5aad14ab95ad9d83b398537ebeda9a9c7d1a9379192"}},{"ruleId":"D2","level":"warning","message":{"text":"crab::cmd::lfs::dedup::collect_local_lfs_objects_with_cancel (cognitive 27): crab::cmd::lfs::dedup::collect_local_lfs_objects_with_cancel has cognitive complexity 27 (threshold 15). Drivers by points: if/else 5 (17 pts), loops 3 (6 pts), boolean chains 4 (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":"crab/src/cmd/lfs/dedup.rs"},"region":{"startLine":770}}}],"partialFingerprints":{"codehealthFindingId/v1":"e32be4b12118de7e57bac3761ff1f1413661dc0ac5c8bd7c70720a3262857e9c"}},{"ruleId":"D2","level":"warning","message":{"text":"crab::cmd::metadb::generation_owner_loop (cognitive 27): crab::cmd::metadb::generation_owner_loop has cognitive complexity 27 (threshold 15). Drivers by points: if/else 6 (14 pts), match/switch 4 (10 pts), boolean chains 2, 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":"crab/src/cmd/metadb.rs"},"region":{"startLine":501}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c64ca0ef8245dc183046c850e241e85ee404a14ad46d67edd44e25bb2a4f3fd"}},{"ruleId":"D2","level":"warning","message":{"text":"crab::cmd::mirror::history::populate (cognitive 27): crab::cmd::mirror::history::populate has cognitive complexity 27 (threshold 15). Drivers by points: if/else 10 (21 pts), loops 2 (4 pts), match/switch 1 (2 pts) (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/cmd/mirror/history.rs"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8d4bd73eb3eacf5f910b887d4efa881bded75486154ecc94001f645b4f24fc2"}},{"ruleId":"D2","level":"warning","message":{"text":"crab::cmd::optimize::run_child_step (cognitive 27): crab::cmd::optimize::run_child_step has cognitive complexity 27 (threshold 15). Drivers by points: if/else 10 (13 pts), match/switch 5 (13 pts), loops 1 (nesting depth added 11). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, 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":"crab/src/cmd/optimize.rs"},"region":{"startLine":294}}}],"partialFingerprints":{"codehealthFindingId/v1":"7758eb1edb8eea5f5960722455e26d54e4590b7bc2fbf740f06118bf2f331948"}},{"ruleId":"D2","level":"warning","message":{"text":"crab::cmd::run::execute_stage_parallel (cognitive 27): crab::cmd::run::execute_stage_parallel has cognitive complexity 27 (threshold 15). Drivers by points: if/else 8 (15 pts), match/switch 3 (6 pts), boolean chains 4, loops 2 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/cmd/run.rs"},"region":{"startLine":2128}}}],"partialFingerprints":{"codehealthFindingId/v1":"956098f8110477884696bcc630dea104d4f6d10567f486f4daf779ff1bad5956"}},{"ruleId":"D2","level":"warning","message":{"text":"crab::cmd::setup::scan_for_large_files_filtered (cognitive 27): crab::cmd::setup::scan_for_large_files_filtered has cognitive complexity 27 (threshold 15). Drivers by points: if/else 9 (19 pts), match/switch 3 (6 pts), boolean chains 1, loops 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":"crab/src/cmd/setup.rs"},"region":{"startLine":532}}}],"partialFingerprints":{"codehealthFindingId/v1":"a71c5a947e5c7fce2ee8ddd76f68cc8bfbd231b67417045492045a90883c2ca1"}},{"ruleId":"D2","level":"warning","message":{"text":"crab::cmd::worktree::run_add (cognitive 27): crab::cmd::worktree::run_add has cognitive complexity 27 (threshold 15). Drivers by points: if/else 21 (25 pts), boolean chains 1, loops 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":"crab/src/cmd/worktree.rs"},"region":{"startLine":371}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf43d8bd3ba56dc8672fa710369dd0d755ebf53db403741a96628fc79b0610dd"}},{"ruleId":"D2","level":"warning","message":{"text":"crab::git::push::upsert_pack_metadata (cognitive 27): crab::git::push::upsert_pack_metadata has cognitive complexity 27 (threshold 15). Drivers by points: if/else 6 (16 pts), match/switch 4 (7 pts), boolean chains 3, loops 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":"crab/src/git/push.rs"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4e3dcfcbde56575b84e2cf3e6017b38da4f6e6fba85ee80554f230f19a21861"}},{"ruleId":"D2","level":"warning","message":{"text":"crab::lfs::prune::collect_referenced_oids (cognitive 27): crab::lfs::prune::collect_referenced_oids has cognitive complexity 27 (threshold 15). Drivers by points: if/else 7 (17 pts), match/switch 2 (5 pts), loops 3 (4 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":"crab/src/lfs/prune.rs"},"region":{"startLine":715}}}],"partialFingerprints":{"codehealthFindingId/v1":"261d2c46cd7183db2324ad42d350c351f97f1bbcf4bbb98ee620acdb7012f91e"}},{"ruleId":"D2","level":"warning","message":{"text":"crab_auth_server::receive::promote_pack_metadata_union (cognitive 27): crab_auth_server::receive::promote_pack_metadata_union has cognitive complexity 27 (threshold 15). Drivers by points: if/else 5 (15 pts), match/switch 3 (8 pts), boolean chains 3, loops 1 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-auth-server/src/receive.rs"},"region":{"startLine":487}}}],"partialFingerprints":{"codehealthFindingId/v1":"d70646ebe029975a959757f45961fdce07cdcbccfa8178ddb1353faeb8d7860e"}},{"ruleId":"D2","level":"warning","message":{"text":"crab_git::repack::consolidate_pack_suffix_with_options (cognitive 27): crab_git::repack::consolidate_pack_suffix_with_options has cognitive complexity 27 (threshold 15). Drivers by points: if/else 10 (13 pts), loops 6 (12 pts), boolean chains 1, match/switch 1 (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/crab-git/src/repack.rs"},"region":{"startLine":495}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4073d001a553413b66d212e55cab6e2c714f8057bd0848a947984be6f18073f"}},{"ruleId":"D2","level":"warning","message":{"text":"RepositoryCellRouter::rebalance_once (cognitive 27): RepositoryCellRouter::rebalance_once has cognitive complexity 27 (threshold 15). Drivers by points: if/else 15 (21 pts), boolean chains 5, 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/crab-http-server/src/cells/router.rs"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1542fe8ca18dbc930e74137ca4963f9600a6797b181dbba966b58bcfd8325eb"}},{"ruleId":"D2","level":"warning","message":{"text":"RepositoryCellScheduler::schedule_migrations (cognitive 27): RepositoryCellScheduler::schedule_migrations has cognitive complexity 27 (threshold 15). Drivers by points: if/else 7 (16 pts), boolean chains 4, match/switch 2 (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/crab-http-server/src/cells/scheduler.rs"},"region":{"startLine":488}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0e55da30d7a3cdcdd79d3b399db4bffcebd6179653b376415c5839fb7ac4771"}},{"ruleId":"D2","level":"warning","message":{"text":"crab_http_server::server::boundary_request (cognitive 27): crab_http_server::server::boundary_request has cognitive complexity 27 (threshold 15). Drivers by points: boolean chains 14, if/else 11, match/switch 1 (2 pts) (nesting depth added 1). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-http-server/src/server.rs"},"region":{"startLine":2263}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9887209f717c248adca6a793e8c99b53f5d0aee00cf5d45191e361d7c25c4b4"}},{"ruleId":"D2","level":"warning","message":{"text":"LfsObjectStore::get_verified_stream_at (cognitive 27): LfsObjectStore::get_verified_stream_at has cognitive complexity 27 (threshold 15). Drivers by points: if/else 13 (16 pts), boolean chains 8, loops 1 (2 pts), 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/crab-lfs/src/object_store.rs"},"region":{"startLine":775}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e923b057ac037bd0ba6052d91cf323cc825cd4045c555bbd1a6b6b74207e45c"}},{"ruleId":"D2","level":"warning","message":{"text":"crab_metadata::git_visibility::storage::compact_journal_edits (cognitive 27): crab_metadata::git_visibility::storage::compact_journal_edits has cognitive complexity 27 (threshold 15). Drivers by points: if/else 7 (15 pts), match/switch 4 (10 pts), loops 2 (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/crab-metadata/src/git_visibility.rs"},"region":{"startLine":3713}}}],"partialFingerprints":{"codehealthFindingId/v1":"43db03cec1e5d4c243a6875114af34538f1b012085dac332f13eef76077be2fe"}},{"ruleId":"D2","level":"warning","message":{"text":"crab_read::upload_pack_wire::read_command_request (cognitive 27): crab_read::upload_pack_wire::read_command_request has cognitive complexity 27 (threshold 15). Drivers by points: if/else 9 (18 pts), match/switch 3 (5 pts), boolean chains 3, 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/crab-read/src/upload_pack_wire.rs"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f53585b1e202f671c304ccb196ae7856df991ff949b65c39fcb6300c8ff73e7"}},{"ruleId":"D2","level":"warning","message":{"text":"Coordinator::apply_batch (cognitive 27): Coordinator::apply_batch has cognitive complexity 27 (threshold 15). Drivers by points: if/else 6 (14 pts), match/switch 3 (10 pts), loops 1 (3 pts) (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-s3-gateway/src/mutation.rs"},"region":{"startLine":320}}}],"partialFingerprints":{"codehealthFindingId/v1":"04ff49e2469b8f5c22a04019055d560a33e6a26b28c4f7bfeb693788355932cd"}},{"ruleId":"D2","level":"warning","message":{"text":"crab_workflow::discover::merge_with_provenance (cognitive 27): crab_workflow::discover::merge_with_provenance has cognitive complexity 27 (threshold 15). Drivers by points: if/else 8 (14 pts), loops 7 (13 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/crab-workflow/src/discover.rs"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"157a170917e216d048203ff7a621541b093eca4ddc2af1476847d4bef71011a4"}},{"ruleId":"D2","level":"warning","message":{"text":"crab_workflow::graph::find_cycle (cognitive 27): crab_workflow::graph::find_cycle has cognitive complexity 27 (threshold 15). Drivers by points: if/else 6 (16 pts), loops 3 (6 pts), match/switch 2 (5 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/crab-workflow/src/graph.rs"},"region":{"startLine":321}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee5894708a9016bff04ecafe65b39cb15d6990d9c4249c1e6b67fa175806c961"}},{"ruleId":"D2","level":"warning","message":{"text":"crab_workflow::params_runtime::resolve_stage_param_values_with_wdir (cognitive 27): crab_workflow::params_runtime::resolve_stage_param_values_with_wdir has cognitive complexity 27 (threshold 15). Drivers by points: if/else 7 (15 pts), loops 4 (10 pts), match/switch 1 (2 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/crab-workflow/src/params_runtime.rs"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c3e9699f7429aaa707fb345616b6e78daed6808d155bca16d569fcc7ac324d6"}},{"ruleId":"D2","level":"warning","message":{"text":"check-architecture-gates.check_auth_provider_dispatch_owner (cognitive 27): check-architecture-gates.check_auth_provider_dispatch_owner has cognitive complexity 27 (threshold 15). Drivers by points: if/else 6 (14 pts), loops 6 (9 pts), ternaries 2 (4 pts) (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/scripts/check-architecture-gates.py"},"region":{"startLine":4858}}}],"partialFingerprints":{"codehealthFindingId/v1":"55dbcdfa6bf24b74d0ba09cfaabdc3b5a1426fae226bd9f0e8e27884df70c999"}},{"ruleId":"D2","level":"warning","message":{"text":"nfs-evidence-summary.render_smoke_markdown (cognitive 27): nfs-evidence-summary.render_smoke_markdown has cognitive complexity 27 (threshold 15). Drivers by points: if/else 7 (14 pts), ternaries 6 (10 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":"crab/scripts/nfs-evidence-summary.py"},"region":{"startLine":350}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cda12cc1232159ceb255b32cac0b7659e6cae749bc1fc28ccb54a44886ff633"}},{"ruleId":"D2","level":"warning","message":{"text":"discussion.Editor (cognitive 27): discussion.Editor has cognitive complexity 27 (threshold 15). Drivers by points: ternaries 11 (18 pts), boolean chains 5, if/else 4 (nesting depth added 7). Most of this is not in the body itself: 3 of the 27 points are its own statements and the rest belongs to 5 function items inside it that branch (formatShortcut, a function literal at line 303, a function literal at line 253, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/discussion.tsx"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"339f4eed7091cbb940577c50b596c5ac1ec79cd1e0e31fc13ef15eb219b426f1"}},{"ruleId":"D2","level":"warning","message":{"text":"issues.IssueList (cognitive 27): issues.IssueList has cognitive complexity 27 (threshold 15). Drivers by points: ternaries 10 (19 pts), boolean chains 8 (nesting depth added 9). Most of this is not in the body itself: 2 of the 27 points are its own statements and the rest belongs to 4 function literals inside it that branch (lines 155, 136, 123, \u2026). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/issues.tsx"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"d52ca09faff7a5fa66a4facb2d0fe3bf194f407147aac97047cab4fc17885b4d"}},{"ruleId":"D2","level":"warning","message":{"text":"pulls.PullReviewThreads (cognitive 27): pulls.PullReviewThreads has cognitive complexity 27 (threshold 15). Drivers by points: ternaries 13 (14 pts), boolean chains 9, if/else 4 (nesting depth added 1). Of this number, 14 points are the body\u0027s own statements and 13 belong to 4 function items inside it that branch. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pulls.tsx"},"region":{"startLine":796}}}],"partialFingerprints":{"codehealthFindingId/v1":"32fea92d89e78fbecf4822fb29cfbbec9476f2b3021a805c96bdc7de9b969e19"}},{"ruleId":"D2","level":"warning","message":{"text":"crab::cmd::add::diagnose_untracked_extensions (cognitive 26): crab::cmd::add::diagnose_untracked_extensions has cognitive complexity 26 (threshold 15). Drivers by points: if/else 7 (22 pts), boolean chains 3, 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":"crab/src/cmd/add.rs"},"region":{"startLine":3471}}}],"partialFingerprints":{"codehealthFindingId/v1":"862c14a3043f59654614cf61c3395e2d07a1112a6fe5dc65d1cc0b735dec39bc"}},{"ruleId":"D2","level":"warning","message":{"text":"crab::cmd::import::render_text_summary (cognitive 26): crab::cmd::import::render_text_summary has cognitive complexity 26 (threshold 15). Drivers by points: if/else 8 (17 pts), loops 2 (7 pts), boolean chains 2 (nesting depth added 14). 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":"crab/src/cmd/import.rs"},"region":{"startLine":323}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed10d877591a116135ca9969be307a5d037725cf2b9a28dca14af87e46fcbc02"}},{"ruleId":"D2","level":"warning","message":{"text":"crab::cmd::install::run_install_in (cognitive 26): crab::cmd::install::run_install_in has cognitive complexity 26 (threshold 15). Drivers by points: if/else 10 (16 pts), boolean chains 7, loops 2, 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":"crab/src/cmd/install.rs"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"07187c205750f8fa55abf24fe8bc2f5bb0a385a2d92ec49d517b7315eb65f430"}},{"ruleId":"D2","level":"warning","message":{"text":"crab::cmd::replica::doctor_fix_plan (cognitive 26): crab::cmd::replica::doctor_fix_plan has cognitive complexity 26 (threshold 15). Drivers by points: if/else 7 (22 pts), match/switch 1 (2 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":"crab/src/cmd/replica.rs"},"region":{"startLine":9591}}}],"partialFingerprints":{"codehealthFindingId/v1":"7940fbf85576722cbaa8d47b3915d3f3807b13614612d122a0e44cfcf0528670"}},{"ruleId":"D2","level":"warning","message":{"text":"crab::cmd::status::collect_crab_entries_recursive (cognitive 26): crab::cmd::status::collect_crab_entries_recursive has cognitive complexity 26 (threshold 15). Drivers by points: if/else 7 (14 pts), match/switch 4 (11 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":"crab/src/cmd/status.rs"},"region":{"startLine":383}}}],"partialFingerprints":{"codehealthFindingId/v1":"d59d2a29fdfb96a9a7dc12e08dedcddb0e8430d70cd0d14953c7e46c6677b951"}},{"ruleId":"D2","level":"warning","message":{"text":"crab::lfs::track::track_escaped_with_options (cognitive 26): crab::lfs::track::track_escaped_with_options has cognitive complexity 26 (threshold 15). Drivers by points: if/else 14 (23 pts), boolean chains 2, 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":"crab/src/lfs/track.rs"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f2a957528394fc9e2c119578accfeaf3667b727baac21d1411e64d12309fb0b"}},{"ruleId":"D2","level":"warning","message":{"text":"crab::storage::retry::retry (cognitive 26): crab::storage::retry::retry has cognitive complexity 26 (threshold 15). Drivers by points: if/else 6 (18 pts), match/switch 3 (7 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":"crab/src/storage/retry.rs"},"region":{"startLine":324}}}],"partialFingerprints":{"codehealthFindingId/v1":"54434b071137b5b42ca5eb4b43001b70218cc0c0267c1ff94e18cb244503831a"}},{"ruleId":"D2","level":"warning","message":{"text":"crab_metadata::remote_index::write_opened_entries (cognitive 26): crab_metadata::remote_index::write_opened_entries has cognitive complexity 26 (threshold 15). Drivers by points: if/else 7 (16 pts), loops 4 (7 pts), boolean chains 3 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-metadata/src/remote_index.rs"},"region":{"startLine":267}}}],"partialFingerprints":{"codehealthFindingId/v1":"1347a0e57da3dd79fe125402cf3dac1139b816a0943ebe6de418ea4201ed667f"}},{"ruleId":"D2","level":"warning","message":{"text":"RemoteGitReader::lookup_batch_from_selected_pack_indexes (cognitive 26): RemoteGitReader::lookup_batch_from_selected_pack_indexes has cognitive complexity 26 (threshold 15). Drivers by points: if/else 5 (17 pts), match/switch 1 (4 pts), loops 2 (3 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/crab-remote-git/src/reader.rs"},"region":{"startLine":562}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac457be41c1586b18a0eb6fe5eea86694bdc1c9f9ee456b5c03f8d412fb20d5b"}},{"ruleId":"D2","level":"warning","message":{"text":"Index::insert_recipe_lease (cognitive 26): Index::insert_recipe_lease has cognitive complexity 26 (threshold 15). Drivers by points: if/else 14 (17 pts), boolean chains 5, loops 2 (3 pts), 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/crab-staging/src/index.rs"},"region":{"startLine":5060}}}],"partialFingerprints":{"codehealthFindingId/v1":"71b883952a1543bed40dbb4f136bf9f5d794fae51bf4a5d83a2a636510b79108"}},{"ruleId":"D2","level":"warning","message":{"text":"crab_staging::stage_owned_chunks_batch_blocking (cognitive 26): crab_staging::stage_owned_chunks_batch_blocking has cognitive complexity 26 (threshold 15). Drivers by points: if/else 13 (20 pts), loops 4 (5 pts), boolean chains 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-staging/src/lib.rs"},"region":{"startLine":1808}}}],"partialFingerprints":{"codehealthFindingId/v1":"2adc794c0bbf76c9339ac7604803255b9971520624f909595429b2d0b78e24b2"}},{"ruleId":"D2","level":"warning","message":{"text":"Store::put_multipart_source_once (cognitive 26): Store::put_multipart_source_once has cognitive complexity 26 (threshold 15). Drivers by points: if/else 9 (16 pts), match/switch 4 (8 pts), loops 2 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-storage/src/store.rs"},"region":{"startLine":2484}}}],"partialFingerprints":{"codehealthFindingId/v1":"d97ccfc3bdb49a01b0bca19c068997b9ca720b562191692bb3e3cf98b3484476"}},{"ruleId":"D2","level":"warning","message":{"text":"crab_write::catalog::write_locator_pack_evidence (cognitive 26): crab_write::catalog::write_locator_pack_evidence has cognitive complexity 26 (threshold 15). Drivers by points: if/else 6 (16 pts), loops 7 (10 pts) (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-write/src/catalog.rs"},"region":{"startLine":489}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9f0d975e71c69808a568ee9964e7fe00cf8cff30c31c0a1f9e42f7213b26700"}},{"ruleId":"D2","level":"warning","message":{"text":"verify-nfs-smoke-report.check_writeback_artifact (cognitive 26): verify-nfs-smoke-report.check_writeback_artifact has cognitive complexity 26 (threshold 15). Drivers by points: if/else 12 (17 pts), boolean chains 6, loops 1 (2 pts), error handling 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/scripts/verify-nfs-smoke-report.py"},"region":{"startLine":1601}}}],"partialFingerprints":{"codehealthFindingId/v1":"4337d18e21c004b123e56eb00a03f849164ea38e200dc8cefb9f4b6f9b2273af"}},{"ruleId":"D2","level":"warning","message":{"text":"knowledge-check.KnowledgeCheck (cognitive 26): knowledge-check.KnowledgeCheck has cognitive complexity 26 (threshold 15). Drivers by points: boolean chains 12, ternaries 6 (8 pts), if/else 3 (4 pts), error handling 1 (2 pts) (nesting depth added 4). Most of this is not in the body itself: 7 of the 26 points are its own statements and the rest belongs to 2 function items inside it that branch (a function literal at line 95, verify). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/web/components/library/knowledge-check.tsx"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab012bb5bf7b50e208b17f0738e56a5e5c15fb1722786149962e39bfd33b9cac"}},{"ruleId":"D2","level":"warning","message":{"text":"AddRemoteCandidateCache::load_persistent (cognitive 25): AddRemoteCandidateCache::load_persistent has cognitive complexity 25 (threshold 15). Drivers by points: if/else 9 (16 pts), loops 4 (8 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":"crab/src/cache/add_remote_candidates.rs"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ed8af856156dd0ee33dfdbf3097f78ebc285b1d5ea5bb548aced0eedc5efba7"}},{"ruleId":"D2","level":"warning","message":{"text":"PushPipeline::lookup_staging (cognitive 25): PushPipeline::lookup_staging has cognitive complexity 25 (threshold 15). Drivers by points: if/else 14 (19 pts), loops 3, 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":"crab/src/git/push.rs"},"region":{"startLine":9598}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea7b65e85cd89e9e254d6a66e74475ade04a68587f330d9f03e66c35caf8d3a0"}},{"ruleId":"D2","level":"warning","message":{"text":"AzureVersionedList::walk_versions (cognitive 25): AzureVersionedList::walk_versions has cognitive complexity 25 (threshold 15). Drivers by points: if/else 5 (15 pts), loops 3 (6 pts), boolean chains 3, match/switch 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":"crab/src/import/versions.rs"},"region":{"startLine":1374}}}],"partialFingerprints":{"codehealthFindingId/v1":"f32bcfc6f9e319120b2749310a798a8f8a8018d5791dea3ea73683dd302b8ad4"}},{"ruleId":"D2","level":"warning","message":{"text":"crab::cmd::gc::run_gc_impl (cognitive 25): crab::cmd::gc::run_gc_impl has cognitive complexity 25 (threshold 15). Drivers by points: if/else 13 (16 pts), boolean chains 5, loops 2 (4 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":"crab/src/cmd/gc/mod.rs"},"region":{"startLine":1061}}}],"partialFingerprints":{"codehealthFindingId/v1":"4cef03c8304c0c72570777fdf7415404441fcb9959a1b2bc40d490154e459c09"}},{"ruleId":"D2","level":"warning","message":{"text":"crab::cmd::gc::extend_reachable_workflow_objects (cognitive 25): crab::cmd::gc::extend_reachable_workflow_objects has cognitive complexity 25 (threshold 15). Drivers by points: if/else 6 (15 pts), loops 6 (10 pts) (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/cmd/gc/mod.rs"},"region":{"startLine":2805}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfd6f786ff3635e811410428296ea1eee14e8810500c7e77e4e127de71c15d3d"}},{"ruleId":"D2","level":"warning","message":{"text":"crab::cmd::gc::bucket::run_bucket_gc_streaming (cognitive 25): crab::cmd::gc::bucket::run_bucket_gc_streaming has cognitive complexity 25 (threshold 15). Drivers by points: if/else 10 (11 pts), match/switch 4 (8 pts), loops 2 (5 pts), boolean chains 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/cmd/gc/bucket.rs"},"region":{"startLine":544}}}],"partialFingerprints":{"codehealthFindingId/v1":"56ae073ba5080b21c897c6b54d27d0dec967c33b54c3bf5f38eb7c661bf8b1ee"}},{"ruleId":"D2","level":"warning","message":{"text":"crab::cmd::status::parse_git_porcelain_v2 (cognitive 25): crab::cmd::status::parse_git_porcelain_v2 has cognitive complexity 25 (threshold 15). Drivers by points: if/else 8 (21 pts), boolean chains 3, loops 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":"crab/src/cmd/status.rs"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"55b4085491c323451dc9e3d9894494f816810c43162d6afc9af41687777bb048"}},{"ruleId":"D2","level":"warning","message":{"text":"crab::git::push::while_admitted_until_commit (cognitive 25): crab::git::push::while_admitted_until_commit has cognitive complexity 25 (threshold 15). Drivers by points: if/else 4 (12 pts), match/switch 5 (12 pts), loops 1 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/git/push.rs"},"region":{"startLine":5659}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f3b477e79988254df649be61735268dc92e1672e3ba06b959fbcc660e9b7c54"}},{"ruleId":"D2","level":"warning","message":{"text":"crab::git::upload_pack_wire::acquire_read_admission_with_wait (cognitive 25): crab::git::upload_pack_wire::acquire_read_admission_with_wait has cognitive complexity 25 (threshold 15). Drivers by points: match/switch 6 (15 pts), if/else 4 (9 pts), loops 1 (nesting depth added 14). 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":"crab/src/git/upload_pack_wire.rs"},"region":{"startLine":403}}}],"partialFingerprints":{"codehealthFindingId/v1":"9479bce4ab40e291ee56085dd5bd7683d3892a795746b5127a33cbaca1446388"}},{"ruleId":"D2","level":"warning","message":{"text":"Config::validate (cognitive 25): Config::validate has cognitive complexity 25 (threshold 15). Drivers by points: if/else 10 (18 pts), boolean chains 4, 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/crab-http-server/src/config.rs"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"2833b939a75e9d960be83edc3e1608b0bd75c578e65a1200e92360bab7e3bcc5"}},{"ruleId":"D2","level":"warning","message":{"text":"crab_http_server::pulls::edit (cognitive 25): crab_http_server::pulls::edit has cognitive complexity 25 (threshold 15). Drivers by points: boolean chains 13, if/else 12. To reduce it, name the conditions: bind each compound test to a well-named local or 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/crab-http-server/src/pulls.rs"},"region":{"startLine":538}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b8463c34af5497a3ba0386be2adcddb9410d180d962e27af21f0dd3e01ac252"}},{"ruleId":"D2","level":"warning","message":{"text":"crab_http_server::server::serve (cognitive 25): crab_http_server::server::serve has cognitive complexity 25 (threshold 15). Drivers by points: if/else 11 (15 pts), match/switch 9 (10 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/crab-http-server/src/server.rs"},"region":{"startLine":1074}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8120b05fa2c595ed551ab5dc0daac96b4edb540504c7ba9b8434baa0781ac58"}},{"ruleId":"D2","level":"warning","message":{"text":"Gateway::complete_multipart_upload (cognitive 25): Gateway::complete_multipart_upload has cognitive complexity 25 (threshold 15). Drivers by points: if/else 13 (16 pts), boolean chains 5, loops 2 (3 pts), 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/crab-s3-gateway/src/gateway.rs"},"region":{"startLine":2428}}}],"partialFingerprints":{"codehealthFindingId/v1":"17dae14138bc3f2ff0efdbb0a560fa2d768bd3fdd33776989898b5ae0bfd2402"}},{"ruleId":"D2","level":"warning","message":{"text":"crab_workflow::cache::push_entry_xorbs_remote_with_artifact_stores (cognitive 25): crab_workflow::cache::push_entry_xorbs_remote_with_artifact_stores has cognitive complexity 25 (threshold 15). Drivers by points: if/else 4 (13 pts), match/switch 3 (8 pts), loops 2 (4 pts) (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-workflow/src/cache.rs"},"region":{"startLine":879}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2c7055854c50d8dcee05ee4b1a60c35185ca34fac796acd048abd89e33acc63"}},{"ruleId":"D2","level":"warning","message":{"text":"crab_workflow::dvc_migration::convert_outs (cognitive 25): crab_workflow::dvc_migration::convert_outs has cognitive complexity 25 (threshold 15). Drivers by points: if/else 7 (19 pts), loops 2 (4 pts), match/switch 1 (2 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/crab-workflow/src/dvc_migration.rs"},"region":{"startLine":250}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad513dc441969290ba5c7971160162a7e22599a1ce8e98d264c8bf3e56b24acb"}},{"ruleId":"D2","level":"warning","message":{"text":"check-architecture-gates.check_deleted_auth_provider_reexport_adapters_removed (cognitive 25): check-architecture-gates.check_deleted_auth_provider_reexport_adapters_removed has cognitive complexity 25 (threshold 15). Drivers by points: if/else 7 (16 pts), loops 5 (8 pts), 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":"crab/scripts/check-architecture-gates.py"},"region":{"startLine":4817}}}],"partialFingerprints":{"codehealthFindingId/v1":"2760b2068140f20ed93ebcb60a19c64c4f6b44daf8633cc3cf43826e26419860"}},{"ruleId":"D2","level":"warning","message":{"text":"check-install-layout.check_layout (cognitive 25): check-install-layout.check_layout has cognitive complexity 25 (threshold 15). Drivers by points: if/else 13 (22 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":"crab/scripts/release/check-install-layout.py"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f94388825868a1c8898d42370dbdf485fa3d80d1e3f6300aed9dbba27eaf28e"}},{"ruleId":"D2","level":"warning","message":{"text":"verify-nfs-smoke-report.check_unmount_artifact (cognitive 25): verify-nfs-smoke-report.check_unmount_artifact has cognitive complexity 25 (threshold 15). Drivers by points: if/else 12 (17 pts), boolean chains 5, loops 1 (2 pts), error handling 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/scripts/verify-nfs-smoke-report.py"},"region":{"startLine":1698}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f24f9c810b425a31a9d152ce273a5f0a2011fd147f42d5210d5d0f26767400c"}},{"ruleId":"D2","level":"warning","message":{"text":"verify-nfs-smoke-report.validate (cognitive 25): verify-nfs-smoke-report.validate has cognitive complexity 25 (threshold 15). Drivers by points: if/else 11 (13 pts), boolean chains 12 (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":"crab/scripts/verify-nfs-smoke-report.py"},"region":{"startLine":1940}}}],"partialFingerprints":{"codehealthFindingId/v1":"30b3b05e3eae5c17f506202cee0735ef06958be0f0fff22c31644f39bac78a5d"}},{"ruleId":"D2","level":"warning","message":{"text":"TailFault.run (cognitive 25): TailFault.run has cognitive complexity 25 (threshold 15). Drivers by points: if/else 11 (14 pts), boolean chains 7, error handling 2 (3 pts), loops 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/crab-http-server/deploy/cell-issue-fleet/fault.py"},"region":{"startLine":226}}}],"partialFingerprints":{"codehealthFindingId/v1":"f755435923552216d3423d9a2f2c3d0bc4100187e54597e4c5bb3157679471a5"}},{"ruleId":"D2","level":"warning","message":{"text":"fault.main (cognitive 25): fault.main has cognitive complexity 25 (threshold 15). Drivers by points: if/else 14 (15 pts), ternaries 2 (4 pts), boolean chains 3, loops 2, error handling 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-http-server/deploy/cell-issue-fleet/fault.py"},"region":{"startLine":315}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d55b9f49423f3750329be400550715418452bb596d8d7c1a790bbd37e5cb7bb"}},{"ruleId":"D2","level":"warning","message":{"text":"load.main (cognitive 25): load.main has cognitive complexity 25 (threshold 15). Drivers by points: if/else 13 (16 pts), boolean chains 3, loops 3, error handling 2, ternaries 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-http-server/deploy/cell-issue-fleet/load.py"},"region":{"startLine":565}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0fddd39b047022ecf16b69e8bd46a9fa1d1d26fc7b62131f1a61c80ca664ac7"}},{"ruleId":"D2","level":"warning","message":{"text":"settings.BranchProtectionSettings (cognitive 25): settings.BranchProtectionSettings has cognitive complexity 25 (threshold 15). Drivers by points: ternaries 5 (9 pts), boolean chains 8, if/else 6 (7 pts), error handling 1 (nesting depth added 5). Most of this is not in the body itself: 5 of the 25 points are its own statements and the rest belongs to 4 function items inside it that branch (replaceRules, a function literal at line 1064, saveRule, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/settings.tsx"},"region":{"startLine":919}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b5a5e9f0b45e22ad291883a77415ce565b19d9284614d47554cdc6ba026ef51"}},{"ruleId":"D2","level":"warning","message":{"text":"Config::apply_auth_overlay (cognitive 24): Config::apply_auth_overlay has cognitive complexity 24 (threshold 15). Drivers by points: if/else 21 (24 pts) (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/core/config.rs"},"region":{"startLine":2514}}}],"partialFingerprints":{"codehealthFindingId/v1":"c208d394da029ffb31912e70ccc002d07475d14d58e30cc0ccdfb2f4d23780e3"}},{"ruleId":"D2","level":"warning","message":{"text":"crab::cmd::adopt::scan_large_files (cognitive 24): crab::cmd::adopt::scan_large_files has cognitive complexity 24 (threshold 15). Drivers by points: if/else 8 (16 pts), match/switch 3 (6 pts), boolean chains 1, 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":"crab/src/cmd/adopt.rs"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"1318f8e46837f0fa78a9eed4db5d5156808aee2714cca9b84c00ea840b7313e1"}},{"ruleId":"D2","level":"warning","message":{"text":"crab::cmd::gc::extend_generated_pack_cache_reachable (cognitive 24): crab::cmd::gc::extend_generated_pack_cache_reachable has cognitive complexity 24 (threshold 15). Drivers by points: if/else 6 (15 pts), match/switch 2 (5 pts), loops 2 (3 pts), boolean chains 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: one other method here (crab::cmd::gc::stream_generated_pack_cache_reachable) 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":"crab/src/cmd/gc/mod.rs"},"region":{"startLine":2084}}}],"partialFingerprints":{"codehealthFindingId/v1":"255f741d41b7f1296bc6ac4ad6f9efe8eda3a804c01c0933379a24baba4bf651"}},{"ruleId":"D2","level":"warning","message":{"text":"crab::cmd::gc::stream_generated_pack_cache_reachable (cognitive 24): crab::cmd::gc::stream_generated_pack_cache_reachable has cognitive complexity 24 (threshold 15). Drivers by points: if/else 6 (15 pts), match/switch 2 (5 pts), loops 2 (3 pts), boolean chains 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: one other method here (crab::cmd::gc::extend_generated_pack_cache_reachable) 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":"crab/src/cmd/gc/mod.rs"},"region":{"startLine":2145}}}],"partialFingerprints":{"codehealthFindingId/v1":"de1f5ae110dc1e754146675e6ca3079699a20456a383ce0bc1a2d960206c747d"}},{"ruleId":"D2","level":"warning","message":{"text":"crab::cmd::init::scan_for_large_files (cognitive 24): crab::cmd::init::scan_for_large_files has cognitive complexity 24 (threshold 15). Drivers by points: if/else 8 (16 pts), match/switch 3 (6 pts), boolean chains 1, 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":"crab/src/cmd/init.rs"},"region":{"startLine":739}}}],"partialFingerprints":{"codehealthFindingId/v1":"25bac56c04377ee654ba538d71b3be4967d655f0cfb3e12df750bdf1ff966a8f"}},{"ruleId":"D2","level":"warning","message":{"text":"crab::cmd::lfs::push::resolve_push_args (cognitive 24): crab::cmd::lfs::push::resolve_push_args has cognitive complexity 24 (threshold 15). Drivers by points: if/else 12 (21 pts), boolean chains 3 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/cmd/lfs/push.rs"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f57144a68b556dd62cf424ec137573a3da71b2157b0cc5a116efe73e53f85c7"}},{"ruleId":"D2","level":"warning","message":{"text":"crab::cmd::metadb::maintain_split_commit_graph (cognitive 24): crab::cmd::metadb::maintain_split_commit_graph has cognitive complexity 24 (threshold 15). Drivers by points: if/else 13 (18 pts), boolean chains 3, 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":"crab/src/cmd/metadb.rs"},"region":{"startLine":1131}}}],"partialFingerprints":{"codehealthFindingId/v1":"2496f292164f21bf4bd5050e5bcd1b603ca7f32de29663e9ede1345a490b8ef8"}},{"ruleId":"D2","level":"warning","message":{"text":"crab::cmd::metrics::render_metric_pr_comment (cognitive 24): crab::cmd::metrics::render_metric_pr_comment has cognitive complexity 24 (threshold 15). Drivers by points: if/else 8 (11 pts), loops 4 (8 pts), match/switch 1 (3 pts), boolean chains 2 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/cmd/metrics.rs"},"region":{"startLine":4006}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0e9707fa3f4a0d75159910397d862f05c1ea99aa3ea321d59fcf6a6deb3a0b6"}},{"ruleId":"D2","level":"warning","message":{"text":"crab::cmd::unadopt::walk_for_pointers (cognitive 24): crab::cmd::unadopt::walk_for_pointers has cognitive complexity 24 (threshold 15). Drivers by points: if/else 10 (21 pts), boolean chains 1, loops 1, match/switch 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":"crab/src/cmd/unadopt.rs"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"b54a3e2b563c8767738db5a75cf2e24d5efe3daa1cb73c9c36caab8807e96e48"}},{"ruleId":"D2","level":"warning","message":{"text":"crab::git::filter_process::run_filter_loop_with_lfs_source (cognitive 24): crab::git::filter_process::run_filter_loop_with_lfs_source has cognitive complexity 24 (threshold 15). Drivers by points: if/else 7 (14 pts), loops 2 (4 pts), boolean chains 3, match/switch 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":"crab/src/git/filter_process.rs"},"region":{"startLine":734}}}],"partialFingerprints":{"codehealthFindingId/v1":"272162a110fb7ef92f5b83bf644803429c5ab317f56f86c1994820503b7c825c"}},{"ruleId":"D2","level":"warning","message":{"text":"crab::git::upload_pack_wire::write_fetch_response (cognitive 24): crab::git::upload_pack_wire::write_fetch_response has cognitive complexity 24 (threshold 15). Drivers by points: if/else 11 (12 pts), loops 3 (6 pts), boolean chains 3, match/switch 3 (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":"crab/src/git/upload_pack_wire.rs"},"region":{"startLine":1594}}}],"partialFingerprints":{"codehealthFindingId/v1":"a548f237e8f0422343334411d6024ce2329755a3f0b2259e966e02ba6f04909b"}},{"ruleId":"D2","level":"warning","message":{"text":"crab_cache_server::handlers::fetch_and_cache_data_locked (cognitive 24): crab_cache_server::handlers::fetch_and_cache_data_locked has cognitive complexity 24 (threshold 15). Drivers by points: if/else 7 (14 pts), match/switch 4 (8 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/crab-cache-server/src/handlers.rs"},"region":{"startLine":1619}}}],"partialFingerprints":{"codehealthFindingId/v1":"565274dc8a88816b6459bbdffd6d43613c8bb5415a2fce58c3a328ed04f98509"}},{"ruleId":"D2","level":"warning","message":{"text":"UpdatePullReviewThread::execute (cognitive 24): UpdatePullReviewThread::execute has cognitive complexity 24 (threshold 15). Drivers by points: if/else 14 (20 pts), boolean chains 4 (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/crab-http-server/src/cells/repository/pull_review_threads.rs"},"region":{"startLine":329}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd3edb60e6abaa0c60d1ca65beba543674f313b63e097f7b839565cccb7ffe03"}},{"ruleId":"D2","level":"warning","message":{"text":"OfflineAdvertisement::run (cognitive 24): OfflineAdvertisement::run has cognitive complexity 24 (threshold 15). Drivers by points: match/switch 7 (17 pts), if/else 1 (4 pts), loops 2 (3 pts) (nesting depth added 14). 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/crab-http-server/src/cells.rs"},"region":{"startLine":1818}}}],"partialFingerprints":{"codehealthFindingId/v1":"7abd87f6aea8288a74cc987748d999c5c9dee644eb3e88c5baa2fd31ca7e99c8"}},{"ruleId":"D2","level":"warning","message":{"text":"crab_http_server::cells::verify_cell_inventory (cognitive 24): crab_http_server::cells::verify_cell_inventory has cognitive complexity 24 (threshold 15). Drivers by points: loops 5 (12 pts), if/else 2 (7 pts), match/switch 1 (5 pts) (nesting depth added 16). 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/crab-http-server/src/cells.rs"},"region":{"startLine":2032}}}],"partialFingerprints":{"codehealthFindingId/v1":"939761f94aadaea5bb4bd7fcc98cf33d9c83d1c33958d65e9f86ecc3da805ab1"}},{"ruleId":"D2","level":"warning","message":{"text":"crab_http_server::server::sweep_projections (cognitive 24): crab_http_server::server::sweep_projections has cognitive complexity 24 (threshold 15). Drivers by points: if/else 5 (13 pts), match/switch 3 (8 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/crab-http-server/src/server.rs"},"region":{"startLine":1789}}}],"partialFingerprints":{"codehealthFindingId/v1":"343837d3a2267a038c03294f945c7ba4e921dcd4d0ca1ae5142ee959f07a9220"}},{"ruleId":"D2","level":"warning","message":{"text":"crab_metadata::ref_journal::commit_ref_transaction_inner (cognitive 24): crab_metadata::ref_journal::commit_ref_transaction_inner has cognitive complexity 24 (threshold 15). Drivers by points: if/else 9 (12 pts), match/switch 4 (9 pts), loops 2, boolean chains 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-metadata/src/ref_journal.rs"},"region":{"startLine":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4cf8f8719ffa2714ea07d6c0a3973910e7bae31ec099eda9b4211ee2ee61085"}},{"ruleId":"D2","level":"warning","message":{"text":"crab_metadata::ref_journal::validate_transaction (cognitive 24): crab_metadata::ref_journal::validate_transaction has cognitive complexity 24 (threshold 15). Drivers by points: if/else 12 (14 pts), boolean chains 5, loops 3, match/switch 1 (2 pts) (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-metadata/src/ref_journal.rs"},"region":{"startLine":1038}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bb0e496cdf834daa6e554e40e2c8d5e99db2a70a8f300ddea8f80c1cf063bf8"}},{"ruleId":"D2","level":"warning","message":{"text":"StoreClient::batch_get_reconstruction (cognitive 24): StoreClient::batch_get_reconstruction has cognitive complexity 24 (threshold 15). Drivers by points: loops 6 (16 pts), if/else 3 (6 pts), match/switch 1 (2 pts) (nesting depth added 14). 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/crab-read/src/store_client.rs"},"region":{"startLine":596}}}],"partialFingerprints":{"codehealthFindingId/v1":"210a9b3373247a9b6f496f6960d3c1aa0a317d30fb65b8199a80a2c4045e4160"}},{"ruleId":"D2","level":"warning","message":{"text":"LocalTools::run (cognitive 24): LocalTools::run has cognitive complexity 24 (threshold 15). Drivers by points: if/else 16 (18 pts), match/switch 3, loops 1 (2 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/crab-remote/src/local.rs"},"region":{"startLine":425}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea9fc618f968d7159c1dfdfe2e79fd81b6e3a2f0cf73cd1d7e3aba9ee90da263"}},{"ruleId":"D2","level":"warning","message":{"text":"RemoteGitSnapshot::path_history (cognitive 24): RemoteGitSnapshot::path_history has cognitive complexity 24 (threshold 15). Drivers by points: if/else 7 (15 pts), loops 2 (4 pts), match/switch 2 (3 pts), boolean chains 2 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-remote-git/src/snapshot.rs"},"region":{"startLine":445}}}],"partialFingerprints":{"codehealthFindingId/v1":"99a153f060f398aaa49fe99648685bb6f98f37f8166235486d35859a6692b012"}},{"ruleId":"D2","level":"warning","message":{"text":"ReadContent::stream (cognitive 24): ReadContent::stream has cognitive complexity 24 (threshold 15). Drivers by points: if/else 9 (18 pts), boolean chains 3, match/switch 2 (3 pts) (nesting depth added 10). 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/crab-s3-gateway/src/gateway.rs"},"region":{"startLine":272}}}],"partialFingerprints":{"codehealthFindingId/v1":"30336aed1ced27c24025de5ffda0e4b1a53ce0c4d79498af08be9c4d2f96351b"}},{"ruleId":"D2","level":"warning","message":{"text":"CheckpointLineage::append (cognitive 24): CheckpointLineage::append has cognitive complexity 24 (threshold 15). Drivers by points: if/else 12 (15 pts), boolean chains 8, 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/crab-workflow/src/checkpoint.rs"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"328704bb6f1e5c95e8b7bb55977a187891261fda05c2b6275ae2a6fc94f5d246"}},{"ruleId":"D2","level":"warning","message":{"text":"crab_workflow::dvc_inventory::parse_pointer (cognitive 24): crab_workflow::dvc_inventory::parse_pointer has cognitive complexity 24 (threshold 15). Drivers by points: if/else 13 (17 pts), boolean chains 3, match/switch 1 (3 pts), 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/crab-workflow/src/dvc_inventory.rs"},"region":{"startLine":834}}}],"partialFingerprints":{"codehealthFindingId/v1":"c21ccd1cf73a8f7c397c77179e5b9a7efcf8e9e9db58028ef35275ae40b3fef1"}},{"ruleId":"D2","level":"warning","message":{"text":"crab_workflow::lockfile::emit_stage (cognitive 24): crab_workflow::lockfile::emit_stage has cognitive complexity 24 (threshold 15). Drivers by points: if/else 12, loops 6 (12 pts) (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/crab-workflow/src/lockfile.rs"},"region":{"startLine":459}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed04894124835a68ce401da360be88cd9230dab7e462cb73c8703022843b83f9"}},{"ruleId":"D2","level":"warning","message":{"text":"crab_workflow::params_runtime::read_blob_at_ref (cognitive 24): crab_workflow::params_runtime::read_blob_at_ref has cognitive complexity 24 (threshold 15). Drivers by points: if/else 9 (18 pts), loops 2 (3 pts), match/switch 2 (3 pts) (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-workflow/src/params_runtime.rs"},"region":{"startLine":366}}}],"partialFingerprints":{"codehealthFindingId/v1":"de0aaea5d0ace24223bb61f1aad712e167c11f24406ac09d4f7976d6710b8ebb"}},{"ruleId":"D2","level":"warning","message":{"text":"nfs-evidence-summary.suggest_smoke_verify_args (cognitive 24): nfs-evidence-summary.suggest_smoke_verify_args has cognitive complexity 24 (threshold 15). Drivers by points: if/else 6 (14 pts), loops 3 (6 pts), ternaries 1 (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":"crab/scripts/nfs-evidence-summary.py"},"region":{"startLine":488}}}],"partialFingerprints":{"codehealthFindingId/v1":"f063ad5df4f4e79c2d0bc9535c1b4a9c1ce5e515179b29a3424c1f08c0bed3fa"}},{"ruleId":"D2","level":"warning","message":{"text":"qualify.run_stage (cognitive 24): qualify.run_stage has cognitive complexity 24 (threshold 15). Drivers by points: if/else 9 (15 pts), loops 5 (6 pts), boolean chains 2, ternaries 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-http-server/deploy/cell-issue-fleet/qualify.py"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"decf647c8522bb23472f526384f87fdf94becb03e1005126e54a681757b27106"}},{"ruleId":"D2","level":"warning","message":{"text":"browse.Directory (cognitive 24): browse.Directory has cognitive complexity 24 (threshold 15). Drivers by points: ternaries 8 (15 pts), boolean chains 8, if/else 1 (nesting depth added 7). Most of this is not in the body itself: 1 of the 24 points is its own statement and the rest belongs to 3 function literals inside it that branch (lines 202, 147, 137). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/browse.tsx"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"44c82af88035b267e19ae9756f235221b74b4b43982172dfe93d1ffca2331d22"}},{"ruleId":"D2","level":"warning","message":{"text":"pulls.PullList (cognitive 24): pulls.PullList has cognitive complexity 24 (threshold 15). Drivers by points: ternaries 9 (16 pts), boolean chains 8 (nesting depth added 7). Most of this is not in the body itself: 2 of the 24 points are its own statements and the rest belongs to 4 function literals inside it that branch (lines 371, 349, 375, \u2026). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pulls.tsx"},"region":{"startLine":305}}}],"partialFingerprints":{"codehealthFindingId/v1":"bcbee20b3963dbdbcccc62b4f468891d70adc4f3066dd4589da905df49e15852"}},{"ruleId":"D2","level":"warning","message":{"text":"TransferCoordinator::execute (cognitive 23): TransferCoordinator::execute has cognitive complexity 23 (threshold 15). Drivers by points: match/switch 4 (10 pts), if/else 5 (9 pts), boolean chains 3, 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":"crab/src/lfs/coordinator.rs"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"1567acd07653c9083f8937653017bb6853653888727f13839cbe00fe1eb57887"}},{"ruleId":"D2","level":"warning","message":{"text":"crab::cmd::dehydrate::dehydrate_batch_with_events (cognitive 23): crab::cmd::dehydrate::dehydrate_batch_with_events has cognitive complexity 23 (threshold 15). Drivers by points: if/else 6 (17 pts), boolean chains 3, 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":"crab/src/cmd/dehydrate.rs"},"region":{"startLine":925}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff50c2d2375affe09d38abb06eff2c1bd72593b0cc658880b4ef5fddf7808011"}},{"ruleId":"D2","level":"warning","message":{"text":"crab::cmd::exp::run_exp_remove_local (cognitive 23): crab::cmd::exp::run_exp_remove_local has cognitive complexity 23 (threshold 15). Drivers by points: if/else 13, boolean chains 8, loops 1 (2 pts) (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/cmd/exp.rs"},"region":{"startLine":2627}}}],"partialFingerprints":{"codehealthFindingId/v1":"40b2bc16d28dc7bb1acb3b4f1cc4139b5ccc93afddc5f3c9de0bfe56ec725498"}},{"ruleId":"D2","level":"warning","message":{"text":"crab::cmd::gc::stream_reachable_workflow_objects (cognitive 23): crab::cmd::gc::stream_reachable_workflow_objects has cognitive complexity 23 (threshold 15). Drivers by points: if/else 4 (12 pts), loops 5 (11 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":"crab/src/cmd/gc/mod.rs"},"region":{"startLine":2482}}}],"partialFingerprints":{"codehealthFindingId/v1":"513c83652e4d191950a5023267b8716220b04e17cd560f0ba7f14472e3e57b04"}},{"ruleId":"D2","level":"warning","message":{"text":"crab::cmd::hydrate::resolve_all_ref_pointer_prefetch_candidates (cognitive 23): crab::cmd::hydrate::resolve_all_ref_pointer_prefetch_candidates has cognitive complexity 23 (threshold 15). Drivers by points: if/else 8 (18 pts), loops 3 (4 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":"crab/src/cmd/hydrate.rs"},"region":{"startLine":2685}}}],"partialFingerprints":{"codehealthFindingId/v1":"652a6c791d7dae6dbb014609e9a0d0127f0ddafddf1cdd51f8a983f385947fd1"}},{"ruleId":"D2","level":"warning","message":{"text":"crab::cmd::status::process_tracked_file (cognitive 23): crab::cmd::status::process_tracked_file has cognitive complexity 23 (threshold 15). Drivers by points: if/else 8 (16 pts), match/switch 3 (7 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":"crab/src/cmd/status.rs"},"region":{"startLine":963}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a1fa6a8f2ddc7770a2bb79690ec820eec2fd97b88945d0b4e154a52d04658db"}},{"ruleId":"D2","level":"warning","message":{"text":"crab::cmd::unadopt::run_unadopt (cognitive 23): crab::cmd::unadopt::run_unadopt has cognitive complexity 23 (threshold 15). Drivers by points: if/else 10 (14 pts), loops 3 (7 pts), match/switch 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":"crab/src/cmd/unadopt.rs"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"1602af5eba0e4adc851c51dcf515312ad41c17379f6599857aa294322918a61d"}},{"ruleId":"D2","level":"warning","message":{"text":"crab::git::push::rebuild_split_commit_graph_from_remote_packs_if_current (cognitive 23): crab::git::push::rebuild_split_commit_graph_from_remote_packs_if_current has cognitive complexity 23 (threshold 15). Drivers by points: if/else 12 (20 pts), boolean chains 3 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/git/push.rs"},"region":{"startLine":17689}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fdd93cedfe686dd6ed97a2f7a9ae976531933139eb2a28bdeefe2be984c6d2b"}},{"ruleId":"D2","level":"warning","message":{"text":"crab::git::worktree::committed_pointers_for_paths (cognitive 23): crab::git::worktree::committed_pointers_for_paths has cognitive complexity 23 (threshold 15). Drivers by points: if/else 5 (14 pts), loops 3 (4 pts), match/switch 2 (3 pts), boolean chains 2 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/git/worktree.rs"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c4755125fe05b475dd63958547643da5908e7f560cd069f0435353e65d83f28"}},{"ruleId":"D2","level":"warning","message":{"text":"crab::lfs::recent::select_recent_commits (cognitive 23): crab::lfs::recent::select_recent_commits has cognitive complexity 23 (threshold 15). Drivers by points: if/else 9 (18 pts), loops 2 (3 pts), boolean chains 2 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/lfs/recent.rs"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"238bc08c7819faf6e387a44c1545a04471d48d8b1c5a441c997f3844cbe5faa3"}},{"ruleId":"D2","level":"warning","message":{"text":"crab::run_optimize_apply (cognitive 23): crab::run_optimize_apply has cognitive complexity 23 (threshold 15). Drivers by points: if/else 8 (19 pts), match/switch 1 (2 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":"crab/src/main.rs"},"region":{"startLine":5536}}}],"partialFingerprints":{"codehealthFindingId/v1":"11542d8daf84a83d55ea54a2f7890a894ca956e231e6165375a3475b1b6f4196"}},{"ruleId":"D2","level":"warning","message":{"text":"crab::optimize::xorbs::reconcile::build_mapping (cognitive 23): crab::optimize::xorbs::reconcile::build_mapping has cognitive complexity 23 (threshold 15). Drivers by points: if/else 7 (20 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":"crab/src/optimize/xorbs/reconcile.rs"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"6bc4582e054be55d3c26a925c6894c283a2b8827e7c79ba1b057103d9621d4ac"}},{"ruleId":"D2","level":"warning","message":{"text":"crab_cache::xet_chunk_cache::verify_xet_chunk_cache_entry (cognitive 23): crab_cache::xet_chunk_cache::verify_xet_chunk_cache_entry has cognitive complexity 23 (threshold 15). Drivers by points: if/else 12 (16 pts), boolean chains 5, loops 2 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-cache/src/xet_chunk_cache.rs"},"region":{"startLine":655}}}],"partialFingerprints":{"codehealthFindingId/v1":"be3da0321125653a9fb5b8cf62554b6a9a896f7630d424ee511411cc20bbc9be"}},{"ruleId":"D2","level":"warning","message":{"text":"CachingStore::query_dedup_batches (cognitive 23): CachingStore::query_dedup_batches has cognitive complexity 23 (threshold 15). Drivers by points: if/else 5 (14 pts), loops 3 (7 pts), match/switch 1 (2 pts) (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-cache-store/src/lib.rs"},"region":{"startLine":1091}}}],"partialFingerprints":{"codehealthFindingId/v1":"63caf81c108b831c542a24d4db2decd4bfed0349a7dc01e99005fba81219902e"}},{"ruleId":"D2","level":"warning","message":{"text":"Validator::parse (cognitive 23): Validator::parse has cognitive complexity 23 (threshold 15). Drivers by points: if/else 7 (16 pts), match/switch 2 (4 pts), loops 1 (2 pts), 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/crab-git/src/receive_plan.rs"},"region":{"startLine":397}}}],"partialFingerprints":{"codehealthFindingId/v1":"a814f94e470eae1252788b857411db715fe8d36dfdd6810667ad87ca4ec9daa8"}},{"ruleId":"D2","level":"warning","message":{"text":"RepositoryCellScheduler::process_cell (cognitive 23): RepositoryCellScheduler::process_cell has cognitive complexity 23 (threshold 15). Drivers by points: if/else 10 (14 pts), match/switch 4 (6 pts), boolean chains 3 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-http-server/src/cells/scheduler.rs"},"region":{"startLine":682}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e3b2d86fb3b74fc597a168735032e8097c7f53e8c098735e4140e6f7dbf92fa"}},{"ruleId":"D2","level":"warning","message":{"text":"crab_http_server::git_import::normalize_source (cognitive 23): crab_http_server::git_import::normalize_source has cognitive complexity 23 (threshold 15). Drivers by points: if/else 13 (15 pts), boolean chains 8 (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/crab-http-server/src/git_import.rs"},"region":{"startLine":912}}}],"partialFingerprints":{"codehealthFindingId/v1":"170eca917c13ff2041fc0e61e1f20b667f632e846303f6bf488b5cf03b99b779"}},{"ruleId":"D2","level":"warning","message":{"text":"crab_http_server::pulls::merge::execute (cognitive 23): crab_http_server::pulls::merge::execute has cognitive complexity 23 (threshold 15). Drivers by points: if/else 12 (16 pts), boolean chains 4, match/switch 3 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-http-server/src/pulls/merge.rs"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbd309c54bf2e03fcf20caa2f6a80138fd5083eb7af42c0090f9b456f7bf2f0d"}},{"ruleId":"D2","level":"warning","message":{"text":"RemoteGitReader::materialize_packed_entries (cognitive 23): RemoteGitReader::materialize_packed_entries has cognitive complexity 23 (threshold 15). Drivers by points: loops 8 (12 pts), if/else 5 (11 pts) (nesting depth added 10). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-remote-git/src/reader.rs"},"region":{"startLine":912}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb526f7f5cab09852b60e1d9fa80a2a86ca604c0f8b9b41bcaf2155821f18ad7"}},{"ruleId":"D2","level":"warning","message":{"text":"RemoteGitRuntime::generate_pack_singleflight (cognitive 23): RemoteGitRuntime::generate_pack_singleflight has cognitive complexity 23 (threshold 15). Drivers by points: if/else 7 (11 pts), match/switch 4 (11 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/crab-remote-git/src/runtime.rs"},"region":{"startLine":851}}}],"partialFingerprints":{"codehealthFindingId/v1":"04a13c4b49c2d6554839e87a5c64cd01be5469b9795fa71b98740266c9476b44"}},{"ruleId":"D2","level":"warning","message":{"text":"crab_remote_git::pack::produce_request_cached_pack (cognitive 23): crab_remote_git::pack::produce_request_cached_pack has cognitive complexity 23 (threshold 15). Drivers by points: if/else 6 (14 pts), match/switch 3 (8 pts), loops 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/crab-remote-git/src/pack.rs"},"region":{"startLine":1783}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1bc74f888c3a8b836def8fa7147a214590390111db6fc13bfa9f7c4b46a64e1"}},{"ruleId":"D2","level":"warning","message":{"text":"LocalRepository::prepare_push_with_options (cognitive 23): LocalRepository::prepare_push_with_options has cognitive complexity 23 (threshold 15). Drivers by points: if/else 8 (13 pts), match/switch 5 (9 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/crab-sdk/src/local/push.rs"},"region":{"startLine":333}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe1815a8e78215c980f506920482947da0f2ad746432c8af74808ef601583de5"}},{"ruleId":"D2","level":"warning","message":{"text":"crab_staging::read_prepared_staged_chunks_batch (cognitive 23): crab_staging::read_prepared_staged_chunks_batch has cognitive complexity 23 (threshold 15). Drivers by points: if/else 8 (17 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/crab-staging/src/lib.rs"},"region":{"startLine":1445}}}],"partialFingerprints":{"codehealthFindingId/v1":"27772e92972e415d8be53a8a6eb1e74cc62fbde174879ee9ded2462291f642a1"}},{"ruleId":"D2","level":"warning","message":{"text":"DaemonService::sync_repos (cognitive 23): DaemonService::sync_repos has cognitive complexity 23 (threshold 15). Drivers by points: if/else 8 (16 pts), boolean chains 3, loops 2, match/switch 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/crab-vfs/src/daemon.rs"},"region":{"startLine":617}}}],"partialFingerprints":{"codehealthFindingId/v1":"42aeb24d5d0b752acfc3412b73a9ecf086195d0c63b5dddd797bb65bf7798447"}},{"ruleId":"D2","level":"warning","message":{"text":"Lockfile::diff_against_resolved (cognitive 23): Lockfile::diff_against_resolved has cognitive complexity 23 (threshold 15). Drivers by points: match/switch 5 (10 pts), if/else 4 (7 pts), loops 6 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-workflow/src/lockfile.rs"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed0c6ad941f453cef349508746d2201b45941db409997bae83c70166c526c725"}},{"ruleId":"D2","level":"warning","message":{"text":"qualify_sdk.benchmark_read (cognitive 23): qualify_sdk.benchmark_read has cognitive complexity 23 (threshold 15). Drivers by points: if/else 8 (15 pts), loops 3 (6 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":"crab/scripts/qualify_sdk.py"},"region":{"startLine":422}}}],"partialFingerprints":{"codehealthFindingId/v1":"5978e9c5c37a8786f908d40189abd7ed873c941b1878c1a1b08dbd85c26ec3d3"}},{"ruleId":"D2","level":"warning","message":{"text":"code-symbols-panel.CodeSymbolsPanel (cognitive 23): code-symbols-panel.CodeSymbolsPanel has cognitive complexity 23 (threshold 15). Drivers by points: ternaries 8 (20 pts), boolean chains 2, loops 1 (nesting depth added 12). Of this number, 15 points are the body\u0027s own statements and 8 belong to 5 function literals inside it that branch. To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/code-symbols-panel.tsx"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"d90d2335efe38915a1de66274555a68ca4bcbd83a467accb204c38dd700b0ca7"}},{"ruleId":"D2","level":"warning","message":{"text":"crab::cmd::coordinator::run_started_coordinator (cognitive 22): crab::cmd::coordinator::run_started_coordinator has cognitive complexity 22 (threshold 15). Drivers by points: if/else 9 (17 pts), match/switch 2 (3 pts), boolean chains 1, loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/cmd/coordinator.rs"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"abd740cadb8e02fa6dadb03db69fd11d2eb936ec6377d28a41084011ef9ce364"}},{"ruleId":"D2","level":"warning","message":{"text":"crab::cmd::exp::remove_remote_experiments (cognitive 22): crab::cmd::exp::remove_remote_experiments has cognitive complexity 22 (threshold 15). Drivers by points: if/else 12, boolean chains 8, loops 1 (2 pts) (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/cmd/exp.rs"},"region":{"startLine":3351}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7dcb7952393a07305d24264bd3e059e468a87f2d741bb0fa55b0f40e4dee516"}},{"ruleId":"D2","level":"warning","message":{"text":"crab::cmd::fsck::run_fsck (cognitive 22): crab::cmd::fsck::run_fsck has cognitive complexity 22 (threshold 15). Drivers by points: match/switch 9 (10 pts), if/else 3 (6 pts), loops 4 (6 pts) (nesting depth added 6). 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":"crab/src/cmd/fsck.rs"},"region":{"startLine":570}}}],"partialFingerprints":{"codehealthFindingId/v1":"6486c2fd15cace9297d03cc5a32d0018f7880e72c320088240d590815b86f6e1"}},{"ruleId":"D2","level":"warning","message":{"text":"crab::cmd::gc::execute_deletes (cognitive 22): crab::cmd::gc::execute_deletes has cognitive complexity 22 (threshold 15). Drivers by points: if/else 3 (10 pts), match/switch 2 (6 pts), loops 3 (5 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":"crab/src/cmd/gc/mod.rs"},"region":{"startLine":1467}}}],"partialFingerprints":{"codehealthFindingId/v1":"38705d93317b75601a8d2d97014c3341f9fa5c07083328c9cadeb9be1f31a30e"}},{"ruleId":"D2","level":"warning","message":{"text":"crab::cmd::lfs::push::run_lfs_push (cognitive 22): crab::cmd::lfs::push::run_lfs_push has cognitive complexity 22 (threshold 15). Drivers by points: if/else 12 (15 pts), loops 2 (5 pts), boolean chains 2 (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":"crab/src/cmd/lfs/push.rs"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1941667a7e6e0803cbef77e9f53b572e34b308ef5b30d3e9643e1fc0312eeb7"}},{"ruleId":"D2","level":"warning","message":{"text":"crab::cmd::replica::collect_redacted_evidence_secret_findings (cognitive 22): crab::cmd::replica::collect_redacted_evidence_secret_findings has cognitive complexity 22 (threshold 15). Drivers by points: if/else 7 (16 pts), loops 2 (4 pts), boolean chains 1, match/switch 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":"crab/src/cmd/replica.rs"},"region":{"startLine":5656}}}],"partialFingerprints":{"codehealthFindingId/v1":"821c8cca5cc751d8dfd419eccd2a5a1c3c9f807af67f732f0411698435c5c7bd"}},{"ruleId":"D2","level":"warning","message":{"text":"crab::cmd::replica::evidence_verified_labels (cognitive 22): crab::cmd::replica::evidence_verified_labels has cognitive complexity 22 (threshold 15). Drivers by points: if/else 10 (19 pts), match/switch 1 (2 pts), loops 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/cmd/replica.rs"},"region":{"startLine":6936}}}],"partialFingerprints":{"codehealthFindingId/v1":"87d16509024459ebb5b036aa763ae8d4a2835a1ba2668ac251931a4a6dee3ec7"}},{"ruleId":"D2","level":"warning","message":{"text":"crab::cost::inventory::live::walk_live (cognitive 22): crab::cost::inventory::live::walk_live has cognitive complexity 22 (threshold 15). Drivers by points: loops 6 (12 pts), if/else 6 (7 pts), match/switch 1 (2 pts), boolean chains 1 (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":"crab/src/cost/inventory/live.rs"},"region":{"startLine":250}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bb3d8debc4206d950d10aaad5855621b5e4e4ac85414902ab14c517ac562a8d"}},{"ruleId":"D2","level":"warning","message":{"text":"crab::git::filter_process::smudge_by_blob_classification (cognitive 22): crab::git::filter_process::smudge_by_blob_classification has cognitive complexity 22 (threshold 15). Drivers by points: if/else 7 (14 pts), match/switch 3 (7 pts), boolean chains 1 (nesting depth added 11). 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":"crab/src/git/filter_process.rs"},"region":{"startLine":1523}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec1b3457ae2dd4dd243c6f5f1a1a899cde4ec504ca45b7fd2f1cb002418b5ce9"}},{"ruleId":"D2","level":"warning","message":{"text":"crab::git::process::communicate (cognitive 22): crab::git::process::communicate has cognitive complexity 22 (threshold 15). Drivers by points: if/else 6 (11 pts), boolean chains 5, match/switch 2 (5 pts), loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/git/process.rs"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2ee5234cec7186d7be96184bef8c075596172657199f4f4fa7e63d1059a94c0"}},{"ruleId":"D2","level":"warning","message":{"text":"crab::git::push::acquire_push_capacity_lock (cognitive 22): crab::git::push::acquire_push_capacity_lock has cognitive complexity 22 (threshold 15). Drivers by points: if/else 5 (16 pts), match/switch 2 (5 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":"crab/src/git/push.rs"},"region":{"startLine":5546}}}],"partialFingerprints":{"codehealthFindingId/v1":"e46b85bd3ffe465ece6511962c5aa64e5914a78b74392777853b6af4e4253c23"}},{"ruleId":"D2","level":"warning","message":{"text":"crab::git::worktree::write_index_stats (cognitive 22): crab::git::worktree::write_index_stats has cognitive complexity 22 (threshold 15). Drivers by points: if/else 9 (20 pts), boolean chains 1, 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":"crab/src/git/worktree.rs"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ee4bf537f8c77187494771cfbcd0e9a5353bc34fe2eb426a1e1a0b593e796db"}},{"ruleId":"D2","level":"warning","message":{"text":"crab::lfs::migrate::collect_large_files (cognitive 22): crab::lfs::migrate::collect_large_files has cognitive complexity 22 (threshold 15). Drivers by points: if/else 13 (19 pts), loops 2, 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":"crab/src/lfs/migrate.rs"},"region":{"startLine":2554}}}],"partialFingerprints":{"codehealthFindingId/v1":"21050f048f37cc9a519f6d49e7000f29218fc83ae99319736bb323fbe020d75f"}},{"ruleId":"D2","level":"warning","message":{"text":"crab_cache::local_cache::cached_remote_xorb_index (cognitive 22): crab_cache::local_cache::cached_remote_xorb_index has cognitive complexity 22 (threshold 15). Drivers by points: if/else 12 (19 pts), boolean chains 2, loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-cache/src/local_cache.rs"},"region":{"startLine":1455}}}],"partialFingerprints":{"codehealthFindingId/v1":"b00604fb010e48dc3977884ebbcb48aa15477d568ff3847831aacfce4e1215ff"}},{"ruleId":"D2","level":"warning","message":{"text":"GcFenceLease::acquire_with_holder (cognitive 22): GcFenceLease::acquire_with_holder has cognitive complexity 22 (threshold 15). Drivers by points: if/else 6 (11 pts), match/switch 3 (7 pts), boolean chains 3, 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/crab-coordination/src/gc_fence.rs"},"region":{"startLine":411}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9c1fa488f9da94b7eb9ae470cd93d8ac0e13b4b78d8f0ff5aefd9812516c8e6"}},{"ruleId":"D2","level":"warning","message":{"text":"crab_coordination::lease_operation::while_renewing_at (cognitive 22): crab_coordination::lease_operation::while_renewing_at has cognitive complexity 22 (threshold 15). Drivers by points: match/switch 4 (12 pts), if/else 2 (9 pts), loops 1 (nesting depth added 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. 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/crab-coordination/src/lease_operation.rs"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"ccce8e804579f339bd08ad29698a359e423ec0c3000d3d94cfd27fcc4578dde0"}},{"ruleId":"D2","level":"warning","message":{"text":"crab_git::pack_locator::validate_reverse (cognitive 22): crab_git::pack_locator::validate_reverse has cognitive complexity 22 (threshold 15). Drivers by points: if/else 13 (20 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/crab-git/src/pack_locator.rs"},"region":{"startLine":918}}}],"partialFingerprints":{"codehealthFindingId/v1":"918c4bfafa7d60d3cec2a19c8c24b3c06b96a73448c29f4cbcc2140fd46c54a7"}},{"ruleId":"D2","level":"warning","message":{"text":"crab_http_server::pulls::merge_tree::merge_base (cognitive 22): crab_http_server::pulls::merge_tree::merge_base has cognitive complexity 22 (threshold 15). Drivers by points: if/else 8 (17 pts), loops 2 (3 pts), match/switch 1 (2 pts) (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-http-server/src/pulls/merge_tree.rs"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"63c601208ae752225c82e6e066669a0a3bf69a4067b61f0692fd61b49571cb43"}},{"ruleId":"D2","level":"warning","message":{"text":"crab_metadata::path_state::append_path_state (cognitive 22): crab_metadata::path_state::append_path_state has cognitive complexity 22 (threshold 15). Drivers by points: if/else 9 (13 pts), loops 4 (6 pts), 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/crab-metadata/src/path_state.rs"},"region":{"startLine":294}}}],"partialFingerprints":{"codehealthFindingId/v1":"cdc709a09de207bb2ccd50e7c11ccfe949679b685592a715ab89006b879087a4"}},{"ruleId":"D2","level":"warning","message":{"text":"RemoteGitSnapshot::list_tree_blobs (cognitive 22): RemoteGitSnapshot::list_tree_blobs has cognitive complexity 22 (threshold 15). Drivers by points: if/else 7 (15 pts), match/switch 2 (5 pts), boolean chains 1, 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/crab-remote-git/src/tree_listing.rs"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1eb8b9589bf26067729130bb92fa8b2a6efc264f356ed73508a13b58caad551"}},{"ruleId":"D2","level":"warning","message":{"text":"crab_remote_git::pack::produce_cached_pack (cognitive 22): crab_remote_git::pack::produce_cached_pack has cognitive complexity 22 (threshold 15). Drivers by points: if/else 5 (13 pts), match/switch 3 (8 pts), loops 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/crab-remote-git/src/pack.rs"},"region":{"startLine":1559}}}],"partialFingerprints":{"codehealthFindingId/v1":"3111d2a69f2dbb315c6094fee22336576f9380c58e8d7c06c1a8800de243fe67"}},{"ruleId":"D2","level":"warning","message":{"text":"Gateway::list_objects_v2 (cognitive 22): Gateway::list_objects_v2 has cognitive complexity 22 (threshold 15). Drivers by points: match/switch 7 (11 pts), if/else 6, loops 3 (5 pts) (nesting depth added 6). 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/crab-s3-gateway/src/gateway.rs"},"region":{"startLine":2921}}}],"partialFingerprints":{"codehealthFindingId/v1":"5efa2aa10cb673de8e80eb664f7236ceb8b4ef27494692db4876f0f86606194c"}},{"ruleId":"D2","level":"warning","message":{"text":"crab_s3_gateway::multipart::reserve_transfer (cognitive 22): crab_s3_gateway::multipart::reserve_transfer has cognitive complexity 22 (threshold 15). Drivers by points: if/else 7 (17 pts), boolean chains 2, 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/crab-s3-gateway/src/multipart.rs"},"region":{"startLine":682}}}],"partialFingerprints":{"codehealthFindingId/v1":"f24bae4109ac8f92ea58f34d0aa26943152d9b7ae0f675704499d84b76002957"}},{"ruleId":"D2","level":"warning","message":{"text":"crab_s3_gateway::mutation::apply_with_fences (cognitive 22): crab_s3_gateway::mutation::apply_with_fences has cognitive complexity 22 (threshold 15). Drivers by points: if/else 6 (18 pts), match/switch 1 (2 pts), boolean chains 1, loops 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/crab-s3-gateway/src/mutation.rs"},"region":{"startLine":1370}}}],"partialFingerprints":{"codehealthFindingId/v1":"b01831ac010f50e3b369ee976e80258030e08a815a0658c691311a8998c6e4a2"}},{"ruleId":"D2","level":"warning","message":{"text":"crab_s3_gateway::server::serve (cognitive 22): crab_s3_gateway::server::serve has cognitive complexity 22 (threshold 15). Drivers by points: if/else 6 (14 pts), match/switch 4 (7 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/crab-s3-gateway/src/server.rs"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd1dc5de44d5f196d278e376805fd0102caa681579273d076b7d86cc8757dc46"}},{"ruleId":"D2","level":"warning","message":{"text":"Index::batch_dedup_check (cognitive 22): Index::batch_dedup_check has cognitive complexity 22 (threshold 15). Drivers by points: if/else 6 (11 pts), loops 7 (11 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/crab-staging/src/index.rs"},"region":{"startLine":8337}}}],"partialFingerprints":{"codehealthFindingId/v1":"8060ff3a56adfd0aa17ab68352a1b2faf636de9d0e04f28f7a86ebefeb61239b"}},{"ruleId":"D2","level":"warning","message":{"text":"crab_staging::add_push_plan::prepare_uncached_file_plans_with_progress (cognitive 22): crab_staging::add_push_plan::prepare_uncached_file_plans_with_progress has cognitive complexity 22 (threshold 15). Drivers by points: if/else 5 (14 pts), loops 6 (8 pts) (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-staging/src/add_push_plan.rs"},"region":{"startLine":378}}}],"partialFingerprints":{"codehealthFindingId/v1":"efc46a9add6982b28fa703b6d274ca55e14f9b9319486de991ae0c16d484ecd4"}},{"ruleId":"D2","level":"warning","message":{"text":"Store::upload_missing_parts (cognitive 22): Store::upload_missing_parts has cognitive complexity 22 (threshold 15). Drivers by points: if/else 8 (15 pts), loops 3 (4 pts), boolean chains 3 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-storage/src/store.rs"},"region":{"startLine":2170}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5bea911d4a182655a4b30482399ec38bf8c8925d12150c2a706920b172c64f0"}},{"ruleId":"D2","level":"warning","message":{"text":"OverlayStore::reconcile (cognitive 22): OverlayStore::reconcile has cognitive complexity 22 (threshold 15). Drivers by points: if/else 7 (12 pts), match/switch 2 (6 pts), loops 3, 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/crab-vfs/src/overlay.rs"},"region":{"startLine":368}}}],"partialFingerprints":{"codehealthFindingId/v1":"4831c4f0609c7d7f3ffd5178f1e59848cedb0dd2ba53321cc701dfa617f38e2e"}},{"ruleId":"D2","level":"warning","message":{"text":"crab_workflow::artifact::read_remote_artifact_registry (cognitive 22): crab_workflow::artifact::read_remote_artifact_registry has cognitive complexity 22 (threshold 15). Drivers by points: if/else 8 (16 pts), loops 4, boolean chains 2 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-workflow/src/artifact.rs"},"region":{"startLine":631}}}],"partialFingerprints":{"codehealthFindingId/v1":"301606c28bd11340b7bf26a0a0d45d2a1730662e33c725cfe123e13f058aa12e"}},{"ruleId":"D2","level":"warning","message":{"text":"crab_workflow::cache::store_local_xorbs (cognitive 22): crab_workflow::cache::store_local_xorbs has cognitive complexity 22 (threshold 15). Drivers by points: if/else 7 (16 pts), loops 2 (4 pts), 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/crab-workflow/src/cache.rs"},"region":{"startLine":252}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9577ae2be78161f4ebb1cd5cba4f47f5cc097805544eb3a5f3b6db7167ac535"}},{"ruleId":"D2","level":"warning","message":{"text":"crab_workflow::hydra::find_interpolation_end (cognitive 22): crab_workflow::hydra::find_interpolation_end has cognitive complexity 22 (threshold 15). Drivers by points: if/else 9 (18 pts), match/switch 1 (2 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/crab-workflow/src/hydra.rs"},"region":{"startLine":890}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a4740bae3be5d1a45c3536dbf2d69c75e0686e036e099db8f2bfcd7125ce778"}},{"ruleId":"D2","level":"warning","message":{"text":"crab_workflow::params_runtime::render_markdown (cognitive 22): crab_workflow::params_runtime::render_markdown has cognitive complexity 22 (threshold 15). Drivers by points: if/else 10 (11 pts), loops 5 (11 pts) (nesting depth added 7). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-workflow/src/params_runtime.rs"},"region":{"startLine":642}}}],"partialFingerprints":{"codehealthFindingId/v1":"1078e06125bc115965bd46d144bebfbf5e829c6cc1b2a6825d369cc2c6648073"}},{"ruleId":"D2","level":"warning","message":{"text":"crab_workflow::yaml::stage_from_raw (cognitive 22): crab_workflow::yaml::stage_from_raw has cognitive complexity 22 (threshold 15). Drivers by points: loops 6 (8 pts), match/switch 7, if/else 3 (5 pts), boolean chains 2 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-workflow/src/yaml.rs"},"region":{"startLine":1219}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9301d84c51f9071b85c90c56488d955f52d1053240158f03f59e4b04715a463"}},{"ruleId":"D2","level":"warning","message":{"text":"check-architecture-gates.check_xet_owner_imports (cognitive 22): check-architecture-gates.check_xet_owner_imports has cognitive complexity 22 (threshold 15). Drivers by points: if/else 5 (12 pts), loops 4 (7 pts), error handling 1 (3 pts) (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/scripts/check-architecture-gates.py"},"region":{"startLine":3731}}}],"partialFingerprints":{"codehealthFindingId/v1":"04a07ebe28ef0564813e39c6c75414f42c2d488331847fb66b6da87f1acc9f5e"}},{"ruleId":"D2","level":"warning","message":{"text":"check-architecture-gates.check_cache_server_origin_construction (cognitive 22): check-architecture-gates.check_cache_server_origin_construction has cognitive complexity 22 (threshold 15). Drivers by points: if/else 5 (11 pts), loops 4 (7 pts), error handling 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. This shape REPEATS in the file: one other method here (check-architecture-gates.check_auth_server_runtime_scope) 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":"crab/scripts/check-architecture-gates.py"},"region":{"startLine":3788}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdce0365165f34d466e42b6ae5ff7241708f33b00e2e227bd5e939cfaef439e7"}},{"ruleId":"D2","level":"warning","message":{"text":"check-architecture-gates.check_auth_server_runtime_scope (cognitive 22): check-architecture-gates.check_auth_server_runtime_scope has cognitive complexity 22 (threshold 15). Drivers by points: if/else 5 (11 pts), loops 4 (7 pts), error handling 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. This shape REPEATS in the file: one other method here (check-architecture-gates.check_cache_server_origin_construction) 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":"crab/scripts/check-architecture-gates.py"},"region":{"startLine":3982}}}],"partialFingerprints":{"codehealthFindingId/v1":"44197ff3273154a4f3d8519047d154d64e6251f1f1fa91e28e0e356ca5bfe50d"}},{"ruleId":"D2","level":"warning","message":{"text":"nfs-read-path-bench-report.validate_comparison_thresholds (cognitive 22): nfs-read-path-bench-report.validate_comparison_thresholds has cognitive complexity 22 (threshold 15). Drivers by points: if/else 8 (16 pts), loops 2 (6 pts) (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/scripts/nfs-read-path-bench-report.py"},"region":{"startLine":393}}}],"partialFingerprints":{"codehealthFindingId/v1":"205186ddf93dffcd3d7d8ad5fd5f6ee44776473d1510588ac0e2f5ab965bfb90"}},{"ruleId":"D2","level":"warning","message":{"text":"verify-nfs-smoke-report.check_mount_list_artifact (cognitive 22): verify-nfs-smoke-report.check_mount_list_artifact has cognitive complexity 22 (threshold 15). Drivers by points: if/else 10 (14 pts), boolean chains 4, loops 2 (3 pts), error handling 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/scripts/verify-nfs-smoke-report.py"},"region":{"startLine":351}}}],"partialFingerprints":{"codehealthFindingId/v1":"7197f967cf57229562eacff790edcb48d1d911a1a259e2779cbdec8b463de35f"}},{"ruleId":"D2","level":"warning","message":{"text":"TailFault.preflight (cognitive 22): TailFault.preflight has cognitive complexity 22 (threshold 15). Drivers by points: if/else 8 (15 pts), boolean chains 6, loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-http-server/deploy/cell-issue-fleet/fault.py"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b4895eb7c60e12d9d3cd4d1c24779bba26501b9d16ec58f4bbd28f4ae5295c4"}},{"ruleId":"D2","level":"warning","message":{"text":"load.wait_for_placement (cognitive 22): load.wait_for_placement has cognitive complexity 22 (threshold 15). Drivers by points: if/else 5 (10 pts), boolean chains 5, loops 2 (3 pts), error handling 1 (2 pts), ternaries 1 (2 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-http-server/deploy/cell-issue-fleet/load.py"},"region":{"startLine":337}}}],"partialFingerprints":{"codehealthFindingId/v1":"b07b23b9b5ec1b4e71ed72f45fd91f81a60b7c6c4624c1ff8a0c91c7073de66c"}},{"ruleId":"D2","level":"warning","message":{"text":"pdf-preview.PdfPreview (cognitive 22): pdf-preview.PdfPreview has cognitive complexity 22 (threshold 15). Drivers by points: if/else 11, ternaries 3 (6 pts), boolean chains 5 (nesting depth added 3). Most of this is not in the body itself: 2 of the 22 points are its own statements and the rest belongs to 7 function literals inside it that branch (lines 56, 79, 37, \u2026). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pdf-preview.tsx"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae6133cd20471bc7f2f68e0bda79fcea31ffbaf14192fbcaa18ba2325b445906"}},{"ruleId":"D2","level":"warning","message":{"text":"content.DiffView (cognitive 22): content.DiffView has cognitive complexity 22 (threshold 15). Drivers by points: ternaries 8 (9 pts), boolean chains 7, if/else 6 (nesting depth added 1). Most of this is not in the body itself: 3 of the 22 points are its own statements and the rest belongs to 8 function literals inside it that branch (lines 974, 932, 941, \u2026). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/content.tsx"},"region":{"startLine":915}}}],"partialFingerprints":{"codehealthFindingId/v1":"49d430d060f9adcef5c252c0a53a460d91ac891801e76c9f0bb10f89b84a9b09"}},{"ruleId":"D2","level":"warning","message":{"text":"release-form.EditReleaseForm (cognitive 22): release-form.EditReleaseForm has cognitive complexity 22 (threshold 15). Drivers by points: ternaries 10 (18 pts), boolean chains 2, error handling 1, if/else 1 (nesting depth added 8). Most of this is not in the body itself: 9 of the 22 points are its own statements and the rest belongs to one function item inside it that branches (update). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/release-form.tsx"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e47be40982e358cf21585becb2016d7c56cec58a41c9e3fb7a33d52fb446737"}},{"ruleId":"D2","level":"warning","message":{"text":"StoreRepairer::abort_multipart (cognitive 21): StoreRepairer::abort_multipart has cognitive complexity 21 (threshold 15). Drivers by points: if/else 9 (15 pts), match/switch 1 (3 pts), loops 1 (2 pts), boolean chains 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/cmd/fsck_store.rs"},"region":{"startLine":990}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f495621c467db16d13ecf1dc9873fba0bf27db40ee88668d03cd9b6896aacd5"}},{"ruleId":"D2","level":"warning","message":{"text":"SmudgeSessionHydrator::hydrate_batch (cognitive 21): SmudgeSessionHydrator::hydrate_batch has cognitive complexity 21 (threshold 15). Drivers by points: if/else 5 (13 pts), match/switch 3 (7 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":"crab/src/cmd/hydrate.rs"},"region":{"startLine":488}}}],"partialFingerprints":{"codehealthFindingId/v1":"b296cb6413097f5e68ab157b6e835e3d1bd692d028e67eed7fc4c655f3c07a99"}},{"ruleId":"D2","level":"warning","message":{"text":"PushPipeline::execute_admitted (cognitive 21): PushPipeline::execute_admitted has cognitive complexity 21 (threshold 15). Drivers by points: if/else 12 (15 pts), boolean chains 2, loops 1 (2 pts), match/switch 2 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/git/push.rs"},"region":{"startLine":16576}}}],"partialFingerprints":{"codehealthFindingId/v1":"c331bd5cd355d4d2108ba240ce631c7c139ed3cae81ab886c54d98ed2ad1a259"}},{"ruleId":"D2","level":"warning","message":{"text":"crab::cmd::lfs::fsck::fsck_objects (cognitive 21): crab::cmd::lfs::fsck::fsck_objects has cognitive complexity 21 (threshold 15). Drivers by points: if/else 6 (15 pts), loops 3 (6 pts) (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/cmd/lfs/fsck.rs"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"2554420774577a25e9a4bfc046625597c9398d4bc7a48a7dd52712eeaa034bcf"}},{"ruleId":"D2","level":"warning","message":{"text":"crab::cmd::ls_files::walk_tracked_files (cognitive 21): crab::cmd::ls_files::walk_tracked_files has cognitive complexity 21 (threshold 15). Drivers by points: if/else 6 (12 pts), match/switch 3 (8 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":"crab/src/cmd/ls_files.rs"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc021cf68ae7fc3b20b0532d2a05ae76c944e114656ba21309b121c78d70cac0"}},{"ruleId":"D2","level":"warning","message":{"text":"crab::cmd::migrate::write_migration_lock (cognitive 21): crab::cmd::migrate::write_migration_lock has cognitive complexity 21 (threshold 15). Drivers by points: if/else 7 (15 pts), loops 3 (4 pts), match/switch 1 (2 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/cmd/migrate.rs"},"region":{"startLine":1685}}}],"partialFingerprints":{"codehealthFindingId/v1":"1803835de3dc9a0f919984e436f5677837bb46fd96ae59b68cce531e9a5b0c60"}},{"ruleId":"D2","level":"warning","message":{"text":"crab::cmd::mount::print_mount_status_display (cognitive 21): crab::cmd::mount::print_mount_status_display has cognitive complexity 21 (threshold 15). Drivers by points: if/else 15 (17 pts), loops 1 (3 pts), boolean chains 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":"crab/src/cmd/mount.rs"},"region":{"startLine":4567}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d0f1565ab6dac5ed90262122f20d6737fe66db17470e2b0b476628f0dd04584"}},{"ruleId":"D2","level":"warning","message":{"text":"crab::cmd::reset::walk_pointer_files (cognitive 21): crab::cmd::reset::walk_pointer_files has cognitive complexity 21 (threshold 15). Drivers by points: if/else 9 (19 pts), loops 1, match/switch 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":"crab/src/cmd/reset.rs"},"region":{"startLine":294}}}],"partialFingerprints":{"codehealthFindingId/v1":"a56f4bb576ebac8038060c9e8e6ca5efdea8da82d5d44899c961059738a46253"}},{"ruleId":"D2","level":"warning","message":{"text":"crab::cmd::stage::list::resolve_stage_list_inputs (cognitive 21): crab::cmd::stage::list::resolve_stage_list_inputs has cognitive complexity 21 (threshold 15). Drivers by points: if/else 7 (12 pts), loops 3 (7 pts), boolean chains 2 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/cmd/stage/list.rs"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"a91918c7bef114541a54b98c03efbe3e346585985a5549531bf6a2438d2fd461"}},{"ruleId":"D2","level":"warning","message":{"text":"crab::cmd::status_workflow::resolve_path_dep_hashes (cognitive 21): crab::cmd::status_workflow::resolve_path_dep_hashes has cognitive complexity 21 (threshold 15). Drivers by points: if/else 8 (18 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":"crab/src/cmd/status_workflow.rs"},"region":{"startLine":894}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bd315333be5c0c7eda6d371441c7274f2292e4f07f24314852d0393200e9d30"}},{"ruleId":"D2","level":"warning","message":{"text":"crab::git::fetch::run_shallow_fetch (cognitive 21): crab::git::fetch::run_shallow_fetch has cognitive complexity 21 (threshold 15). Drivers by points: if/else 17 (21 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":"crab/src/git/fetch.rs"},"region":{"startLine":324}}}],"partialFingerprints":{"codehealthFindingId/v1":"10292704438640c26e76c1c219cc4963782777ee7c6dd5a179c9e45aa09cecff"}},{"ruleId":"D2","level":"warning","message":{"text":"crab::git::push::remote_xorb_placements_match_with_digest (cognitive 21): crab::git::push::remote_xorb_placements_match_with_digest has cognitive complexity 21 (threshold 15). Drivers by points: if/else 6 (13 pts), loops 4 (6 pts), boolean chains 2 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/git/push.rs"},"region":{"startLine":718}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c0be24fac00b5e683f21e6c1d7b9a6a51e5fd1b2f88a69467536939076d8459"}},{"ruleId":"D2","level":"warning","message":{"text":"crab::git::remote_helper::fetch_packs (cognitive 21): crab::git::remote_helper::fetch_packs has cognitive complexity 21 (threshold 15). Drivers by points: if/else 12 (14 pts), match/switch 1 (3 pts), boolean chains 2, 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":"crab/src/git/remote_helper.rs"},"region":{"startLine":2472}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e9b87df4e52c2927958688e9bbfccc955290e4d42f36008ee83a7fc6dc3b793"}},{"ruleId":"D2","level":"warning","message":{"text":"crab::load_env_layered (cognitive 21): crab::load_env_layered has cognitive complexity 21 (threshold 15). Drivers by points: if/else 7 (13 pts), boolean chains 3, match/switch 1 (3 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":"crab/src/main.rs"},"region":{"startLine":2781}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc7e63bfcbee46f9f50d79f7b9d8af25f89dc6db81eadc0a86d4ca8b035a654c"}},{"ruleId":"D2","level":"warning","message":{"text":"crab_cache::local_cache::maintenance::verify_file (cognitive 21): crab_cache::local_cache::maintenance::verify_file has cognitive complexity 21 (threshold 15). Drivers by points: if/else 7 (13 pts), loops 2 (3 pts), match/switch 2 (3 pts), boolean chains 2 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-cache/src/local_cache/maintenance.rs"},"region":{"startLine":401}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac521a7c0ecd8462d99319a545176a07fd6c4dfd86139f77f1b55489ce871f27"}},{"ruleId":"D2","level":"warning","message":{"text":"crab_http_server::pulls::merge::finish (cognitive 21): crab_http_server::pulls::merge::finish has cognitive complexity 21 (threshold 15). Drivers by points: if/else 6 (14 pts), match/switch 2 (5 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/crab-http-server/src/pulls/merge.rs"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c93044713d5c151c988918d369cee056bd25aa7115b3e322a3f417eb93fb452"}},{"ruleId":"D2","level":"warning","message":{"text":"crab_read::store_client::build_range_response_v2 (cognitive 21): crab_read::store_client::build_range_response_v2 has cognitive complexity 21 (threshold 15). Drivers by points: if/else 8 (15 pts), loops 3 (5 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/crab-read/src/store_client.rs"},"region":{"startLine":397}}}],"partialFingerprints":{"codehealthFindingId/v1":"f42ded855089ffa3b13e5fa625e921a3a6d947d177fb5eb6bbdd3aa61a63eccb"}},{"ruleId":"D2","level":"warning","message":{"text":"crab_read::upload_pack::parse_filter_component (cognitive 21): crab_read::upload_pack::parse_filter_component has cognitive complexity 21 (threshold 15). Drivers by points: if/else 12 (18 pts), loops 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/crab-read/src/upload_pack.rs"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4e0cabdfe36c9fa4f79d510522833f247e12c98865cba73a413591df9b1eb42"}},{"ruleId":"D2","level":"warning","message":{"text":"RemoteGitSnapshot::list_directory_with_metadata (cognitive 21): RemoteGitSnapshot::list_directory_with_metadata has cognitive complexity 21 (threshold 15). Drivers by points: if/else 10 (16 pts), loops 2 (3 pts), boolean chains 1, match/switch 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-remote-git/src/snapshot.rs"},"region":{"startLine":1056}}}],"partialFingerprints":{"codehealthFindingId/v1":"e22a687a9239473ce8f4a163b015d4374996a53dc6491c3cdb556ec5da918047"}},{"ruleId":"D2","level":"warning","message":{"text":"crab_remote_git::reader::parse_pack_index (cognitive 21): crab_remote_git::reader::parse_pack_index has cognitive complexity 21 (threshold 15). Drivers by points: if/else 10 (14 pts), loops 5 (6 pts), boolean chains 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-remote-git/src/reader.rs"},"region":{"startLine":2407}}}],"partialFingerprints":{"codehealthFindingId/v1":"a82759f62a1473e25351001ea8629d375dbea9875abaecf2a3bb6a8a4031e23f"}},{"ruleId":"D2","level":"warning","message":{"text":"CheckpointScheduler::run_ref (cognitive 21): CheckpointScheduler::run_ref has cognitive complexity 21 (threshold 15). Drivers by points: if/else 5 (10 pts), match/switch 5 (10 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/crab-s3-gateway/src/mutation.rs"},"region":{"startLine":653}}}],"partialFingerprints":{"codehealthFindingId/v1":"b88eb00e9fd6321d309be536594247b39c09f7cd4f70bd5becdc6caf2e278c3d"}},{"ruleId":"D2","level":"warning","message":{"text":"crab_s3_gateway::gateway::read_selection (cognitive 21): crab_s3_gateway::gateway::read_selection has cognitive complexity 21 (threshold 15). Drivers by points: if/else 10 (17 pts), boolean chains 2, loops 1 (2 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-s3-gateway/src/gateway.rs"},"region":{"startLine":3751}}}],"partialFingerprints":{"codehealthFindingId/v1":"59a2f49cd4da30e92c1faaa8704e398cf5e77cfb13ada63401959fb6615c513b"}},{"ruleId":"D2","level":"warning","message":{"text":"crab_vfs::publish::export_overlay_with_view (cognitive 21): crab_vfs::publish::export_overlay_with_view has cognitive complexity 21 (threshold 15). Drivers by points: if/else 7 (18 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/crab-vfs/src/publish.rs"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"f252065c993a17f60f617735f2fc06727f78f7c19c49bad4371c27b8d1518852"}},{"ruleId":"D2","level":"warning","message":{"text":"crab_workflow::exp_worktree::apply_python (cognitive 21): crab_workflow::exp_worktree::apply_python has cognitive complexity 21 (threshold 15). Drivers by points: loops 6 (11 pts), if/else 4 (6 pts), boolean chains 2, 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/crab-workflow/src/exp_worktree.rs"},"region":{"startLine":911}}}],"partialFingerprints":{"codehealthFindingId/v1":"ecd66a2cf386b1c359c5d438c3df72605728dc1d45d00764e3826cb7a7114eda"}},{"ruleId":"D2","level":"warning","message":{"text":"crab_workflow::hydra::split_resolver_args (cognitive 21): crab_workflow::hydra::split_resolver_args has cognitive complexity 21 (threshold 15). Drivers by points: if/else 8 (14 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/crab-workflow/src/hydra.rs"},"region":{"startLine":1197}}}],"partialFingerprints":{"codehealthFindingId/v1":"75c51fe063053b75333301099b71e3a1e3ea5bae2f13dfc8b6328390e72cb599"}},{"ruleId":"D2","level":"warning","message":{"text":"crab_workflow::source::validate_descriptor (cognitive 21): crab_workflow::source::validate_descriptor has cognitive complexity 21 (threshold 15). Drivers by points: if/else 9 (11 pts), boolean chains 9, loops 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-workflow/src/source.rs"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5d89e1e1a1cb0f78d6f6038efcb88be04acb5355b474c1b922771e4830c462e"}},{"ruleId":"D2","level":"warning","message":{"text":"crab_workflow::template::substitute::substitute_with (cognitive 21): crab_workflow::template::substitute::substitute_with has cognitive complexity 21 (threshold 15). Drivers by points: if/else 4 (10 pts), loops 3 (7 pts), boolean chains 4 (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/crab-workflow/src/template/substitute.rs"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ced5fb91f8ccb3c7b7e4f1bbbb02b627adc72c53441b6103c473cd4632b7541"}},{"ruleId":"D2","level":"warning","message":{"text":"check-nfs-smoke-scripts.self_test (cognitive 21): check-nfs-smoke-scripts.self_test has cognitive complexity 21 (threshold 15). Drivers by points: if/else 9 (18 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":"crab/scripts/check-nfs-smoke-scripts.py"},"region":{"startLine":311}}}],"partialFingerprints":{"codehealthFindingId/v1":"faa76d6388cb21a2588ffe7d18049ee1ddc39b363e1204fa3966e0729a682dfb"}},{"ruleId":"D2","level":"warning","message":{"text":"verify-sdk-read-only.main (cognitive 21): verify-sdk-read-only.main has cognitive complexity 21 (threshold 15). Drivers by points: if/else 6 (9 pts), boolean chains 7, error handling 1 (2 pts), loops 2, ternaries 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/scripts/verify-sdk-read-only.py"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"25957483568fb1577d121ecb9017af2d474aeb62a095c82069790fe341130364"}},{"ruleId":"D2","level":"warning","message":{"text":"qualify.prove_owner_loss (cognitive 21): qualify.prove_owner_loss has cognitive complexity 21 (threshold 15). Drivers by points: if/else 6 (11 pts), boolean chains 5, error handling 1 (2 pts), loops 2, ternaries 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-http-server/deploy/cell-issue-fleet/qualify.py"},"region":{"startLine":322}}}],"partialFingerprints":{"codehealthFindingId/v1":"213f7fe1f5d8f947a25eb903b83806e4aaaf327c359f797b5385be5496edf350"}},{"ruleId":"D2","level":"warning","message":{"text":"qualify_read_replicas.measure_refresh (cognitive 21): qualify_read_replicas.measure_refresh has cognitive complexity 21 (threshold 15). Drivers by points: if/else 9 (16 pts), boolean chains 2, error handling 1 (2 pts), loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-http-server/deploy/cell-issue-fleet/qualify_read_replicas.py"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ad0b807814b6fa61ba4d69ab33422ed0da1aff9b1cfec922c7185644620fffe"}},{"ruleId":"D2","level":"warning","message":{"text":"release-form.NewRelease (cognitive 21): release-form.NewRelease has cognitive complexity 21 (threshold 15). Drivers by points: ternaries 6 (9 pts), boolean chains 6, if/else 5, error handling 1 (nesting depth added 3). Most of this is not in the body itself: 10 of the 21 points are its own statements and the rest belongs to one function item inside it that branches (submit). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/release-form.tsx"},"region":{"startLine":375}}}],"partialFingerprints":{"codehealthFindingId/v1":"e46b39791dbac3d00d72be8a5e6a2167325318ca1ca47f7e90b848f08589b9d8"}},{"ruleId":"D2","level":"warning","message":{"text":"Config::apply_cache_overlay (cognitive 20): Config::apply_cache_overlay has cognitive complexity 20 (threshold 15). Drivers by points: if/else 12 (16 pts), match/switch 2 (3 pts), boolean chains 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/core/config.rs"},"region":{"startLine":2424}}}],"partialFingerprints":{"codehealthFindingId/v1":"b47b056a5ab200964e2d3140e1cfc64d7b91450d91beccbc3892d2a2a1ee5fe2"}},{"ruleId":"D2","level":"warning","message":{"text":"LfsConfig::apply_env (cognitive 20): LfsConfig::apply_env has cognitive complexity 20 (threshold 15). Drivers by points: if/else 11, boolean chains 7, match/switch 1 (2 pts) (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/lfs/config.rs"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebdc155437f2b9446f1f532434aea0dfcaa37840a35ac88f542174cd82029628"}},{"ruleId":"D2","level":"warning","message":{"text":"crab::audit::verify_log (cognitive 20): crab::audit::verify_log has cognitive complexity 20 (threshold 15). Drivers by points: if/else 6 (13 pts), match/switch 2 (5 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":"crab/src/audit.rs"},"region":{"startLine":277}}}],"partialFingerprints":{"codehealthFindingId/v1":"e75ead39ef1e5598d3d451f4da04c8f31f3e8ec4ed2d9229acdda002efd01f1a"}},{"ruleId":"D2","level":"warning","message":{"text":"crab::cmd::adopt::run_adopt (cognitive 20): crab::cmd::adopt::run_adopt has cognitive complexity 20 (threshold 15). Drivers by points: if/else 11 (16 pts), boolean chains 2, match/switch 1 (2 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/cmd/adopt.rs"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab8ecd5be0b788fdaa8c475b4bbd2b8c65ff42c37355f10b5e35d9676ce7bb5d"}},{"ruleId":"D2","level":"warning","message":{"text":"crab::cmd::download::run_download (cognitive 20): crab::cmd::download::run_download has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9 (13 pts), boolean chains 3, loops 2, match/switch 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":"crab/src/cmd/download.rs"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"95f796ed62c57f7db9670556bb868e4145e55c07d932dc1b544ae45fab238c1a"}},{"ruleId":"D2","level":"warning","message":{"text":"crab::cmd::replica::verify_evidence_file (cognitive 20): crab::cmd::replica::verify_evidence_file has cognitive complexity 20 (threshold 15). Drivers by points: if/else 7 (11 pts), match/switch 4 (6 pts), boolean chains 3 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/cmd/replica.rs"},"region":{"startLine":4202}}}],"partialFingerprints":{"codehealthFindingId/v1":"d91907cf684d00082a5eabd7f680057deada3928d0b1aa0f1b864b6a9206c783"}},{"ruleId":"D2","level":"warning","message":{"text":"crab::cmd::replica::render_promote (cognitive 20): crab::cmd::replica::render_promote has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9 (14 pts), loops 3 (6 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/cmd/replica.rs"},"region":{"startLine":12563}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f18af751b80fcd858f7eb57a770a004e8152e66be71ddcb25b8231ae8a2eb5d"}},{"ruleId":"D2","level":"warning","message":{"text":"crab::cmd::replica::render_set_primary (cognitive 20): crab::cmd::replica::render_set_primary has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9 (14 pts), loops 3 (6 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/cmd/replica.rs"},"region":{"startLine":12916}}}],"partialFingerprints":{"codehealthFindingId/v1":"e945df8698f7120c9bcfccaef7eb1f33fe0d0655227b92f9d10a074c76166950"}},{"ruleId":"D2","level":"warning","message":{"text":"crab::cmd::run::run_watch (cognitive 20): crab::cmd::run::run_watch has cognitive complexity 20 (threshold 15). Drivers by points: if/else 11 (17 pts), 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":"crab/src/cmd/run.rs"},"region":{"startLine":4912}}}],"partialFingerprints":{"codehealthFindingId/v1":"e02d6a214ec0748ab2979f4aaeb22d643c224d4f2ab3b200f088f332e5e225e8"}},{"ruleId":"D2","level":"warning","message":{"text":"crab::git::fetch::download_packs_concurrent (cognitive 20): crab::git::fetch::download_packs_concurrent has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (15 pts), loops 2, match/switch 1 (2 pts), boolean chains 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/git/fetch.rs"},"region":{"startLine":636}}}],"partialFingerprints":{"codehealthFindingId/v1":"ababe3ea7890c5c5c0bf9c9647eaa53d33c04a2f39c507ca140ec6a2454e79c0"}},{"ruleId":"D2","level":"warning","message":{"text":"crab::git::remote_helper::parse_command (cognitive 20): crab::git::remote_helper::parse_command has cognitive complexity 20 (threshold 15). Drivers by points: if/else 13 (18 pts), boolean chains 2 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/git/remote_helper.rs"},"region":{"startLine":408}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce01caf4742748daa7bac3c859637a98ad3c967179b71bbc4c81f88c5de514c5"}},{"ruleId":"D2","level":"warning","message":{"text":"crab::import::window::plan_commit_windows (cognitive 20): crab::import::window::plan_commit_windows has cognitive complexity 20 (threshold 15). Drivers by points: if/else 6 (12 pts), match/switch 2 (5 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":"crab/src/import/window.rs"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e76fe600b4b31f5733341f83a65e90e785802a4e6c2734f1a3084f5dee1d7d7"}},{"ruleId":"D2","level":"warning","message":{"text":"crab::lfs::prune::collect_local_objects (cognitive 20): crab::lfs::prune::collect_local_objects has cognitive complexity 20 (threshold 15). Drivers by points: if/else 4 (13 pts), loops 3 (6 pts), 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":"crab/src/lfs/prune.rs"},"region":{"startLine":363}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b0b815ec1234a4c7a7221f571155b79823804803842c1c786fec9bdd8fa6d71"}},{"ruleId":"D2","level":"warning","message":{"text":"crab::read::read_blob_at_commit (cognitive 20): crab::read::read_blob_at_commit has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (17 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":"crab/src/read/mod.rs"},"region":{"startLine":551}}}],"partialFingerprints":{"codehealthFindingId/v1":"5df00bf8bd46e9c510ebd021c3ef2598ffd95a15904504f71a71e295899ee4aa"}},{"ruleId":"D2","level":"warning","message":{"text":"crab_http_server::cells::repository::projection::attribution (cognitive 20): crab_http_server::cells::repository::projection::attribution has cognitive complexity 20 (threshold 15). Drivers by points: if/else 10 (15 pts), loops 2 (3 pts), boolean chains 2 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-http-server/src/cells/repository/projection.rs"},"region":{"startLine":406}}}],"partialFingerprints":{"codehealthFindingId/v1":"40e972d06abd1fd52272a540fc234b689a63f527f996b888e6b8ab394b0d3660"}},{"ruleId":"D2","level":"warning","message":{"text":"crab_http_server::peer::cgroup_memory_paths (cognitive 20): crab_http_server::peer::cgroup_memory_paths has cognitive complexity 20 (threshold 15). Drivers by points: if/else 5 (14 pts), loops 3 (6 pts) (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-http-server/src/peer.rs"},"region":{"startLine":1594}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbb464aac592c4edc010b1f4d342cb2b023a056a62c6c0d2ca9914d7b3c00fee"}},{"ruleId":"D2","level":"warning","message":{"text":"GitCatalogVisibilityIndex::apply_ordinal_edit (cognitive 20): GitCatalogVisibilityIndex::apply_ordinal_edit has cognitive complexity 20 (threshold 15). Drivers by points: if/else 12, boolean chains 4, loops 2 (3 pts), match/switch 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/crab-metadata/src/git_visibility.rs"},"region":{"startLine":685}}}],"partialFingerprints":{"codehealthFindingId/v1":"414cee70119c0efa4a44e9bcd803feaddd60a9c8024c09c50bec88d1f2566548"}},{"ruleId":"D2","level":"warning","message":{"text":"crab_metadata::commit_graph::fill_generation_numbers_with_base (cognitive 20): crab_metadata::commit_graph::fill_generation_numbers_with_base has cognitive complexity 20 (threshold 15). Drivers by points: if/else 7 (13 pts), loops 5 (7 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/crab-metadata/src/commit_graph.rs"},"region":{"startLine":383}}}],"partialFingerprints":{"codehealthFindingId/v1":"204bcbed8d15e48d3813ef13795ef3fb727454ee1415026fc6f85d30073d20ed"}},{"ruleId":"D2","level":"warning","message":{"text":"crab_remote::prepare::prepare (cognitive 20): crab_remote::prepare::prepare has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (11 pts), match/switch 4 (6 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/crab-remote/src/prepare.rs"},"region":{"startLine":841}}}],"partialFingerprints":{"codehealthFindingId/v1":"77426380a98b4b6df977e25515a79f88e3e6cc4d7624b39ce23f58952b72cf60"}},{"ruleId":"D2","level":"warning","message":{"text":"RemoteGitSnapshot::history (cognitive 20): RemoteGitSnapshot::history has cognitive complexity 20 (threshold 15). Drivers by points: if/else 7 (13 pts), match/switch 2 (3 pts), boolean chains 2, loops 2 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-remote-git/src/snapshot.rs"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1721d232538f58fb22de01d7cb654875c673d0a9a001d0b2766bdc976c995c2"}},{"ruleId":"D2","level":"warning","message":{"text":"Manifest::complete_listing (cognitive 20): Manifest::complete_listing has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (16 pts), boolean chains 2, loops 1, match/switch 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-s3-gateway/src/attributes.rs"},"region":{"startLine":310}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdbeffab8a2a75cca39f29b530a924aaa3c8959f2557043a2e4ce6948b267681"}},{"ruleId":"D2","level":"warning","message":{"text":"crab_sdk::archive::open (cognitive 20): crab_sdk::archive::open has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (14 pts), loops 2 (5 pts), match/switch 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-sdk/src/archive.rs"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e1aa2f06ecad161f42772f94ab101e83d01e9984d386fafbe4e27c6a3f5ccef"}},{"ruleId":"D2","level":"warning","message":{"text":"crab_sdk::local::fetch::prepare_fetch_intent (cognitive 20): crab_sdk::local::fetch::prepare_fetch_intent has cognitive complexity 20 (threshold 15). Drivers by points: if/else 6 (9 pts), boolean chains 5, loops 3 (4 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/crab-sdk/src/local/fetch.rs"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a4378af124711139e161985240746a05c8a26cdc40ae52fc5057b84c1f7298d"}},{"ruleId":"D2","level":"warning","message":{"text":"Index::append_recording_remote_chunks_in_tx (cognitive 20): Index::append_recording_remote_chunks_in_tx has cognitive complexity 20 (threshold 15). Drivers by points: if/else 3 (9 pts), loops 5 (9 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/crab-staging/src/index.rs"},"region":{"startLine":3196}}}],"partialFingerprints":{"codehealthFindingId/v1":"41f77bf297b53b4936443807502619d111c6ed883bdbcd57196e79e595be7f70"}},{"ruleId":"D2","level":"warning","message":{"text":"StagingAreaReadOnly::push_plan_stats (cognitive 20): StagingAreaReadOnly::push_plan_stats has cognitive complexity 20 (threshold 15). Drivers by points: if/else 7 (13 pts), loops 3 (4 pts), match/switch 1 (2 pts), boolean chains 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-staging/src/lib.rs"},"region":{"startLine":4283}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc781b37a7951f51e6656efdf74bc86ae7b4445486637f7ae479985ff2ac3e59"}},{"ruleId":"D2","level":"warning","message":{"text":"PreparedXorbCache::insert_candidate (cognitive 20): PreparedXorbCache::insert_candidate has cognitive complexity 20 (threshold 15). Drivers by points: if/else 7 (15 pts), loops 2 (4 pts), boolean chains 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-staging/src/push_plan.rs"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"59c7a07fa3ef2dabbfed6206c5cde726418fdb6df677d7ecfc0ab13d29d32e8c"}},{"ruleId":"D2","level":"warning","message":{"text":"Store::put_multipart_once (cognitive 20): Store::put_multipart_once has cognitive complexity 20 (threshold 15). Drivers by points: if/else 6 (13 pts), match/switch 2 (5 pts), loops 2 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-storage/src/store.rs"},"region":{"startLine":2402}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bb913ed894b19c75da448b2b1206e6826e3dab0b47a4d488829f2ac2273fc30"}},{"ruleId":"D2","level":"warning","message":{"text":"crab_storage::retry::retry (cognitive 20): crab_storage::retry::retry has cognitive complexity 20 (threshold 15). Drivers by points: if/else 4 (12 pts), match/switch 3 (7 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/crab-storage/src/retry.rs"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d79f1dc0137065c3a403aedc677626cba43c357d69eb4f7a12faeb54395283d"}},{"ruleId":"D2","level":"warning","message":{"text":"ArtifactDecl::from_value (cognitive 20): ArtifactDecl::from_value has cognitive complexity 20 (threshold 15). Drivers by points: if/else 7 (13 pts), boolean chains 3, loops 2 (3 pts), match/switch 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-workflow/src/artifact.rs"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a0e250ca62fd9bf10527e6452a88a6b5bc3e176cd58409bc85c3450dc733509"}},{"ruleId":"D2","level":"warning","message":{"text":"ArtifactRegistry::validate (cognitive 20): ArtifactRegistry::validate has cognitive complexity 20 (threshold 15). Drivers by points: if/else 5 (11 pts), loops 5 (7 pts), boolean chains 2 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-workflow/src/artifact.rs"},"region":{"startLine":381}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d5857e46440671467b2772ac02d18e178834741456c9ec83003c59f3f3e43df"}},{"ruleId":"D2","level":"warning","message":{"text":"crab_workflow::dvc_inventory::collect_files (cognitive 20): crab_workflow::dvc_inventory::collect_files has cognitive complexity 20 (threshold 15). Drivers by points: if/else 7 (17 pts), boolean chains 2, loops 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-workflow/src/dvc_inventory.rs"},"region":{"startLine":768}}}],"partialFingerprints":{"codehealthFindingId/v1":"42a2b626eb63a94b9122b42747f5a82c5e7b47ab8a3a9c4e4227a3e0906f7718"}},{"ruleId":"D2","level":"warning","message":{"text":"crab_workflow::dvc_inventory::pointer_provenance (cognitive 20): crab_workflow::dvc_inventory::pointer_provenance has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (19 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/crab-workflow/src/dvc_inventory.rs"},"region":{"startLine":2412}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc1ab3ad8d90785a72b2999ef4284daf3bad1ea0c5854ca19f237919d4d31af4"}},{"ruleId":"D2","level":"warning","message":{"text":"crab_workflow::hasher::walk (cognitive 20): crab_workflow::hasher::walk has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9 (14 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/crab-workflow/src/hasher.rs"},"region":{"startLine":401}}}],"partialFingerprints":{"codehealthFindingId/v1":"125115ec0f250b0d994e999bb67b22301c07853f485ee83f906ae342be93c3a8"}},{"ruleId":"D2","level":"warning","message":{"text":"crab_workflow::lockfile::split_conflict_sides (cognitive 20): crab_workflow::lockfile::split_conflict_sides has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (17 pts), match/switch 1 (2 pts), loops 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-workflow/src/lockfile.rs"},"region":{"startLine":1365}}}],"partialFingerprints":{"codehealthFindingId/v1":"4552953b1dadd1bb26387ae95a9d2801495bfcb76bed3aca453c341dc3ddcccf"}},{"ruleId":"D2","level":"warning","message":{"text":"crab_workflow::stage_cache_entry::validate_tree_manifest (cognitive 20): crab_workflow::stage_cache_entry::validate_tree_manifest has cognitive complexity 20 (threshold 15). Drivers by points: if/else 7 (13 pts), loops 3 (4 pts), match/switch 1 (2 pts), boolean chains 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-workflow/src/stage_cache_entry.rs"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"67bc7c7593911ead6358ab9d76f54e5d8c1c6734378182f4c2df1f7a1b024b1d"}},{"ruleId":"D2","level":"warning","message":{"text":"AwsProvider.cleanup_staging (cognitive 20): AwsProvider.cleanup_staging has cognitive complexity 20 (threshold 15). Drivers by points: if/else 7 (15 pts), loops 2 (3 pts), boolean chains 2 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/deploy/auth-service/src/providers/aws.py"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8c7250e6039bff6cfeda9d1481ec889c2eacd3247e45a1be8f46a73ad783c25"}},{"ruleId":"D2","level":"warning","message":{"text":"qualify_sdk.compare_read (cognitive 20): qualify_sdk.compare_read has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9 (14 pts), boolean chains 4, loops 1, ternaries 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/scripts/qualify_sdk.py"},"region":{"startLine":250}}}],"partialFingerprints":{"codehealthFindingId/v1":"6967bafc6ab8769ae2bc92fc201072c9a1f822628c618508ef66e718b9c16337"}},{"ruleId":"D2","level":"warning","message":{"text":"load.recover_owner (cognitive 20): load.recover_owner has cognitive complexity 20 (threshold 15). Drivers by points: if/else 6 (11 pts), boolean chains 4, error handling 1 (2 pts), loops 2, ternaries 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-http-server/deploy/cell-issue-fleet/load.py"},"region":{"startLine":506}}}],"partialFingerprints":{"codehealthFindingId/v1":"80b55f57356dd55a2b9d87f27cac3548b24b9765298ce96acf1b79b45e1f79c8"}},{"ruleId":"D2","level":"warning","message":{"text":"git-access.GitAccess (cognitive 20): git-access.GitAccess has cognitive complexity 20 (threshold 15). Drivers by points: boolean chains 9, ternaries 6 (7 pts), if/else 3, error handling 1 (nesting depth added 1). Most of this is not in the body itself: 9 of the 20 points are its own statements and the rest belongs to 3 function items inside it that branch (change, a function literal at line 118, a function literal at line 148). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/git-access.tsx"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b22e83e61e5a30531fee448e50db177f91d7d07a960e80c7fc7e4c111f3812e"}},{"ruleId":"D2","level":"warning","message":{"text":"hero-section.HeroSection (cognitive 20): hero-section.HeroSection has cognitive complexity 20 (threshold 15). Drivers by points: boolean chains 15, ternaries 4 (5 pts) (nesting depth added 1). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/web/components/marketing/hero-section.tsx"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"3163043db7511041d5800377168c7b6e4dc94a0c480f575af8f6f97a4698736b"}},{"ruleId":"D2","level":"warning","message":{"text":"AddProgress::render_batch_line (cognitive 19): AddProgress::render_batch_line has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (11 pts), match/switch 5, boolean chains 3 (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":"crab/src/cmd/add.rs"},"region":{"startLine":522}}}],"partialFingerprints":{"codehealthFindingId/v1":"15218802be161823cf36d53d7e224a9774ae68bea05189282c72eecff85827b7"}},{"ruleId":"D2","level":"warning","message":{"text":"DurableMarkReader::load_partition (cognitive 19): DurableMarkReader::load_partition has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (14 pts), loops 2 (3 pts), boolean chains 2 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/cmd/gc/marks.rs"},"region":{"startLine":277}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa4d50e12bf2cb841507c3d8cab4cd0e5292b8e1797db5b67c66a72c08159160"}},{"ruleId":"D2","level":"warning","message":{"text":"Config::apply_push_overlay (cognitive 19): Config::apply_push_overlay has cognitive complexity 19 (threshold 15). Drivers by points: if/else 19. 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":"crab/src/core/config.rs"},"region":{"startLine":2307}}}],"partialFingerprints":{"codehealthFindingId/v1":"b37c35148ec52e5c31decab17197dfd726adb182583271f76afd870927659247"}},{"ruleId":"D2","level":"warning","message":{"text":"CleanSession::crab_clean_stream (cognitive 19): CleanSession::crab_clean_stream has cognitive complexity 19 (threshold 15). Drivers by points: if/else 11 (14 pts), boolean chains 2, loops 1 (2 pts), 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":"crab/src/git/clean.rs"},"region":{"startLine":2084}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d9e8ea9276f3fa580afa98aa57fad16d3eb34d498f2b86a2de68f5257679662"}},{"ruleId":"D2","level":"warning","message":{"text":"PushPipeline::rebuild_push_commit_receipt (cognitive 19): PushPipeline::rebuild_push_commit_receipt has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (10 pts), loops 7, 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":"crab/src/git/push.rs"},"region":{"startLine":7773}}}],"partialFingerprints":{"codehealthFindingId/v1":"935a408eb988de3444e64710a36cc7ee8dff7a98c2ff3c82aac3f9723cebf957"}},{"ruleId":"D2","level":"warning","message":{"text":"PushPipeline::materialize_active_active_manifest (cognitive 19): PushPipeline::materialize_active_active_manifest has cognitive complexity 19 (threshold 15). Drivers by points: if/else 3 (10 pts), match/switch 3 (8 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":"crab/src/git/push.rs"},"region":{"startLine":8445}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ec97f344cc87eff363feb07e8d2e3137900a875f401271d6e1aeb5384469c3e"}},{"ruleId":"D2","level":"warning","message":{"text":"PushPipeline::execute_inner (cognitive 19): PushPipeline::execute_inner has cognitive complexity 19 (threshold 15). Drivers by points: if/else 10 (13 pts), boolean chains 3, match/switch 2 (3 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":"crab/src/git/push.rs"},"region":{"startLine":16401}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0a84263645a561a0de5e150cfb09689242b8a1822d82bcef94c940b389a2f24"}},{"ruleId":"D2","level":"warning","message":{"text":"ChunkIndexStore::get_committed_candidates_page (cognitive 19): ChunkIndexStore::get_committed_candidates_page has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (15 pts), loops 4 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/metadata/metadb/stores/chunk_index.rs"},"region":{"startLine":337}}}],"partialFingerprints":{"codehealthFindingId/v1":"20337b36ec3ab9588773837d63fcc5588518cafecfbf9dd8cf9fca015edf6b93"}},{"ruleId":"D2","level":"warning","message":{"text":"SpeculativeDriver::launch_speculative (cognitive 19): SpeculativeDriver::launch_speculative has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (15 pts), match/switch 2 (3 pts), loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/speculation/driver.rs"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"4be13fa27e05e29de664eef307b53ce3edb978375da37afc5b9ca3f516d953d0"}},{"ruleId":"D2","level":"warning","message":{"text":"crab::cmd::adopt::walk_for_candidates (cognitive 19): crab::cmd::adopt::walk_for_candidates has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (15 pts), boolean chains 2, loops 1, match/switch 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/cmd/adopt.rs"},"region":{"startLine":350}}}],"partialFingerprints":{"codehealthFindingId/v1":"90010778cf04c0e4e1b0896c35d7edd4f744c4bc27bc64dd3c45030fe60ad1b9"}},{"ruleId":"D2","level":"warning","message":{"text":"crab::cmd::doctor::parse_token_expiry (cognitive 19): crab::cmd::doctor::parse_token_expiry has cognitive complexity 19 (threshold 15). Drivers by points: if/else 10 (13 pts), boolean chains 4, loops 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":"crab/src/cmd/doctor.rs"},"region":{"startLine":661}}}],"partialFingerprints":{"codehealthFindingId/v1":"5352885f392975b281a7ac3a91f8250cbcc61c3cbd1bfb74c81934c0b85d58d7"}},{"ruleId":"D2","level":"warning","message":{"text":"crab::cmd::gc::finish_repo_gc_from_marks (cognitive 19): crab::cmd::gc::finish_repo_gc_from_marks has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (10 pts), match/switch 3 (6 pts), boolean chains 2, loops 1 (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":"crab/src/cmd/gc/mod.rs"},"region":{"startLine":789}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffcafe9805431094689dee700dd18bc6d6189b81a8193e00ecdf95e39ed3f7a8"}},{"ruleId":"D2","level":"warning","message":{"text":"crab::cmd::gc::extend_reachable_bulk_objects (cognitive 19): crab::cmd::gc::extend_reachable_bulk_objects has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (9 pts), loops 4 (9 pts), boolean chains 1 (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. This shape REPEATS in the file: one other method here (crab::cmd::gc::stream_reachable_bulk_objects) 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":"crab/src/cmd/gc/mod.rs"},"region":{"startLine":1684}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5a6c94506cc7a29a52d4a667ae27cd18071261a038e72bc328f10c1a4052e66"}},{"ruleId":"D2","level":"warning","message":{"text":"crab::cmd::gc::stream_reachable_bulk_objects (cognitive 19): crab::cmd::gc::stream_reachable_bulk_objects has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (9 pts), loops 4 (9 pts), boolean chains 1 (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. This shape REPEATS in the file: one other method here (crab::cmd::gc::extend_reachable_bulk_objects) 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":"crab/src/cmd/gc/mod.rs"},"region":{"startLine":2235}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a052b3bc717e6cad1b1edf16ef5d93eaabbb7f19e281050ddf8641426fab28e"}},{"ruleId":"D2","level":"warning","message":{"text":"crab::cmd::hydrate::try_hydrate_from_staging (cognitive 19): crab::cmd::hydrate::try_hydrate_from_staging has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (9 pts), loops 3 (6 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/cmd/hydrate.rs"},"region":{"startLine":1424}}}],"partialFingerprints":{"codehealthFindingId/v1":"1331e465fb0f5c943cccf1868d2cc6b9e1f84fccc239cb6329798bbfe7cb8157"}},{"ruleId":"D2","level":"warning","message":{"text":"crab::cmd::hydrate::walk_and_parse_pointers (cognitive 19): crab::cmd::hydrate::walk_and_parse_pointers has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (17 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":"crab/src/cmd/hydrate.rs"},"region":{"startLine":3567}}}],"partialFingerprints":{"codehealthFindingId/v1":"be022b6651678a919a34a8d8a748e27671566975374334cac5686e5d9ddd5d70"}},{"ruleId":"D2","level":"warning","message":{"text":"crab::cmd::lfs::dedup::run_crab_cache_dedup (cognitive 19): crab::cmd::lfs::dedup::run_crab_cache_dedup has cognitive complexity 19 (threshold 15). Drivers by points: if/else 10 (13 pts), loops 2 (3 pts), match/switch 1 (2 pts), boolean chains 1 (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, 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":"crab/src/cmd/lfs/dedup.rs"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"4df4aaf315fb939d6035d6006e82d2131f189771910c5c77c29455bfa98b6587"}},{"ruleId":"D2","level":"warning","message":{"text":"crab::cmd::recovery::run_recovery_scan (cognitive 19): crab::cmd::recovery::run_recovery_scan has cognitive complexity 19 (threshold 15). Drivers by points: match/switch 3 (10 pts), if/else 4 (8 pts), loops 1 (nesting depth added 11). 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":"crab/src/cmd/recovery.rs"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6217c798d356fec2bc0bff2530ea5540e94c30d87a86d53b11434a90aa1e34c"}},{"ruleId":"D2","level":"warning","message":{"text":"crab::cmd::run::filter_stages (cognitive 19): crab::cmd::run::filter_stages has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (14 pts), loops 2 (3 pts), boolean chains 2 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/cmd/run.rs"},"region":{"startLine":3713}}}],"partialFingerprints":{"codehealthFindingId/v1":"705e52f2f3d7488f2ea729333f5b93b8430f4f526d1d7648bca103efd4c05a3f"}},{"ruleId":"D2","level":"warning","message":{"text":"crab::cmd::status_workflow::emit_status (cognitive 19): crab::cmd::status_workflow::emit_status has cognitive complexity 19 (threshold 15). Drivers by points: match/switch 5 (13 pts), if/else 2 (4 pts), loops 1 (2 pts) (nesting depth added 11). 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":"crab/src/cmd/status_workflow.rs"},"region":{"startLine":1336}}}],"partialFingerprints":{"codehealthFindingId/v1":"5760339275e040fb49ff55d610d49d8661216f00f9bf5116c4ab869f6259fea3"}},{"ruleId":"D2","level":"warning","message":{"text":"crab::import::assemble::apply_window_to_worktree (cognitive 19): crab::import::assemble::apply_window_to_worktree has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (14 pts), boolean chains 2, match/switch 1 (2 pts), loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/import/assemble.rs"},"region":{"startLine":741}}}],"partialFingerprints":{"codehealthFindingId/v1":"2162fc0aaeb7175e437b6b18b359664af58df2988cdfca01a13ad54a06d46884"}},{"ruleId":"D2","level":"warning","message":{"text":"crab::lfs::migrate::build_revision_selection_with_remote_refs (cognitive 19): crab::lfs::migrate::build_revision_selection_with_remote_refs has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (14 pts), loops 4 (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":"crab/src/lfs/migrate.rs"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"91824a71f58cedea0101570f4c28c39b51dcf413cd513d618f6775873891f4bb"}},{"ruleId":"D2","level":"warning","message":{"text":"crab::lfs::prune::run_prune_with_cancel (cognitive 19): crab::lfs::prune::run_prune_with_cancel has cognitive complexity 19 (threshold 15). Drivers by points: if/else 11 (15 pts), match/switch 1 (2 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":"crab/src/lfs/prune.rs"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"59a2f610ae8169a9208d40649aef333c0d87121ecee1021404213f3d0a3867d4"}},{"ruleId":"D2","level":"warning","message":{"text":"crab::read::selection::select_snapshot_entries (cognitive 19): crab::read::selection::select_snapshot_entries has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (11 pts), boolean chains 5, loops 2 (3 pts) (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/read/selection.rs"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1a06c3d286f53d7fb3c3cb130f8d9173ac12966404e1aa8ee661ff7156f1921"}},{"ruleId":"D2","level":"warning","message":{"text":"crab::replication::replica_statuses_with_options (cognitive 19): crab::replication::replica_statuses_with_options has cognitive complexity 19 (threshold 15). Drivers by points: if/else 4 (10 pts), match/switch 3 (8 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":"crab/src/replication/mod.rs"},"region":{"startLine":8723}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7f341a618b9bb72d5ac9643e2f7c65723bac8347c5e688a259bd1af8020751b"}},{"ruleId":"D2","level":"warning","message":{"text":"Generation::open (cognitive 19): Generation::open has cognitive complexity 19 (threshold 15). Drivers by points: if/else 10 (11 pts), match/switch 2 (4 pts), boolean chains 2, loops 1 (2 pts) (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/crab-cache/src/private_fs/platform/database/generation.rs"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a54848c463cc20caa60e32d19a04ea30f3daee7c9dd0a07bd542cff1e72bbb5"}},{"ruleId":"D2","level":"warning","message":{"text":"ChunkIndex::rebuild_from_shards (cognitive 19): ChunkIndex::rebuild_from_shards has cognitive complexity 19 (threshold 15). Drivers by points: match/switch 6 (10 pts), loops 2 (5 pts), if/else 2 (4 pts) (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/crab-cache-server/src/chunk_index.rs"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"87e529dee976aea3363ec0314c26e25ae585695ad6b261f4bcd041adae712bcd"}},{"ruleId":"D2","level":"warning","message":{"text":"crab_coordination::push_lock::retry_coordination_operation_with_deadline (cognitive 19): crab_coordination::push_lock::retry_coordination_operation_with_deadline has cognitive complexity 19 (threshold 15). Drivers by points: if/else 3 (10 pts), match/switch 3 (7 pts), boolean chains 1, 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/crab-coordination/src/push_lock.rs"},"region":{"startLine":1021}}}],"partialFingerprints":{"codehealthFindingId/v1":"3885e2b13e254d5e2cb36fa13f1d370fc17ccc7d375732036199fc421b0c28b3"}},{"ruleId":"D2","level":"warning","message":{"text":"Validator::visibility_walk (cognitive 19): Validator::visibility_walk has cognitive complexity 19 (threshold 15). Drivers by points: if/else 5 (11 pts), match/switch 2 (5 pts), boolean chains 2, loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-git/src/receive_plan/visibility.rs"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6e1a8359ad9bb8ac37dd9ea8b109b2c3b745f07f396f1fd9c7639fab85765dc"}},{"ruleId":"D2","level":"warning","message":{"text":"crab_git::worktree::parse_worktree_list_porcelain (cognitive 19): crab_git::worktree::parse_worktree_list_porcelain has cognitive complexity 19 (threshold 15). Drivers by points: if/else 10 (18 pts), loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-git/src/worktree.rs"},"region":{"startLine":334}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4b2fc989d76a09012199c1091ab60fd99165c2f7ed7c87935dd19557422890e"}},{"ruleId":"D2","level":"warning","message":{"text":"GitObjectLocatorWriter::load_or_initialize (cognitive 19): GitObjectLocatorWriter::load_or_initialize has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (9 pts), match/switch 5 (7 pts), boolean chains 3 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-metadata/src/git_object_locator/writer.rs"},"region":{"startLine":264}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae2b76f864af8dfe82becf7a24c254b846811ee44ee2a93675cb6a6d4bb494af"}},{"ruleId":"D2","level":"warning","message":{"text":"crab_metadata::manifest_store::materialize_active_active_manifest_projection (cognitive 19): crab_metadata::manifest_store::materialize_active_active_manifest_projection has cognitive complexity 19 (threshold 15). Drivers by points: if/else 3 (10 pts), match/switch 3 (8 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/crab-metadata/src/manifest_store.rs"},"region":{"startLine":835}}}],"partialFingerprints":{"codehealthFindingId/v1":"224a6707aee074a19d4cad63a8dd6f48d118789c6025317b5deff0d8d3a76cd4"}},{"ruleId":"D2","level":"warning","message":{"text":"TermResolver::resolve_sequences_batch_with_mode (cognitive 19): TermResolver::resolve_sequences_batch_with_mode has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (12 pts), match/switch 3 (5 pts), boolean chains 1, loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-read/src/term_resolver.rs"},"region":{"startLine":249}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3e406ce37ce9b5cebcd5923ecf7767f9af45e03c2d25f11060c6a23d915a4ed"}},{"ruleId":"D2","level":"warning","message":{"text":"crab_read::upload_pack::plan_from_visibility_catalog_ordinals (cognitive 19): crab_read::upload_pack::plan_from_visibility_catalog_ordinals has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (12 pts), boolean chains 4, loops 2 (3 pts) (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-read/src/upload_pack.rs"},"region":{"startLine":1361}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b3d717f4a0c04891fa2efe5f1474a8ba923d62ac20227bca7d6cc62fc22a7e8"}},{"ruleId":"D2","level":"warning","message":{"text":"Prepared::upload (cognitive 19): Prepared::upload has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (10 pts), loops 4 (7 pts), match/switch 1 (2 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-remote/src/prepare.rs"},"region":{"startLine":585}}}],"partialFingerprints":{"codehealthFindingId/v1":"70cedd167706097e91657e88909cde02ec31f2c680c676cc02006b97116548ab"}},{"ruleId":"D2","level":"warning","message":{"text":"CommitGraphIndex::reachable_from_roots (cognitive 19): CommitGraphIndex::reachable_from_roots has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (13 pts), loops 3 (5 pts), boolean chains 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-remote-git/src/commit_graph.rs"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ee1c8d794220ff157d3994c106531e5289a0b5a4984973dd36d31fb4b86e846"}},{"ruleId":"D2","level":"warning","message":{"text":"RemoteGitSnapshot::ahead_history (cognitive 19): RemoteGitSnapshot::ahead_history has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (12 pts), boolean chains 4, loops 2, 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/crab-remote-git/src/snapshot.rs"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"60deaed78fcd788c088c6dd32cd2513f539b6a075f38f82c12b46a07e2e68c78"}},{"ruleId":"D2","level":"warning","message":{"text":"crab_sdk::client::mutation::prepare_batch (cognitive 19): crab_sdk::client::mutation::prepare_batch has cognitive complexity 19 (threshold 15). Drivers by points: if/else 5 (9 pts), match/switch 4 (5 pts), loops 2 (4 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/crab-sdk/src/client/mutation.rs"},"region":{"startLine":697}}}],"partialFingerprints":{"codehealthFindingId/v1":"efad14c01a3e759075ce19fabd88f89215f634f3ab5b91d443bb5d201f2c22cd"}},{"ruleId":"D2","level":"warning","message":{"text":"CrabFs::opendir (cognitive 19): CrabFs::opendir has cognitive complexity 19 (threshold 15). Drivers by points: if/else 10 (18 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/crab-vfs/src/fuse.rs"},"region":{"startLine":740}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f44c6c7979e9785e1b95a9c0f2ca5cfc3bf3b9a78e228d245f7d356878339ee"}},{"ruleId":"D2","level":"warning","message":{"text":"RefreshService::poll_remote (cognitive 19): RefreshService::poll_remote has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (16 pts), match/switch 3 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-vfs/src/refresh.rs"},"region":{"startLine":690}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2195d95ae4d2b3d3d5f99773c3f6f904bc6f0c98b17edfa10a12d8d67796d0c"}},{"ruleId":"D2","level":"warning","message":{"text":"StageName::parse (cognitive 19): StageName::parse has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (16 pts), loops 1 (2 pts), boolean chains 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-workflow/src/stage_name.rs"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a6788ca521982cae3e73e9f9f3ddcbf5865c98d9b322a7ec733448d3a230126"}},{"ruleId":"D2","level":"warning","message":{"text":"crab_workflow::executor::hash_external_url_out (cognitive 19): crab_workflow::executor::hash_external_url_out has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (18 pts), match/switch 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-workflow/src/executor.rs"},"region":{"startLine":1340}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1d3499c04d64fdea1198fac3f56a941a6be829f689d1fe5a7d6775357b10abc"}},{"ruleId":"D2","level":"warning","message":{"text":"crab_workflow::resume::decide (cognitive 19): crab_workflow::resume::decide has cognitive complexity 19 (threshold 15). Drivers by points: if/else 11 (17 pts), boolean chains 1, match/switch 1 (nesting depth added 6). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-workflow/src/resume.rs"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"58240297528726f42dfad59df37f1038abea67cb28504b678edd9ce83a825c32"}},{"ruleId":"D2","level":"warning","message":{"text":"crab_write::generation::maintain_path_state (cognitive 19): crab_write::generation::maintain_path_state has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (12 pts), match/switch 3 (5 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/crab-write/src/generation.rs"},"region":{"startLine":335}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1e7d048890fbb6c7b022ec31a949a031813f113e05dd4b0d162601937186452"}},{"ruleId":"D2","level":"warning","message":{"text":"check-architecture-gates.check_object_store_features (cognitive 19): check-architecture-gates.check_object_store_features has cognitive complexity 19 (threshold 15). Drivers by points: if/else 4 (10 pts), loops 3 (4 pts), ternaries 1 (3 pts), boolean chains 2 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/scripts/check-architecture-gates.py"},"region":{"startLine":2135}}}],"partialFingerprints":{"codehealthFindingId/v1":"b88208737e212b31e700e7cf28006f510f62f72df131563d6307c26b448bdf0d"}},{"ruleId":"D2","level":"warning","message":{"text":"check-architecture-gates.check_package_release_policy (cognitive 19): check-architecture-gates.check_package_release_policy has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (13 pts), loops 6 (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":"crab/scripts/check-architecture-gates.py"},"region":{"startLine":2171}}}],"partialFingerprints":{"codehealthFindingId/v1":"958eb67831d36a59e11143d8fc11840198af4044150b80f2c2f6371c6a434e55"}},{"ruleId":"D2","level":"warning","message":{"text":"check-architecture-gates.check_server_fixture_dependencies (cognitive 19): check-architecture-gates.check_server_fixture_dependencies has cognitive complexity 19 (threshold 15). Drivers by points: if/else 5 (13 pts), loops 4 (5 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":"crab/scripts/check-architecture-gates.py"},"region":{"startLine":2227}}}],"partialFingerprints":{"codehealthFindingId/v1":"75c169e7f73b57659fbfb2459861a73beaa3b25e311c7eecf11a513b8e4b551d"}},{"ruleId":"D2","level":"warning","message":{"text":"check-sdk-features.violations (cognitive 19): check-sdk-features.violations has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (14 pts), boolean chains 5 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/scripts/check-sdk-features.py"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"519f9fc43d6938babdbf6fe2bcf71cdce877f9c242c7f40f0005c58e09c26825"}},{"ruleId":"D2","level":"warning","message":{"text":"nfs-read-path-bench-report.validate_record (cognitive 19): nfs-read-path-bench-report.validate_record has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (14 pts), boolean chains 4, 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":"crab/scripts/nfs-read-path-bench-report.py"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4fc75996c9849adead9132a106cf484b1935afcfac5fc580a949225e8ce4c73"}},{"ruleId":"D2","level":"warning","message":{"text":"qualify_reader_first_loss.main (cognitive 19): qualify_reader_first_loss.main has cognitive complexity 19 (threshold 15). Drivers by points: if/else 10 (12 pts), boolean chains 5, loops 2 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-http-server/deploy/cell-issue-fleet/qualify_reader_first_loss.py"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf539152d41c006682cccb12e034e0d963e28c1db81fa409e99606eb705d92a6"}},{"ruleId":"D2","level":"warning","message":{"text":"pulls.ReviewThreadCard (cognitive 19): pulls.ReviewThreadCard has cognitive complexity 19 (threshold 15). Drivers by points: boolean chains 10, ternaries 6 (7 pts), if/else 2 (nesting depth added 1). Of this number, 17 points are the body\u0027s own statements and 2 belong to 2 function items inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pulls.tsx"},"region":{"startLine":1139}}}],"partialFingerprints":{"codehealthFindingId/v1":"763210b4b8b79a6bb3873b7abbe7e6e1a1fc71e6657cebe307f73937fc3f1ef2"}},{"ruleId":"D2","level":"warning","message":{"text":"pulls.RequiredChecks (cognitive 19): pulls.RequiredChecks has cognitive complexity 19 (threshold 15). Drivers by points: ternaries 10 (15 pts), boolean chains 3, if/else 1 (nesting depth added 5). Of this number, 10 points are the body\u0027s own statements and 9 belong to 3 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pulls.tsx"},"region":{"startLine":1957}}}],"partialFingerprints":{"codehealthFindingId/v1":"9286b5f24f4e88b92e36e6322db1828207f27d8a74c3c0b4a0064146033fb57b"}},{"ruleId":"D2","level":"warning","message":{"text":"CleanSession::crab_clean_prepared_stream (cognitive 18): CleanSession::crab_clean_prepared_stream has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10 (12 pts), boolean chains 2, loops 1 (2 pts), 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":"crab/src/git/clean.rs"},"region":{"startLine":2243}}}],"partialFingerprints":{"codehealthFindingId/v1":"77b772114820074759d8a7a3b419b9b0d875e723893414d9669545c99e80e70a"}},{"ruleId":"D2","level":"warning","message":{"text":"NativePushProgress::report_dedup (cognitive 18): NativePushProgress::report_dedup has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10 (17 pts), match/switch 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/git/progress.rs"},"region":{"startLine":1135}}}],"partialFingerprints":{"codehealthFindingId/v1":"feacd87ed941c73d8ac8c3642fcc2edfe803d0b9e72d33ef80f2883422c75947"}},{"ruleId":"D2","level":"warning","message":{"text":"PushPipeline::compute_git_object_locator_basis (cognitive 18): PushPipeline::compute_git_object_locator_basis has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (10 pts), loops 3 (4 pts), match/switch 2 (4 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/git/push.rs"},"region":{"startLine":13541}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a7a3ef1f7a8d9d781fe639bc318a5e94be09bf206d8fb426f5ccaa336a841bc"}},{"ruleId":"D2","level":"warning","message":{"text":"PushPipeline::commit_metadb_and_warm_cache_with_guard (cognitive 18): PushPipeline::commit_metadb_and_warm_cache_with_guard has cognitive complexity 18 (threshold 15). Drivers by points: loops 9 (10 pts), if/else 4 (8 pts) (nesting depth added 5). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/git/push.rs"},"region":{"startLine":15314}}}],"partialFingerprints":{"codehealthFindingId/v1":"898f5999aae104303322f6704d57d5e26e77e553713f2fa46766b4d3c05a5f82"}},{"ruleId":"D2","level":"warning","message":{"text":"crab::auth::build_store (cognitive 18): crab::auth::build_store has cognitive complexity 18 (threshold 15). Drivers by points: if/else 14 (17 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":"crab/src/auth/mod.rs"},"region":{"startLine":276}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec59cc8b6f291cf7e2fe7655f87af916c76ce7c7bd90ddb05772056b8ec628d1"}},{"ruleId":"D2","level":"warning","message":{"text":"crab::cache::add_validation::record_verified_paths (cognitive 18): crab::cache::add_validation::record_verified_paths has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (15 pts), boolean chains 2, loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/cache/add_validation.rs"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ca1f973464b1e2eb59266cb06b99ecec76cb444814b6b9c0e24402c5d1de323"}},{"ruleId":"D2","level":"warning","message":{"text":"crab::cmd::dag::build_outs_view (cognitive 18): crab::cmd::dag::build_outs_view has cognitive complexity 18 (threshold 15). Drivers by points: loops 5 (9 pts), if/else 3 (8 pts), boolean chains 1 (nesting depth added 9). 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":"crab/src/cmd/dag.rs"},"region":{"startLine":390}}}],"partialFingerprints":{"codehealthFindingId/v1":"77f022e26fc38a87d668e67b7d3e714155d03df7ba4dd5a781c6d693bd8e85e2"}},{"ruleId":"D2","level":"warning","message":{"text":"crab::cmd::lfs::clone::clone_positionals (cognitive 18): crab::cmd::lfs::clone::clone_positionals has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (14 pts), boolean chains 3, loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/cmd/lfs/clone.rs"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"37f1b42500e709c9f920b4b1a69b4b9ec48f5b53df3439c0df2afc5d4e19994a"}},{"ruleId":"D2","level":"warning","message":{"text":"crab::cmd::lfs::dedup::cleanup_empty_dirs_with_cancel (cognitive 18): crab::cmd::lfs::dedup::cleanup_empty_dirs_with_cancel has cognitive complexity 18 (threshold 15). Drivers by points: if/else 4 (12 pts), loops 2 (6 pts) (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/cmd/lfs/dedup.rs"},"region":{"startLine":1306}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c1c53c72d7fbeafcbe4ec503574f85756c98ada64ee5ccb7b4e4e34ac37aa15"}},{"ruleId":"D2","level":"warning","message":{"text":"crab::cmd::lfs::ls_files::collect_lfs_entries_in (cognitive 18): crab::cmd::lfs::ls_files::collect_lfs_entries_in has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (10 pts), boolean chains 5, match/switch 1 (2 pts), loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/cmd/lfs/ls_files.rs"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"f96defdebc6a16fc32ac90eecb6fbbcbf31b5b10b7c57b4f47ae68b812985de2"}},{"ruleId":"D2","level":"warning","message":{"text":"crab::cmd::metrics::default_paths (cognitive 18): crab::cmd::metrics::default_paths has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (11 pts), loops 3 (7 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":"crab/src/cmd/metrics.rs"},"region":{"startLine":3152}}}],"partialFingerprints":{"codehealthFindingId/v1":"47b9fe16a66f082c50732fb8b293111ce5052811c59ce8a79df8bf6bf53f9058"}},{"ruleId":"D2","level":"warning","message":{"text":"crab::cmd::replica::certification_active_active_gate (cognitive 18): crab::cmd::replica::certification_active_active_gate has cognitive complexity 18 (threshold 15). Drivers by points: if/else 11 (15 pts), loops 1 (2 pts), 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":"crab/src/cmd/replica.rs"},"region":{"startLine":8149}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b83a31b67fc1836f90c6aa83f31a28b1b08abdd2bdf201cada07183d0780314"}},{"ruleId":"D2","level":"warning","message":{"text":"crab::cmd::run::upsert_lockfile (cognitive 18): crab::cmd::run::upsert_lockfile has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (16 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":"crab/src/cmd/run.rs"},"region":{"startLine":2962}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c2f20aa3bbff97f13fa7b90d74a4d2abe5ea59db8997fac118a8b9c65076a36"}},{"ruleId":"D2","level":"warning","message":{"text":"crab::cmd::run::try_pull_missing_deps (cognitive 18): crab::cmd::run::try_pull_missing_deps has cognitive complexity 18 (threshold 15). Drivers by points: match/switch 6 (9 pts), if/else 6 (7 pts), boolean chains 1, loops 1 (nesting depth added 4). 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":"crab/src/cmd/run.rs"},"region":{"startLine":4514}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a90bd009b7d25ebf2310907ff227f24e0f786fc25c99a726423c3cda299cbe9"}},{"ruleId":"D2","level":"warning","message":{"text":"crab::cmd::workflow_checkpoint::snapshot_checkpoint (cognitive 18): crab::cmd::workflow_checkpoint::snapshot_checkpoint has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (8 pts), boolean chains 5, match/switch 2 (3 pts), loops 2 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/cmd/workflow_checkpoint.rs"},"region":{"startLine":333}}}],"partialFingerprints":{"codehealthFindingId/v1":"37e9572213dab8f28cd93227574532b702226a0b2321b41927c445b50d5ff418"}},{"ruleId":"D2","level":"warning","message":{"text":"crab::cost::report::render_human (cognitive 18): crab::cost::report::render_human has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (11 pts), loops 4 (7 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":"crab/src/cost/report.rs"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"1658cce1637fbb8389cc8b17f5617122f193d9c8134f903315ee2538b07f1990"}},{"ruleId":"D2","level":"warning","message":{"text":"crab::import::assemble::try_reuse_resume_head (cognitive 18): crab::import::assemble::try_reuse_resume_head has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10 (16 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":"crab/src/import/assemble.rs"},"region":{"startLine":666}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef940c70eef5553d1428ee1b7caa59a32bd4b2a62782f0f5119073015efe2c93"}},{"ruleId":"D2","level":"warning","message":{"text":"crab::lfs::prune::cleanup_empty_dirs (cognitive 18): crab::lfs::prune::cleanup_empty_dirs has cognitive complexity 18 (threshold 15). Drivers by points: if/else 4 (12 pts), loops 2 (6 pts) (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/lfs/prune.rs"},"region":{"startLine":968}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e4da17e10de65515369724ad41d6f32d2c22f4060993ff71a522a91169657f2"}},{"ruleId":"D2","level":"warning","message":{"text":"crab_auth_server::receive::commit_service_git_locators_with_source (cognitive 18): crab_auth_server::receive::commit_service_git_locators_with_source has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9 (11 pts), match/switch 2 (3 pts), boolean chains 2, loops 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/crab-auth-server/src/receive.rs"},"region":{"startLine":1765}}}],"partialFingerprints":{"codehealthFindingId/v1":"e980262a06d4b7d70e1d887f0f8e911981fdbe5b88aa68f2130bca82a71fbb54"}},{"ruleId":"D2","level":"warning","message":{"text":"GcFenceState::validate (cognitive 18): GcFenceState::validate has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9 (10 pts), boolean chains 7, loops 1 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-coordination/src/gc_fence.rs"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"229f16ca9c700b4f2db32416b5a3e04ba80793b5391239d7799a484f2f5896e4"}},{"ruleId":"D2","level":"warning","message":{"text":"crab_coordination::gc_fence::release_holder (cognitive 18): crab_coordination::gc_fence::release_holder has cognitive complexity 18 (threshold 15). Drivers by points: if/else 4 (8 pts), match/switch 4 (7 pts), boolean chains 2, loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-coordination/src/gc_fence.rs"},"region":{"startLine":959}}}],"partialFingerprints":{"codehealthFindingId/v1":"39555870cb9defa37b7a5d5029d829a06b13fb3d7f03d46110c5671c6c625d01"}},{"ruleId":"D2","level":"warning","message":{"text":"crab_http_server::receive::receive (cognitive 18): crab_http_server::receive::receive has cognitive complexity 18 (threshold 15). Drivers by points: if/else 12 (14 pts), match/switch 2 (3 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/crab-http-server/src/receive.rs"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2371017ec251b398a3e2b76707699ced5d3454df5eded84b56934f8470acc15"}},{"ruleId":"D2","level":"warning","message":{"text":"crab_metadata::ref_journal::cleanup_compacted_transactions (cognitive 18): crab_metadata::ref_journal::cleanup_compacted_transactions has cognitive complexity 18 (threshold 15). Drivers by points: if/else 3 (8 pts), match/switch 2 (5 pts), loops 2 (3 pts), boolean chains 2 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-metadata/src/ref_journal.rs"},"region":{"startLine":553}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed454e34f264fabe057d44b93434d798337255dbaedd60c1ba83e4a47d8fefcb"}},{"ruleId":"D2","level":"warning","message":{"text":"Gateway::list_multipart_uploads (cognitive 18): Gateway::list_multipart_uploads has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (8 pts), loops 3 (5 pts), boolean chains 3, match/switch 1 (2 pts) (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-s3-gateway/src/gateway.rs"},"region":{"startLine":2769}}}],"partialFingerprints":{"codehealthFindingId/v1":"ecfd6a199bff080b68f0c4205e39279eb365c32ff79e9e3fda823b3682d747be"}},{"ruleId":"D2","level":"warning","message":{"text":"MutableTree::commit (cognitive 18): MutableTree::commit has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (15 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/crab-s3-gateway/src/mutation.rs"},"region":{"startLine":2275}}}],"partialFingerprints":{"codehealthFindingId/v1":"821af5befebb7132c9b2ac44ac366111f70446af7b702ac63f233b9e50dcaf27"}},{"ruleId":"D2","level":"warning","message":{"text":"crab_sdk::local::push::content::discover_push_pointers (cognitive 18): crab_sdk::local::push::content::discover_push_pointers has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (15 pts), boolean chains 2, loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-sdk/src/local/push/content.rs"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"19c41c0d98b8e2358537acd591151249b78355176b52cfcc0cca80b26af89fb5"}},{"ruleId":"D2","level":"warning","message":{"text":"Index::take_coalesced_read_group (cognitive 18): Index::take_coalesced_read_group has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (11 pts), loops 3 (5 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/crab-staging/src/index.rs"},"region":{"startLine":8056}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef35448c07069113c131a3f53468784ad0f3ead423286edae665bd94816a9bf6"}},{"ruleId":"D2","level":"warning","message":{"text":"crab_types::pointer::is_pointer (cognitive 18): crab_types::pointer::is_pointer has cognitive complexity 18 (threshold 15). Drivers by points: if/else 13, boolean chains 5. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-types/src/pointer.rs"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a2c421d9de814a4c892a3a7d996a38efbf7227accdd6aabeefe449e039a2de0"}},{"ruleId":"D2","level":"warning","message":{"text":"DaemonService::execute_mount_pipeline (cognitive 18): DaemonService::execute_mount_pipeline has cognitive complexity 18 (threshold 15). Drivers by points: if/else 13 (16 pts), boolean chains 1, match/switch 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-vfs/src/daemon.rs"},"region":{"startLine":847}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ce616999b3ec56826d9dc113dafe87b16952da3b682a1a08836933462642c58"}},{"ruleId":"D2","level":"warning","message":{"text":"CrabFs::setattr (cognitive 18): CrabFs::setattr has cognitive complexity 18 (threshold 15). Drivers by points: match/switch 5 (10 pts), if/else 6 (7 pts), boolean chains 1 (nesting depth added 6). 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/crab-vfs/src/fuse.rs"},"region":{"startLine":643}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddb7f3ea80a295cbe085ad295ee2bd8e3e98f0ab325b71b10828df0363bdbcf5"}},{"ruleId":"D2","level":"warning","message":{"text":"CrabNfsDirIter::next (cognitive 18): CrabNfsDirIter::next has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (11 pts), match/switch 2 (5 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/crab-vfs/src/nfs.rs"},"region":{"startLine":2030}}}],"partialFingerprints":{"codehealthFindingId/v1":"073d16c56700bdef7578f61852cc27fdaf996c1d809c63ae37e7690e088e70cb"}},{"ruleId":"D2","level":"warning","message":{"text":"crab_vfs::nfs_mount::run_until_cancelled (cognitive 18): crab_vfs::nfs_mount::run_until_cancelled has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (9 pts), match/switch 3 (8 pts), loops 1 (nesting depth added 7). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-vfs/src/nfs_mount.rs"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"dacd2c4f642d7076d41fc305500645f99984975d3318c8529b69ea8210dc4750"}},{"ruleId":"D2","level":"warning","message":{"text":"crab_vfs::snapshot::deserialize_base_node (cognitive 18): crab_vfs::snapshot::deserialize_base_node has cognitive complexity 18 (threshold 15). Drivers by points: if/else 13 (17 pts), 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/crab-vfs/src/snapshot.rs"},"region":{"startLine":831}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9eb31151b4b41a202fe09de038bc19837916663e144272b515bf6c8f9f04f10"}},{"ruleId":"D2","level":"warning","message":{"text":"crab_workflow::dvc_inventory::read_dir_manifest (cognitive 18): crab_workflow::dvc_inventory::read_dir_manifest has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (11 pts), match/switch 2 (4 pts), boolean chains 2, loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-workflow/src/dvc_inventory.rs"},"region":{"startLine":2209}}}],"partialFingerprints":{"codehealthFindingId/v1":"5915263a6c2f03e40ce2f988bb1d2f735ccbb0068b36f272b9bf2aba05c732d7"}},{"ruleId":"D2","level":"warning","message":{"text":"GcpProvider.cleanup_staging (cognitive 18): GcpProvider.cleanup_staging has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (14 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":"crab/deploy/auth-service/src/providers/gcp.py"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f2d15cbbefbbb83b413d43a3ada077db1559fc63f1460aefc28e86b91a2be7e"}},{"ruleId":"D2","level":"warning","message":{"text":"action_traces.parse_log (cognitive 18): action_traces.parse_log has cognitive complexity 18 (threshold 15). Drivers by points: if/else 4 (13 pts), loops 2 (3 pts), boolean chains 2 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-http-server/deploy/cell-issue-fleet/action_traces.py"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"1834846caf187e121a919738f77d3a0e728c45dbd05081816e9eabb9a083c0ee"}},{"ruleId":"D2","level":"warning","message":{"text":"import_image.artifact_metadata (cognitive 18): import_image.artifact_metadata has cognitive complexity 18 (threshold 15). Drivers by points: if/else 13, boolean chains 4, loops 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/crab-http-server/deploy/cell-issue-fleet/import_image.py"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b3694493ebcc89f08909034c40cae57c7727d7890131dc931b67fb39eb4f93e"}},{"ruleId":"D2","level":"warning","message":{"text":"issues.IssueDetail (cognitive 18): issues.IssueDetail has cognitive complexity 18 (threshold 15). Drivers by points: boolean chains 11, ternaries 3 (5 pts), if/else 2 (nesting depth added 2). Of this number, 11 points are the body\u0027s own statements and 7 belong to 4 function literals inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/issues.tsx"},"region":{"startLine":304}}}],"partialFingerprints":{"codehealthFindingId/v1":"c32a83ae3106d181fdd74e75cd858ab75fe98dce085626fb1b9b5c66acdf1118"}},{"ruleId":"D2","level":"warning","message":{"text":"source.attachIcons (cognitive 18): source.attachIcons has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (17 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":"packages/web/lib/source.ts"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"355604895762632f3611cf5b1fc3581222bea725692dee49e88706e6dd0acc10"}},{"ruleId":"D2","level":"warning","message":{"text":"MetaDbTomlConfig::apply_env_overrides (cognitive 17): MetaDbTomlConfig::apply_env_overrides has cognitive complexity 17 (threshold 15). Drivers by points: if/else 14 (17 pts) (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/core/config.rs"},"region":{"startLine":556}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d6088d14585c9d04f47b6534292fa0b7f51f2a69dcfbfbc74e455ce871eec27"}},{"ruleId":"D2","level":"warning","message":{"text":"ShardSynchronizer::install_shard_data (cognitive 17): ShardSynchronizer::install_shard_data has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (11 pts), match/switch 2 (3 pts), loops 1 (2 pts), boolean chains 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/metadata/shard_sync.rs"},"region":{"startLine":764}}}],"partialFingerprints":{"codehealthFindingId/v1":"dca0bc4ca7021943aad84cde630ce5e42e209dfa0eb0023382e8ca49a66e31d4"}},{"ruleId":"D2","level":"warning","message":{"text":"AzureReplicationControlPlaneBackend::apply (cognitive 17): AzureReplicationControlPlaneBackend::apply has cognitive complexity 17 (threshold 15). Drivers by points: match/switch 3 (8 pts), if/else 2 (6 pts), boolean chains 2, 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":"crab/src/replication/mod.rs"},"region":{"startLine":476}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3ecfc6cd648639ffa962bf2280fe19b4827e40b0433fce35956a5d97ccb41df"}},{"ruleId":"D2","level":"warning","message":{"text":"crab::cmd::add::walk_candidates (cognitive 17): crab::cmd::add::walk_candidates has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (15 pts), loops 1, match/switch 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/cmd/add.rs"},"region":{"startLine":3233}}}],"partialFingerprints":{"codehealthFindingId/v1":"72a1d7009ace4c023973a18ea9da3a9acdeffca227104b82ada60a8a397e33d4"}},{"ruleId":"D2","level":"warning","message":{"text":"crab::cmd::coordinator::run_status (cognitive 17): crab::cmd::coordinator::run_status has cognitive complexity 17 (threshold 15). Drivers by points: if/else 12 (17 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":"crab/src/cmd/coordinator.rs"},"region":{"startLine":391}}}],"partialFingerprints":{"codehealthFindingId/v1":"447710b8ba8069572f30cb2bf9b18dd37d28f21196a1c6c5d4a4a9e184149c1a"}},{"ruleId":"D2","level":"warning","message":{"text":"crab::cmd::dag::render_ascii (cognitive 17): crab::cmd::dag::render_ascii 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":"crab/src/cmd/dag.rs"},"region":{"startLine":493}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3148a723210bc2a27912b757383efe76fa964721638d0523c7abb58412b1968"}},{"ruleId":"D2","level":"warning","message":{"text":"crab::cmd::dehydrate::walk_hydrated_files (cognitive 17): crab::cmd::dehydrate::walk_hydrated_files has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (13 pts), match/switch 2 (3 pts), loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/cmd/dehydrate.rs"},"region":{"startLine":481}}}],"partialFingerprints":{"codehealthFindingId/v1":"52fde54ae5fd59a149ac3627b145fc71e8967af2f3763ac27142cbcf02db6bce"}},{"ruleId":"D2","level":"warning","message":{"text":"crab::cmd::gc::parallel_enum::enumerate_candidates (cognitive 17): crab::cmd::gc::parallel_enum::enumerate_candidates has cognitive complexity 17 (threshold 15). Drivers by points: loops 5 (9 pts), match/switch 2 (6 pts), if/else 2 (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":"crab/src/cmd/gc/parallel_enum.rs"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a24a2cf1a04616272903f3dda7e36a9963ea87cd8a8517671a1e11f4b6ad1c6"}},{"ruleId":"D2","level":"warning","message":{"text":"crab::cmd::hydrate::collect_git_pointer_blobs (cognitive 17): crab::cmd::hydrate::collect_git_pointer_blobs has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (14 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":"crab/src/cmd/hydrate.rs"},"region":{"startLine":2873}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ad82bdeb1f3cf967da4653c035ff71a9af758c3bffa763ccff85c5b92d445b3"}},{"ruleId":"D2","level":"warning","message":{"text":"crab::cmd::lfs::dedup::visit_index_blob_refs (cognitive 17): crab::cmd::lfs::dedup::visit_index_blob_refs has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (16 pts), loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/cmd/lfs/dedup.rs"},"region":{"startLine":944}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe35a810205f8b64fdc0c7efdfc81ca217d0448fe62f783bef0ead17bc32d6a2"}},{"ruleId":"D2","level":"warning","message":{"text":"crab::cmd::mount::run_mount_with_new_cli (cognitive 17): crab::cmd::mount::run_mount_with_new_cli has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (11 pts), boolean chains 4, match/switch 2 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/cmd/mount.rs"},"region":{"startLine":538}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b637acf01c0837c3ecd21fbbb1c4ebf096470acf5be4d96225ba505ec13e12d"}},{"ruleId":"D2","level":"warning","message":{"text":"crab::cmd::replica::enterprise_evidence_sequence_gate (cognitive 17): crab::cmd::replica::enterprise_evidence_sequence_gate has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (11 pts), loops 3 (4 pts), boolean chains 2 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/cmd/replica.rs"},"region":{"startLine":6689}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c76a1140095e7665dacfeb399ba9839b0f30453e6ac12105aeee7fdf40451f9"}},{"ruleId":"D2","level":"warning","message":{"text":"crab::cmd::replica::certification_provider_gate (cognitive 17): crab::cmd::replica::certification_provider_gate has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (12 pts), loops 3 (4 pts), boolean chains 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/cmd/replica.rs"},"region":{"startLine":8061}}}],"partialFingerprints":{"codehealthFindingId/v1":"73884356ec2933cffb728f8a6553c8c8fe7161ae44b68495f6ce784ebc0ae617"}},{"ruleId":"D2","level":"warning","message":{"text":"crab::cmd::run::scan_prior_journals (cognitive 17): crab::cmd::run::scan_prior_journals has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (11 pts), loops 2 (3 pts), match/switch 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":"crab/src/cmd/run.rs"},"region":{"startLine":4808}}}],"partialFingerprints":{"codehealthFindingId/v1":"63a92f3bcff40f1150f3c118f6b3997f05131baefebdc19f23a8c446830ae5ec"}},{"ruleId":"D2","level":"warning","message":{"text":"crab::cmd::status::render_unified_text (cognitive 17): crab::cmd::status::render_unified_text has cognitive complexity 17 (threshold 15). Drivers by points: loops 4 (8 pts), if/else 5, match/switch 1 (3 pts), boolean chains 1 (nesting depth added 6). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/cmd/status.rs"},"region":{"startLine":260}}}],"partialFingerprints":{"codehealthFindingId/v1":"0167e79a69a4bdd5c9fabb2f4c2196bb2be7904e76365fccb2a6155009c6eec3"}},{"ruleId":"D2","level":"warning","message":{"text":"crab::git::push::verified_existing_remote_xorbs (cognitive 17): crab::git::push::verified_existing_remote_xorbs has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (10 pts), match/switch 4 (5 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":"crab/src/git/push.rs"},"region":{"startLine":1235}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7cbd0002b662f9a4999c4d7a0387c14c1f6357ec58fe12bc885ffcdd948302c"}},{"ruleId":"D2","level":"warning","message":{"text":"crab::git::push::route_packed_xorb_batch (cognitive 17): crab::git::push::route_packed_xorb_batch has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (9 pts), loops 3 (5 pts), match/switch 1 (3 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/git/push.rs"},"region":{"startLine":4790}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba6ee95d2bd81678d1144d79ebc6036c219d647a9aef1626de308afbaadeb7fa"}},{"ruleId":"D2","level":"warning","message":{"text":"crab::git::upload_pack_wire::serve_with_read_admission (cognitive 17): crab::git::upload_pack_wire::serve_with_read_admission has cognitive complexity 17 (threshold 15). Drivers by points: match/switch 5 (13 pts), if/else 1 (3 pts), loops 1 (nesting depth added 10). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/git/upload_pack_wire.rs"},"region":{"startLine":507}}}],"partialFingerprints":{"codehealthFindingId/v1":"b078e2f477b072cffeb6ef9cda05f5e69943d24e481c8722ec76192de0d37d61"}},{"ruleId":"D2","level":"warning","message":{"text":"crab::import::assemble::run_assemble (cognitive 17): crab::import::assemble::run_assemble has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10 (15 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":"crab/src/import/assemble.rs"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9ea0761af158bfe400858ea1f3c10408718cbd55ae3348076615bd9a27c12c5"}},{"ruleId":"D2","level":"warning","message":{"text":"crab::tier::provider::s3::serialize_sdk_rule (cognitive 17): crab::tier::provider::s3::serialize_sdk_rule has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10 (15 pts), 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":"crab/src/tier/provider/s3.rs"},"region":{"startLine":572}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca3c4d709e75b3576af1b61ef59529c5b341c573d197136ce73733ff660d94b8"}},{"ruleId":"D2","level":"warning","message":{"text":"crab_auth::managed::openapi::compare_operation (cognitive 17): crab_auth::managed::openapi::compare_operation has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (12 pts), boolean chains 2, loops 2, 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/crab-auth/src/managed/openapi.rs"},"region":{"startLine":600}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf172810b7d6a357276d89e8b6a0ae7908984b99954e93767b4f3a2a6cb0bd34"}},{"ruleId":"D2","level":"warning","message":{"text":"crab_cache::private_fs::platform::database::open_with_generation (cognitive 17): crab_cache::private_fs::platform::database::open_with_generation has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (10 pts), boolean chains 3, loops 2, match/switch 1 (2 pts) (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-cache/src/private_fs/platform/database.rs"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"35c79adef4448f09b819f404aac7f4d1d92d46cdd5ec5e4f84f03409593766a3"}},{"ruleId":"D2","level":"warning","message":{"text":"crab_cache::private_fs::platform::scan::visit_directory (cognitive 17): crab_cache::private_fs::platform::scan::visit_directory has cognitive complexity 17 (threshold 15). Drivers by points: match/switch 5 (10 pts), if/else 4 (6 pts), loops 1 (nesting depth added 7). 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/crab-cache/src/private_fs/platform/scan.rs"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"189687718e296a35756551f21c6edc80d6ce86a5e87d027d6e7a2ad4429c155c"}},{"ruleId":"D2","level":"warning","message":{"text":"crab_git::pre_push::read_pre_push (cognitive 17): crab_git::pre_push::read_pre_push has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (15 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/crab-git/src/pre_push.rs"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"15b3216eb32a8b57d06ee530997afccc4483b7dcd3babee13f9813e325d74d87"}},{"ruleId":"D2","level":"warning","message":{"text":"ListIssues::execute (cognitive 17): ListIssues::execute has cognitive complexity 17 (threshold 15). Drivers by points: if/else 4 (11 pts), boolean chains 3, loops 2 (3 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-http-server/src/cells/repository/operations.rs"},"region":{"startLine":218}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb06cd7f7d665f245fcaf46a6a75e23e3f427c7cb405ee83cbff7473197bb4bd"}},{"ruleId":"D2","level":"warning","message":{"text":"crab_http_server::git::write_refs (cognitive 17): crab_http_server::git::write_refs has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (14 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/crab-http-server/src/git.rs"},"region":{"startLine":417}}}],"partialFingerprints":{"codehealthFindingId/v1":"98cf3fef45d2eca0cfde24c2a31f26146a51633f6c24b5d44bd0bd33d0c02d5f"}},{"ruleId":"D2","level":"warning","message":{"text":"FileIndexLookupSession::manifest_scoped_lookup_batch (cognitive 17): FileIndexLookupSession::manifest_scoped_lookup_batch has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (8 pts), loops 3 (7 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/crab-metadata/src/file_index_lookup.rs"},"region":{"startLine":517}}}],"partialFingerprints":{"codehealthFindingId/v1":"21ccc7957b07ef9f29e59b0ad29aac6fd5292f24faff223791a41cd55f8d61a8"}},{"ruleId":"D2","level":"warning","message":{"text":"GitVisibilityStoredClosureV1::into_positions (cognitive 17): GitVisibilityStoredClosureV1::into_positions has cognitive complexity 17 (threshold 15). Drivers by points: if/else 4 (10 pts), loops 2 (5 pts), boolean chains 1, match/switch 1 (nesting depth added 9). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-metadata/src/git_visibility.rs"},"region":{"startLine":2443}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7b5e4667c509459e6dc0bae419f1da5b3ea2fc1036959a7bf3a9ad07340c367"}},{"ruleId":"D2","level":"warning","message":{"text":"crab_metadata::git_object_locator::reader::lookup_strategy (cognitive 17): crab_metadata::git_object_locator::reader::lookup_strategy has cognitive complexity 17 (threshold 15). Drivers by points: boolean chains 12, if/else 5. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-metadata/src/git_object_locator/reader.rs"},"region":{"startLine":892}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8594d2243dc45ea1b1f85539c1d6142ab30154d825dfc47daf22b0d758d10ab"}},{"ruleId":"D2","level":"warning","message":{"text":"TreeEdits::build (cognitive 17): TreeEdits::build has cognitive complexity 17 (threshold 15). Drivers by points: match/switch 4 (8 pts), if/else 3 (6 pts), loops 2, boolean chains 1 (nesting depth added 7). 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/crab-remote/src/objects.rs"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"04b937d3e29275ee9b1390d86581a9fc7e5693346de3618c373cff540b68535f"}},{"ruleId":"D2","level":"warning","message":{"text":"ArchiveReader::next_entry (cognitive 17): ArchiveReader::next_entry has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (14 pts), match/switch 1 (2 pts), loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-remote-git/src/snapshot.rs"},"region":{"startLine":1384}}}],"partialFingerprints":{"codehealthFindingId/v1":"effcd7a256547bcc45b239df05b798e373a52ab01885e3e80a9ee9df08d8b355"}},{"ruleId":"D2","level":"warning","message":{"text":"WriteAdmission::enqueue (cognitive 17): WriteAdmission::enqueue has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (13 pts), loops 1 (2 pts), boolean chains 1, match/switch 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-s3-gateway/src/mutation.rs"},"region":{"startLine":1043}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac6a7d9e57ab19224dac13b4180916ac629e4c8719fa8fc207426279a379c0f9"}},{"ruleId":"D2","level":"warning","message":{"text":"crab_s3_gateway::multipart::acquire_capacity (cognitive 17): crab_s3_gateway::multipart::acquire_capacity has cognitive complexity 17 (threshold 15). Drivers by points: if/else 4 (10 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/crab-s3-gateway/src/multipart.rs"},"region":{"startLine":372}}}],"partialFingerprints":{"codehealthFindingId/v1":"e57e23c179d91876c0b791d7e2dc3280b599329b055eecd1297990c577892cd4"}},{"ruleId":"D2","level":"warning","message":{"text":"RequestBinding::validate (cognitive 17): RequestBinding::validate has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (10 pts), boolean chains 6, 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/crab-sdk/src/mutation.rs"},"region":{"startLine":594}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2e1ea99cabdc24eadb6bdf50bc5eea514a34473a29b532a4cb2c2d7eb0a7ad4"}},{"ruleId":"D2","level":"warning","message":{"text":"crab_staging::stream::stream_chunk_and_stage_producer (cognitive 17): crab_staging::stream::stream_chunk_and_stage_producer has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (13 pts), loops 2 (3 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/crab-staging/src/stream.rs"},"region":{"startLine":1052}}}],"partialFingerprints":{"codehealthFindingId/v1":"9dffb51885be0fafcecf4b5bb44fe57beb20263bcabbdb34c8619e3edc8f232f"}},{"ruleId":"D2","level":"warning","message":{"text":"Coordinator::invalidate_mount_paths (cognitive 17): Coordinator::invalidate_mount_paths has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (13 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/crab-vfs/src/coordinator.rs"},"region":{"startLine":471}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a76e70578ff148a86a1e359e7689a43be135ed7fc7d3f99589982d862c7cb5f"}},{"ruleId":"D2","level":"warning","message":{"text":"crab_vfs::ipc_server::handle_mount (cognitive 17): crab_vfs::ipc_server::handle_mount has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8, match/switch 7, 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/crab-vfs/src/ipc_server.rs"},"region":{"startLine":555}}}],"partialFingerprints":{"codehealthFindingId/v1":"a04aaebf4e380662a351a28bd8d5301d651abdb5881e50edb5dda7d61380d703"}},{"ruleId":"D2","level":"warning","message":{"text":"crab_vfs::nfs_control::run_unix_server (cognitive 17): crab_vfs::nfs_control::run_unix_server has cognitive complexity 17 (threshold 15). Drivers by points: if/else 4 (8 pts), match/switch 2 (5 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/crab-vfs/src/nfs_control.rs"},"region":{"startLine":839}}}],"partialFingerprints":{"codehealthFindingId/v1":"050ca76b24ec6a7bcfab9376eebcf5dc961bad9ffdf78634cd9c0dc6b3923c1a"}},{"ruleId":"D2","level":"warning","message":{"text":"crab_vfs::publish::stage_crab_overlay_files (cognitive 17): crab_vfs::publish::stage_crab_overlay_files has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (11 pts), loops 3 (6 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/crab-vfs/src/publish.rs"},"region":{"startLine":1419}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bc12a27de2855260709fefe4d78a904bbf20973730b6ea043f471b9139be658"}},{"ruleId":"D2","level":"warning","message":{"text":"crab_vfs::signal_handler::run_signal_handler (cognitive 17): crab_vfs::signal_handler::run_signal_handler has cognitive complexity 17 (threshold 15). Drivers by points: match/switch 4 (8 pts), if/else 5 (7 pts), boolean chains 1, loops 1 (nesting depth added 6). 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/crab-vfs/src/signal_handler.rs"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"06627dac10d271eb79d7d0fef398bea870bda0f4bbd77f47c8238db972596587"}},{"ruleId":"D2","level":"warning","message":{"text":"Composer::apply_group_override (cognitive 17): Composer::apply_group_override has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (10 pts), match/switch 2 (4 pts), loops 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/crab-workflow/src/hydra.rs"},"region":{"startLine":240}}}],"partialFingerprints":{"codehealthFindingId/v1":"b72b9cc38dde35ce625bd24b195180282a25598ae6e9c91994de2ae678eb0901"}},{"ruleId":"D2","level":"warning","message":{"text":"PythonLiteralParser::parse_tuple_or_group (cognitive 17): PythonLiteralParser::parse_tuple_or_group has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10 (16 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/crab-workflow/src/params.rs"},"region":{"startLine":645}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b5c9973eb490dcff79e5cec553fb4debeb199d3b9f882a8b4683108d46441ae"}},{"ruleId":"D2","level":"warning","message":{"text":"PythonLiteralParser::parse_number (cognitive 17): PythonLiteralParser::parse_number has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (12 pts), loops 3 (5 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/crab-workflow/src/params.rs"},"region":{"startLine":687}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0953d7c3e1d916e2274164b95ed23d4b79d976a1acc2e8a55f030fbadeadbd7"}},{"ruleId":"D2","level":"warning","message":{"text":"crab_workflow::exp_worktree::apply_declared_param_overrides (cognitive 17): crab_workflow::exp_worktree::apply_declared_param_overrides has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (10 pts), loops 3 (5 pts), match/switch 1 (2 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-workflow/src/exp_worktree.rs"},"region":{"startLine":574}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b01fcd0ccd0fca1ad2ff487f86923bc9105a0296e447478fdb765b94d06f0d8"}},{"ruleId":"D2","level":"warning","message":{"text":"crab_workflow::gc::collect_checkpoint_files (cognitive 17): crab_workflow::gc::collect_checkpoint_files has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (14 pts), boolean chains 2, loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-workflow/src/gc.rs"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"db0b83ae2a8fa039fef9f04130a365eb9ac701d4fff883d42d58308ec270ff81"}},{"ruleId":"D2","level":"warning","message":{"text":"crab_workflow::hasher::load_gitignore_matchers (cognitive 17): crab_workflow::hasher::load_gitignore_matchers has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (13 pts), boolean chains 2, loops 1, match/switch 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-workflow/src/hasher.rs"},"region":{"startLine":548}}}],"partialFingerprints":{"codehealthFindingId/v1":"99d34acdd7a1594fa350baf6c50e977062345771f79044e5989ae96e3c72f6c8"}},{"ruleId":"D2","level":"warning","message":{"text":"check-architecture-gates.check_workspace_dependency_policy (cognitive 17): check-architecture-gates.check_workspace_dependency_policy has cognitive complexity 17 (threshold 15). Drivers by points: if/else 4 (11 pts), loops 5 (6 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/scripts/check-architecture-gates.py"},"region":{"startLine":2479}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5f677229cc5d66d0d3a8ab6e64902db3cdc320473a023375b4dff7e90c22609"}},{"ruleId":"D2","level":"warning","message":{"text":"load.scheduled_load (cognitive 17): load.scheduled_load has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (9 pts), loops 3 (4 pts), ternaries 2 (3 pts), boolean chains 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-http-server/deploy/cell-issue-fleet/load.py"},"region":{"startLine":264}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb075422a839fd579ea41956800467faac8e7a99aeadd5f31472451510c250d9"}},{"ruleId":"D2","level":"warning","message":{"text":"load.drain_publication (cognitive 17): load.drain_publication has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (13 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/crab-http-server/deploy/cell-issue-fleet/load.py"},"region":{"startLine":417}}}],"partialFingerprints":{"codehealthFindingId/v1":"42e63a59e9b73c6d9376fdc0e5506ac59fbe14fa781105ef6edeff156c1e6d6b"}},{"ruleId":"D2","level":"warning","message":{"text":"qualify_read_replicas.prove_all_reader_loss (cognitive 17): qualify_read_replicas.prove_all_reader_loss has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (10 pts), boolean chains 3, error handling 1 (2 pts), loops 2 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-http-server/deploy/cell-issue-fleet/qualify_read_replicas.py"},"region":{"startLine":350}}}],"partialFingerprints":{"codehealthFindingId/v1":"629bfb6380dcc3b168f3e573dae0be5c6c1795c11f500fc4412e8399c2f4352a"}},{"ruleId":"D2","level":"warning","message":{"text":"repository-markdown.repositoryTarget (cognitive 17): repository-markdown.repositoryTarget has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (10 pts), ternaries 3, boolean chains 2, error handling 1, loops 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/repository-markdown.tsx"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"b85417d57f0f2ec82299ec01aedc18c1be7b7311d0b66a2d95b7b4d4cb2c4f5e"}},{"ruleId":"D2","level":"warning","message":{"text":"refs.RefsPage (cognitive 17): refs.RefsPage has cognitive complexity 17 (threshold 15). Drivers by points: ternaries 11 (12 pts), boolean chains 5 (nesting depth added 1). Of this number, 16 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/refs.tsx"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"8cc651977c6fb0a7132759075f7feb757590324be76c0e126abf7262a991a671"}},{"ruleId":"D2","level":"warning","message":{"text":"Config::resolve_local_from_with_project (cognitive 16): Config::resolve_local_from_with_project has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (12 pts), boolean chains 4 (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":"crab/src/core/config.rs"},"region":{"startLine":1835}}}],"partialFingerprints":{"codehealthFindingId/v1":"519b88e1748e63204de7ecdb38b4db56da3722580eafae91f52b3551721ef548"}},{"ruleId":"D2","level":"warning","message":{"text":"CleanSession::clean_stream (cognitive 16): CleanSession::clean_stream has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (8 pts), loops 2 (4 pts), match/switch 3 (4 pts) (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/git/clean.rs"},"region":{"startLine":1970}}}],"partialFingerprints":{"codehealthFindingId/v1":"90b88a83aee773649fcc252df09320dca3b2375088b4a6c17bd18d9b94566c48"}},{"ruleId":"D2","level":"warning","message":{"text":"PushPipeline::head_check_resume_batch (cognitive 16): PushPipeline::head_check_resume_batch has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10 (14 pts), loops 1 (2 pts) (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/git/push.rs"},"region":{"startLine":11724}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7fd126e15f30c8814041c966acc6e93a12877b575f7d5a2d54d24ca4c225fa0"}},{"ruleId":"D2","level":"warning","message":{"text":"GcsReplicationControlPlaneBackend::gcs_backfill_check (cognitive 16): GcsReplicationControlPlaneBackend::gcs_backfill_check has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (11 pts), match/switch 3 (4 pts), boolean chains 1 (nesting depth added 8). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/replication/mod.rs"},"region":{"startLine":1262}}}],"partialFingerprints":{"codehealthFindingId/v1":"38004bfa671fc9e3b823dd5913bc8b51cf0b52cc4fa8476a5ece9eed297d3ce3"}},{"ruleId":"D2","level":"warning","message":{"text":"RestoreOrchestrator::ensure_warm (cognitive 16): RestoreOrchestrator::ensure_warm has cognitive complexity 16 (threshold 15). Drivers by points: if/else 2 (8 pts), match/switch 2 (6 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":"crab/src/tier/restore.rs"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"21c0597427a426ddc9bf5f8632eeb83dd3954ea77345fec95fc14efde9afe772"}},{"ruleId":"D2","level":"warning","message":{"text":"crab::cmd::artifacts::run_version_create (cognitive 16): crab::cmd::artifacts::run_version_create has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (15 pts), match/switch 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/cmd/artifacts.rs"},"region":{"startLine":268}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c985bb7160fc6bf93335f9ab4aaab1b9022adc22d32868d91abf6106c3c6f45"}},{"ruleId":"D2","level":"warning","message":{"text":"crab::cmd::clone::walk_for_pointers (cognitive 16): crab::cmd::clone::walk_for_pointers has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (12 pts), boolean chains 2, loops 1, 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":"crab/src/cmd/clone.rs"},"region":{"startLine":1611}}}],"partialFingerprints":{"codehealthFindingId/v1":"75e1fab13659fede2ef29a8b65d53a6aa5ae3527a00dc83c061caa433fb38884"}},{"ruleId":"D2","level":"warning","message":{"text":"crab::cmd::du::walk_tracked (cognitive 16): crab::cmd::du::walk_tracked has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (14 pts), loops 1, match/switch 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/cmd/du.rs"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"4246998fa506163bc2cb7990c832b58f75148889a1a1daaaec72f8fd12d10c99"}},{"ruleId":"D2","level":"warning","message":{"text":"crab::cmd::exp::collect_summaries (cognitive 16): crab::cmd::exp::collect_summaries has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (8 pts), match/switch 4 (7 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":"crab/src/cmd/exp.rs"},"region":{"startLine":5232}}}],"partialFingerprints":{"codehealthFindingId/v1":"bcc48df157cb2065e6fff6f5fefe747bcacf983d2b08dca648fe4a59a5eb9ea2"}},{"ruleId":"D2","level":"warning","message":{"text":"crab::cmd::exp_queue::run_exp_queue_remove (cognitive 16): crab::cmd::exp_queue::run_exp_queue_remove has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (8 pts), boolean chains 5, loops 3 (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":"crab/src/cmd/exp_queue.rs"},"region":{"startLine":744}}}],"partialFingerprints":{"codehealthFindingId/v1":"67d830ca7823864867c4ed5b131229cb099617ccdb6f1789f3ff9a0a8a964e7b"}},{"ruleId":"D2","level":"warning","message":{"text":"crab::cmd::exp_queue::clean_stale_active_run_markers (cognitive 16): crab::cmd::exp_queue::clean_stale_active_run_markers has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (9 pts), boolean chains 3, match/switch 2 (3 pts), loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/cmd/exp_queue.rs"},"region":{"startLine":1178}}}],"partialFingerprints":{"codehealthFindingId/v1":"996a8e5e7c8edbba04f1dbbab30a23373e505470a58e8982ac4fbe6398df631a"}},{"ruleId":"D2","level":"warning","message":{"text":"crab::cmd::hydrate::configured_hydrator (cognitive 16): crab::cmd::hydrate::configured_hydrator 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":"crab/src/cmd/hydrate.rs"},"region":{"startLine":2108}}}],"partialFingerprints":{"codehealthFindingId/v1":"20f73675dc78f8d71ba90d6433958b9dee412c0896c7b35a50e1399c7784b2dc"}},{"ruleId":"D2","level":"warning","message":{"text":"crab::cmd::lfs::install::install_pre_push_hook_at (cognitive 16): crab::cmd::lfs::install::install_pre_push_hook_at has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10 (14 pts), boolean chains 2 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/cmd/lfs/install.rs"},"region":{"startLine":265}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c5f6223d96eeeeadc17ccb30b212e33649abba58bef87cd44318f5d3c9e2540"}},{"ruleId":"D2","level":"warning","message":{"text":"crab::cmd::lfs::pointer::run_lfs_pointer (cognitive 16): crab::cmd::lfs::pointer::run_lfs_pointer has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10 (16 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":"crab/src/cmd/lfs/pointer.rs"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c95a4e5a141ebc50934be3f7b038426a7d5b7966d91f8829a7e77423b7bc6d8"}},{"ruleId":"D2","level":"warning","message":{"text":"crab::cmd::metadb::rebuild_committed_chunk_receipts (cognitive 16): crab::cmd::metadb::rebuild_committed_chunk_receipts has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (8 pts), loops 2 (4 pts), match/switch 1 (3 pts), boolean chains 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/cmd/metadb.rs"},"region":{"startLine":3246}}}],"partialFingerprints":{"codehealthFindingId/v1":"951fe6107d900226262d741959cde2631c43d1ab41dbd94d51a770f17ba4eff6"}},{"ruleId":"D2","level":"warning","message":{"text":"crab::cmd::metrics::metric_delta (cognitive 16): crab::cmd::metrics::metric_delta has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (15 pts), match/switch 1 (nesting depth added 6). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/cmd/metrics.rs"},"region":{"startLine":4136}}}],"partialFingerprints":{"codehealthFindingId/v1":"2dd44a0c7c291d3b081a3610518cef681abacada31f395ca30a67bb9a0dee1c8"}},{"ruleId":"D2","level":"warning","message":{"text":"crab::cmd::mount::spawn_nfs_background (cognitive 16): crab::cmd::mount::spawn_nfs_background has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10 (14 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":"crab/src/cmd/mount.rs"},"region":{"startLine":1556}}}],"partialFingerprints":{"codehealthFindingId/v1":"02b4af113ce7d185712721ddb79d4ca4c8d267adc1942425c0d228b6abd6968c"}},{"ruleId":"D2","level":"warning","message":{"text":"crab::cmd::pull::run_pull (cognitive 16): crab::cmd::pull::run_pull has cognitive complexity 16 (threshold 15). Drivers by points: if/else 11 (15 pts), 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":"crab/src/cmd/pull.rs"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"453aa534bfa52e46bae9b9ec8220fd854db4e8514a6da1763daae64948c1871d"}},{"ruleId":"D2","level":"warning","message":{"text":"crab::cmd::replica::validate_repair_args (cognitive 16): crab::cmd::replica::validate_repair_args has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 8, if/else 8. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/cmd/replica.rs"},"region":{"startLine":3465}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e2d1c5ff4cae7f8776a337c9908f893e4c74e5f0b0d256ecbbc7c0447a4166f"}},{"ruleId":"D2","level":"warning","message":{"text":"crab::cmd::replica::render_verify (cognitive 16): crab::cmd::replica::render_verify has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (10 pts), loops 3 (5 pts), 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":"crab/src/cmd/replica.rs"},"region":{"startLine":12180}}}],"partialFingerprints":{"codehealthFindingId/v1":"a665f45cef87f23fa54e7ae113814a29152346833b930474941fac43c6b9ee21"}},{"ruleId":"D2","level":"warning","message":{"text":"crab::cmd::setup::scan_and_track (cognitive 16): crab::cmd::setup::scan_and_track has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (10 pts), boolean chains 4, loops 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":"crab/src/cmd/setup.rs"},"region":{"startLine":278}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bfceb29ef1da1d71ad337bec355e95b290e8914b42817e3a54ea2dffd10b84e"}},{"ruleId":"D2","level":"warning","message":{"text":"crab::git::fetch::run_fetch_batch (cognitive 16): crab::git::fetch::run_fetch_batch has cognitive complexity 16 (threshold 15). Drivers by points: if/else 12 (15 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":"crab/src/git/fetch.rs"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5d0cf7c307d05d61a96755da159a4588166092f809df2354d9b19d3e3135964"}},{"ruleId":"D2","level":"warning","message":{"text":"crab::git::push::publish_committed_pack_locators_with_mode (cognitive 16): crab::git::push::publish_committed_pack_locators_with_mode has cognitive complexity 16 (threshold 15). Drivers by points: if/else 11 (13 pts), boolean chains 1, loops 1, match/switch 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/git/push.rs"},"region":{"startLine":5859}}}],"partialFingerprints":{"codehealthFindingId/v1":"8cfec0f7fe5ae1e2f41fc735caf02e788949ab5d210527858355ba72c77f7cac"}},{"ruleId":"D2","level":"warning","message":{"text":"crab::git::push_edits::build_ref_edits (cognitive 16): crab::git::push_edits::build_ref_edits has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (7 pts), match/switch 2 (7 pts), boolean chains 1, loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/git/push_edits.rs"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"75ad3c087c33393f83050c939c469d3efa18fbe268d572e9efcafc6fe80839c0"}},{"ruleId":"D2","level":"warning","message":{"text":"crab::import::ingest::worker_loop (cognitive 16): crab::import::ingest::worker_loop has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (11 pts), match/switch 2 (4 pts), loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/import/ingest.rs"},"region":{"startLine":411}}}],"partialFingerprints":{"codehealthFindingId/v1":"62fb2f2596ff07618b8bc15ea5b2d62410239c0b2e3c767741c097d4d25e818d"}},{"ruleId":"D2","level":"warning","message":{"text":"crab::lfs::lifecycle::collect_referenced_oids (cognitive 16): crab::lfs::lifecycle::collect_referenced_oids has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (11 pts), match/switch 2 (4 pts), loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/lfs/lifecycle.rs"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe8b1c4a5c0043060a6f174c11957d35102a1bbf85411578760c201d9c6fe760"}},{"ruleId":"D2","level":"warning","message":{"text":"ManagedDiscoveryClient::resolve_profile_at (cognitive 16): ManagedDiscoveryClient::resolve_profile_at has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (12 pts), boolean chains 3, 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/crab-auth/src/managed/profile_discovery.rs"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2d4de2ab95b6216d3ce501b42cf67405f1b58dc10e6ad3e804f13e26aa9548b"}},{"ruleId":"D2","level":"warning","message":{"text":"GitReceiveWorkspace::materialize_source_push_in (cognitive 16): GitReceiveWorkspace::materialize_source_push_in has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (11 pts), loops 3 (4 pts), boolean chains 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-auth-server/src/receive/git_workspace.rs"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bf432189b1f4e1cc065ee8eeee19799273ae067b4347000ffedd5e4abba0853"}},{"ruleId":"D2","level":"warning","message":{"text":"CacheHealthReport::issue (cognitive 16): CacheHealthReport::issue has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 6, if/else 5 (6 pts), match/switch 2 (3 pts), loops 1 (nesting depth added 2). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-cache/src/health.rs"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d4e528eb461593de6f6189c91b8dc325808e7a1fc2c3fae3375e14b42d46179"}},{"ruleId":"D2","level":"warning","message":{"text":"CachingStore::get_with_etag (cognitive 16): CachingStore::get_with_etag has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (10 pts), match/switch 2 (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/crab-cache-store/src/lib.rs"},"region":{"startLine":401}}}],"partialFingerprints":{"codehealthFindingId/v1":"87aa796c7348fe2fb0010070f45949cadc4f4e19204cefa8589b541fcc97a38c"}},{"ruleId":"D2","level":"warning","message":{"text":"CachingStore::dedup_query (cognitive 16): CachingStore::dedup_query has cognitive complexity 16 (threshold 15). Drivers by points: if/else 3 (6 pts), loops 2 (5 pts), match/switch 1 (4 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/crab-cache-store/src/lib.rs"},"region":{"startLine":1006}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f888f93c06c2a2f322a753a6690ab76a6c92b7ce6dcff539eae0f6a73dfbd7a"}},{"ruleId":"D2","level":"warning","message":{"text":"crab_coordination::active_active::validate_active_active_config (cognitive 16): crab_coordination::active_active::validate_active_active_config has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10 (14 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/crab-coordination/src/active_active.rs"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b6ca89adbd00485cd07d4185785f4a2405847c0bc25a5daf7691a3c81e5b522"}},{"ruleId":"D2","level":"warning","message":{"text":"crab_git::incoming_pack::prepared::ordered_objects (cognitive 16): crab_git::incoming_pack::prepared::ordered_objects has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (12 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/crab-git/src/incoming_pack/prepared.rs"},"region":{"startLine":491}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9e3d9314e3e1f5e7d3b6e62d31284adc5610a846d2e9732faf993d4ab2a252c"}},{"ruleId":"D2","level":"warning","message":{"text":"crab_git::incoming_pack::prepared::prepare_delta (cognitive 16): crab_git::incoming_pack::prepared::prepare_delta has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (13 pts), boolean chains 3 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-git/src/incoming_pack/prepared.rs"},"region":{"startLine":528}}}],"partialFingerprints":{"codehealthFindingId/v1":"1aadde8123fdd520858a0297c39c4cc496f3c1318d8bb43ce076e1e2e3cf5d0b"}},{"ruleId":"D2","level":"warning","message":{"text":"crab_git::pointer_ref::resolve_commit (cognitive 16): crab_git::pointer_ref::resolve_commit has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (8 pts), match/switch 2 (6 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/crab-git/src/pointer_ref.rs"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"34b9eb681789d8232e7d0e184280a7b78dcdb01c12da2294c5b96115aac65a5e"}},{"ruleId":"D2","level":"warning","message":{"text":"Authentication::remove_git_tokens (cognitive 16): Authentication::remove_git_tokens has cognitive complexity 16 (threshold 15). Drivers by points: match/switch 3 (9 pts), loops 2 (4 pts), if/else 3 (nesting depth added 8). 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/crab-http-server/src/auth/git_tokens.rs"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6a29029b7ca96a38ac004e9ee0c175c391adb9aa96458d1dd0c185be1d38486"}},{"ruleId":"D2","level":"warning","message":{"text":"Authentication::load_session (cognitive 16): Authentication::load_session has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (11 pts), match/switch 2 (3 pts), boolean chains 2 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-http-server/src/auth.rs"},"region":{"startLine":575}}}],"partialFingerprints":{"codehealthFindingId/v1":"719ec9c89db10cbbce832d9ce71be6d4ed96223ebdd71ae37b0568c87dd60a9a"}},{"ruleId":"D2","level":"warning","message":{"text":"CatalogDocument::validate (cognitive 16): CatalogDocument::validate has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (9 pts), boolean chains 6, loops 1 (nesting depth added 3). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-http-server/src/catalog.rs"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"d86a751c9c9f0e9725483da4c260feb7fb31639bc6761b49db0488aaa0283113"}},{"ruleId":"D2","level":"warning","message":{"text":"ListComments::execute (cognitive 16): ListComments::execute has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (12 pts), loops 2 (3 pts), boolean chains 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-http-server/src/cells/repository/operations.rs"},"region":{"startLine":287}}}],"partialFingerprints":{"codehealthFindingId/v1":"af83585891f86b22592bebb7a1dcca859a42bec3f20e88e6b45c136b3fa25f5c"}},{"ruleId":"D2","level":"warning","message":{"text":"CommitGraphSummary::is_ancestor (cognitive 16): CommitGraphSummary::is_ancestor has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (12 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/crab-metadata/src/commit_graph.rs"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"052d3d5526c78fc5a7584242f469ec18da10fb201eddc6dec004b28efdd7e91c"}},{"ruleId":"D2","level":"warning","message":{"text":"crab_metadata::ref_journal::transaction_is_compacted (cognitive 16): crab_metadata::ref_journal::transaction_is_compacted has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (12 pts), loops 2 (3 pts), boolean chains 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-metadata/src/ref_journal.rs"},"region":{"startLine":515}}}],"partialFingerprints":{"codehealthFindingId/v1":"38f1e6c7baf32a69e1224db46384bd83c25e3d6f2e8dc2c8588aedfa231d300c"}},{"ruleId":"D2","level":"warning","message":{"text":"TermResolver::resolve_batch (cognitive 16): TermResolver::resolve_batch has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (9 pts), match/switch 3 (5 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/crab-read/src/term_resolver.rs"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"5251375ece3b643b8ae8b3e70bb16d1b1e49f0eb16ec230c168affe897cae5b4"}},{"ruleId":"D2","level":"warning","message":{"text":"OperationContext::open_inner (cognitive 16): OperationContext::open_inner has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (9 pts), match/switch 3 (5 pts), boolean chains 2 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, 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/crab-remote-git/src/operation.rs"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a3381e592b069f41b6b7200a0529dfc31322a139f076d41feaae65b3e223df9"}},{"ruleId":"D2","level":"warning","message":{"text":"RemoteGitReader::read_packed_many_with_session_and_locators (cognitive 16): RemoteGitReader::read_packed_many_with_session_and_locators has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (9 pts), loops 4 (5 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/crab-remote-git/src/reader.rs"},"region":{"startLine":764}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3f090030bcf9562009d7857d99413a21fbc39d460c05aff393090b5871d81fc"}},{"ruleId":"D2","level":"warning","message":{"text":"RemoteGitSnapshot::commit_graph_path_history (cognitive 16): RemoteGitSnapshot::commit_graph_path_history has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (11 pts), loops 2 (3 pts), match/switch 1 (2 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-remote-git/src/snapshot.rs"},"region":{"startLine":270}}}],"partialFingerprints":{"codehealthFindingId/v1":"b815ad34b8a0b355405144b46d9adbd638d77df5e543665a6b9c6ea989612c26"}},{"ruleId":"D2","level":"warning","message":{"text":"Gateway::delete_objects (cognitive 16): Gateway::delete_objects has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (9 pts), match/switch 2 (4 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/crab-s3-gateway/src/gateway.rs"},"region":{"startLine":1926}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc5e59148d3e89178bcfe4aa304c5a5f273c01d41aa848557c932d353ff34943"}},{"ruleId":"D2","level":"warning","message":{"text":"Coordinator::apply_one_batch (cognitive 16): Coordinator::apply_one_batch has cognitive complexity 16 (threshold 15). Drivers by points: if/else 3 (5 pts), loops 3 (5 pts), match/switch 3 (5 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/crab-s3-gateway/src/mutation.rs"},"region":{"startLine":417}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1596e7272a7045aac1d29f234dcf36fa8cb7182d92c779c6f225fead40a5f54"}},{"ruleId":"D2","level":"warning","message":{"text":"crab_s3_gateway::gateway::verified_crab_stream (cognitive 16): crab_s3_gateway::gateway::verified_crab_stream has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (13 pts), match/switch 1 (2 pts), loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-s3-gateway/src/gateway.rs"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"35d98d4f9a0479ddcec2633275008c26130f51b87db8c65b7ff8bd4f4146dcf7"}},{"ruleId":"D2","level":"warning","message":{"text":"crab_s3_gateway::multipart::freeze (cognitive 16): crab_s3_gateway::multipart::freeze has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (13 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/crab-s3-gateway/src/multipart.rs"},"region":{"startLine":998}}}],"partialFingerprints":{"codehealthFindingId/v1":"4377af842720f03cee574e14d3fbdb67827814ed2d6a1a075d9c252bf71c2836"}},{"ruleId":"D2","level":"warning","message":{"text":"crab_staging::verify_pending_recipe_payload (cognitive 16): crab_staging::verify_pending_recipe_payload has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (10 pts), loops 3 (6 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/crab-staging/src/lib.rs"},"region":{"startLine":1597}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2eeea6ac6888ce765ffdd6090b77fcf68a6fb79f9b7265c7137399d5c7712b3"}},{"ruleId":"D2","level":"warning","message":{"text":"crab_staging::push_plan::accumulate_file_plan_for_hash (cognitive 16): crab_staging::push_plan::accumulate_file_plan_for_hash has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (11 pts), loops 2, match/switch 1 (2 pts), boolean chains 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/crab-staging/src/push_plan.rs"},"region":{"startLine":945}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1eae242d3db4274766bcf64789e959fec63ee935b712c466abff32f9ed95a99"}},{"ruleId":"D2","level":"warning","message":{"text":"AdmissionBody::poll_frame (cognitive 16): AdmissionBody::poll_frame has cognitive complexity 16 (threshold 15). Drivers by points: match/switch 3 (8 pts), loops 2 (5 pts), if/else 2 (3 pts) (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/crab-storage/src/transport_read_admission.rs"},"region":{"startLine":285}}}],"partialFingerprints":{"codehealthFindingId/v1":"32e546b9cd01ae7ac4f9cb26e687335f62205f03ff40a8b015cf9b7790239b69"}},{"ruleId":"D2","level":"warning","message":{"text":"IpcServer::run_with_bound_hook (cognitive 16): IpcServer::run_with_bound_hook has cognitive complexity 16 (threshold 15). Drivers by points: if/else 3 (7 pts), match/switch 2 (5 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/crab-vfs/src/ipc_server.rs"},"region":{"startLine":356}}}],"partialFingerprints":{"codehealthFindingId/v1":"b583aafe9d758692cebc7b2cba04ec7d072dc23c44dbf0073c354bc8da3a9970"}},{"ruleId":"D2","level":"warning","message":{"text":"crab_vfs::publish::apply_records (cognitive 16): crab_vfs::publish::apply_records 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/crab-vfs/src/publish.rs"},"region":{"startLine":827}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b8e44f82aeb6dea5e298d379daa7db4483fd921d0c650054b05531c3a6aa3c8"}},{"ruleId":"D2","level":"warning","message":{"text":"DvcMigrationJournal::validate (cognitive 16): DvcMigrationJournal::validate has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (9 pts), boolean chains 6, loops 1 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-workflow/src/dvc_inventory.rs"},"region":{"startLine":448}}}],"partialFingerprints":{"codehealthFindingId/v1":"c659e74be5eb47ce4d43a7da02452f948db16a89eb2cd61636173b33d326434a"}},{"ruleId":"D2","level":"warning","message":{"text":"DagScheduler::handle_failure (cognitive 16): DagScheduler::handle_failure has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (12 pts), loops 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/crab-workflow/src/scheduler.rs"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4d62371047f87ec0670d62a257e29ed8207defbe45869e08ab4543f5f251153"}},{"ruleId":"D2","level":"warning","message":{"text":"crab_workflow::dvc_migration::collect_live_paths (cognitive 16): crab_workflow::dvc_migration::collect_live_paths has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (10 pts), loops 2 (4 pts), boolean chains 1, match/switch 1 (nesting depth added 8). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-workflow/src/dvc_migration.rs"},"region":{"startLine":379}}}],"partialFingerprints":{"codehealthFindingId/v1":"6efdb70f662dde22bd5ceb159d0609eb9d8347e19a3148435ee2a0a982e7008c"}},{"ruleId":"D2","level":"warning","message":{"text":"crab_workflow::executor::verify_and_hash_metrics (cognitive 16): crab_workflow::executor::verify_and_hash_metrics 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/crab-workflow/src/executor.rs"},"region":{"startLine":1658}}}],"partialFingerprints":{"codehealthFindingId/v1":"531e56f41afe46edfc432ac14da91f0934eabc0da1adb0c5747b9ffc9da6a847"}},{"ruleId":"D2","level":"warning","message":{"text":"crab_workflow::exp_worktree::apply_python_override (cognitive 16): crab_workflow::exp_worktree::apply_python_override has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10 (15 pts), 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/crab-workflow/src/exp_worktree.rs"},"region":{"startLine":1335}}}],"partialFingerprints":{"codehealthFindingId/v1":"af2f9c8760bfa68c566245ecb6ed7bdbbd74cce932111a7b2cf38f87d7a90751"}},{"ruleId":"D2","level":"warning","message":{"text":"crab_workflow::exp_worktree::apply_python_nested_leaf (cognitive 16): crab_workflow::exp_worktree::apply_python_nested_leaf has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (11 pts), match/switch 3 (5 pts) (nesting depth added 9). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-workflow/src/exp_worktree.rs"},"region":{"startLine":1469}}}],"partialFingerprints":{"codehealthFindingId/v1":"51018195c691201d8e9204a384539992a9d6c3ac5768d79fe465126fcf40e0bd"}},{"ruleId":"D2","level":"warning","message":{"text":"crab_workflow::params_runtime::numeric_delta (cognitive 16): crab_workflow::params_runtime::numeric_delta has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (15 pts), match/switch 1 (nesting depth added 6). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-workflow/src/params_runtime.rs"},"region":{"startLine":776}}}],"partialFingerprints":{"codehealthFindingId/v1":"279f32651704920e18f1e6ac59193f4b5d4ce6093979f6d8ecb77c5622437474"}},{"ruleId":"D2","level":"warning","message":{"text":"crab_workflow::params_runtime::render_ascii_rows (cognitive 16): crab_workflow::params_runtime::render_ascii_rows has cognitive complexity 16 (threshold 15). Drivers by points: loops 7 (9 pts), if/else 3 (7 pts) (nesting depth added 6). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-workflow/src/params_runtime.rs"},"region":{"startLine":817}}}],"partialFingerprints":{"codehealthFindingId/v1":"65e933478204b5f2c95be3e31be75c466ad75c8a786b5544f13e39f07d637b14"}},{"ruleId":"D2","level":"warning","message":{"text":"crab_workflow::resume::walk_dag (cognitive 16): crab_workflow::resume::walk_dag has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (8 pts), match/switch 2 (5 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/crab-workflow/src/resume.rs"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7acf5367421aa8f3fef792a56e93e2934005ecfb60edd2adb4633cda9f2b5e6"}},{"ruleId":"D2","level":"warning","message":{"text":"crab_workflow::stage_cache_entry::validate_cached_out (cognitive 16): crab_workflow::stage_cache_entry::validate_cached_out has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (13 pts), boolean chains 2, 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/crab-workflow/src/stage_cache_entry.rs"},"region":{"startLine":314}}}],"partialFingerprints":{"codehealthFindingId/v1":"269208bf18996078d8fb52f08288324d8330f14975e76839f18af82f53687708"}},{"ruleId":"D2","level":"warning","message":{"text":"crab_workflow::yaml::substitute_raw_dep (cognitive 16): crab_workflow::yaml::substitute_raw_dep has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (15 pts), match/switch 1 (nesting depth added 8). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-workflow/src/yaml.rs"},"region":{"startLine":833}}}],"partialFingerprints":{"codehealthFindingId/v1":"832418c0c85f69d1eaab62bc63b23e43a069185c76a1fdfad8d8eb2a573cd916"}},{"ruleId":"D2","level":"warning","message":{"text":"crab_workflow::yaml::parse_raw_plots (cognitive 16): crab_workflow::yaml::parse_raw_plots has cognitive complexity 16 (threshold 15). Drivers by points: if/else 2 (6 pts), loops 2 (5 pts), match/switch 2 (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/crab-workflow/src/yaml.rs"},"region":{"startLine":1027}}}],"partialFingerprints":{"codehealthFindingId/v1":"66d23a5110aabdadf5cffcf0183754756aee74cf7f05b88acf618151d6f3319d"}},{"ruleId":"D2","level":"warning","message":{"text":"aws._build_session_policy (cognitive 16): aws._build_session_policy has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10 (13 pts), boolean chains 3 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/deploy/auth-service/src/providers/aws.py"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"76ce1898d8002f09e49b7134f3f248f51190b504ea068723ff201b03800d3fd0"}},{"ruleId":"D2","level":"warning","message":{"text":"check-architecture-gates.manifest_dependency_tables (cognitive 16): check-architecture-gates.manifest_dependency_tables has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (10 pts), loops 3 (6 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":"crab/scripts/check-architecture-gates.py"},"region":{"startLine":2524}}}],"partialFingerprints":{"codehealthFindingId/v1":"f63890d962955bb6ddc0d0dec18e6dc0124f192c06e5a732a84d56a8023b427b"}},{"ruleId":"D2","level":"warning","message":{"text":"nfs-evidence-summary.benchmark_expected_ratios (cognitive 16): nfs-evidence-summary.benchmark_expected_ratios has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (11 pts), boolean chains 4, loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/scripts/nfs-evidence-summary.py"},"region":{"startLine":695}}}],"partialFingerprints":{"codehealthFindingId/v1":"38b984ed72b11dcf6703513833cb3f1e437d35502dd53b943405ff1d43d2f2e4"}},{"ruleId":"D2","level":"warning","message":{"text":"nfs-evidence-summary.thresholds_command (cognitive 16): nfs-evidence-summary.thresholds_command has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (14 pts), boolean chains 2 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/scripts/nfs-evidence-summary.py"},"region":{"startLine":1375}}}],"partialFingerprints":{"codehealthFindingId/v1":"72a21cfa6d2a7caa1529dc8f1fd6c29e8b4f86d1c08f626fbf8d082a94127de9"}},{"ruleId":"D2","level":"warning","message":{"text":"verify-nfs-smoke-report.check_remount_artifact (cognitive 16): verify-nfs-smoke-report.check_remount_artifact has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10 (11 pts), boolean chains 4, error handling 1 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/scripts/verify-nfs-smoke-report.py"},"region":{"startLine":1864}}}],"partialFingerprints":{"codehealthFindingId/v1":"edf6d7b1070d259baa003d659c1f234a8700aae261f2bef4e8f77c788b6aa2d0"}},{"ruleId":"D2","level":"warning","message":{"text":"qualify.request_json (cognitive 16): qualify.request_json has cognitive complexity 16 (threshold 15). Drivers by points: if/else 3 (9 pts), ternaries 2 (3 pts), error handling 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/crab-http-server/deploy/cell-issue-fleet/qualify.py"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"3dc755d7c8129db36c15a3001e2b0cc467d2e35ffc525b362d30bc8e32ab44ec"}},{"ruleId":"D2","level":"warning","message":{"text":"qualify_read_replicas.main (cognitive 16): qualify_read_replicas.main has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (11 pts), loops 2 (3 pts), boolean chains 2 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-http-server/deploy/cell-issue-fleet/qualify_read_replicas.py"},"region":{"startLine":466}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ce99b9445968a8dd6a0521bfc149ae9187bb9d9ef0d80ddc951c014a464e6bf"}},{"ruleId":"D2","level":"warning","message":{"text":"qualify_reader_load.main (cognitive 16): qualify_reader_load.main has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (11 pts), boolean chains 3, loops 2 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-http-server/deploy/cell-issue-fleet/qualify_reader_load.py"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"8253a1c36a5627bdb75ce7c7ad6d109ef6880c234e6ed96692b497d37e661d00"}},{"ruleId":"D2","level":"warning","message":{"text":"qualify_reader_partition.qualify (cognitive 16): qualify_reader_partition.qualify has cognitive complexity 16 (threshold 15). Drivers by points: if/else 11, boolean chains 4, error handling 1. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-http-server/deploy/cell-issue-fleet/qualify_reader_partition.py"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f87774cf734379855adf55afaf7f15a0a2ed1d39e4d1fdb1901340880698428"}},{"ruleId":"D2","level":"warning","message":{"text":"content-editor.UploadFiles (cognitive 16): content-editor.UploadFiles has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5, ternaries 4 (5 pts), boolean chains 4, error handling 1, loops 1 (nesting depth added 1). Most of this is not in the body itself: 2 of the 16 points are its own statements and the rest belongs to 3 function items inside it that branch (submit, selectFiles, a function literal at line 480). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/content-editor.tsx"},"region":{"startLine":333}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba91c8f7f83a8e15abdf4d379220d8d05708519c0928fd1e54d3d49d5e90eb6a"}},{"ruleId":"D2","level":"warning","message":{"text":"file-preview.FilePreview (cognitive 16): file-preview.FilePreview has cognitive complexity 16 (threshold 15). Drivers by points: ternaries 4 (13 pts), if/else 3 (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":"packages/ui/src/file-preview.tsx"},"region":{"startLine":519}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d13cce0efa7e0952a8ce705691d671be7bb2e2ac8ce9d995a9df3f4109e4086"}},{"ruleId":"D2","level":"warning","message":{"text":"content.ChangeWorkspace (cognitive 16): content.ChangeWorkspace has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (8 pts), ternaries 4 (5 pts), boolean chains 2, loops 1 (nesting depth added 3). Most of this is not in the body itself: 4 of the 16 points are its own statements and the rest belongs to 6 function items inside it that branch (a function literal at line 715, a function literal at line 710, scrollToChange, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/content.tsx"},"region":{"startLine":684}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8ec07f564a5d08b3f323375e95638111edea53be07fddfd71472372a77c62d6"}},{"ruleId":"D2","level":"warning","message":{"text":"content.ChangeTree (cognitive 16): content.ChangeTree has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (7 pts), ternaries 5, boolean chains 3, loops 1 (nesting depth added 1). Most of this is not in the body itself: 6 of the 16 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 834, 882). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/content.tsx"},"region":{"startLine":800}}}],"partialFingerprints":{"codehealthFindingId/v1":"deb92156b99f68f488e06caa8122e09aa629345c90c1a93065079dc79b9f6d1d"}},{"ruleId":"D2","level":"warning","message":{"text":"code-symbols.worker.extractSymbols (cognitive 16): code-symbols.worker.extractSymbols has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (10 pts), boolean chains 3, loops 2 (3 pts) (nesting depth added 7). Of this number, 14 points are the body\u0027s own statements and 2 belong to 2 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/code-symbols.worker.ts"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7328604b379e795f1ee94ac5549ce3eeb5ae1143f356fccb44cd6035f56811e"}},{"ruleId":"D2","level":"warning","message":{"text":"page.PricingPage (cognitive 16): page.PricingPage has cognitive complexity 16 (threshold 15). Drivers by points: ternaries 11, boolean chains 5. None of this is in the body itself: all 16 points belong to 3 function literals inside it that branch (lines 372, 509, 440). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/web/app/pricing/page.tsx"},"region":{"startLine":298}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc8046735ee90a5486c654b4813119935196c2f796faa5eb481c3ef7104c35ae"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: git/push.rs: FileTooLong \u2014 13065 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 165 free functions. The bar is 500 significant lines; this is 12565 over it, 26.13\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/git/push.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1225f3fd3a9bf5f927c85969307c16f6c595152b8cff9ae60b397cff1025f51"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: cmd/replica.rs: FileTooLong \u2014 9941 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 402 free functions. The bar is 500 significant lines; this is 9441 over it, 19.88\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/cmd/replica.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"55882d8c25b04fc482946b53d7b65f95a9831b3edeab898e483a7b935a8ecb4d"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: Index: ClassTooLong \u2014 6322 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), 110 methods, 2 blocks, lines 258-8959. The bar is 400 significant lines; this is 5922 over it, 15.81\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/crab-staging/src/index.rs"},"region":{"startLine":258}}}],"partialFingerprints":{"codehealthFindingId/v1":"19fb1de6c08c7692b024f38a0c9f77fbfdae8523ca89fc45920438c0a99380ea"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: replication/mod.rs: FileTooLong \u2014 7120 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 253 free functions. The bar is 500 significant lines; this is 6620 over it, 14.24\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/replication/mod.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e54381a1f414c88aa977a9dc398a0c89138d8f701a46d7830f55ef4dfed9c998"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/index.rs: FileTooLong \u2014 6674 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 95% of them inside a single declaration: Index (2 blocks, 258-8959). The bar is 500 significant lines; this is 6174 over it, 13.35\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/crab-staging/src/index.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"20e4901bb2e598223901c5f7f1ef85a092c291eb9c93eb5a5aadd8211222c7b8"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: crab::core::error_catalog::lookup: FunctionTooLong \u2014 crab::core::error_catalog::lookup runs 1149 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 1049 over it, 11.49\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/core/error_catalog.rs"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8a1bc0c3735fcf1a315d3f721cdc0d9634261c22cbe9a7def47038a00114309"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: cmd/exp.rs: FileTooLong \u2014 4583 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 205 free functions. The bar is 500 significant lines; this is 4083 over it, 9.17\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/cmd/exp.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"932ade31ff691ef45adc23ff39cdd18c7e21681f17b0d44bbbd9f6e8c236fbd1"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: scripts/verify-nfs-smoke-report.py: FileTooLong \u2014 4229 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 3729 over it, 8.46\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/scripts/verify-nfs-smoke-report.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e26c253dc2fb670780947fa5a05f8f57e09084d073a5baae99173beb9535c46"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/gateway.rs: FileTooLong \u2014 3731 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 3231 over it, 7.46\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-s3-gateway/src/gateway.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7315bfd66f7e1d4ec139befdbe266e0162fcc51c2ce0a8fdc721be7a6c1fddad"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: cmd/mount.rs: FileTooLong \u2014 3572 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 166 free functions. The bar is 500 significant lines; this is 3072 over it, 7.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":"crab/src/cmd/mount.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"33df910afdc0f4352e1ebdd06f8f21e5dde6d48272c067eafe562dd81909aba7"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: CrabError: ClassTooLong \u2014 2719 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, 33 blocks, lines 17-3888. The bar is 400 significant lines; this is 2319 over it, 6.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":"crab/src/core/error.rs"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d616cc71f46d4f4dcf14f261e0546fd802eb13e8d9a0b60480d022caa68277d"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: App.RepositoryPage: FunctionTooLong \u2014 RepositoryPage runs 676 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 576 over it, 6.76\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/App.tsx"},"region":{"startLine":511}}}],"partialFingerprints":{"codehealthFindingId/v1":"c130f02bf645df87cdf12e3fdcd21ccffd6b9624641115413d7ac2b24cc185a3"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: cmd/run.rs: FileTooLong \u2014 3326 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 92 free functions. The bar is 500 significant lines; this is 2826 over it, 6.65\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":"crab/src/cmd/run.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2c51721a2c9f158e92bc677b8a6d1741a6fc8be6ff5ded7c3cb8788102df9a7"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: cmd/metadb.rs: FileTooLong \u2014 3065 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 2565 over it, 6.13\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/cmd/metadb.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4723113628d79a580c8966e305a23a61d72abd22a06f5a98f8e98a2ea5c50deb"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: CrabError.details_json: MethodTooLong \u2014 details_json runs 603 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 503 over it, 6.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":"crab/src/core/error.rs"},"region":{"startLine":3039}}}],"partialFingerprints":{"codehealthFindingId/v1":"af4a3961787c0dad3dfabee6eb8bdfbacb0ae1d629795079f46f2c9e1008b3b8"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: cmd/metrics.rs: FileTooLong \u2014 3012 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 157 free functions. The bar is 500 significant lines; this is 2512 over it, 6.02\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/cmd/metrics.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e38d72dbd1d1ca00c9c6a7acab6373618bbbea7857324eb3d0e8a3b31464e2fc"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: crab::cmd::lfs::run_lfs_with_cancel: FunctionTooLong \u2014 crab::cmd::lfs::run_lfs_with_cancel runs 567 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 467 over it, 5.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":"crab/src/cmd/lfs/mod.rs"},"region":{"startLine":727}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ecf263363c42327d39b68be6a9340f44b5fca9bdfea461ca27bd98d917ad668"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/lib.rs: FileTooLong \u2014 2834 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 55 free functions. The bar is 500 significant lines; this is 2334 over it, 5.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/crab-staging/src/lib.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f9f476b4e73ad2e23c056e6ef37f53a78f27a774693d7ed9a1fa3b4c9a2d48a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/git_visibility.rs: FileTooLong \u2014 2810 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 2310 over it, 5.62\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/crab-metadata/src/git_visibility.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"71394756611adf6b20b88a812fa4e4e47fce43b5ee01c75c7e1d43f945826a34"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: cmd/add.rs: FileTooLong \u2014 2790 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), declaring 81 free functions. The bar is 500 significant lines; this is 2290 over it, 5.58\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/cmd/add.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"78a2a24d9506ce28850be4df6911bb0cea164c7b6318343639943d9ede43d12d"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: core/error.rs: FileTooLong \u2014 2783 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 98% of them inside a single declaration: CrabError (33 blocks, 17-3888). The bar is 500 significant lines; this is 2283 over it, 5.57\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":"crab/src/core/error.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd869fd68b47f1d8bbb5d050a5bba84a9d3305a0dcae149301cd0b3862951558"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: Gateway: ClassTooLong \u2014 2184 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), 24 methods, 4 blocks, lines 129-4290. The bar is 400 significant lines; this is 1784 over it, 5.46\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/crab-s3-gateway/src/gateway.rs"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a13ee365024bad732d88a74a4198838c0f6a0719d70d3c76685d9e486b213de"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: crab::cmd::add::execute_add: FunctionTooLong \u2014 crab::cmd::add::execute_add runs 501 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 401 over it, 5.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":"crab/src/cmd/add.rs"},"region":{"startLine":932}}}],"partialFingerprints":{"codehealthFindingId/v1":"423a3f5e81adcc75e9b714a4332ad706d2fca08906f50bd9c025b7e68e61481a"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Index.insert_recipe_lease: MethodTooLong \u2014 insert_recipe_lease runs 489 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 389 over it, 4.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/crab-staging/src/index.rs"},"region":{"startLine":5060}}}],"partialFingerprints":{"codehealthFindingId/v1":"534a40b7a74f8080c77c2b0c912322ec9b91798d4fce056a01542b319f833181"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Index.insert_file_push_plans: MethodTooLong \u2014 insert_file_push_plans runs 482 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 382 over it, 4.82\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-staging/src/index.rs"},"region":{"startLine":6335}}}],"partialFingerprints":{"codehealthFindingId/v1":"774a4f79bf94037568a90ddf61dd945db7f4fa75c6b9dd7efb3b36c57807de45"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/mutation.rs: FileTooLong \u2014 2395 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 1895 over it, 4.79\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/crab-s3-gateway/src/mutation.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b59c7827737b664c5d3ddc3eb6ae0ba2ebdb817505969b623f859f4d3310abe2"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: page.CachePage: FunctionTooLong \u2014 CachePage runs 473 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 373 over it, 4.73\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/web/app/cache/page.tsx"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"e784ff83c1e363ebcdd36b0270d4bbd236ec6979da457a0de1e4e8519077e529"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: cmd/hydrate.rs: FileTooLong \u2014 2327 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 1827 over it, 4.65\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":"crab/src/cmd/hydrate.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0d68ec16fb9caec39fae5a3b31b86e85a6c5f39c2aac1fa163dbb20fcad82ea"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: gc/mod.rs: FileTooLong \u2014 2301 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 1801 over it, 4.60\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":"crab/src/cmd/gc/mod.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"478030d41202a2409e73693be3f9632d8fb5203d634a79a77efd9dc86b1f0b3f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/pack.rs: FileTooLong \u2014 2236 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 1736 over it, 4.47\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-remote-git/src/pack.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad981036d4867655b4736b4a8959b05a0e412426f07d38ef61d0299c2a422300"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: cmd/recover.rs: FileTooLong \u2014 2225 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 98 free functions. The bar is 500 significant lines; this is 1725 over it, 4.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":"crab/src/cmd/recover.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd4ed638525d3f881782ce3f3e44bae5ece78044da8f631daeb464363a634f27"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: cmd/migrate.rs: FileTooLong \u2014 2221 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 1721 over it, 4.44\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":"crab/src/cmd/migrate.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b01a087f24883d84fd40d00ad39aaa5c4c22368f474435d16ee1a454af74bd97"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: PushPipeline: TooManyMethods \u2014 133 methods. The bar is 30 methods; this is 103 over it, 4.43\u00D7 the bar. This type is on a published API surface \u2014 a cargo-semver-checks gate in CI (.github/workflows/sdk.yml) declares its compatibility contractual \u2014 so moving members onto a smaller type is a breaking change for every consumer, not a local refactor. To reduce it, treat the split as an API migration: move each cohesive group onto its own published type and keep the old members as deprecated forwards for a deprecation period, removing them at the next compatibility break. Where the surface has to stay as it is, that is a decision to record rather than a change to make."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/git/push.rs"},"region":{"startLine":4022}}}],"partialFingerprints":{"codehealthFindingId/v1":"b12ec19f97e0464a9bb93f38aed2a7fcc8eb0cfadc7fbad8685c8745e18e7fb1"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/reader.rs: FileTooLong \u2014 2118 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 65% of them inside a single declaration: RemoteGitReader (2 blocks, 142-1839). The bar is 500 significant lines; this is 1618 over it, 4.24\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-remote-git/src/reader.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5cec79dc6a40576d04b0e36d12458e0107df710faa9a4c25d9a98e4564f22c9"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Metrics: TooManyMethods \u2014 127 methods. The bar is 30 methods; this is 97 over it, 4.23\u00D7 the bar. This type is on a published API surface \u2014 a cargo-semver-checks gate in CI (.github/workflows/sdk.yml) declares its compatibility contractual \u2014 so moving members onto a smaller type is a breaking change for every consumer, not a local refactor. To reduce it, treat the split as an API migration: move each cohesive group onto its own published type and keep the old members as deprecated forwards for a deprecation period, removing them at the next compatibility break. Where the surface has to stay as it is, that is a decision to record rather than a change to make."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/core/metrics.rs"},"region":{"startLine":325}}}],"partialFingerprints":{"codehealthFindingId/v1":"364ad4050233adcce03b33a645bcab8dd99af24655117d21ec595d6f99411a21"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: page.AuthPage: FunctionTooLong \u2014 AuthPage runs 423 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 323 over it, 4.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":"packages/web/app/auth/page.tsx"},"region":{"startLine":283}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b21e614e885fb9d7fb3454212510bbd85dedd20ca24845bf8a94224bb6d8733"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: git/remote_helper.rs: FileTooLong \u2014 2065 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 1565 over it, 4.13\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/git/remote_helper.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5af8258259f2791524fe23715b6d4c0c7aa97dfa1b259edde2ae44e998b99085"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: Store: ClassTooLong \u2014 1633 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), 79 methods, 2 blocks, lines 99-2689. The bar is 400 significant lines; this is 1233 over it, 4.08\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/crab-storage/src/store.rs"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b1f1a393c2cbf3965c5ddb4c62b98ab3a30af646921267d44443863c82fe0b9"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/dvc_inventory.rs: FileTooLong \u2014 2016 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 1516 over it, 4.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/crab-workflow/src/dvc_inventory.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"89cece831282a12f83cdab8aad2d4d6c8477b78382f788e5147944e2540c0abc"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/receive.rs: FileTooLong \u2014 1992 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 79 free functions. The bar is 500 significant lines; this is 1492 over it, 3.98\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-auth-server/src/receive.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"532cd0cf3e649e66d068f20ad04dc8a908aee4de8b9d54bad1eac7f5c612e193"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFields: Metrics: TooManyFields \u2014 119 stored fields beside 127 methods. The bar is 30 stored fields; this is 89 over it, 3.97\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":"crab/src/core/metrics.rs"},"region":{"startLine":325}}}],"partialFingerprints":{"codehealthFindingId/v1":"703868b510ad1c0492b01dfb0a35daf83aa086e566f5e3f9207b85f9dc848a6f"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: large-file-scale-explorer.LargeFileScaleExplorer: FunctionTooLong \u2014 LargeFileScaleExplorer runs 396 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 296 over it, 3.96\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/web/components/blog/large-file-scale-explorer.tsx"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ed2478dd81eb2c9776f435ecfc17cda938b1923016fa655d6257b5131aa7a5f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: lfs/migrate.rs: FileTooLong \u2014 1969 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 94 free functions. The bar is 500 significant lines; this is 1469 over it, 3.94\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":"crab/src/lfs/migrate.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"11c56f396aab72de06a8b0cd1c1ba6e516fec3939bb8a4a6b0d6ff8fe7074530"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: scripts/nfs-evidence-summary.py: FileTooLong \u2014 1956 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 1456 over it, 3.91\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":"crab/scripts/nfs-evidence-summary.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c1f46d21fbfd41ba0e2e6f3d6912f2c0bcadaa0c320441ab2fc260086ba7a0f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/pulls.tsx: FileTooLong \u2014 1954 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 1454 over it, 3.91\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pulls.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e44e223de778c9e611129cd355b51bd6801b4facdc6750e1dbeb3c71fb3cf77"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: data-workbench.DataWorkbench: FunctionTooLong \u2014 DataWorkbench runs 384 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 284 over it, 3.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":"packages/ui/src/data-workbench.tsx"},"region":{"startLine":301}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5419abe896cae7610e4d4186c7cc4cbb4796c5280abff9218c6e7abc68c7ec6"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: settings.MemberSettings: FunctionTooLong \u2014 MemberSettings runs 382 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 282 over it, 3.82\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/settings.tsx"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f624cb578b34559c5d1c965036cfe4df54db51af0be9e2005c75d6928fc091f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: gc/bucket.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 35 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":"crab/src/cmd/gc/bucket.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbae54586c1399ad52edae4ef4b59d72cbef67c3c4be8ab81c3c867fc3737d6d"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Metrics.new: MethodTooLong \u2014 new runs 376 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 276 over it, 3.76\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-http-server/src/metrics.rs"},"region":{"startLine":394}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a25a01f91aff01ca7d37ba3afb5b18c0afe1f0beb716e373d50517caf12040c"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: crab_http_server::metrics::describe_metrics: FunctionTooLong \u2014 crab_http_server::metrics::describe_metrics runs 376 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 276 over it, 3.76\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-http-server/src/metrics.rs"},"region":{"startLine":1791}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b6ab05818582aa30bcca703edc34a0322e16669becf29a619e3600cff41a6f9"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Index: TooManyMethods \u2014 110 methods. The bar is 30 methods; this is 80 over it, 3.67\u00D7 the bar. This type is on a published API surface \u2014 a cargo-semver-checks gate in CI (.github/workflows/sdk.yml) declares its compatibility contractual \u2014 so moving members onto a smaller type is a breaking change for every consumer, not a local refactor. To reduce it, treat the split as an API migration: move each cohesive group onto its own published type and keep the old members as deprecated forwards for a deprecation period, removing them at the next compatibility break. Where the surface has to stay as it is, that is a decision to record rather than a change to make."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-staging/src/index.rs"},"region":{"startLine":258}}}],"partialFingerprints":{"codehealthFindingId/v1":"9de8a4075c3863f95b8f87e30c3e192e0b0ccd24f1828c8ecc7742816e7fd169"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: crab::git::push_native::run_native_push_inner: FunctionTooLong \u2014 crab::git::push_native::run_native_push_inner runs 366 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 266 over it, 3.66\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/git/push_native.rs"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"9dd4ab12e7ab092393968603b63db7b28cbe7962a20755a9894ae3433604d726"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: content.FileView: FunctionTooLong \u2014 FileView runs 362 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 262 over it, 3.62\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/content.tsx"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"00b0f2ef30a420a15d0b5aeca3599f31ab8898e3422a36a506977402ba46bbf4"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/store.rs: FileTooLong \u2014 1799 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 91% of them inside a single declaration: Store (2 blocks, 99-2689). The bar is 500 significant lines; this is 1299 over it, 3.60\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/crab-storage/src/store.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8aa8c892fbb3bd36a0e8eeff5e69b8c52fb6567c335ae3a90ae8958013de398c"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: crab_workflow::executor::run_inner: FunctionTooLong \u2014 crab_workflow::executor::run_inner runs 359 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 259 over it, 3.59\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-workflow/src/executor.rs"},"region":{"startLine":310}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e0bdf0f660481b1be7f3075f40ca906b49335c1ff45e160e7e958365e3e149e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/server.rs: FileTooLong \u2014 1785 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), declaring 33 free functions. The bar is 500 significant lines; this is 1285 over it, 3.57\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/crab-http-server/src/server.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fa9d6bd62757a93109e69b3148a4b7852030a725b858d8a0f4406237fd8bf29"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/metrics.rs: FileTooLong \u2014 1771 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 1271 over it, 3.54\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/crab-http-server/src/metrics.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f488335777942f2acd14cb373d2f7e92f5e1c7b4882712ec80dce527b8291a4"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: cmd/doctor.rs: FileTooLong \u2014 1760 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 1260 over it, 3.52\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/cmd/doctor.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0f62b8397e3a61b57deb2faa49fe0eea849eb15c2d8ab440467bbdba471655b"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/snapshot.rs: FileTooLong \u2014 1755 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 1255 over it, 3.51\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-remote-git/src/snapshot.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a5827e69ba363961f347bd37c9b0c45f970571ccba51a2c560a247d4a04ed73"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/nfs.rs: FileTooLong \u2014 1754 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 1254 over it, 3.51\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-vfs/src/nfs.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b3ced4b61f6e905cdf404db094e3bf927a75d72b9a84e85f86439b68140be22"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/executor.rs: FileTooLong \u2014 1735 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 54 free functions. The bar is 500 significant lines; this is 1235 over it, 3.47\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-workflow/src/executor.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3943c0c413c23b06aeb4e236a9a0739c7139a6ed696a955700fecd1df6bf2978"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/cells.rs: FileTooLong \u2014 1730 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 55 free functions. The bar is 500 significant lines; this is 1230 over it, 3.46\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-http-server/src/cells.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbd1fc059966e6bcbb15dbcf8001c908089d4d1e90c728a9a1fcce575a6485ea"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/write_coordinator.rs: FileTooLong \u2014 1720 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 1220 over it, 3.44\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/crab-coordination/src/write_coordinator.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3188135e7180f27020aef65d08cb1b0e276f20b344cd4e103409a1f5605ea647"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: RemoteGitReader: ClassTooLong \u2014 1374 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), 30 methods, 2 blocks, lines 142-1839. The bar is 400 significant lines; this is 974 over it, 3.44\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-remote-git/src/reader.rs"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"928ebe8133440ac344f28ebedfff12d0b7f5373e29e80d0a5159baa57525c235"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: crab::cmd::metadb::rebuild_git_object_locators: FunctionTooLong \u2014 crab::cmd::metadb::rebuild_git_object_locators 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":"crab/src/cmd/metadb.rs"},"region":{"startLine":2688}}}],"partialFingerprints":{"codehealthFindingId/v1":"01d22a54dedcf7231756d6a85f4afe62404298b7f64814ca78c1f1f59fe573e4"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: core/config.rs: FileTooLong \u2014 1686 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 1186 over it, 3.37\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/core/config.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f23090e86c1cfed5ea36aada15c37c0932f7d36e6d4e2dcd6dba49c4212e8d9"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFields: MetricsInner: TooManyFields \u2014 101 stored fields. The bar is 30 stored fields; this is 71 over it, 3.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/crab-http-server/src/metrics.rs"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b917159f1cd227ffae8021b45259c7e7a1023f111e78403e886370b9e228c46"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: page.PricingPage: FunctionTooLong \u2014 PricingPage runs 329 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 229 over it, 3.29\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/web/app/pricing/page.tsx"},"region":{"startLine":298}}}],"partialFingerprints":{"codehealthFindingId/v1":"3aad085825d177b73da475d6bdee4ab5b465b6c8b7c2c8b3f95fd612378e072a"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: page.TermsOfServicePage: FunctionTooLong \u2014 TermsOfServicePage runs 327 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 227 over it, 3.27\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/web/app/terms-of-service/page.tsx"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"bee5fdd9ddf60c94d6a2ac2cd179aab1ce97e806d3cefb248c54ba87f3399c8d"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: tree.RepositoryTree: FunctionTooLong \u2014 RepositoryTree runs 323 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 223 over it, 3.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":"packages/ui/src/tree.tsx"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5e74f4b07eb5c1c251261f9de91c4a95bba563624862dc17b42a44d81f08548"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: git/clean.rs: FileTooLong \u2014 1566 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 1066 over it, 3.13\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/git/clean.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c46508f2d248931345d1ea14fd9cb5d306f3b8b147e1db1131eea95629c5efd9"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/artifact.rs: FileTooLong \u2014 1565 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 66 free functions. The bar is 500 significant lines; this is 1065 over it, 3.13\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-workflow/src/artifact.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d0e9e0046d008ffed8c20e609b4c6cbd955c286e0971c9f90a2a40d92cafd2f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/engine.rs: FileTooLong \u2014 1560 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 1060 over it, 3.12\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-vfs/src/engine.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff852b60ab26bc0c43f3ec065b771ede7324907a0cd7c6b0cfbc417a5d3ddad3"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: cmd/data.rs: FileTooLong \u2014 1537 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), declaring 53 free functions. The bar is 500 significant lines; this is 1037 over it, 3.07\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/cmd/data.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"715bf3bea12999fd9d1231476632fb5ad47f727729e25fe2b58712d9e30d6ffe"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: scripts/verify-cache-service-smoke-report.py: FileTooLong \u2014 1527 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 1027 over it, 3.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":"crab/scripts/verify-cache-service-smoke-report.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2bd51275b4ba29929cc6f40e716a63f7bf03b9288178138a85925fe84956e38"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: crab::cmd::push::run_push_once: FunctionTooLong \u2014 crab::cmd::push::run_push_once runs 302 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 202 over it, 3.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":"crab/src/cmd/push.rs"},"region":{"startLine":533}}}],"partialFingerprints":{"codehealthFindingId/v1":"86604316e1da0fbe5f81279700ba01eadc934be22e8bccc385e31ef7cba395c2"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/handlers.rs: FileTooLong \u2014 1497 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), declaring 65 free functions. The bar is 500 significant lines; this is 997 over it, 2.99\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-cache-server/src/handlers.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdef6c26ae1a1ad2d852e2e43c34ec8f7f876385c7aec47094b95980c6bb4840"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/upload_pack.rs: FileTooLong \u2014 1479 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 979 over it, 2.96\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/crab-read/src/upload_pack.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ecb3f7df5af8368c70c7b96b154b7ba722f4c6ced786d17c3df2b21277db3f96"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Store.put_multipart_file_resumable: MethodTooLong \u2014 put_multipart_file_resumable runs 295 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 195 over it, 2.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/crab-storage/src/store.rs"},"region":{"startLine":1792}}}],"partialFingerprints":{"codehealthFindingId/v1":"893104cbf8b2c5a3bfa367c5fb05a0af852e6018091e6864e03223c3b9ae482e"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: cache-service-architecture-svg.CacheServiceArchitectureSvg: FunctionTooLong \u2014 CacheServiceArchitectureSvg runs 294 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 194 over it, 2.94\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/web/app/diagrams/cache-service-architecture-svg.tsx"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1f5fa752c649c8f048a0e1e8aae7c957cbfebecbf6bbc28eae47e057da1efaf"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: crab_vfs::publish::commit_overlay_with_snapshot: FunctionTooLong \u2014 crab_vfs::publish::commit_overlay_with_snapshot runs 293 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 193 over it, 2.93\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-vfs/src/publish.rs"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0c897e041a22cb7735575160b789a9076770baa5864be43615ccb2dd996b48e"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: pulls.PullReviewThreads: FunctionTooLong \u2014 PullReviewThreads runs 291 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 191 over it, 2.91\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pulls.tsx"},"region":{"startLine":796}}}],"partialFingerprints":{"codehealthFindingId/v1":"12b8b6efe0167c6f1435bb9e18ac839ce3797ac794fa295129b4a8ff68fe58f4"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: git-architecture-player.GitArchitecturePlayer: FunctionTooLong \u2014 GitArchitecturePlayer runs 290 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 190 over it, 2.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":"packages/web/components/blog/git-architecture-player.tsx"},"region":{"startLine":301}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c382b6c9876127838b2fd169994f8d7dadf67c21f6b262c4d7435cb12c544d3"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/peer.rs: FileTooLong \u2014 1440 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 940 over it, 2.88\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-http-server/src/peer.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d184fa46db1317a69f163b51164dbd4cb459347ae331c09be0d155b5b2f9642"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/publish.rs: FileTooLong \u2014 1433 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), declaring 72 free functions. The bar is 500 significant lines; this is 933 over it, 2.87\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-vfs/src/publish.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d49ab7929e4de2b4b824a4c43b72e4263cc8344d211f9e23ab5649c194ec983"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: remote-helper-flow-svg.RemoteHelperFlowSvg: FunctionTooLong \u2014 RemoteHelperFlowSvg runs 285 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 185 over it, 2.85\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/web/app/diagrams/remote-helper-flow-svg.tsx"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"69adf36870c19222b96db375ae22098a0128038c3482de18aff75dc593fbd6f4"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/evidence.rs: FileTooLong \u2014 1418 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 60% of them inside a single declaration: EvidenceVerifier (2 blocks, 130-1748), declaring 41 free functions. The bar is 500 significant lines; this is 918 over it, 2.84\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/crab-cache-server/src/evidence.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"83455879c0e6010af8c01a045eb5ae5ad8b710024f4d9a7862a18f30511bd58d"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: crab::cmd::history_recovery::verify_history: FunctionTooLong \u2014 crab::cmd::history_recovery::verify_history runs 281 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 181 over it, 2.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":"crab/src/cmd/history_recovery.rs"},"region":{"startLine":680}}}],"partialFingerprints":{"codehealthFindingId/v1":"60e674ed73eaa78b3738867e3d249770a71808a82709fe4e38d34cbd21ac5171"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Index.initialize_schema: MethodTooLong \u2014 initialize_schema runs 279 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 179 over it, 2.79\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-staging/src/index.rs"},"region":{"startLine":706}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c184506983a09eeefae1247c13a7de22b192c26ac87847893633f91f32e697f"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: cache-hierarchy-svg.CacheHierarchySvg: FunctionTooLong \u2014 CacheHierarchySvg runs 279 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 179 over it, 2.79\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/web/app/diagrams/cache-hierarchy-svg.tsx"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d3a949a015c903bfd11763eb5381c325e01837313c8904af8a4e2581538fd35"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: import/coordinator.rs: FileTooLong \u2014 1387 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 66 free functions. The bar is 500 significant lines; this is 887 over it, 2.77\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":"crab/src/import/coordinator.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5a71db19760d82a4870beee00e8a8cbb1d840b347268bc35978594d6073302e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: git/upload_pack_wire.rs: FileTooLong \u2014 1375 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 875 over it, 2.75\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":"crab/src/git/upload_pack_wire.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a630be757e75376dbe6962131c1e1c24edb8212fc6cd7f3c69a52719c543fc0"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: App.App: FunctionTooLong \u2014 App runs 274 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 174 over it, 2.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":"packages/ui/src/App.tsx"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9110a149f92ef3e7f344a64e454d81f58d55f963891b1653ee6765c7f119510"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/stream.rs: FileTooLong \u2014 1368 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 868 over it, 2.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/crab-staging/src/stream.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"44338913359a38a6e4fee622e87328bb8b81b307bcdf28cf2abe6917f830105f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: core/error_catalog.rs: FileTooLong \u2014 1366 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 866 over it, 2.73\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/core/error_catalog.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"29d4a8c8624c86c2f3bc84e578752fea369322a9431b13b65de123acadd24835"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: crab::cmd::gc::bucket::run_bucket_gc_streaming: FunctionTooLong \u2014 crab::cmd::gc::bucket::run_bucket_gc_streaming runs 269 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 169 over it, 2.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":"crab/src/cmd/gc/bucket.rs"},"region":{"startLine":544}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1e3191af0ac95d4882ecbfcd3eb003b893a7616e0cb07446c28bd0b0bc37a10"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/yaml.rs: FileTooLong \u2014 1317 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 817 over it, 2.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/crab-workflow/src/yaml.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ccec5ecc0a284d490efa910e5ce6fa31b753dbdd53888f2980285839a6f32246"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: StagingArea: TooManyMethods \u2014 79 methods. The bar is 30 methods; this is 49 over it, 2.63\u00D7 the bar. This type is on a published API surface \u2014 a cargo-semver-checks gate in CI (.github/workflows/sdk.yml) declares its compatibility contractual \u2014 so moving members onto a smaller type is a breaking change for every consumer, not a local refactor. To reduce it, treat the split as an API migration: move each cohesive group onto its own published type and keep the old members as deprecated forwards for a deprecation period, removing them at the next compatibility break. Where the surface has to stay as it is, that is a decision to record rather than a change to make."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-staging/src/lib.rs"},"region":{"startLine":295}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9ebda1245c3486788d2db781d5723cd6402679e01174a54e9da44fb4a5fe546"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Store: TooManyMethods \u2014 79 methods. The bar is 30 methods; this is 49 over it, 2.63\u00D7 the bar. This type is on a published API surface \u2014 a cargo-semver-checks gate in CI (.github/workflows/sdk.yml) declares its compatibility contractual \u2014 so moving members onto a smaller type is a breaking change for every consumer, not a local refactor. To reduce it, treat the split as an API migration: move each cohesive group onto its own published type and keep the old members as deprecated forwards for a deprecation period, removing them at the next compatibility break. Where the surface has to stay as it is, that is a decision to record rather than a change to make."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-storage/src/store.rs"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1b48b994eb22ec5d399d0eaaabdcb2e92216201445065d752b85e0f5327d7a0"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: git_object_locator/writer.rs: FileTooLong \u2014 1306 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 72% of them inside a single declaration: GitObjectLocatorWriter (2 blocks, 166-1437). The bar is 500 significant lines; this is 806 over it, 2.61\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/crab-metadata/src/git_object_locator/writer.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3831ed8aec3bde73b784a5bfbdfbb43df484a59384dd5890731f12def380f559"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/daemon.rs: FileTooLong \u2014 1306 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 806 over it, 2.61\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-vfs/src/daemon.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e47ce051151c837995328b779aa5f5e2efcb9e4101bbed9a16e1d27efbedc487"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: settings.BranchProtectionSettings: FunctionTooLong \u2014 BranchProtectionSettings runs 261 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 161 over it, 2.61\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/settings.tsx"},"region":{"startLine":919}}}],"partialFingerprints":{"codehealthFindingId/v1":"5dcba84b8d7ada7e21e8aec8adb62e3b4865eb20986bb386782e26455861428c"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: page.LandingPage: FunctionTooLong \u2014 LandingPage runs 260 significant lines (blank, comment-only and punctuation-only lines excluded) 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":"packages/web/app/page.tsx"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f84af620960d0b0f962478c6a5f5afbaf79c150dcc7ea66409b04617288b830"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: page.CliPage: FunctionTooLong \u2014 CliPage runs 259 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 159 over it, 2.59\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/web/app/cli/page.tsx"},"region":{"startLine":444}}}],"partialFingerprints":{"codehealthFindingId/v1":"a62db51ea126d94d0857c22e52f8e543b72409a9a0cd1a901d72f1165628b1c4"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: repository/pulls.rs: FileTooLong \u2014 1284 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 784 over it, 2.57\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/crab-http-server/src/cells/repository/pulls.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"af3fa306dd9749c1c0edea34548ffe38d9d1fa4ab5c4b70c71691794d94288b4"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: DaemonService.execute_mount_pipeline: MethodTooLong \u2014 execute_mount_pipeline runs 255 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 155 over it, 2.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/crab-vfs/src/daemon.rs"},"region":{"startLine":847}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd698f83e496e9bdf5f217202b92a093d70d77d0f738b5e11f538510d084ca04"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/repack.rs: FileTooLong \u2014 1274 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), declaring 33 free functions. The bar is 500 significant lines; this is 774 over it, 2.55\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/crab-git/src/repack.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7efb11057da853683d67371ba911e6350a70bdfaada1b2fc2e1e3c314625dc2"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/cache_store.rs: FileTooLong \u2014 1266 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 766 over it, 2.53\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/crab-cache-server/src/cache_store.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"665c59cbbdd663b0c2b2887ef0756ad284f8c04c907800dc138098c493065c9b"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/app.py: FileTooLong \u2014 1257 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 757 over it, 2.51\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/deploy/auth-service/src/app.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"289d13c0f0aa2bc960e5a56ea09d2bf9e77d9325828d8d6a589d3eb26cbac862"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: crab::git::remote_helper::dispatch_batch: FunctionTooLong \u2014 crab::git::remote_helper::dispatch_batch runs 251 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 151 over it, 2.51\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/git/remote_helper.rs"},"region":{"startLine":1366}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa0758d45be73c174299579cabf33cd23f2c5302f45c6c2430a61b6fe853f46e"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: crab_workflow::dvc_inventory::verify_output: FunctionTooLong \u2014 crab_workflow::dvc_inventory::verify_output runs 251 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 151 over it, 2.51\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-workflow/src/dvc_inventory.rs"},"region":{"startLine":1826}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd2e7d9c4a53f0e070dde9e027c10af6e3f8363214f598166216ec5a49f8a9a5"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: landing-page-client.LandingPageClient: FunctionTooLong \u2014 LandingPageClient runs 251 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 151 over it, 2.51\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/web/app/landing-page-client.tsx"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1e9445570ad66698bb4b3ea7f24e1cda54c84df8f3d6f6ff47f756cc786d098"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/exp_worktree.rs: FileTooLong \u2014 1251 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 66 free functions. The bar is 500 significant lines; this is 751 over it, 2.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/crab-workflow/src/exp_worktree.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"14324cc4d90961ab5c838d4b4750b88ee1334b8eea73fd6510ab7bb86e127d76"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: crab_metadata::git_visibility::storage::apply_catalog_journal_edits: FunctionTooLong \u2014 crab_metadata::git_visibility::storage::apply_catalog_journal_edits runs 246 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 146 over it, 2.46\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-metadata/src/git_visibility.rs"},"region":{"startLine":3352}}}],"partialFingerprints":{"codehealthFindingId/v1":"c979f37d1c89d778d601e1948dcab158a25c51a375fb96f1bd22663416d8f48d"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: crab_sdk::client::mutation::native_content::prepare_native_sources: FunctionTooLong \u2014 crab_sdk::client::mutation::native_content::prepare_native_sources runs 246 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 146 over it, 2.46\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-sdk/src/client/mutation/native_content.rs"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e48a409e3eb738d6a7b44a7bf468a63476534a1c9602901aad3d7bcd93d0826"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: crab_http_server::api::execute: FunctionTooLong \u2014 crab_http_server::api::execute runs 244 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 144 over it, 2.44\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-http-server/src/api.rs"},"region":{"startLine":468}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d0ffeb5d910daa0d374ff8d16e8609dbb611695ea64172d329421dae784aeef"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: page.PrivacyPage: FunctionTooLong \u2014 PrivacyPage runs 243 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 143 over it, 2.43\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/web/app/privacy/page.tsx"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"b009639a95b616b3223509fd17d83c26455628f0ef954973e1381af35b06c932"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: StagingArea: ClassTooLong \u2014 970 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), 79 methods, 3 blocks, lines 295-3662. The bar is 400 significant lines; this is 570 over it, 2.43\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-staging/src/lib.rs"},"region":{"startLine":295}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a0aa474c16f8631c08e5c60c03933591ded55d71c259b65999ddbe03d3e713d"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/local_cache.rs: FileTooLong \u2014 1210 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 710 over it, 2.42\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-cache/src/local_cache.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf43bbe57ab9986ed73c828f7cdf5e26071ead84668d26030a3c1b4788225917"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: git/pack.rs: FileTooLong \u2014 1201 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 701 over it, 2.40\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":"crab/src/git/pack.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c377a49636609ebdc4fbc3836b3305bf20bccf34eea0052422f93bd87d1e944"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: RemoteGitSnapshot: ClassTooLong \u2014 955 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), 29 methods, 2 blocks, lines 27-1309. The bar is 400 significant lines; this is 555 over it, 2.39\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/crab-remote-git/src/snapshot.rs"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"760a4392ee1e02558cb1820c7cf27f131f4541fd828e26f4ba6b6112333426d1"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/App.tsx: FileTooLong \u2014 1191 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 691 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":"packages/ui/src/App.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"20d29bdb9b38453a36e051f8ad17769af2b922964fdc56c214b5dcd1202ff2cc"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/cosmosdb_coordinator.rs: FileTooLong \u2014 1190 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), declaring 34 free functions. The bar is 500 significant lines; this is 690 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/crab-coordination/src/cosmosdb_coordinator.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"73723821f02238ae912f8075d9b015f797ea3b58c827c4db4dfb6610bf62bff9"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: OverlayStore: ClassTooLong \u2014 951 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), 26 methods, 4 blocks, lines 49-1476. The bar is 400 significant lines; this is 551 over it, 2.38\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/crab-vfs/src/overlay.rs"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"f617e4b0be65388db53901726a6f1198c541e33a3ac256eeb593dd1117ff7c60"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: managed/client.rs: FileTooLong \u2014 1186 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 62% of them inside a single declaration: ManagedApiClient (2 blocks, 137-1086). The bar is 500 significant lines; this is 686 over it, 2.37\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/crab-auth/src/managed/client.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c25b8d4d12678fa5f250a8f727666463d5ae331cc4ea98199df37d081ef3f402"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/repository.rs: FileTooLong \u2014 1180 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 680 over it, 2.36\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-remote-git/src/repository.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"34a03b6092242124677f87e0f645f56733548017d4c25a660450067f8f608d0c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: git/filter_process.rs: FileTooLong \u2014 1175 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 675 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":"crab/src/git/filter_process.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0cf486fd2ad50b5ccc6e0c2b7209f32adbf5331f1583f3bc49ca09d6a5a05112"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: crab_read::upload_pack::plan_with_operation: FunctionTooLong \u2014 crab_read::upload_pack::plan_with_operation 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/crab-read/src/upload_pack.rs"},"region":{"startLine":640}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd71982e3ba8a8b9c49186af4918b8db52f699c91293915d8aa908dfe91db26c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/multipart.rs: FileTooLong \u2014 1173 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 673 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/crab-s3-gateway/src/multipart.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a9503cc0248142f8bdeabef5473b3f7f2534a10e1bf269e847897143b8cf421"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: GitObjectLocatorWriter: ClassTooLong \u2014 938 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), 32 methods, 2 blocks, lines 166-1437. The bar is 400 significant lines; this is 538 over it, 2.35\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-metadata/src/git_object_locator/writer.rs"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"f83023adedd83b7f00d2ef1a2c9e9b15dd4c9e34acf36a0b1679adf2f7390c67"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: git/progress.rs: FileTooLong \u2014 1164 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 72% of them inside a single declaration: NativePushProgress (2 blocks, 557-1892). The bar is 500 significant lines; this is 664 over it, 2.33\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/git/progress.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e84077f190ff27e344472f78ef4b3214cedb77dd8266254ec00e9c629e00530c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: cells/scheduler.rs: FileTooLong \u2014 1163 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 663 over it, 2.33\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-http-server/src/cells/scheduler.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f39a9545eb6c7b2c213bcf4e6145acd863875d5ed12c008094ef3934a01056bf"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: crab_workflow::dvc_inventory::parse_pipeline_outputs: FunctionTooLong \u2014 crab_workflow::dvc_inventory::parse_pipeline_outputs runs 232 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 132 over it, 2.32\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-workflow/src/dvc_inventory.rs"},"region":{"startLine":1003}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8489632cf41bd7f1a187c92392cbcfcbddd69d20a395616b28e972e52a45a53"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: cmd/worktree.rs: FileTooLong \u2014 1152 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 59 free functions. The bar is 500 significant lines; this is 652 over it, 2.30\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/cmd/worktree.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a99a3d9ea64d20b3c309e287206ba78b1ae3f507a5c68ed38f3643a45259986"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: crab::cmd::exp::run_exp_run_with_id: FunctionTooLong \u2014 crab::cmd::exp::run_exp_run_with_id 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":"crab/src/cmd/exp.rs"},"region":{"startLine":1324}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8660a993c7009ce5f4e6458c677783a78e499e9c53522d02734a1168ceed511"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: crab::cmd::metadb::diagnose_acceleration_health: FunctionTooLong \u2014 crab::cmd::metadb::diagnose_acceleration_health 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":"crab/src/cmd/metadb.rs"},"region":{"startLine":3606}}}],"partialFingerprints":{"codehealthFindingId/v1":"75605e8697e8a08e1bee55ef0ebc0bcf3478389347889922edb6fdda0afc8fae"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/overlay.rs: FileTooLong \u2014 1135 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 84% of them inside a single declaration: OverlayStore (4 blocks, 49-1476). The bar is 500 significant lines; this is 635 over it, 2.27\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/crab-vfs/src/overlay.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"83126dcad6f6484284c1174fd4f5c1dd0049baaec23c39abc91ca796dc33c0cd"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: crab::import::coordinator::run_import_with_source_lists: FunctionTooLong \u2014 crab::import::coordinator::run_import_with_source_lists runs 226 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 126 over it, 2.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":"crab/src/import/coordinator.rs"},"region":{"startLine":458}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a40f2664cd246ffa0a19f138ea42c5738ac6630772e72e08faad20ddf5cb303"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: cmd/push.rs: FileTooLong \u2014 1125 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 625 over it, 2.25\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/cmd/push.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3beaaddf00c900a5601af5ae45594f6022921055ad8282d9a501e14486e5b88"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/auth.rs: FileTooLong \u2014 1119 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 619 over it, 2.24\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-http-server/src/auth.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"796f50b79db94c5ffc0157d06507fc04e4593e485625abcdb0b2cba8415206af"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/nfs_control.rs: FileTooLong \u2014 1096 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 596 over it, 2.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/crab-vfs/src/nfs_control.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"836dc6b3f8547b8aaaab2935b014f22face292d5a377e70bf2abffdac294d3db"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: push-pipeline-visuals.PushPipelineBoard: FunctionTooLong \u2014 PushPipelineBoard runs 217 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 117 over it, 2.17\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/web/components/blog/push-pipeline-visuals.tsx"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc32db0f020f45341bf8b8bbc92855def345c7d114d1c57ecec450e72c383088"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: NativePushProgress: TooManyMethods \u2014 65 methods. The bar is 30 methods; this is 35 over it, 2.17\u00D7 the bar. This type is on a published API surface \u2014 a cargo-semver-checks gate in CI (.github/workflows/sdk.yml) declares its compatibility contractual \u2014 so moving members onto a smaller type is a breaking change for every consumer, not a local refactor. To reduce it, treat the split as an API migration: move each cohesive group onto its own published type and keep the old members as deprecated forwards for a deprecation period, removing them at the next compatibility break. Where the surface has to stay as it is, that is a decision to record rather than a change to make."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/git/progress.rs"},"region":{"startLine":557}}}],"partialFingerprints":{"codehealthFindingId/v1":"836c6b9f0c0f729066dc8672269243c69992c2f429d91c2e61849691c6b9457c"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: CrabError.from: MethodTooLong \u2014 from runs 216 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 116 over it, 2.16\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/core/error.rs"},"region":{"startLine":1223}}}],"partialFingerprints":{"codehealthFindingId/v1":"e487d4e3bb7013dccb118d4f7cea8abd924d8899768235f0687dd7b549868526"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: git-import.GitImport: FunctionTooLong \u2014 GitImport runs 216 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 116 over it, 2.16\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/git-import.tsx"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac9e2d7deb7ab7abaf2092d2a8c91db083a3deb0d1f658898782a915b4f094a8"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: repository/pull_review_threads.rs: FileTooLong \u2014 1079 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 579 over it, 2.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/crab-http-server/src/cells/repository/pull_review_threads.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8e6310a75c52e4d09f6ecd32e9c4b227f2a235ca0c04d577852db45797663f7"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: crab::cmd::metadb::generation_owner_sample: FunctionTooLong \u2014 crab::cmd::metadb::generation_owner_sample runs 215 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 115 over it, 2.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":"crab/src/cmd/metadb.rs"},"region":{"startLine":661}}}],"partialFingerprints":{"codehealthFindingId/v1":"366ecda980d880bd1635034064202909166de582d03beff744a1c752ab55e031"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/spanner_coordinator.rs: FileTooLong \u2014 1073 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), declaring 32 free functions. The bar is 500 significant lines; this is 573 over it, 2.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/crab-coordination/src/spanner_coordinator.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"71ee4060ca17cab61df18e8d39611e55f58c1c79abb37bad398a83537785662d"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: Metrics: ClassTooLong \u2014 858 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), 22 methods, 4 blocks, lines 151-1600. The bar is 400 significant lines; this is 458 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/crab-http-server/src/metrics.rs"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0545cd004de01b39d57211ab894c603d329c3bd8989ab4ad8201f1191c89583"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: cmd/history_recovery.rs: FileTooLong \u2014 1072 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), declaring 33 free functions. The bar is 500 significant lines; this is 572 over it, 2.14\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/cmd/history_recovery.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"930a841f9c6a3f39eacc00da3cb5f713642a9f24f391ebee427449ecfef91437"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: push-pipeline-visuals.PushDataLanesDiagram: FunctionTooLong \u2014 PushDataLanesDiagram runs 214 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 114 over it, 2.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":"packages/web/components/blog/push-pipeline-visuals.tsx"},"region":{"startLine":445}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2358d756176cebadea591efa624a690d000c6965303bac4067860ac229ef9b9"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: EvidenceVerifier: ClassTooLong \u2014 854 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), 20 methods, 2 blocks, lines 130-1748. The bar is 400 significant lines; this is 454 over it, 2.14\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/crab-cache-server/src/evidence.rs"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"0af74cf1e628ba306dfd2e8786b80be429faff1d78edf0af09ff626866b90db5"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFields: PushPipeline: TooManyFields \u2014 64 stored fields beside 133 methods. The bar is 30 stored fields; this is 34 over it, 2.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":"crab/src/git/push.rs"},"region":{"startLine":4022}}}],"partialFingerprints":{"codehealthFindingId/v1":"125cdaa515460a30f794999b709a3748278cfbf6d5a0a1c98aae2cdb4e5bc218"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: RemoteGitRepository.open_inner: MethodTooLong \u2014 open_inner 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/crab-remote-git/src/repository.rs"},"region":{"startLine":495}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae8e765a8e818955cd0f8d5d8d46b2e8b525b3a4af189ac2cd4452836279cac9"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: cmd/clone.rs: FileTooLong \u2014 1063 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 43 free functions. The bar is 500 significant lines; this is 563 over it, 2.13\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/cmd/clone.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"08184464bfa2bd5c563fc700898c97d8f011d11024d0c44c62155d26eb7ecf8d"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/settings.tsx: FileTooLong \u2014 1062 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 562 over it, 2.12\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/settings.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"461ac4f4e741f123e0ca2f1e9f5d61cc026a0a1554c7835aa24e0462772c2c1e"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: crab_cache_server::metrics::append_authoritative_traffic_metrics: FunctionTooLong \u2014 crab_cache_server::metrics::append_authoritative_traffic_metrics runs 212 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 112 over it, 2.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/crab-cache-server/src/metrics.rs"},"region":{"startLine":534}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a42018eb348ca2b9740153535f42c240c6b2e866ae5977eccaa3ea5630a9ea9"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFields: Config: TooManyFields \u2014 63 stored fields beside 35 methods. The bar is 30 stored fields; this is 33 over it, 2.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":"crab/src/core/config.rs"},"region":{"startLine":1020}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b39b5b344ff061d6d9f3ad0c033bfbde67c8eec738d08988fa5804e65acd6a6"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: page.LibraryIndexPage: FunctionTooLong \u2014 LibraryIndexPage runs 210 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 110 over it, 2.10\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/web/app/library/page.tsx"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"3754100fa60963ae4f76bb20b767f72f002f9b4b6c1d5dfff54099f3a041c447"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/lib.rs: FileTooLong \u2014 1046 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: CachingStore (2 blocks, 131-1297). The bar is 500 significant lines; this is 546 over it, 2.09\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-cache-store/src/lib.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"add20168822c385d569ae109ea37d39cd55a1910b808e6782f0b80bb96b984b2"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: crab_http_server::cells::scheduler::recover_node_session: FunctionTooLong \u2014 crab_http_server::cells::scheduler::recover_node_session 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/crab-http-server/src/cells/scheduler.rs"},"region":{"startLine":1190}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5697e83ff719f0416ce67f35fc5e5b1be28e62275f9f03a84f3847524255b25"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: LocalRepository.prepare_push_with_options: MethodTooLong \u2014 prepare_push_with_options 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/crab-sdk/src/local/push.rs"},"region":{"startLine":333}}}],"partialFingerprints":{"codehealthFindingId/v1":"6681c7a3ea0aed6bc9c4bf5d40dddf3b5eb597ab9319828126a6ad0aa22997be"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Index.take_coalesced_read_group: MethodTooLong \u2014 take_coalesced_read_group 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/crab-staging/src/index.rs"},"region":{"startLine":8056}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f59c2b1ea2adf9f67d36e09cf0ad44621f4da32fde249a048992d1ff2b9c983"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: NativePushProgress: ClassTooLong \u2014 835 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), 65 methods, 2 blocks, lines 557-1892. The bar is 400 significant lines; this is 435 over it, 2.09\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":"crab/src/git/progress.rs"},"region":{"startLine":557}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f63db3b58607c077463d0595c8aacae7e312fe17195d0c7b35cb2c46e9f843c"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: crab_staging::stream::stage_file_streaming_inner: FunctionTooLong \u2014 crab_staging::stream::stage_file_streaming_inner runs 208 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 108 over it, 2.08\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-staging/src/stream.rs"},"region":{"startLine":602}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9998a92903e7e446e5e34d197cd40dae0816234dde734e159eca01a7e3490c7"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: auth-internals-svg.AuthInternalsSvg: FunctionTooLong \u2014 AuthInternalsSvg runs 208 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 108 over it, 2.08\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/web/app/diagrams/auth-internals-svg.tsx"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"958e352f47d0c90f2b5e7508c1226c92c8eac795e82812167fa90884bb9a02f8"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: cmd/repack.rs: FileTooLong \u2014 1037 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 537 over it, 2.07\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/cmd/repack.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"48147af42058e63d0987aa297405da59ece3b0f33c3de27331c33c9940e5ce26"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: crab::cmd::clone::run_clone_in: FunctionTooLong \u2014 crab::cmd::clone::run_clone_in runs 207 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 107 over it, 2.07\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/cmd/clone.rs"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae4550f1592b1d7b5d7bb84fbba9c7828c4d2f5844add9815351b94d15c31542"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: crab::cmd::replica::prometheus_status: FunctionTooLong \u2014 crab::cmd::replica::prometheus_status runs 207 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 107 over it, 2.07\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/cmd/replica.rs"},"region":{"startLine":11025}}}],"partialFingerprints":{"codehealthFindingId/v1":"875137559c900f7e4cf3844ec56cc9c41090f49816e9447be51aa249a20cca3a"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: revision-picker.RevisionPicker: FunctionTooLong \u2014 RevisionPicker runs 207 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 107 over it, 2.07\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/revision-picker.tsx"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"68771155c3756ebeada5eccbb9a913fd951bc1cea6d86c903f8c40842f5cf611"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: OperationContext: ClassTooLong \u2014 827 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), 48 methods, 3 blocks, lines 172-1234. The bar is 400 significant lines; this is 427 over it, 2.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/crab-remote-git/src/operation.rs"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"b30910b01423d6d47debc8d4885a8e4b8b9e3c48e9e7a0fbd7b253523141bc08"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: crab_git::repack::consolidate_pack_suffix_with_options: FunctionTooLong \u2014 crab_git::repack::consolidate_pack_suffix_with_options runs 206 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 106 over it, 2.06\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-git/src/repack.rs"},"region":{"startLine":495}}}],"partialFingerprints":{"codehealthFindingId/v1":"36ab702441aee41c1b5b38901e41e87c07d2705bc8c50b045241842a3bfbc941"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: RepositoryCellRouter: ClassTooLong \u2014 821 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), 47 methods, 2 blocks, lines 74-1210. The bar is 400 significant lines; this is 421 over it, 2.05\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-http-server/src/cells/router.rs"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe24b67b0307d2841203d01fe2cff62d9f29f9a26465921a98b3adcba9221c0c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/operation.rs: FileTooLong \u2014 1021 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 81% of them inside a single declaration: OperationContext (3 blocks, 172-1234). The bar is 500 significant lines; this is 521 over it, 2.04\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-remote-git/src/operation.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b81987c7e4b655b9a1937a0c02a8fc768b35697c43bb819bbedcf1ad238e8045"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: local/edit.rs: FileTooLong \u2014 1019 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 519 over it, 2.04\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/crab-sdk/src/local/edit.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee4d5fa55c22d16d72d0e260c33f13784a9124403f31cf965a0365701f54e2bb"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: cells/repository.rs: FileTooLong \u2014 1011 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 43 free functions. The bar is 500 significant lines; this is 511 over it, 2.02\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-http-server/src/cells/repository.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"98c0acb5dedda524f65862d0721706ff99a2ae17c4ac0a33c6b074dc83a1dc4e"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: page.LibraryGuidePage: FunctionTooLong \u2014 LibraryGuidePage runs 202 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 102 over it, 2.02\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/web/app/library/[slug]/page.tsx"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"5650ce2036a66a1b6558d7e39502d0a8d9979f9bff6ec14d902d358e9439e61d"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: lfs/mod.rs: FileTooLong \u2014 1008 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 508 over it, 2.02\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/cmd/lfs/mod.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b31ee4cc829a54b5a6c2651a6ff0160046bef3957f65c88874c2673555d2b51d"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Gateway.complete_multipart_upload: MethodTooLong \u2014 complete_multipart_upload runs 201 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 101 over it, 2.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/crab-s3-gateway/src/gateway.rs"},"region":{"startLine":2428}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d99ee4e707bc0f42bbbdc9ebda0f047c99fa8a1c8f9e665560ef4fc8cfc2579"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: cmd/exp_queue.rs: FileTooLong \u2014 1002 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 60 free functions. The bar is 500 significant lines; this is 502 over it, 2.00\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":"crab/src/cmd/exp_queue.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a385206df9adf02fdf8f017d8d0bd9deee498e381601b454834d18071da3354d"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: cells/router.rs: FileTooLong \u2014 1002 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 82% of them inside a single declaration: RepositoryCellRouter (2 blocks, 74-1210). The bar is 500 significant lines; this is 502 over it, 2.00\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-http-server/src/cells/router.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fb78fe8c622ea53b762463cedf3c436c94990653022b4139f6fc44499a2fe97"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: VfsEngine: TooManyMethods \u2014 60 methods. The bar is 30 methods; this is 30 over it, 2.00\u00D7 the bar. This type is on a published API surface \u2014 a cargo-semver-checks gate in CI (.github/workflows/sdk.yml) declares its compatibility contractual \u2014 so moving members onto a smaller type is a breaking change for every consumer, not a local refactor. To reduce it, treat the split as an API migration: move each cohesive group onto its own published type and keep the old members as deprecated forwards for a deprecation period, removing them at the next compatibility break. Where the surface has to stay as it is, that is a decision to record rather than a change to make."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-vfs/src/engine.rs"},"region":{"startLine":1085}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d28f2b7952848c7ef81bf47e0ddfea004f9b5eff65f465247d44775d9c26ab6"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: ml-workflow-visuals.ArtifactPromotionLab: FunctionTooLong \u2014 ArtifactPromotionLab runs 200 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 100 over it, 2.00\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/web/components/library/ml-workflow-visuals.tsx"},"region":{"startLine":403}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3fa6774ba411224130accf4abcffaf3dfffbd608381fb7b3e85c8e609270ffe"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: receive/git_workspace.rs: FileTooLong \u2014 999 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 67% of them inside a single declaration: GitReceiveWorkspace (2 blocks, 97-915). The bar is 500 significant lines; this is 499 over it, 2.00\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-auth-server/src/receive/git_workspace.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffcd648a4a67e64b0df30ad851a6dec8c076f8998a063f87c89e040b95c12228"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: release/check-release-archive-contents.py: FileTooLong \u2014 994 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 494 over it, 1.99\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/scripts/release/check-release-archive-contents.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d6a0525cad3b4c43cced435edabb9a4a7e76edf34853d92537b1aceb0284555"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/onboarding.rs: FileTooLong \u2014 994 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), declaring 37 free functions. The bar is 500 significant lines; this is 494 over it, 1.99\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-cache-server/src/onboarding.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b71ede285c676eaec09575d7ac2f8b8502ec77069026df69525eeb1adbdd05d"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/hydra.rs: FileTooLong \u2014 994 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 54 free functions. The bar is 500 significant lines; this is 494 over it, 1.99\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-workflow/src/hydra.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b310152101182a0d39a335dfc800c02ccfe79cd7151ca01e99e9daf7a6cef300"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: VfsEngine: ClassTooLong \u2014 789 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), 60 methods, 2 blocks, lines 1085-2327. The bar is 400 significant lines; this is 389 over it, 1.97\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-vfs/src/engine.rs"},"region":{"startLine":1085}}}],"partialFingerprints":{"codehealthFindingId/v1":"874d3a939a189a0ec54678eae258294467fad4245a58ecfbf63e0982bb3c8859"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: crab_s3_gateway::mutation::build_commit: FunctionTooLong \u2014 crab_s3_gateway::mutation::build_commit 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/crab-s3-gateway/src/mutation.rs"},"region":{"startLine":2404}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7316bce67ef2df808706046c46a8bbb5bfccdf604120089e580f5f3c50f9861"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: crab_staging::stream::flush_batch: FunctionTooLong \u2014 crab_staging::stream::flush_batch 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/crab-staging/src/stream.rs"},"region":{"startLine":1351}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9b635401c707f32c8df039a02eff06fefa06efccfdf16149f06c1cd81664c39"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Index.claim_prepared_chunks: MethodTooLong \u2014 claim_prepared_chunks runs 196 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 96 over it, 1.96\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values 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/crab-staging/src/index.rs"},"region":{"startLine":2283}}}],"partialFingerprints":{"codehealthFindingId/v1":"ecddba5d7d0ab426ed4db7d5ab11de54bc619eb8a6bbd635179d01167ee57a5f"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Index.register_preparation_payloads: MethodTooLong \u2014 register_preparation_payloads 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/crab-staging/src/index.rs"},"region":{"startLine":2539}}}],"partialFingerprints":{"codehealthFindingId/v1":"04442b5a438e46000b120590a7f491c5d0d285dd9044d4fc6b59f4e6a33c0b9e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: lfs/dedup.rs: FileTooLong \u2014 973 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 473 over it, 1.95\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":"crab/src/cmd/lfs/dedup.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"718d0fecf5d3479f92e734f17e4caf0215b90fef4df1756c68e1cbf5eda1fe81"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: core/metrics.rs: FileTooLong \u2014 968 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 468 over it, 1.94\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":"crab/src/core/metrics.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e0bdc1e63af4bd12cfccfb54c9e2ffafc3a1f5aa88d181371f25205dcce2433"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: import/versions.rs: FileTooLong \u2014 968 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 468 over it, 1.94\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":"crab/src/import/versions.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6a3b42a7bb7038c7b0cf740fe4404f92f8170bdb2edb9cd1da98d65cad3185d"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: import/journal.rs: FileTooLong \u2014 967 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 62% of them inside a single declaration: Journal (4 blocks, 289-1315). The bar is 500 significant lines; this is 467 over it, 1.93\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":"crab/src/import/journal.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6610488e868f2aacbb5031d1a4f5cde36ed225d7f2f7b016662032346437e636"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: crab_s3_gateway::mutation::upload_built_batch: FunctionTooLong \u2014 crab_s3_gateway::mutation::upload_built_batch runs 193 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 93 over it, 1.93\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-s3-gateway/src/mutation.rs"},"region":{"startLine":1770}}}],"partialFingerprints":{"codehealthFindingId/v1":"9525f7246fb044456f09d5ebcdec70f68583df6b6767617bb18cba5ef8f409af"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: cost-breakdown-svg.CostBreakdownSvg: FunctionTooLong \u2014 CostBreakdownSvg runs 191 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 91 over it, 1.91\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/web/app/diagrams/cost-breakdown-svg.tsx"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc873b9cc9f6ea499095a0151d5963f585a992df01d7c044dc5cb165d2c50774"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/fuse.rs: FileTooLong \u2014 953 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 76% of them inside a single declaration: CrabFs (3 blocks, 318-1414). The bar is 500 significant lines; this is 453 over it, 1.91\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-vfs/src/fuse.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f473a88120ef3b4a77f5c0867617a03c224d24ddae56b46a101f2381fd802cd"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/cache.rs: FileTooLong \u2014 953 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 453 over it, 1.91\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/crab-workflow/src/cache.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"db7fd94d070334eba1e6242c3ecad844ca1b2a6e8feafea0dc2b9a5db0faa488"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: client/mutation.rs: FileTooLong \u2014 942 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 442 over it, 1.88\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-sdk/src/client/mutation.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6a16e52ae60c413a0eafa71b0a349e8c73a9ffa69e65229bac5b13349ad0016"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/object_store.rs: FileTooLong \u2014 941 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 62% of them inside a single declaration: LfsObjectStore (2 blocks, 119-1062). The bar is 500 significant lines; this is 441 over it, 1.88\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/crab-lfs/src/object_store.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7cc3642f413c8de9eb26a30af8b2dc68bdc537eb048e4fd8caad0df44c4ab088"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/local.rs: FileTooLong \u2014 940 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 440 over it, 1.88\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-sdk/src/local.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"376f8cb419d6bb1a05e471e51d344bf2a0d25c6675364c293afb58c92d4fd0ed"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Error.into_response: MethodTooLong \u2014 into_response runs 188 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 88 over it, 1.88\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-http-server/src/app.rs"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"e380cb970f83b7d503737cfe21c939d2cb70079eeda97fb316b6112e90882d39"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/content.tsx: FileTooLong \u2014 938 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 438 over it, 1.88\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/content.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"be49cce309213e3a2670bedfbbc0b8ad9ad1fb008fa7ea9ca1e51fd5806a5412"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: git/push_native.rs: FileTooLong \u2014 937 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 437 over it, 1.87\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/git/push_native.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc93753f71381207401857ca36ac9bb76c1ff5a47c69e777ed2b5b920f868233"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: crab_workflow::dvc_inventory::inventory_project: FunctionTooLong \u2014 crab_workflow::dvc_inventory::inventory_project runs 187 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 87 over it, 1.87\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-workflow/src/dvc_inventory.rs"},"region":{"startLine":536}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdc6e62ed0ffdaf8a200ec6a28e5da652c7a6b9e0f1ffaaf05b6c06185f631ac"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Client.clone_with_options: MethodTooLong \u2014 clone_with_options runs 186 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 86 over it, 1.86\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-sdk/src/local.rs"},"region":{"startLine":490}}}],"partialFingerprints":{"codehealthFindingId/v1":"26e1baa5f9d4c6b242df600370816b6fc0838e9ed613ec671ccba81926ba955c"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: cost-calculator.CostCalculator: FunctionTooLong \u2014 CostCalculator runs 186 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 86 over it, 1.86\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/web/components/pricing/cost-calculator.tsx"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"a417216e8b6599be8de7ecbf8cc0886f1ae6f7b242b391223707af3f78b09e50"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: cmd/release.rs: FileTooLong \u2014 929 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 429 over it, 1.86\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":"crab/src/cmd/release.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5279c769f3b2908219f37481f3c022783469fb5486b1f1ade669b78f87c0b67d"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: cmd/status_workflow.rs: FileTooLong \u2014 929 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 41 free functions. The bar is 500 significant lines; this is 429 over it, 1.86\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":"crab/src/cmd/status_workflow.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4a81e916b7a110a8216d1d77649a778337643a89b89f865d3c21e14d9fb2d4d"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: repository/releases.rs: FileTooLong \u2014 925 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 425 over it, 1.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/crab-http-server/src/cells/repository/releases.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc830c0bff6ec3c7868af7f27ccc12dc6ea1c39c960d122c527d7f9df23224ea"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AddRemoteCandidateCache.persist_results_inner: MethodTooLong \u2014 persist_results_inner runs 185 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 85 over it, 1.85\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/cache/add_remote_candidates.rs"},"region":{"startLine":408}}}],"partialFingerprints":{"codehealthFindingId/v1":"07462431b0289c6c437867e54fae15423e24b597ea9221c855f067e6aa813d71"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: feature-blog-article.FeatureBlogArticle: FunctionTooLong \u2014 FeatureBlogArticle runs 185 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 85 over it, 1.85\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/web/components/blog/feature-blog-article.tsx"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"916d3e7597a0a07ef1eeb853eefcd55176a100136a9b435831644e7ae1750058"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ManagedApiClient: ClassTooLong \u2014 736 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), 35 methods, 2 blocks, lines 137-1086. The bar is 400 significant lines; this is 336 over it, 1.84\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/crab-auth/src/managed/client.rs"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f8adaef390f75f3745577fe7cefceef2a50f967dabadba9917b4f72c0af8b18"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: CrabError.exit_code: MethodTooLong \u2014 exit_code 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":"crab/src/core/error.rs"},"region":{"startLine":2257}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c892320fb1a9e8b39ea5465d9bb16b60d1232d4435594e08a6317743c6b31c6"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: CrabError.category: MethodTooLong \u2014 category 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":"crab/src/core/error.rs"},"region":{"startLine":2642}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e015f495581b681c95ca2a39870c2dd077dfa0e7df468c405a5231f163273d0"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/push_plan.rs: FileTooLong \u2014 919 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), declaring 31 free functions. The bar is 500 significant lines; this is 419 over it, 1.84\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/crab-staging/src/push_plan.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"02d8436fa6eb75bc2dd06642521716154fe30f0bffc7a4c841d7a7c079a9218e"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Store: TooManyMethods \u2014 55 methods. The bar is 30 methods; this is 25 over it, 1.83\u00D7 the bar. This type is on a published API surface \u2014 a cargo-semver-checks gate in CI (.github/workflows/sdk.yml) declares its compatibility contractual \u2014 so moving members onto a smaller type is a breaking change for every consumer, not a local refactor. To reduce it, treat the split as an API migration: move each cohesive group onto its own published type and keep the old members as deprecated forwards for a deprecation period, removing them at the next compatibility break. Where the surface has to stay as it is, that is a decision to record rather than a change to make."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/storage/store.rs"},"region":{"startLine":325}}}],"partialFingerprints":{"codehealthFindingId/v1":"036bb9926826e65f75dcecb79d45cfaca3dc03826bc7373f42dd4fb68294c94e"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: crab::git::push_native::phase_discover: FunctionTooLong \u2014 crab::git::push_native::phase_discover runs 183 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 83 over it, 1.83\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/git/push_native.rs"},"region":{"startLine":1055}}}],"partialFingerprints":{"codehealthFindingId/v1":"cae4fdc9291d09d3ab40c9cb3f4de688a5ab56d339fdb5d3244328ceb6bdfccd"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: CrabFs: ClassTooLong \u2014 728 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), 11 methods, 3 blocks, lines 318-1414. The bar is 400 significant lines; this is 328 over it, 1.82\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/crab-vfs/src/fuse.rs"},"region":{"startLine":318}}}],"partialFingerprints":{"codehealthFindingId/v1":"84612b5d8ba571bc15fe0b55d06289d018bf9d4efd8fe33ee2235649ca7071e8"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/lockfile.rs: FileTooLong \u2014 905 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 405 over it, 1.81\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/crab-workflow/src/lockfile.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8952fa89b7207bf8ce3c33f3e08990e8090f9d5fb00d1213669629bc82dcad23"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: crab_metadata::split_commit_graph::update_split_commit_graph: FunctionTooLong \u2014 crab_metadata::split_commit_graph::update_split_commit_graph 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/crab-metadata/src/split_commit_graph.rs"},"region":{"startLine":425}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c0564eab2281967243d50dbbdd218c0ff1971027a777032450c236e30662f8e"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: crab_read::upload_pack::enqueue_children: FunctionTooLong \u2014 crab_read::upload_pack::enqueue_children 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/crab-read/src/upload_pack.rs"},"region":{"startLine":1810}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f796eecff0bc53217246a48ea6ac718df6207b5d042fc2e03445aad880a8a4c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/hydration.rs: FileTooLong \u2014 904 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 404 over it, 1.81\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/crab-vfs/src/hydration.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd5856d410cec3f7fb0c348e5ad7cb9d0d02e985362dc43c57b9ed548092a916"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: CleanSession: ClassTooLong \u2014 720 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), 34 methods, 2 blocks, lines 1263-2564. The bar is 400 significant lines; this is 320 over it, 1.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":"crab/src/git/clean.rs"},"region":{"startLine":1263}}}],"partialFingerprints":{"codehealthFindingId/v1":"afddc55e887b6b2b620a43d3ffc1233427fe571b4a2d1a876e6010a7f75d7468"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/generation.rs: FileTooLong \u2014 896 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 396 over it, 1.79\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/crab-write/src/generation.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ceffe6a9564d488c2c5d8a7623853259628c3ca4b3571e0b995ae9113db1dc2"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: CachingStore: ClassTooLong \u2014 712 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), 49 methods, 2 blocks, lines 131-1297. The bar is 400 significant lines; this is 312 over it, 1.78\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-cache-store/src/lib.rs"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"098e8b7f242392c9751bd6d11cf6a7f31a806f12b130d037853710a1d3a83500"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: pulls.MergePanel: FunctionTooLong \u2014 MergePanel runs 178 significant lines (blank, comment-only and punctuation-only lines excluded) 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":"packages/ui/src/pulls.tsx"},"region":{"startLine":1761}}}],"partialFingerprints":{"codehealthFindingId/v1":"24a253a7a7c9d19bd0ae2fa82d34f205cc71641d51fb6245b4dc57d8bd4c852f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/git_import.rs: FileTooLong \u2014 887 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), declaring 32 free functions. The bar is 500 significant lines; this is 387 over it, 1.77\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/crab-http-server/src/git_import.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa6e370d525d9e3703fa45292eec5644fcca9bce58780083655464848fc68c69"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: LocalCache: TooManyMethods \u2014 53 methods, declared across 2 files: src/local_cache.rs (47), local_cache/maintenance.rs (6). The bar is 30 methods; this is 23 over it, 1.77\u00D7 the bar. That list is where to read them, not a suggestion to split the file: the members belong to the type wherever they are declared, so moving them between files leaves the count unchanged. This type is on a published API surface \u2014 a cargo-semver-checks gate in CI (.github/workflows/sdk.yml) declares its compatibility contractual \u2014 so moving members onto a smaller type is a breaking change for every consumer, not a local refactor. To reduce it, treat the split as an API migration: move each cohesive group onto its own published type and keep the old members as deprecated forwards for a deprecation period, removing them at the next compatibility break. Where the surface has to stay as it is, that is a decision to record rather than a change to make."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-cache/src/local_cache.rs"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ec80d5f89b642136d56e688017be032ddde9812ee612743f4bc5e1b07865d6b"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: Config: ClassTooLong \u2014 706 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), 35 methods, 3 blocks, lines 1020-2773. The bar is 400 significant lines; this is 306 over it, 1.77\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":"crab/src/core/config.rs"},"region":{"startLine":1020}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc2baf0bc6c6dd29aec81ada200ecbcb5c170a392aa78ba76b5314857e05bca2"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/push_lock.rs: FileTooLong \u2014 878 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 41 free functions. The bar is 500 significant lines; this is 378 over it, 1.76\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/crab-coordination/src/push_lock.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"82ed409f83f78cbbc5022470a6fa8322deab405118cfc752dd6b4912aaae3412"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: RemoteGitRepository: ClassTooLong \u2014 695 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), 46 methods, 3 blocks, lines 275-1266. The bar is 400 significant lines; this is 295 over it, 1.74\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-remote-git/src/repository.rs"},"region":{"startLine":275}}}],"partialFingerprints":{"codehealthFindingId/v1":"8acf415675ebde2465fec72d0acb4d9521fb5dfe6e45dfd756acca9d388a8c79"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: crab::cmd::metadb::rebuild_with_guard: FunctionTooLong \u2014 crab::cmd::metadb::rebuild_with_guard runs 173 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 73 over it, 1.73\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/cmd/metadb.rs"},"region":{"startLine":2471}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0bb14bceda662f6024398fee442da77f587560dc4644cc4387542be40d88ce1"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: crab::cmd::migrate::run_migrate_from_dvc_with_options: FunctionTooLong \u2014 crab::cmd::migrate::run_migrate_from_dvc_with_options runs 173 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 73 over it, 1.73\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/cmd/migrate.rs"},"region":{"startLine":922}}}],"partialFingerprints":{"codehealthFindingId/v1":"25bba666a9e30bdc87afb1228781422756a80dd111ece3f5fe1a5f71346b5fdc"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: RepositoryCellScheduler: ClassTooLong \u2014 689 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), 26 methods, 2 blocks, lines 118-1051. The bar is 400 significant lines; this is 289 over it, 1.72\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/crab-http-server/src/cells/scheduler.rs"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fa5fdf93de5812dc90ab924b50948d6843fb932279fd2cde27bea774627310a"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: crab::cmd::data::fetch_descriptor_source: FunctionTooLong \u2014 crab::cmd::data::fetch_descriptor_source runs 172 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 72 over it, 1.72\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/cmd/data.rs"},"region":{"startLine":726}}}],"partialFingerprints":{"codehealthFindingId/v1":"57c60c451fb4bce9ea1bce7ad3b3bbc5009856f59c8311f0f1cf8b791eba74ec"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: scripts/verify-large-repo-rustfs-report.py: FileTooLong \u2014 857 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 357 over it, 1.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":"crab/scripts/verify-large-repo-rustfs-report.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"02ee55a3b843990b0678312d841cffbe8e2aeef26dced41af289b2b4c507e106"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/add_push_plan.rs: FileTooLong \u2014 857 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 357 over it, 1.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/crab-staging/src/add_push_plan.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ccc2e9b9fc93a47ba2fb00732dfdfe7514886ac2db7d7db2561f18b9a0381a4"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: git_object_locator/reader.rs: FileTooLong \u2014 855 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 69% of them inside a single declaration: GitObjectLocatorSession (2 blocks, 91-882). The bar is 500 significant lines; this is 355 over it, 1.71\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-metadata/src/git_object_locator/reader.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9101a6158d616615c37cf07776760f56bb030e0dab50117ab36220ce3c3d9621"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: browse.Directory: FunctionTooLong \u2014 Directory runs 171 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 71 over it, 1.71\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/browse.tsx"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e4d14b96e2401826094d1735f72179543234ce527248a36a989b93e8bb895da"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: CacheStore: ClassTooLong \u2014 683 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), 38 methods, 2 blocks, lines 356-1471. The bar is 400 significant lines; this is 283 over it, 1.71\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/crab-cache-server/src/cache_store.rs"},"region":{"startLine":356}}}],"partialFingerprints":{"codehealthFindingId/v1":"06932ac89cab528902340ef520dd59310df46ac0324ff49da5adf20122f9db26"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/dynamodb_coordinator.rs: FileTooLong \u2014 849 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 349 over it, 1.70\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/crab-coordination/src/dynamodb_coordinator.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8cb901747d41e39cfa1b515cee18b17a96d55f8c2f5e1df3dc70c4c5652fc64"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: repository/projection.rs: FileTooLong \u2014 845 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 345 over it, 1.69\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-http-server/src/cells/repository/projection.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"47a11b18fe2762975936ba71e8f523e63b62290b2dceb80e25923d899cd5253f"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: crab::core::error_catalog::error_code: FunctionTooLong \u2014 crab::core::error_catalog::error_code 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":"crab/src/core/error_catalog.rs"},"region":{"startLine":1396}}}],"partialFingerprints":{"codehealthFindingId/v1":"026628e9eb7e163a2d118370954a7bd1b9ef462780365d8698707fc981613550"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: first-workflow-learning-labs.CrabCapabilityNavigator: FunctionTooLong \u2014 CrabCapabilityNavigator runs 169 significant lines (blank, comment-only and punctuation-only lines excluded) 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":"packages/web/components/library/first-workflow-learning-labs.tsx"},"region":{"startLine":645}}}],"partialFingerprints":{"codehealthFindingId/v1":"64ef4fc70b5892f6032a50072d4eaa5fd617ad6d32ed0e331f49fc3676d8a538"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/ref_journal.rs: FileTooLong \u2014 844 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 344 over it, 1.69\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-metadata/src/ref_journal.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d09a8673a2715d1046fe3b2ab81063a44bf23908d3b8d7eb0d2e4ce7157a551"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: CrabError.code: MethodTooLong \u2014 code 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":"crab/src/core/error.rs"},"region":{"startLine":2462}}}],"partialFingerprints":{"codehealthFindingId/v1":"199bb08f0e440ce87330c5fbe18bcb92bc3c25ad181cf57a05152a7cdc9d4696"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Gateway.list_objects_v2: MethodTooLong \u2014 list_objects_v2 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/crab-s3-gateway/src/gateway.rs"},"region":{"startLine":2921}}}],"partialFingerprints":{"codehealthFindingId/v1":"c399f97130e43b259fecb3d9a06b6fc6fd4c4f54bde7c31939c8986e75776916"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: crab_sdk::client::mutation::prepare_batch: FunctionTooLong \u2014 crab_sdk::client::mutation::prepare_batch 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/crab-sdk/src/client/mutation.rs"},"region":{"startLine":697}}}],"partialFingerprints":{"codehealthFindingId/v1":"27fc72cb2d7da0d918181bd148d68ab86d7be68c08c6005dc4735996a4a52513"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: DaemonService: ClassTooLong \u2014 671 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), 21 methods, 2 blocks, lines 540-1569. The bar is 400 significant lines; this is 271 over it, 1.68\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-vfs/src/daemon.rs"},"region":{"startLine":540}}}],"partialFingerprints":{"codehealthFindingId/v1":"2eec39932a37109fadbb676cc5a8a0d5588b9a4119ffc475f9de934ac73e708f"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: crab::storage::retry::retry_class: FunctionTooLong \u2014 crab::storage::retry::retry_class 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":"crab/src/storage/retry.rs"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c65bb3786b17897143e2dcaebae57e618f0077ab58254bf32eb49611d56795c"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: GitReceiveWorkspace: ClassTooLong \u2014 666 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), 26 methods, 2 blocks, lines 97-915. The bar is 400 significant lines; this is 266 over it, 1.67\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/crab-auth-server/src/receive/git_workspace.rs"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"cdaef317075d49749757f2e84315a36b4e58af6712b985fb4541b3dfa46260a0"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: crab::cmd::diff::run_diff: FunctionTooLong \u2014 crab::cmd::diff::run_diff runs 165 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 65 over it, 1.65\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/cmd/diff.rs"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"664c6031874cbc41c43d73a97252721a1ef5437de0d3a989f15c157524f678a3"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: crab::cmd::replica::doctor_findings: FunctionTooLong \u2014 crab::cmd::replica::doctor_findings runs 165 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 65 over it, 1.65\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/cmd/replica.rs"},"region":{"startLine":9247}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd5e1e53bdba814dabb0b1d0365d441fbee72be79b422175c0b188e27a60ef88"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: settings.DefaultBranchSettings: FunctionTooLong \u2014 DefaultBranchSettings runs 165 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 65 over it, 1.65\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/settings.tsx"},"region":{"startLine":587}}}],"partialFingerprints":{"codehealthFindingId/v1":"893c868f960f1218c9a76c07870840841e84b645ea8832e5e1542d92f613126f"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: discussion.Editor: FunctionTooLong \u2014 Editor runs 164 significant lines (blank, comment-only and punctuation-only lines excluded) 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":"packages/ui/src/discussion.tsx"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b337cd0c4b0cfcaefae0b4618944b3c461f18c3f8ac69c5cf5276bfc44e5477"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: pulls.PullDetail: FunctionTooLong \u2014 PullDetail runs 164 significant lines (blank, comment-only and punctuation-only lines excluded) 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":"packages/ui/src/pulls.tsx"},"region":{"startLine":614}}}],"partialFingerprints":{"codehealthFindingId/v1":"a352db0c3750471a6e9ebfa7f2d8b6248a649cb6331f578935b5070cbad884a4"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: CachingStore: TooManyMethods \u2014 49 methods, declared across 2 files: src/lib.rs (39), src/xorb_read.rs (10). The bar is 30 methods; this is 19 over it, 1.63\u00D7 the bar. That list is where to read them, not a suggestion to split the file: the members belong to the type wherever they are declared, so moving them between files leaves the count unchanged. This type is on a published API surface \u2014 a cargo-semver-checks gate in CI (.github/workflows/sdk.yml) declares its compatibility contractual \u2014 so moving members onto a smaller type is a breaking change for every consumer, not a local refactor. To reduce it, treat the split as an API migration: move each cohesive group onto its own published type and keep the old members as deprecated forwards for a deprecation period, removing them at the next compatibility break. Where the surface has to stay as it is, that is a decision to record rather than a change to make."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-cache-store/src/lib.rs"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"68a9d0fa055d485f397a14ed82d61d9db27d7454f98c374ce1dcc191322721ce"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: StagingAreaReadOnly: TooManyMethods \u2014 49 methods. The bar is 30 methods; this is 19 over it, 1.63\u00D7 the bar. This type is on a published API surface \u2014 a cargo-semver-checks gate in CI (.github/workflows/sdk.yml) declares its compatibility contractual \u2014 so moving members onto a smaller type is a breaking change for every consumer, not a local refactor. To reduce it, treat the split as an API migration: move each cohesive group onto its own published type and keep the old members as deprecated forwards for a deprecation period, removing them at the next compatibility break. Where the surface has to stay as it is, that is a decision to record rather than a change to make."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-staging/src/lib.rs"},"region":{"startLine":311}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ea5b31677347e7433303f5619f620d7e070d0a05ed8a4242bca73c69e6f0bc1"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: crab::cmd::add::publish_git_index_entries_with_tracking: FunctionTooLong \u2014 crab::cmd::add::publish_git_index_entries_with_tracking 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":"crab/src/cmd/add.rs"},"region":{"startLine":3798}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d56ee97280a8e55e87b936a8241bef84d1668fc61a7acc9037b00c435117705"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: crab::cmd::optimize::xorbs::run_apply: FunctionTooLong \u2014 crab::cmd::optimize::xorbs::run_apply 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":"crab/src/cmd/optimize/xorbs.rs"},"region":{"startLine":440}}}],"partialFingerprints":{"codehealthFindingId/v1":"83a399b99ea7f08ffb2a7ba76d6a92ca57510f92664ad73ae9b12a31e0a944eb"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: crab_staging::add_push_plan::prepare_one_file_plan_with_existing_refs: FunctionTooLong \u2014 crab_staging::add_push_plan::prepare_one_file_plan_with_existing_refs runs 162 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 62 over it, 1.62\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-staging/src/add_push_plan.rs"},"region":{"startLine":748}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef039f58adb83c2b095464b5efc9041ff8fa7704bd7f25fb7ca9087798ee5653"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: blog-detail-diagrams.GarbageCollectionReachabilityDiagram: FunctionTooLong \u2014 GarbageCollectionReachabilityDiagram runs 162 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 62 over it, 1.62\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/web/components/blog/blog-detail-diagrams.tsx"},"region":{"startLine":262}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b650d73ea8ea52cb00bff991dbea39e0919a58d42719abaa056ed87c87198b3"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/runtime.rs: FileTooLong \u2014 809 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 69% of them inside a single declaration: RemoteGitRuntime (3 blocks, 273-1111). The bar is 500 significant lines; this is 309 over it, 1.62\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/crab-remote-git/src/runtime.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e03068eea9799c41b556d1c830d9b3a6409290f20446a130f0236bd26ee6cf1"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/projection.rs: FileTooLong \u2014 807 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 307 over it, 1.61\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-http-server/src/projection.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"75364740f7b571af35a663b210770ee3c26bfc62b9dd2a6e22e192492aa47bf0"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: crab::cmd::workflow_checkpoint::snapshot_checkpoint: FunctionTooLong \u2014 crab::cmd::workflow_checkpoint::snapshot_checkpoint 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":"crab/src/cmd/workflow_checkpoint.rs"},"region":{"startLine":333}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9fe7fd8af21d26dfea5d618f7b6268999537caf447f54112ef0d39a4b3dab33"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: crab_http_server::receive::publish::publish_attempt: FunctionTooLong \u2014 crab_http_server::receive::publish::publish_attempt 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/crab-http-server/src/receive/publish.rs"},"region":{"startLine":434}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0aca8459bdf18bc14fd3a6c6192c365846905ab7ff6f1b56ba5e19fe7149295"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: library-guide-filter.LibraryGuideFilter: FunctionTooLong \u2014 LibraryGuideFilter runs 161 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 61 over it, 1.61\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/web/components/library/library-guide-filter.tsx"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"44f821ba4ec0cdc0206d0ff1a77a1a431ccbdc10c2bae078444b6e6f5f88949f"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: OperationContext: TooManyMethods \u2014 48 methods, declared across 2 files: src/operation.rs (47), src/repository.rs (1). The bar is 30 methods; this is 18 over it, 1.60\u00D7 the bar. That list is where to read them, not a suggestion to split the file: the members belong to the type wherever they are declared, so moving them between files leaves the count unchanged. This type is on a published API surface \u2014 a cargo-semver-checks gate in CI (.github/workflows/sdk.yml) declares its compatibility contractual \u2014 so moving members onto a smaller type is a breaking change for every consumer, not a local refactor. To reduce it, treat the split as an API migration: move each cohesive group onto its own published type and keep the old members as deprecated forwards for a deprecation period, removing them at the next compatibility break. Where the surface has to stay as it is, that is a decision to record rather than a change to make."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-remote-git/src/operation.rs"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"6dbfa3649277ea0c4f89454f32565d4aac1f15a7b5e9be57709f5d783c33b1c1"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: CrabError.is_retryable: MethodTooLong \u2014 is_retryable runs 159 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 59 over it, 1.59\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/core/error.rs"},"region":{"startLine":2869}}}],"partialFingerprints":{"codehealthFindingId/v1":"54930b1f6ee815abb6205eb8c5753309418a29262024098ee59f672be00e8b71"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: pulls.ReviewThreadCard: FunctionTooLong \u2014 ReviewThreadCard runs 159 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 59 over it, 1.59\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pulls.tsx"},"region":{"startLine":1139}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab1f18f2f1b1a6c247c65f8070825ab596736c6fbbb7a8e35e354458225b0658"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: ml-workflow-visuals.MlWorkflowCacheExplorer: FunctionTooLong \u2014 MlWorkflowCacheExplorer runs 159 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 59 over it, 1.59\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/web/components/library/ml-workflow-visuals.tsx"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"425e8b48850f91203ebe2faa9d2197fafa6902e3175fbd467db60dcc7cff1c2d"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: cmd/init.rs: FileTooLong \u2014 794 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), declaring 35 free functions. The bar is 500 significant lines; this is 294 over it, 1.59\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":"crab/src/cmd/init.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a6088f1239f7b3897e7145301576ac72e7c9dcecb64a602a1489e833bf1c5cc"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/split_commit_graph.rs: FileTooLong \u2014 791 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 291 over it, 1.58\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-metadata/src/split_commit_graph.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2f70349117ec0f2ad2a2517465d129bd37b91f8accc98c74232befe37b1b96c"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: knowledge-check.KnowledgeCheck: FunctionTooLong \u2014 KnowledgeCheck runs 158 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 58 over it, 1.58\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/web/components/library/knowledge-check.tsx"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"4878131e6db97b9d143ee33a552446fac89fef404f7777abc14b8e806dd5d0a9"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/gc_fence.rs: FileTooLong \u2014 788 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 288 over it, 1.58\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-coordination/src/gc_fence.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7594b9a426ebe6e7e66d7ca2e89da93b8eac1b99cac9d9d0f053648b23c4b6ec"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/pack_locator.rs: FileTooLong \u2014 785 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 285 over it, 1.57\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/crab-git/src/pack_locator.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6743ebfc8458b9b0d223a864a5fbca5b4488678bc08cff40ebbda90004de7e10"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: crab_sdk::client::mutation::finish_preparation: FunctionTooLong \u2014 crab_sdk::client::mutation::finish_preparation runs 157 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 57 over it, 1.57\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-sdk/src/client/mutation.rs"},"region":{"startLine":464}}}],"partialFingerprints":{"codehealthFindingId/v1":"14b43259600bef0ecbb07f57af5d356cd4a6556b28884c6a8b8a6d24d12e16ac"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: release-form.NewRelease: FunctionTooLong \u2014 NewRelease runs 157 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 57 over it, 1.57\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/release-form.tsx"},"region":{"startLine":375}}}],"partialFingerprints":{"codehealthFindingId/v1":"f59b41f5a9af14efb18988253bf294924ed8ce57c32b3d5088de5601539b7ff8"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: RepositoryCellRouter: TooManyMethods \u2014 47 methods, declared across 2 files: cells/router.rs (38), router/replicas.rs (9). The bar is 30 methods; this is 17 over it, 1.57\u00D7 the bar. That list is where to read them, not a suggestion to split the file: the members belong to the type wherever they are declared, so moving them between files leaves the count unchanged. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-http-server/src/cells/router.rs"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac8bfa6c7ba20779a40d0d07dd117cab0cd4f4865acc28464f98eed1356530c0"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: blog/push-pipeline-visuals.tsx: FileTooLong \u2014 780 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 280 over it, 1.56\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/web/components/blog/push-pipeline-visuals.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4a4fa361ad3caabfaaeda37c7044e91c012f8c60013586a455833bacd0df64a"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: crab_auth_server::receive::derive_service_locator_evidence: FunctionTooLong \u2014 crab_auth_server::receive::derive_service_locator_evidence runs 156 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 56 over it, 1.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/crab-auth-server/src/receive.rs"},"region":{"startLine":1500}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3e18bcff76d00b676dd0326b4ac1a1edc2707b8b080931cb1dc6dc0c3ebf22a"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: crab_workflow::dvc_inventory::apply_lock_output_metadata: FunctionTooLong \u2014 crab_workflow::dvc_inventory::apply_lock_output_metadata runs 156 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 56 over it, 1.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/crab-workflow/src/dvc_inventory.rs"},"region":{"startLine":1376}}}],"partialFingerprints":{"codehealthFindingId/v1":"9842bd0dddebf2ed05c642dc0d4bdf95d243c41bc18cec220bf2a2d39d7ce008"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: crab::cmd::hydrate::run_selected_hydration: FunctionTooLong \u2014 crab::cmd::hydrate::run_selected_hydration 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":"crab/src/cmd/hydrate.rs"},"region":{"startLine":2322}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f9e893c9f07c45ab3572bbea697381b8ff76444309ef8f6225823ba3b05f69d"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: crab_auth_server::receive::workflow::commit_receive_inner: FunctionTooLong \u2014 crab_auth_server::receive::workflow::commit_receive_inner 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/crab-auth-server/src/receive/workflow.rs"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b9e51a7ecb37352caff4e3778f219cda8d7e0d63483e795c0fa30b5623f2763"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: content.DiffView: FunctionTooLong \u2014 DiffView runs 155 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 55 over it, 1.55\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/content.tsx"},"region":{"startLine":915}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7ac4d3ce07eaf70d2f1cd32da43e5af3d5ae1a7db8759560b36399385b9d8a8"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: blog-process-player.BlogProcessPlayer: FunctionTooLong \u2014 BlogProcessPlayer runs 155 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 55 over it, 1.55\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/web/components/blog/blog-process-player.tsx"},"region":{"startLine":316}}}],"partialFingerprints":{"codehealthFindingId/v1":"9570ab1039c83d39fecf89e2c581491856b3b34636a99100f476aaa074687216"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: bin/crab_cache.rs: FileTooLong \u2014 771 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), declaring 31 free functions. The bar is 500 significant lines; this is 271 over it, 1.54\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/crab-cache-server/src/bin/crab_cache.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"09a4447e7a41cc79bc6d9d0c92570d50d62e95bc0cc3d990a551c8a7aee9c2b5"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/api.rs: FileTooLong \u2014 767 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 267 over it, 1.53\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/crab-http-server/src/api.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6f0d84590403e26fe2a3e1579fbc31fd7c3cf127c542acb2e06484699357c9b"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: RemoteGitRepository: TooManyMethods \u2014 46 methods, declared across 2 files: src/repository.rs (28), src/pack.rs (18). The bar is 30 methods; this is 16 over it, 1.53\u00D7 the bar. That list is where to read them, not a suggestion to split the file: the members belong to the type wherever they are declared, so moving them between files leaves the count unchanged. This type is on a published API surface \u2014 a cargo-semver-checks gate in CI (.github/workflows/sdk.yml) declares its compatibility contractual \u2014 so moving members onto a smaller type is a breaking change for every consumer, not a local refactor. To reduce it, treat the split as an API migration: move each cohesive group onto its own published type and keep the old members as deprecated forwards for a deprecation period, removing them at the next compatibility break. Where the surface has to stay as it is, that is a decision to record rather than a change to make."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-remote-git/src/repository.rs"},"region":{"startLine":275}}}],"partialFingerprints":{"codehealthFindingId/v1":"c672842420203b707419a01f3d03b6b55e1beb4daa94c2377ef4e134e2315941"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: StoreChecker.verify_pointer_data: MethodTooLong \u2014 verify_pointer_data 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":"crab/src/cmd/fsck_store.rs"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b2a85f644644e6ebee98cd210b5a3ad215b36f609ddf5ec5811ac354be90128"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: crab_remote::protected::stage_plan: FunctionTooLong \u2014 crab_remote::protected::stage_plan 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/crab-remote/src/protected.rs"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"89d20b733f4ca85b5fc5941e080779afc27ebaf077c2100f06df93b21c5fbeee"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/metrics.rs: FileTooLong \u2014 760 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 260 over it, 1.52\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-s3-gateway/src/metrics.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"922f80232c1f7a047d44323063ce9e8b0d223b23a25e516aae721367044f6f13"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: crab::optimize::xorbs::executor::process_batch: FunctionTooLong \u2014 crab::optimize::xorbs::executor::process_batch runs 152 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 52 over it, 1.52\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/optimize/xorbs/executor.rs"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"c005c2ac98f205df2f5b10bd02e80870129a71f47b76cc9f308da4799391d102"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/ref_registry.rs: FileTooLong \u2014 757 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 257 over it, 1.51\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-metadata/src/ref_registry.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2376082ea4d524b584943c0f3190d4073bdfc6f3844afd731322874ff74a8b2"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: cmd/mirror.rs: FileTooLong \u2014 756 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), declaring 34 free functions. The bar is 500 significant lines; this is 256 over it, 1.51\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/cmd/mirror.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c55765a3fbd43df9cdc66262ceffef4e32f20fdea10ccae0adb74a20c87361a"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: crab::optimize::xorbs::reconcile::finalize: FunctionTooLong \u2014 crab::optimize::xorbs::reconcile::finalize runs 151 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 51 over it, 1.51\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/optimize/xorbs/reconcile.rs"},"region":{"startLine":805}}}],"partialFingerprints":{"codehealthFindingId/v1":"610c7683ed815d73a2e6594b90efa7df5d8e112cef1caaa712b63abb5bf578a4"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: crab::hydrate::batch::hydrate_batch: FunctionTooLong \u2014 crab::hydrate::batch::hydrate_batch 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":"crab/src/hydrate/batch.rs"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"7022d2315de5281bf395afad18ea278480d56d69c9a10963db6c2612d367b14e"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: crab_http_server::api::read: FunctionTooLong \u2014 crab_http_server::api::read 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/crab-http-server/src/api.rs"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9d158f321c401dd5f6d7de6e95560d33f27b9c1b3f39ef3f8b36f24fdf10af7"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: RemoteGitSnapshot.blame: MethodTooLong \u2014 blame 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/crab-remote-git/src/snapshot.rs"},"region":{"startLine":654}}}],"partialFingerprints":{"codehealthFindingId/v1":"5346d0c708670030ffe7230e5a7ea534976d6a5122b6d980bee086faf47a1844"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: cmd/fsck_store.rs: FileTooLong \u2014 749 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 72% of them inside a single declaration: StoreChecker (3 blocks, 75-853). The bar is 500 significant lines; this is 249 over it, 1.50\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":"crab/src/cmd/fsck_store.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7c3a5596bf7efcc79882e3cca691859887e5e0c3a0771eb1732a9e837b97bf7"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: Journal: ClassTooLong \u2014 599 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), 19 methods, 4 blocks, lines 289-1315. The bar is 400 significant lines; this is 199 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":"crab/src/import/journal.rs"},"region":{"startLine":289}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef7713e2cb8b089ad040d7e2231fb30ce434a41e25b23f7c16d8c8d87e881ea6"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: cost-ledger-visual.CostReceiptMixer: FunctionTooLong \u2014 CostReceiptMixer runs 149 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 49 over it, 1.49\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/web/components/blog/cost-ledger-visual.tsx"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"654b04bafb1fe2e69b2fce17d4461778da5050348e8f16225d2fac823456bd3a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: private_fs/windows.rs: FileTooLong \u2014 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). The bar is 500 significant lines; this is 244 over it, 1.49\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-cache/src/private_fs/windows.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"31324348a9f63e8ae1a754bdf5a79a9885d4416713545dd70eadaf45e626c724"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/nfs_mount.rs: FileTooLong \u2014 743 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 243 over it, 1.49\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-vfs/src/nfs_mount.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"874a6f2774a4e243e64f7dfca9ecc8c6c268038ce26e09dddc122d0763e0739d"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: crab::cmd::mount::print_mount_status_display: FunctionTooLong \u2014 crab::cmd::mount::print_mount_status_display runs 148 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 48 over it, 1.48\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/cmd/mount.rs"},"region":{"startLine":4567}}}],"partialFingerprints":{"codehealthFindingId/v1":"b38566ab037b164ef47b5e5c1a4f9b9eba5746c3551a95826bde051ed6be4232"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Index.adopt_file_hash: MethodTooLong \u2014 adopt_file_hash runs 148 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 48 over it, 1.48\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-staging/src/index.rs"},"region":{"startLine":5737}}}],"partialFingerprints":{"codehealthFindingId/v1":"3536e731373fbb746b8442738c21feaad2b196e4c1dee756498f92123b87cca6"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: GitObjectLocatorSession: ClassTooLong \u2014 590 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 21 methods, 2 blocks, lines 91-882. The bar is 400 significant lines; this is 190 over it, 1.48\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/crab-metadata/src/git_object_locator/reader.rs"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"728312c84620a9f561e06853edeca038e3832d03348666873a205e018f530325"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: mirror/reconcile.rs: FileTooLong \u2014 735 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 235 over it, 1.47\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/cmd/mirror/reconcile.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae7a5e0c2158afcfcb3635961303e6d31848042b506f9cfdfc97197ac1c18553"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: import/ingest.rs: FileTooLong \u2014 735 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 235 over it, 1.47\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/import/ingest.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ab373ef0bedab1456c8fad1a98e8517f9c85b7fdae1f7f1227374e85cdb2bb7"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/catalog.rs: FileTooLong \u2014 735 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 235 over it, 1.47\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-cache/src/catalog.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"84ff3461d1656b59c29fdcb96c1d6b6fd1848ad29e3ab7310c178ca882815518"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: crab::lfs::migrate::migrate_import_with_store_options: FunctionTooLong \u2014 crab::lfs::migrate::migrate_import_with_store_options runs 147 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 47 over it, 1.47\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/lfs/migrate.rs"},"region":{"startLine":1395}}}],"partialFingerprints":{"codehealthFindingId/v1":"06a86bf9ff62c41194928d390b8ec3a0f8887980e73f6b0461097c5348e19755"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: xorbs/reconcile.rs: FileTooLong \u2014 731 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 231 over it, 1.46\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/optimize/xorbs/reconcile.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e2a1a77defc89127ec773a501a96759ba3ff7210c075d3de20f5ae32a0f1b7b"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/prepare.rs: FileTooLong \u2014 730 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 230 over it, 1.46\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-remote/src/prepare.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc55b0b8944b40f5212bad3298a203ccba30604cc2c0b32dbe84640aa10b1719"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: crab::cmd::compact::run_compact_inner: FunctionTooLong \u2014 crab::cmd::compact::run_compact_inner runs 146 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 46 over it, 1.46\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/cmd/compact.rs"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"166099e24c353eceaaee42502cfe7e6719ebcb8a988ebd2b37f6b49495b62d25"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: crab::cmd::init::run_init_inner: FunctionTooLong \u2014 crab::cmd::init::run_init_inner runs 146 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 46 over it, 1.46\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/cmd/init.rs"},"region":{"startLine":233}}}],"partialFingerprints":{"codehealthFindingId/v1":"53a11a59720ec8f4cbfda7961e4fce5f93297894bf003ccac5713c2415727a2e"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: crab_workflow::cache::pull_remote_with_artifact_stores: FunctionTooLong \u2014 crab_workflow::cache::pull_remote_with_artifact_stores runs 146 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 46 over it, 1.46\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-workflow/src/cache.rs"},"region":{"startLine":1090}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f9dbdcde813ec5ba5ab1f846c1f5c15715f40fac6340d99870bfdb7dbe2028f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/pack.rs: FileTooLong \u2014 729 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 229 over it, 1.46\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-git/src/pack.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0714e649ec3ae676ff3a0da0e8f6598534284c18c580f4ba647a4e5d2635ca57"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: LfsObjectStore: ClassTooLong \u2014 581 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), 37 methods, 2 blocks, lines 119-1062. The bar is 400 significant lines; this is 181 over it, 1.45\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/crab-lfs/src/object_store.rs"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"5184be82631665166b9ce06d21a4bc267e0d49a4bd09d6a06a9cced5285acb60"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: crab_s3_gateway::metrics::describe_metrics: FunctionTooLong \u2014 crab_s3_gateway::metrics::describe_metrics runs 145 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 45 over it, 1.45\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-s3-gateway/src/metrics.rs"},"region":{"startLine":817}}}],"partialFingerprints":{"codehealthFindingId/v1":"2dfd80bfcb6bc820ae0636769e2f2f30a45e69c9c874b729118dad452fd410ad"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: code-symbols-panel.CodeSymbolsPanel: FunctionTooLong \u2014 CodeSymbolsPanel runs 144 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 44 over it, 1.44\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/code-symbols-panel.tsx"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"18bf0f38e3e18a3a06152a61bd753b21f74138f0a63b02026dbf4190ef61c201"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: reconstruction-visuals.ReconstructionWorkbench: FunctionTooLong \u2014 ReconstructionWorkbench runs 144 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 44 over it, 1.44\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/web/components/blog/reconstruction-visuals.tsx"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"17526eab030595b9f39965efc7eee1932c0f328510fade4bab23d966c9d1688e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: pulls/storage.rs: FileTooLong \u2014 719 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), declaring 34 free functions. The bar is 500 significant lines; this is 219 over it, 1.44\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/crab-http-server/src/pulls/storage.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"51c92199a837879f197d359d07675195b605183150f83f716ff3cf9d05847f79"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: StoreLayout: TooManyMethods \u2014 43 methods. The bar is 30 methods; this is 13 over it, 1.43\u00D7 the bar. This type is on a published API surface \u2014 a cargo-semver-checks gate in CI (.github/workflows/sdk.yml) declares its compatibility contractual \u2014 so moving members onto a smaller type is a breaking change for every consumer, not a local refactor. To reduce it, treat the split as an API migration: move each cohesive group onto its own published type and keep the old members as deprecated forwards for a deprecation period, removing them at the next compatibility break. Where the surface has to stay as it is, that is a decision to record rather than a change to make."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-storage/src/layout.rs"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"dcf9f0053bd7822f05fc7d8eefeedd165ab1bd199550a9d11da319508e0510c7"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: crab::cmd::metadb::maintain_split_commit_graph: FunctionTooLong \u2014 crab::cmd::metadb::maintain_split_commit_graph runs 143 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 43 over it, 1.43\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/cmd/metadb.rs"},"region":{"startLine":1131}}}],"partialFingerprints":{"codehealthFindingId/v1":"78925534bb0dcb8463dd5759914b8fb508a866978f04d104d22760b32c77a942"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: crab::cmd::mirror::reconcile::apply_plan: FunctionTooLong \u2014 crab::cmd::mirror::reconcile::apply_plan runs 143 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 43 over it, 1.43\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/cmd/mirror/reconcile.rs"},"region":{"startLine":621}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4b851c46e56114b5e3a23dacdb39bab02b67ba44d3dbe937cf14a391bdae8ee"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: RemoteGitRepository.try_consolidate_complete_pack: MethodTooLong \u2014 try_consolidate_complete_pack runs 143 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 43 over it, 1.43\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-remote-git/src/pack.rs"},"region":{"startLine":865}}}],"partialFingerprints":{"codehealthFindingId/v1":"38bb45c4a593729871ab94a8dbb16f492e58350ecc9d2332bb555f3340b42704"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/contents.rs: FileTooLong \u2014 714 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 214 over it, 1.43\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/crab-http-server/src/contents.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a972f4323182c7f1c23ac3feecbc5fce47c62f42f4e155cb725d9b67174957c"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: crab_remote_git::reader::parse_pack_index: FunctionTooLong \u2014 crab_remote_git::reader::parse_pack_index runs 142 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 42 over it, 1.42\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-remote-git/src/reader.rs"},"region":{"startLine":2407}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2167b86bea03e9afe972d7ce3c1d6c0fc164b83b15c4d3d0bb6f3fb388f39cc"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: LocalCache: ClassTooLong \u2014 566 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), 53 methods, 2 blocks, lines 181-1067. The bar is 400 significant lines; this is 166 over it, 1.42\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/crab-cache/src/local_cache.rs"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"27522c4c6f4f587ea6c17823b90122b23cb0bd19e1ee779638babd5b3d6e3eff"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Gateway.copy_object: MethodTooLong \u2014 copy_object runs 141 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 41 over it, 1.41\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values 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/crab-s3-gateway/src/gateway.rs"},"region":{"startLine":2030}}}],"partialFingerprints":{"codehealthFindingId/v1":"313a9955bb933ae47a2e52becdc4dfdd4b0cf0be41522a9d32022d0084627e3a"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: crab_workflow::dvc_inventory::parse_pointer: FunctionTooLong \u2014 crab_workflow::dvc_inventory::parse_pointer runs 141 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 41 over it, 1.41\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values 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/crab-workflow/src/dvc_inventory.rs"},"region":{"startLine":834}}}],"partialFingerprints":{"codehealthFindingId/v1":"2dcd44cd77b9b536c553abcf7cc7031302ee9b6bf722189aa2454ec26cebc726"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: page.UseCasesPage: FunctionTooLong \u2014 UseCasesPage runs 141 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 41 over it, 1.41\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/web/app/use-cases/page.tsx"},"region":{"startLine":345}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf69852cbe27da39415360b63f6fe9b9f3fd3f46875117267fd0abc5a3938f95"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: Metrics: ClassTooLong \u2014 561 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), 127 methods, 6 blocks, lines 325-1406. The bar is 400 significant lines; this is 161 over it, 1.40\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/core/metrics.rs"},"region":{"startLine":325}}}],"partialFingerprints":{"codehealthFindingId/v1":"890f521dae7797b8bf0f7bce4c8d6b40ecc89a84715cfe34c9ebe04cd9e69347"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: RemoteGitRuntime: ClassTooLong \u2014 561 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), 37 methods, 3 blocks, lines 273-1111. The bar is 400 significant lines; this is 161 over it, 1.40\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-remote-git/src/runtime.rs"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc6f80d9c2890e3cf187d3d08173187103f93fa102a52822a8e2c5307ba02850"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: cmd/workflow_checkpoint.rs: FileTooLong \u2014 701 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 201 over it, 1.40\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":"crab/src/cmd/workflow_checkpoint.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c375129829b88556f57b0becdffc5b4be2a68c4f4d0bc57bb6465dd1cefd1e8"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: first-workflow-learning-labs.DailyWorkflowStateLab: FunctionTooLong \u2014 DailyWorkflowStateLab runs 140 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 40 over it, 1.40\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/web/components/library/first-workflow-learning-labs.tsx"},"region":{"startLine":333}}}],"partialFingerprints":{"codehealthFindingId/v1":"afff9d728ea947fca12f33ffe9431a3f35f4f69e3ce1932c63c8bf5b18ae7d26"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/checks.rs: FileTooLong \u2014 699 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), declaring 37 free functions. The bar is 500 significant lines; this is 199 over it, 1.40\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/crab-http-server/src/checks.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7002e3e91c8cd9438c706725cbc184ceb57f3ae5993b2ddca98fbb30021e5a90"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: library/first-workflow-learning-labs.tsx: FileTooLong \u2014 697 significant lines (blank, comment-only and punctuation-only lines excluded). 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":"packages/web/components/library/first-workflow-learning-labs.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ddf5a858df6ebc5505bae6fa25f7e08a4df87ba48fdead1322c17609276152f"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: crab_http_server::git::upload_pack: FunctionTooLong \u2014 crab_http_server::git::upload_pack 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/crab-http-server/src/git.rs"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"d83df0b32e491467629d6a839ed3f8a069855ac13c691b6eab19bf5e1b00b18c"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: crab_sdk::client::mutation::commit::build_pack: FunctionTooLong \u2014 crab_sdk::client::mutation::commit::build_pack 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/crab-sdk/src/client/mutation/commit.rs"},"region":{"startLine":387}}}],"partialFingerprints":{"codehealthFindingId/v1":"11275b863693ead25927a53ef0538928144b88d6395d8a80503241ef277dfab7"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Index.lifecycle_health: MethodTooLong \u2014 lifecycle_health 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/crab-staging/src/index.rs"},"region":{"startLine":8803}}}],"partialFingerprints":{"codehealthFindingId/v1":"937677137512dfb2cb9214594b61ebd3b7e9d1811fb44cd056f90108d2112e06"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: git-access.GitAccess: FunctionTooLong \u2014 GitAccess runs 139 significant lines (blank, comment-only and punctuation-only lines excluded) 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":"packages/ui/src/git-access.tsx"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"80e8067051323c690a6cea6d674afcd327404dc2236e3ca52b330f8a2efd7405"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: mobile-nav.MobileNav: FunctionTooLong \u2014 MobileNav runs 139 significant lines (blank, comment-only and punctuation-only lines excluded) 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":"packages/web/components/navigation/mobile-nav.tsx"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"82c550c0c36be69266eba7db06235a8362289b7a1be9ea552e1cb07314d077d1"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: pulls.NewPull: FunctionTooLong \u2014 NewPull runs 138 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 38 over it, 1.38\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pulls.tsx"},"region":{"startLine":462}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ebf5f4dd05d30a0962aa215ac2605f6da0c6c72e628b4db60383356ec378743"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: gc-visuals.GcObjectEvidenceLab: FunctionTooLong \u2014 GcObjectEvidenceLab runs 138 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 38 over it, 1.38\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/web/components/blog/gc-visuals.tsx"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"83765fcbff2b7521ef55b2790165422d99073290a653f46dcaa2b3a9ffc7655c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/issues.tsx: FileTooLong \u2014 686 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 186 over it, 1.37\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/issues.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf2163203a2ea1f61d8d9f7bd43d9b2617f0507d594f60da3d68599881682d38"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: crab::cmd::replica::verify_evidence_file: FunctionTooLong \u2014 crab::cmd::replica::verify_evidence_file runs 137 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 37 over it, 1.37\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/cmd/replica.rs"},"region":{"startLine":4202}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb4b45629a04616f052110ee37e1de0f2f9371107e7d0d032182cb816efbffa1"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: crab_auth_server::receive::commit_service_git_locators_with_source: FunctionTooLong \u2014 crab_auth_server::receive::commit_service_git_locators_with_source runs 137 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 37 over it, 1.37\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-auth-server/src/receive.rs"},"region":{"startLine":1765}}}],"partialFingerprints":{"codehealthFindingId/v1":"b82a950d860a79b4981eb48e4c7f91043b1dda9ade23f80a3acb2668cfe5bd72"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: pulls.PullList: FunctionTooLong \u2014 PullList runs 137 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 37 over it, 1.37\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pulls.tsx"},"region":{"startLine":305}}}],"partialFingerprints":{"codehealthFindingId/v1":"9de21aa36bfbada77d6fdce0c2e9a8fdbc4c3aa9b3d374aa0eac5e8105508791"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: repository/operations.rs: FileTooLong \u2014 683 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 183 over it, 1.37\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-http-server/src/cells/repository/operations.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"68be20d7215ad65698c158c63ec7cc7bb1fac77a3004ee967745b48998edfbbd"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: managed/openapi.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), declaring 31 free functions. 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/crab-auth/src/managed/openapi.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"50f3783d3c4f4804d5ee773702912a427f24660cbcbf6d5fa3f177070621f4e7"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/params.rs: FileTooLong \u2014 676 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 176 over it, 1.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/crab-workflow/src/params.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e9ecce13f037567afff641cca9a19cf24ade64e1f4daafb2b533d9a3ea498f1"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: StoreChecker: ClassTooLong \u2014 540 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), 13 methods, 3 blocks, lines 75-853. The bar is 400 significant lines; this is 140 over it, 1.35\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/cmd/fsck_store.rs"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9b09fb481951c55059d9d6d594d1471784484b1fc11d7c7eed9c3d78351107b"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: crab::cmd::migrate::ingest_verified_sources: FunctionTooLong \u2014 crab::cmd::migrate::ingest_verified_sources runs 135 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 35 over it, 1.35\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/cmd/migrate.rs"},"region":{"startLine":1858}}}],"partialFingerprints":{"codehealthFindingId/v1":"10feb8a75bc43cbd2e4652e30930a325d965ce47c373c3c1853cfbcefa0858c9"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Metrics.snapshot: MethodTooLong \u2014 snapshot runs 135 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 35 over it, 1.35\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/core/metrics.rs"},"region":{"startLine":1193}}}],"partialFingerprints":{"codehealthFindingId/v1":"d56c416bbcf77d6a8a773a5d7f403fa6db82a3dc5c9b9690a4a92de73ed8375f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/ipc_server.rs: FileTooLong \u2014 672 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 172 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/crab-vfs/src/ipc_server.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f16cffdcc13f2c3b785b4e78bab45bc8194a351efb4c515ee2ee2be112e11af"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: crab::cmd::download::run_download: FunctionTooLong \u2014 crab::cmd::download::run_download runs 134 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 34 over it, 1.34\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/cmd/download.rs"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"81b5845a5e5bca8dcbb6d4e12642859599dcc4285a63ff2a79311bb6208455ff"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: crab::cmd::mount::run_mount_with_new_cli: FunctionTooLong \u2014 crab::cmd::mount::run_mount_with_new_cli runs 134 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 34 over it, 1.34\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/cmd/mount.rs"},"region":{"startLine":538}}}],"partialFingerprints":{"codehealthFindingId/v1":"66d069c9ffe99e7c356d085946cf7f3ffdfc7d7f1852f1cf11611ef4fa1d0c9d"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: crab_git::incoming_pack::quarantine: FunctionTooLong \u2014 crab_git::incoming_pack::quarantine runs 134 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 34 over it, 1.34\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-git/src/incoming_pack.rs"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"f37f087d7904e9852dd75111203ec5ee81abff5ceeb2351181bc9edd8d2e1a12"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: crab_sdk::local::push::content::prepare: FunctionTooLong \u2014 crab_sdk::local::push::content::prepare runs 134 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 34 over it, 1.34\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-sdk/src/local/push/content.rs"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"6aaf51ef2454ca9723eea02b27d912e045eff8917363325aae52cacc3491af79"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: crab_staging::stream::stream_chunk_and_stage_producer: FunctionTooLong \u2014 crab_staging::stream::stream_chunk_and_stage_producer runs 134 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 34 over it, 1.34\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-staging/src/stream.rs"},"region":{"startLine":1052}}}],"partialFingerprints":{"codehealthFindingId/v1":"0efdca10d8216248dc5e2415d2040668947e10694d41f36660a6f8c5a29afb66"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/metrics.rs: FileTooLong \u2014 669 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 169 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/crab-cache-server/src/metrics.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f85497265048529ff68ec227a73b9a31c0f2e8b7dc82e4b44537967b49ed348"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: StagingAreaReadOnly: ClassTooLong \u2014 534 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), 49 methods, 2 blocks, lines 311-4553. The bar is 400 significant lines; this is 134 over it, 1.34\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/crab-staging/src/lib.rs"},"region":{"startLine":311}}}],"partialFingerprints":{"codehealthFindingId/v1":"779b8d0b18a9d709a350924c5ce7a068cedb32fca6ddaca65f0ebbef3765d5eb"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: crab_remote::prepare::prepare: FunctionTooLong \u2014 crab_remote::prepare::prepare 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/crab-remote/src/prepare.rs"},"region":{"startLine":841}}}],"partialFingerprints":{"codehealthFindingId/v1":"c97a989b1b844619bb49c0833a90ca21c32305b066d35053985f9adfdbb875ff"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: data-explorer.DataTable: FunctionTooLong \u2014 DataTable runs 133 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 33 over it, 1.33\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/data-explorer.tsx"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ee3a5bd7356c81df8430246fde6dc502db8846387d9d06b22877ba62d9d8592"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/private_fs.rs: FileTooLong \u2014 664 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 164 over it, 1.33\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-cache/src/private_fs.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc7e5eebcf96a62bfb0e2c066cff89b635885815c4e3d035fce4c3150cba163f"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: content-editor.UploadFiles: FunctionTooLong \u2014 UploadFiles runs 131 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 31 over it, 1.31\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/content-editor.tsx"},"region":{"startLine":333}}}],"partialFingerprints":{"codehealthFindingId/v1":"863b5b869230e014fd180deb65fff3cbdefbebd0d6aab94276618e59cbb5b201"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: cmd/dehydrate.rs: FileTooLong \u2014 651 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 151 over it, 1.30\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/cmd/dehydrate.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"57685814443260a5e88961a4b2fc51d0b6f275da3159970d180f07c6876a005b"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/mutation.rs: FileTooLong \u2014 651 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 151 over it, 1.30\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-sdk/src/mutation.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5803e2a3e326a8d6b23c96db248a749fdcc1c21a7f655a3ac81760d42858d7a4"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFunctions: crab::metadata::manifest: TooManyFunctions \u2014 39 free functions. The bar is 30 free functions; this is 9 over it, 1.30\u00D7 the bar. This type is on a published API surface \u2014 a cargo-semver-checks gate in CI (.github/workflows/sdk.yml) declares its compatibility contractual \u2014 so moving members onto a smaller type is a breaking change for every consumer, not a local refactor. To reduce it, treat the split as an API migration: move each cohesive group onto its own published type and keep the old members as deprecated forwards for a deprecation period, removing them at the next compatibility break. Where the surface has to stay as it is, that is a decision to record rather than a change to make."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/metadata/manifest.rs"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ea7da734f40821fe28c8528d4960bd55ea6a7d21acb5a24912f31de89474c41"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: crab::cmd::replica::doctor_fix_plan: FunctionTooLong \u2014 crab::cmd::replica::doctor_fix_plan 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":"crab/src/cmd/replica.rs"},"region":{"startLine":9591}}}],"partialFingerprints":{"codehealthFindingId/v1":"5053ada64cd4d1854dd047a028b1092f4426b67a2f93a69b0c10742d96d3f18c"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: RepositoryCellRouter.rebalance_once: MethodTooLong \u2014 rebalance_once 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/crab-http-server/src/cells/router.rs"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f56962c5b2c5acabe15e217df3f9a40831a6358a8a90729103bbd8ac87eda61"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: GitObjectLocatorWriter.write_locations_inner: MethodTooLong \u2014 write_locations_inner 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/crab-metadata/src/git_object_locator/writer.rs"},"region":{"startLine":558}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd6b9738b34a69d509c47c402f1ac432b53be11fa27adce396b1a8a4d9f9b5a5"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: storage/store.rs: FileTooLong \u2014 647 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 61% of them inside a single declaration: Store (5 blocks, 325-866). The bar is 500 significant lines; this is 147 over it, 1.29\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/storage/store.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6aa3289211a2bd7c6674680fd217fdb6b279c5c4ab36ff56fc6ccf627c41feb3"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: AwsS3ReplicationControlPlaneClient: ClassTooLong \u2014 517 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), 11 methods, 3 blocks, lines 3979-4652. The bar is 400 significant lines; this is 117 over it, 1.29\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":"crab/src/replication/mod.rs"},"region":{"startLine":3979}}}],"partialFingerprints":{"codehealthFindingId/v1":"5559fd04477d9c5c8d4f268a681efbbe9ef07810986411ad056b4d0d5365ed84"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: crab::cmd::diff_driver::run_diff_driver: FunctionTooLong \u2014 crab::cmd::diff_driver::run_diff_driver runs 129 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 29 over it, 1.29\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/cmd/diff_driver.rs"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2c6d5f3686d7536ee2743f5c28a40afb36a5f532fad436e7b6c6abb75786c40"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: crab::cmd::migrate::write_migration_lock: FunctionTooLong \u2014 crab::cmd::migrate::write_migration_lock runs 129 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 29 over it, 1.29\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/cmd/migrate.rs"},"region":{"startLine":1685}}}],"partialFingerprints":{"codehealthFindingId/v1":"af173924050bee93b6224c41f034aef3ea10d810dceabbb5978f5e8092c6550a"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: crab::git::remote_helper::handle_option: FunctionTooLong \u2014 crab::git::remote_helper::handle_option runs 129 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 29 over it, 1.29\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/git/remote_helper.rs"},"region":{"startLine":1118}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6ffeb557d5af795e37c69eea3cfd77d84d9a29a1d54a05f5f16f4e7b59fa06a"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: crab::lfs::migrate::migrate_export_with_options: FunctionTooLong \u2014 crab::lfs::migrate::migrate_export_with_options runs 129 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 29 over it, 1.29\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/lfs/migrate.rs"},"region":{"startLine":2109}}}],"partialFingerprints":{"codehealthFindingId/v1":"4edaeed06a4cacec79f20273e3c9a8eb20e69e399c1908e44a6e0a334291205c"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: crab_auth_server::view::objects::commit_view_metadb: FunctionTooLong \u2014 crab_auth_server::view::objects::commit_view_metadb runs 129 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 29 over it, 1.29\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-auth-server/src/view/objects.rs"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae12db24b84594d3ee884845edcec50c283483fcf501141766fc3ce83d51b6a4"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: crab_metadata::path_state::append_path_state: FunctionTooLong \u2014 crab_metadata::path_state::append_path_state runs 129 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 29 over it, 1.29\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-metadata/src/path_state.rs"},"region":{"startLine":294}}}],"partialFingerprints":{"codehealthFindingId/v1":"964a1796808e1353aa10b88cce63d05f29461f1582eef33afd298eb497fab947"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: issues.IssueList: FunctionTooLong \u2014 IssueList runs 129 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 29 over it, 1.29\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/issues.tsx"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"18b3d34ed190a22ce98c94d1b074dad6080c184370a06827f0989160e31e6c11"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: read/mod.rs: FileTooLong \u2014 644 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 144 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":"crab/src/read/mod.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"df4be6bca775f5260bda42bc3c02d32d88042fde47cfe9a5b69bb130756c37d7"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: CrabNfsFs: ClassTooLong \u2014 512 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), 22 methods, 4 blocks, lines 43-1180. The bar is 400 significant lines; this is 112 over it, 1.28\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-vfs/src/nfs.rs"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"40977a14e9250de000334c44c11971206c325add380e7deccc21805878db9fda"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: cache/page.tsx: FileTooLong \u2014 640 significant lines (blank, comment-only and punctuation-only lines excluded), about 74% of them inside a single declaration: CachePage (255-751). The bar is 500 significant lines; this is 140 over it, 1.28\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/web/app/cache/page.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a18a42062ae43bffe0276a2aa56cad9f157402b0b7ca5977d211ba7cf7331af6"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: CleanSession.crab_clean_prepared_stream: MethodTooLong \u2014 crab_clean_prepared_stream 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":"crab/src/git/clean.rs"},"region":{"startLine":2243}}}],"partialFingerprints":{"codehealthFindingId/v1":"176f87e8a29582743b62d3f6dd49269c490c6814bc8ece3782eaa535f34e3a07"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: NativePushProgress.build_jsonl_progress_payload: MethodTooLong \u2014 build_jsonl_progress_payload 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":"crab/src/git/progress.rs"},"region":{"startLine":1636}}}],"partialFingerprints":{"codehealthFindingId/v1":"65d9c3cdc48f4c6348f4013d8d55df139baaa87807dadb3d5c25145807fceba4"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: crab::tier::provider::s3::parse_xml_to_sdk_rules: FunctionTooLong \u2014 crab::tier::provider::s3::parse_xml_to_sdk_rules 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":"crab/src/tier/provider/s3.rs"},"region":{"startLine":677}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ff12f988cc86201e8f74d044ab4dcfd037c7e793629a5c5032ead7c94bf5a0b"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: pdf-preview.PdfPreview: FunctionTooLong \u2014 PdfPreview runs 128 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 28 over it, 1.28\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pdf-preview.tsx"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7b9346ea803e0b71d7d6f4900bca2995c0512a2472d5f40e06f17415db888bc"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: crab-lfs-direct-storage-lab.CrabLfsDirectStorageLab: FunctionTooLong \u2014 CrabLfsDirectStorageLab runs 128 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 28 over it, 1.28\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/web/components/library/crab-lfs-direct-storage-lab.tsx"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"edb4e5edafa79755656e022dbcb9dd7638560115ac2ce6071b6f6fb603af0341"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: cell-issue-fleet/load.py: FileTooLong \u2014 639 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 139 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/crab-http-server/deploy/cell-issue-fleet/load.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ca50627e545b72630fc470ef9017589c2e219938af2327817ba97ce11ad736b"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/manifest_store.rs: FileTooLong \u2014 639 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), declaring 31 free functions. The bar is 500 significant lines; this is 139 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/crab-metadata/src/manifest_store.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"486ae048d4b87c126e95a640734524a71f773acc8a3eddae1e4c94c2fb119dbd"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/attributes.rs: FileTooLong \u2014 639 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 139 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/crab-s3-gateway/src/attributes.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b5d79a395d8056b75b7a76efca78c3760595c92e50162dff8f3eafe54088476"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/data-workbench.tsx: FileTooLong \u2014 638 significant lines (blank, comment-only and punctuation-only lines excluded), about 60% of them inside a single declaration: DataWorkbench (301-737). The bar is 500 significant lines; this is 138 over it, 1.28\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/data-workbench.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ac997cdec2f55adf86ff086b7b8c6b9f87610ee42584b894ea070c40ffdb86c"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: CacheStore: TooManyMethods \u2014 38 methods. The bar is 30 methods; this is 8 over it, 1.27\u00D7 the bar. This type is on a published API surface \u2014 a cargo-semver-checks gate in CI (.github/workflows/sdk.yml) declares its compatibility contractual \u2014 so moving members onto a smaller type is a breaking change for every consumer, not a local refactor. To reduce it, treat the split as an API migration: move each cohesive group onto its own published type and keep the old members as deprecated forwards for a deprecation period, removing them at the next compatibility break. Where the surface has to stay as it is, that is a decision to record rather than a change to make."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-cache-server/src/cache_store.rs"},"region":{"startLine":356}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcddc281533def0b50099d84972c021d259e530d8b070ecd16d4354b3266a18a"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFields: ConfigOverlay: TooManyFields \u2014 38 stored fields. The bar is 30 stored fields; this is 8 over it, 1.27\u00D7 the bar. This is width in DATA, not behaviour: every reader that takes the whole type couples to all of its fields, so a change to any one of them is a change every reader has to be checked against. To reduce it, group the fields that are read together by the same callers into a smaller type of their own, and have this one hold that type as a single member \u2014 each reader then names only the group it uses."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/core/config.rs"},"region":{"startLine":1407}}}],"partialFingerprints":{"codehealthFindingId/v1":"30d1a9b379d4bb388a85cc8b083059499f1b65d7a72eb42562bdb161f635ec06"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/snapshot.rs: FileTooLong \u2014 631 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 131 over it, 1.26\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-vfs/src/snapshot.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b95ebd3f292a7458ed921841aae2abb200a3d319ea4c56d8d583f36b89b37de3"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/content-editor.tsx: FileTooLong \u2014 631 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 131 over it, 1.26\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/content-editor.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fafb2ad249f4781b5087f857a280d1e3635ddf6a28d1bb971c44e4c8ef2e031"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: crab::cmd::gc::stream_reachable_bulk_objects: FunctionTooLong \u2014 crab::cmd::gc::stream_reachable_bulk_objects 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":"crab/src/cmd/gc/mod.rs"},"region":{"startLine":2235}}}],"partialFingerprints":{"codehealthFindingId/v1":"92e071acdece332fcc374abb11e7cc559a3a480a621eee7d37e8ef2af5c3f4f0"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: lazy-checkout-visuals.MaterializationPackingDesk: FunctionTooLong \u2014 MaterializationPackingDesk runs 126 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 26 over it, 1.26\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/web/components/blog/lazy-checkout-visuals.tsx"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6a1e84a4570da4528030f41d69d0bf19b10c6d07daed54ee8eb689258a8c5f4"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: testimonials-carousel.TestimonialsCarousel: FunctionTooLong \u2014 TestimonialsCarousel runs 126 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 26 over it, 1.26\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/web/components/marketing/testimonials-carousel.tsx"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"5abd3757b6d7ee013c682cf78df74b3fbd1906ecaafb18ebaf4b08af297d3899"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/pulls.rs: FileTooLong \u2014 628 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 128 over it, 1.26\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-http-server/src/pulls.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"dadd47c13e6a6394e67a153d856d561b830cac4343579d75577ad087ab4aaf64"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: import/assemble.rs: FileTooLong \u2014 626 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 126 over it, 1.25\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/import/assemble.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"36f4d2ca9690335717e5440e7fc676ead094d95070863f53b736e25c59364781"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/path_state.rs: FileTooLong \u2014 625 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 125 over it, 1.25\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-metadata/src/path_state.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbea04da00204cea4e26d61d3fb59893e096a2012600cf2f8268a0155a9c8bad"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/local.rs: FileTooLong \u2014 625 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 125 over it, 1.25\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-remote/src/local.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"83b7553ae45b1babb5c937b6e6d4d14accf4539b505a5db62dea7892a1e17083"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: crab::cmd::dehydrate::run_dehydrate_in: FunctionTooLong \u2014 crab::cmd::dehydrate::run_dehydrate_in 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":"crab/src/cmd/dehydrate.rs"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"31f83466b8300a43916e68af50f64d70b222244acd28686b8c3e77224499ca66"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Index.append_recording_remote_chunks_in_tx: MethodTooLong \u2014 append_recording_remote_chunks_in_tx 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/crab-staging/src/index.rs"},"region":{"startLine":3196}}}],"partialFingerprints":{"codehealthFindingId/v1":"000f91a4f45f66a48d0c6667ebfacef86d2fa4994f89b369a920eed1f82cfc42"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: refs.RefRow: FunctionTooLong \u2014 RefRow runs 125 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 25 over it, 1.25\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/refs.tsx"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"30c7ddc12b58e81dfd339f3f468a05e9777f0ba75636db4339d30771c3587a23"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: settings.ArchiveSettings: FunctionTooLong \u2014 ArchiveSettings runs 125 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 25 over it, 1.25\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/settings.tsx"},"region":{"startLine":776}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2b536df443efea59125de322ef8b6c1bfdb1402a714e253946cc460fef28beb"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: cmd/artifacts.rs: FileTooLong \u2014 623 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 123 over it, 1.25\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/cmd/artifacts.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"daab64cc8441e9e2db1f741a8fe441692d7cc73a1707f5671b7cb49df8c93c4f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: cmd/status.rs: FileTooLong \u2014 622 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 122 over it, 1.24\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/cmd/status.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e2afd6cc3f7142ba85bc4c204982fff8239860610e21cdd20d72a22e2e9afe2"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: repository/checks.rs: FileTooLong \u2014 621 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 121 over it, 1.24\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-http-server/src/cells/repository/checks.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"81afac37ba0a8dd90bb9a971ce6eecd31cb2c55a7158900726fae5c68b105c0a"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: crab::cmd::add::filter_clean_indexed_candidates: FunctionTooLong \u2014 crab::cmd::add::filter_clean_indexed_candidates 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":"crab/src/cmd/add.rs"},"region":{"startLine":2886}}}],"partialFingerprints":{"codehealthFindingId/v1":"3908bf6f0280d39416308079eebd44832f6e3e7d0d9c11afdfbcd1faa3c78ab5"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: crab::git::incremental_walk::walk_incremental_with_hidden: FunctionTooLong \u2014 crab::git::incremental_walk::walk_incremental_with_hidden 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":"crab/src/git/incremental_walk.rs"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6d4095e5d0403ea68075b2551c799c93b7f25dcc5394dc0aeb9d54852f692ce"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: RemoteGitReader.read_packed_many_with_session_and_locators: MethodTooLong \u2014 read_packed_many_with_session_and_locators 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/crab-remote-git/src/reader.rs"},"region":{"startLine":764}}}],"partialFingerprints":{"codehealthFindingId/v1":"92a1c708ace3c4a4c83b9293a291bd63cb2c1a105c8c03a5012b3db70865a8c3"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: XorbBuilder.push_precompressed_with_reserve_and_admission: MethodTooLong \u2014 push_precompressed_with_reserve_and_admission 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/crab-xet/src/xorb/builder.rs"},"region":{"startLine":536}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9e3ab0ba861d56980900f6ed5aeb20f8e4089b9b374dcf587ee4146b18d209b"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: LfsObjectStore: TooManyMethods \u2014 37 methods. The bar is 30 methods; this is 7 over it, 1.23\u00D7 the bar. This type is on a published API surface \u2014 a cargo-semver-checks gate in CI (.github/workflows/sdk.yml) declares its compatibility contractual \u2014 so moving members onto a smaller type is a breaking change for every consumer, not a local refactor. To reduce it, treat the split as an API migration: move each cohesive group onto its own published type and keep the old members as deprecated forwards for a deprecation period, removing them at the next compatibility break. Where the surface has to stay as it is, that is a decision to record rather than a change to make."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-lfs/src/object_store.rs"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"272b7dba1bd101d2056a5212f0b8e3dc628e6c8e548660f1811409126d917f30"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: RemoteGitRuntime: TooManyMethods \u2014 37 methods. The bar is 30 methods; this is 7 over it, 1.23\u00D7 the bar. This type is on a published API surface \u2014 a cargo-semver-checks gate in CI (.github/workflows/sdk.yml) declares its compatibility contractual \u2014 so moving members onto a smaller type is a breaking change for every consumer, not a local refactor. To reduce it, treat the split as an API migration: move each cohesive group onto its own published type and keep the old members as deprecated forwards for a deprecation period, removing them at the next compatibility break. Where the surface has to stay as it is, that is a decision to record rather than a change to make."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-remote-git/src/runtime.rs"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fa4217869feff7d2cbb43b7f3db9cac007a7e04ed64794509c8d87d27afd24c"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Coordinator: TooManyMethods \u2014 37 methods. The bar is 30 methods; this is 7 over it, 1.23\u00D7 the bar. This type is on a published API surface \u2014 a cargo-semver-checks gate in CI (.github/workflows/sdk.yml) declares its compatibility contractual \u2014 so moving members onto a smaller type is a breaking change for every consumer, not a local refactor. To reduce it, treat the split as an API migration: move each cohesive group onto its own published type and keep the old members as deprecated forwards for a deprecation period, removing them at the next compatibility break. Where the surface has to stay as it is, that is a decision to record rather than a change to make."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-vfs/src/coordinator.rs"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb0df7974faa6f0d75cb9c7b44bb53b5bc17d7110a4cf45475f9b9d29d06c76b"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFields: PushConfig: TooManyFields \u2014 37 stored fields beside 3 methods. The bar is 30 stored fields; this is 7 over it, 1.23\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":"crab/src/git/push.rs"},"region":{"startLine":2839}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c5092d2976a19a211aeb9ad4faab807192bf77a07063d163d4b00c0e1aa6abb"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFields: RuntimeSnapshot: TooManyFields \u2014 37 stored fields beside 1 method. The bar is 30 stored fields; this is 7 over it, 1.23\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/crab-http-server/src/metrics.rs"},"region":{"startLine":320}}}],"partialFingerprints":{"codehealthFindingId/v1":"44232991d276669aab5377310a3f5644a382690aed08bbaa2268b623ad183e01"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: crab::cmd::gc::run_gc_impl: FunctionTooLong \u2014 crab::cmd::gc::run_gc_impl 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":"crab/src/cmd/gc/mod.rs"},"region":{"startLine":1061}}}],"partialFingerprints":{"codehealthFindingId/v1":"d991105c20352d423950b66e38f1257d8158432fd26f540ebbb3cb6d57f50858"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: crab::diff::formatter::format_human: FunctionTooLong \u2014 crab::diff::formatter::format_human 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":"crab/src/diff/formatter.rs"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"1074550051329f845c0d06084fc4b5283b5a4b62017e871c421aed9ff47372cf"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Index.recipe_page: MethodTooLong \u2014 recipe_page 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/crab-staging/src/index.rs"},"region":{"startLine":4307}}}],"partialFingerprints":{"codehealthFindingId/v1":"531331c608cef6d0fcbf1543e288f8987ac6a19436fd04b3b73e0f57929a98b8"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Index.batch_dedup_check: MethodTooLong \u2014 batch_dedup_check 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/crab-staging/src/index.rs"},"region":{"startLine":8337}}}],"partialFingerprints":{"codehealthFindingId/v1":"3640a7957394ebf8f1ec717d34ef97100216273c8520a6db5dac6c3fc264b9f9"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: releases.ReleaseCard: FunctionTooLong \u2014 ReleaseCard runs 123 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 23 over it, 1.23\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/releases.tsx"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"a817329ee88780b33d364f576d1d6b6baa9e8722f009f6aedc5459ffc5d6d37f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/catalog.rs: FileTooLong \u2014 614 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 114 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/crab-write/src/catalog.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0bee1ab1f39a0e3ce94947417c85499e9321fe88e6aa01c0a6eeaa2dada9b00"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: metadata/shard_sync.rs: FileTooLong \u2014 613 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 64% of them inside a single declaration: ShardSynchronizer (2 blocks, 140-873). The bar is 500 significant lines; this is 113 over it, 1.23\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/metadata/shard_sync.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb185c23eb4d308852d99de04fb8e8cb0d9f9136b900978d9485f8d3fdacbe7e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: local/push.rs: FileTooLong \u2014 613 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 113 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/crab-sdk/src/local/push.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b43b8d597604f1eb18952484bb8c4a3d7dda2c7a9f1b9462b7008fdd1d01a07"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: xorb/builder.rs: FileTooLong \u2014 611 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 78% of them inside a single declaration: XorbBuilder (3 blocks, 301-1100). The bar is 500 significant lines; this is 111 over it, 1.22\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/crab-xet/src/xorb/builder.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"81fa854537141c9dc0cf2f1d1861888a6efbed14d070ec1472767fbc45695568"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: gc/journal.rs: FileTooLong \u2014 610 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 71% of them inside a single declaration: GcRunJournal (2 blocks, 89-726). The bar is 500 significant lines; this is 110 over it, 1.22\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":"crab/src/cmd/gc/journal.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"16007c14614a7422fd2f945e34e3812df1aed67cb80bd73554d5ceb4d5b4a8e2"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: crab::cmd::replica::evidence_verify_gates: FunctionTooLong \u2014 crab::cmd::replica::evidence_verify_gates 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":"crab/src/cmd/replica.rs"},"region":{"startLine":6397}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ac938fb9856df86115343a235ee35dc4b414bc8ba52fae879dbfae20374f2c6"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: crab::cmd::ship::run_ship: FunctionTooLong \u2014 crab::cmd::ship::run_ship 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":"crab/src/cmd/ship.rs"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d4c631c11ecb4a60c8d56a7702798681096fba774a9e8182e38c07dd015fe91"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/coordinator.rs: FileTooLong \u2014 607 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: Coordinator (3 blocks, 204-912). The bar is 500 significant lines; this is 107 over it, 1.21\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/crab-vfs/src/coordinator.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5006c39438e81ab54f8d6a993e8558ff8e6168c7433ee379debe83e3630d19f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: auth/page.tsx: FileTooLong \u2014 607 significant lines (blank, comment-only and punctuation-only lines excluded), about 70% of them inside a single declaration: AuthPage (283-732). The bar is 500 significant lines; this is 107 over it, 1.21\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/web/app/auth/page.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fac095d5a07edeaffa06d14699b1323fdb4d2d302a3ef6542b84bb77a63ee774"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: IncomingPack.write_normalized: MethodTooLong \u2014 write_normalized 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/crab-git/src/incoming_pack/prepared.rs"},"region":{"startLine":332}}}],"partialFingerprints":{"codehealthFindingId/v1":"140129beb80b7e15d0156940804ce0d5a05b1732c29635b8ee0d981922a86d46"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: cache-visuals.RangePlanningTape: FunctionTooLong \u2014 RangePlanningTape runs 121 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 21 over it, 1.21\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/web/components/blog/cache-visuals.tsx"},"region":{"startLine":307}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d600327ecc4dc694b1b15bd7a2b4512bbd51cf9abb56bed8ad38266c122da28"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: mermaid.MermaidContent: FunctionTooLong \u2014 MermaidContent runs 121 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 21 over it, 1.21\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/web/components/mdx/mermaid.tsx"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0818184f64639dcea5e034a1497252d08a94ff642c692970c32755bea2be804"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: cmd/optimize.rs: FileTooLong \u2014 603 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 103 over it, 1.21\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/cmd/optimize.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"74803d1c574db7ab012172ac2158bf6fa6ac83a6823e7891af3b86f2e7884f78"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: crab::cmd::status_workflow::build_entry: FunctionTooLong \u2014 crab::cmd::status_workflow::build_entry 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":"crab/src/cmd/status_workflow.rs"},"region":{"startLine":582}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3b03422f5b31504d121e72356aa34ccc7176d77a0b8896c5015d15a8d71d31d"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: GitReceiveWorkspace.upload_synthesized_pack: MethodTooLong \u2014 upload_synthesized_pack 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/crab-auth-server/src/receive/git_workspace.rs"},"region":{"startLine":387}}}],"partialFingerprints":{"codehealthFindingId/v1":"1284e854c897b0dd28f30249d05ce76a78241593da2c709aa2b226d99d9459e4"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: PreparedContent.new: MethodTooLong \u2014 new 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/crab-remote/src/prepare.rs"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"82a99603f44a2e9263d297502a5b41376f017411098d1df8e4ea72caebc8fb9e"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Prepared.upload: MethodTooLong \u2014 upload 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/crab-remote/src/prepare.rs"},"region":{"startLine":585}}}],"partialFingerprints":{"codehealthFindingId/v1":"f227bd29efe7583cceedfd4096de2a83829ba8fb9d46d71f10f754831fceaf6e"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: issues.IssueDetail: FunctionTooLong \u2014 IssueDetail runs 120 significant lines (blank, comment-only and punctuation-only lines excluded) 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":"packages/ui/src/issues.tsx"},"region":{"startLine":304}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab8209a37753dafb315d13336d3bf9fd19a2997c0374ca03528283acd393eaa1"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: lfs/prune.rs: FileTooLong \u2014 596 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 96 over it, 1.19\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/lfs/prune.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd5e5680201018c1f28f2c8521cdd704cbf3f7905a3ec77b3d7df571d58f0eaa"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: XorbBuilder: ClassTooLong \u2014 476 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), 25 methods, 3 blocks, lines 301-1100. The bar is 400 significant lines; this is 76 over it, 1.19\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-xet/src/xorb/builder.rs"},"region":{"startLine":301}}}],"partialFingerprints":{"codehealthFindingId/v1":"38c57b09ca327e7314a2b8780a6a4308fdd9cb0c69fafa0b9d7f469a9bd415ce"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: git/fetch.rs: FileTooLong \u2014 595 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 95 over it, 1.19\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/git/fetch.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"615629b7c87bf777a2ec7f78b108500c39715b864039d52869f8459726c9570c"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: crab::cmd::gc::finish_repo_gc_from_marks: FunctionTooLong \u2014 crab::cmd::gc::finish_repo_gc_from_marks 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":"crab/src/cmd/gc/mod.rs"},"region":{"startLine":789}}}],"partialFingerprints":{"codehealthFindingId/v1":"877a38741784ddb7357c9844678643bb0d8477145984ef0e6149ec786d4611bc"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: crab::import::coordinator::run_import_plan_inner: FunctionTooLong \u2014 crab::import::coordinator::run_import_plan_inner 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":"crab/src/import/coordinator.rs"},"region":{"startLine":1992}}}],"partialFingerprints":{"codehealthFindingId/v1":"c062bf7c0df022636e1c334d1f4daaf2bcf5aaba6d44a90ba252dbe7952b6992"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: crab_read::upload_pack::visibility_object_selection: FunctionTooLong \u2014 crab_read::upload_pack::visibility_object_selection 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/crab-read/src/upload_pack.rs"},"region":{"startLine":955}}}],"partialFingerprints":{"codehealthFindingId/v1":"73b2ea62203e0867a9d7c3b640701cb635de5348fd829d18d434f942958110c0"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Index.mark_batch_published: MethodTooLong \u2014 mark_batch_published 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/crab-staging/src/index.rs"},"region":{"startLine":3394}}}],"partialFingerprints":{"codehealthFindingId/v1":"bcd4cf933fa18f9c59788a47e75c8cb74b75f1859743368ebe9bbd36e68deab5"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Index.insert_chunks_for_file: MethodTooLong \u2014 insert_chunks_for_file 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/crab-staging/src/index.rs"},"region":{"startLine":7418}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9104cc807c7ace1b502625a3265cc3c51dd3e5a85f32bc7650f94554d18673c"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: crab_vfs::ipc_server::handle_mount: FunctionTooLong \u2014 crab_vfs::ipc_server::handle_mount 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/crab-vfs/src/ipc_server.rs"},"region":{"startLine":555}}}],"partialFingerprints":{"codehealthFindingId/v1":"c345e82237da81f2bcb964b92c60baff92d0b896226514d5bdd41dd30b096197"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: cmd/managed_admin.rs: FileTooLong \u2014 590 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 90 over it, 1.18\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/cmd/managed_admin.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d23da81e3de034eae82dc28be94d4e99758ed7bc9276ac77ebae333368100bb"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AddRemoteCandidateCache.load_persistent: MethodTooLong \u2014 load_persistent 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":"crab/src/cache/add_remote_candidates.rs"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"98ad4d57bf28d8cad0ca2afdfe7fdfa818bdd6a76daf7ec2e75365e8d271ccba"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: crab::cmd::data::collect_git_entries: FunctionTooLong \u2014 crab::cmd::data::collect_git_entries 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":"crab/src/cmd/data.rs"},"region":{"startLine":1117}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c2bacc1e54fef522d92d311d0df427be8b6ad412d8edf7a98e2fa02a5ebb827"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: crab_git::repack::concatenate_complete_pack_inventory_inner: FunctionTooLong \u2014 crab_git::repack::concatenate_complete_pack_inventory_inner 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/crab-git/src/repack.rs"},"region":{"startLine":754}}}],"partialFingerprints":{"codehealthFindingId/v1":"09fcc32ad50b72e8ae185862e6311e0dc4e654cf1b1ff4671edcd9b200447c2b"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Store.upload_missing_parts: MethodTooLong \u2014 upload_missing_parts 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/crab-storage/src/store.rs"},"region":{"startLine":2170}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5a7576f2e6993c415eac9f5f8bdb60a27af53b9f7a62c15ce649ad964a5a319"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: auth-flow-svg.AuthFlowSvg: FunctionTooLong \u2014 AuthFlowSvg runs 118 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 18 over it, 1.18\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/web/app/diagrams/auth-flow-svg.tsx"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ede9bb2e1cea9a9d472757b8292866cbcd08f61d885d717cf8c92efc7ad4d10"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: lfs/transfer_agent.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). 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":"crab/src/lfs/transfer_agent.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfff57ed2c1c5124efd5700bcb8717b10bcd873f1457664fbe33799fd2be9253"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: receive/publish.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). 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/crab-http-server/src/receive/publish.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"62f25d29fb3dfa617897f99ae07e0bd6189acdf1b0eadaad66918436e5356810"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/cache_client.rs: FileTooLong \u2014 587 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 87 over it, 1.17\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-cache/src/cache_client.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a601822e738668f24e60599d1041e82dea6f52062159a0f010c9d121c9bef7b7"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/file_index_lookup.rs: FileTooLong \u2014 585 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 85 over it, 1.17\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-metadata/src/file_index_lookup.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"961d85b9bf686eb54ae2386008d8c1e8d3dd311e511c39a79c56194d2d703f06"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: release-form.EditReleaseForm: FunctionTooLong \u2014 EditReleaseForm runs 117 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 17 over it, 1.17\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/release-form.tsx"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"803ef43c85164a015cbce0bf8c5b8747e95c9e730ba26854df7e0683c584b0d9"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: lfs-compatibility-visuals.LfsIdentityLab: FunctionTooLong \u2014 LfsIdentityLab runs 117 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 17 over it, 1.17\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/web/components/blog/lfs-compatibility-visuals.tsx"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0d8cfbd94311a2e9ad1ebdfbec2efa84f29dcbeff8593f66717a7d81a6de290"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/view.rs: FileTooLong \u2014 584 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 84 over it, 1.17\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-auth-server/src/view.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce438ca86ac9b2390ecf3df40efdaaa54e4220906b3d2918eff96368623d6e13"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/stage_runtime.rs: FileTooLong \u2014 584 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 84 over it, 1.17\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-workflow/src/stage_runtime.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"630cbe3c15d03e1a8eb4ec4749009e7fea4c866e8a090edc042186a92e50030a"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Config: TooManyMethods \u2014 35 methods. The bar is 30 methods; this is 5 over it, 1.17\u00D7 the bar. This type is on a published API surface \u2014 a cargo-semver-checks gate in CI (.github/workflows/sdk.yml) declares its compatibility contractual \u2014 so moving members onto a smaller type is a breaking change for every consumer, not a local refactor. To reduce it, treat the split as an API migration: move each cohesive group onto its own published type and keep the old members as deprecated forwards for a deprecation period, removing them at the next compatibility break. Where the surface has to stay as it is, that is a decision to record rather than a change to make."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/core/config.rs"},"region":{"startLine":1020}}}],"partialFingerprints":{"codehealthFindingId/v1":"af053663dd9a38de41d57eade65633f9cef137dd9b2ae639105ecff4f01c10a3"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFunctions: crab::lfs::track: TooManyFunctions \u2014 35 free functions. The bar is 30 free functions; this is 5 over it, 1.17\u00D7 the bar. This type is on a published API surface \u2014 a cargo-semver-checks gate in CI (.github/workflows/sdk.yml) declares its compatibility contractual \u2014 so moving members onto a smaller type is a breaking change for every consumer, not a local refactor. To reduce it, treat the split as an API migration: move each cohesive group onto its own published type and keep the old members as deprecated forwards for a deprecation period, removing them at the next compatibility break. Where the surface has to stay as it is, that is a decision to record rather than a change to make."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/lfs/track.rs"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c8add32e19e8ee84c0673a85ab73641254b90b28885a892f932172c706af044"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ManagedApiClient: TooManyMethods \u2014 35 methods. The bar is 30 methods; this is 5 over it, 1.17\u00D7 the bar. This type is on a published API surface \u2014 a cargo-semver-checks gate in CI (.github/workflows/sdk.yml) declares its compatibility contractual \u2014 so moving members onto a smaller type is a breaking change for every consumer, not a local refactor. To reduce it, treat the split as an API migration: move each cohesive group onto its own published type and keep the old members as deprecated forwards for a deprecation period, removing them at the next compatibility break. Where the surface has to stay as it is, that is a decision to record rather than a change to make."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-auth/src/managed/client.rs"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0f9cc71be6d19f2e352d1f69ef16f8f35a6699e66cba56688191567c779b3d0"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: blog/blog-diagrams.tsx: FileTooLong \u2014 583 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 83 over it, 1.17\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/web/components/blog/blog-diagrams.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f00dcc8a0417a4d709f02a9ca2c8042299b3baed075b5ae90b9bda5a465badf1"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: HydrationService: ClassTooLong \u2014 466 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), 29 methods, 3 blocks, lines 221-1023. The bar is 400 significant lines; this is 66 over it, 1.17\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/crab-vfs/src/hydration.rs"},"region":{"startLine":221}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fdb2fdb11e103250ef45cc2296ff7781a991d203304aa7ee1c9e369c6af27a2"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: incoming_pack/prepared.rs: FileTooLong \u2014 582 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 82 over it, 1.16\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-git/src/incoming_pack/prepared.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c89cb6ab36e1ff16d12c95cbe0231848afe76d25ab7a9e8e16fa284bd5f9d1b0"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/releases.rs: FileTooLong \u2014 580 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 80 over it, 1.16\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-http-server/src/releases.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"08801db7d6ff47bf5b7b157c50bdcc5fb8edb574425b50054fa596e2adbce515"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: local/fetch.rs: FileTooLong \u2014 580 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 80 over it, 1.16\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-sdk/src/local/fetch.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3694efa1eb960f16ba60a43cea8b96bb6ed48358c8e9b27a187b8218aeb66bb9"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: gc-run-permit.GcRunPermit: FunctionTooLong \u2014 GcRunPermit runs 116 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 16 over it, 1.16\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/web/components/blog/gc-run-permit.tsx"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fad282e017351413b0051b11fd23793e0334dc19fea9b4522378f645d3136dc"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: mount-visuals.MountWriterOwnershipLab: FunctionTooLong \u2014 MountWriterOwnershipLab runs 116 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 16 over it, 1.16\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/web/components/blog/mount-visuals.tsx"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"879b4c27253b4b06be55b7c6d9f350b791e0802abe615a7180e1b71a3d61d22b"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/issues.rs: FileTooLong \u2014 578 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 78 over it, 1.16\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-http-server/src/issues.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"56f9da914b3cead80d1b7e61194c7c38752604ef83c48c0fb056703ff4af4daf"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/policy.py: FileTooLong \u2014 576 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 76 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":"crab/deploy/auth-service/src/policy.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"18798f54591363dab4fcd2553bf5bf9eb2b66d557198e2492ae3456b2024dd98"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: diagrams/use-case-visuals.tsx: FileTooLong \u2014 576 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 76 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":"packages/web/app/diagrams/use-case-visuals.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e3e696676b6c422654c149ed1a37e91b1c02731198ebddb8eae23743393cfd2"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: crab::git::filter_process::dispatch_command: FunctionTooLong \u2014 crab::git::filter_process::dispatch_command 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":"crab/src/git/filter_process.rs"},"region":{"startLine":1081}}}],"partialFingerprints":{"codehealthFindingId/v1":"a62ab50b41073553e2aa9c97e4ffe80b3e9b23fed4e9d797b67fd2e31a0b24f2"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: crab::git::remote_helper::run_remote_helper_loop: FunctionTooLong \u2014 crab::git::remote_helper::run_remote_helper_loop 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":"crab/src/git/remote_helper.rs"},"region":{"startLine":803}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfbb201d31ef66f6ca95be25b17af29d23f31bb14da75fda2d783195b6452e88"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: crab::lfs::publication::publish_reachable: FunctionTooLong \u2014 crab::lfs::publication::publish_reachable 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":"crab/src/lfs/publication.rs"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"812a3e277698d56e23400977cbfc235981775915bec092ec895d26e02084bcc1"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: crab_http_server::cells::enter_maintenance: FunctionTooLong \u2014 crab_http_server::cells::enter_maintenance 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/crab-http-server/src/cells.rs"},"region":{"startLine":1416}}}],"partialFingerprints":{"codehealthFindingId/v1":"95915ed8acaac8bddf53d66c7b0c7947a1b62a3db5695a920904aba43e843bc1"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: crab_read::store_client::build_range_response_v2: FunctionTooLong \u2014 crab_read::store_client::build_range_response_v2 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/crab-read/src/store_client.rs"},"region":{"startLine":397}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed569d8979fff73d94dce2cd880bb5150e399be28fa2d4e610239e8816cce552"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Index.retire_push_snapshot: MethodTooLong \u2014 retire_push_snapshot 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/crab-staging/src/index.rs"},"region":{"startLine":4732}}}],"partialFingerprints":{"codehealthFindingId/v1":"368a924ea31b9fcf88031e1528f96d69871ad0fe4a14fae25b17ebe24adebd67"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: crab_staging::stage_owned_chunks_batch_blocking: FunctionTooLong \u2014 crab_staging::stage_owned_chunks_batch_blocking 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/crab-staging/src/lib.rs"},"region":{"startLine":1808}}}],"partialFingerprints":{"codehealthFindingId/v1":"f33338149c4176b9bd3f47de274b7d6016122d84a8e794bb6ac3ad36c3739911"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: release-form.ReleaseAssetsEditor: FunctionTooLong \u2014 ReleaseAssetsEditor runs 115 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 15 over it, 1.15\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/release-form.tsx"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"af23a4cf546db9756923a084f68b831a89484c68454e17dda630b74a2691e788"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/client.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/crab-sdk/src/client.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffb60cbe01bb6358e48302fb4c5f85973d21f046e8d770d2e55f067a740aa671"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: AddRemoteCandidateCache: ClassTooLong \u2014 458 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 32-629. The bar is 400 significant lines; this is 58 over it, 1.15\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/cache/add_remote_candidates.rs"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f2cc4719f5b8da0e328b605ad8bf82827284e43c46feba448a86e1bf52ec097"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/xet_chunk_cache.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/crab-cache/src/xet_chunk_cache.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b8a966913899d4e61c37aa91dd0dd76cf11133bfbe5c52ef686a70366587b39"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: crab::import::ingest::record_outcome: FunctionTooLong \u2014 crab::import::ingest::record_outcome 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":"crab/src/import/ingest.rs"},"region":{"startLine":905}}}],"partialFingerprints":{"codehealthFindingId/v1":"08d9fefe949a803b63076ba3dd19470ca06d1cfc7ac58be4323f6e1c6ccd0c33"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: crab_http_server::peer::dispatch_forwarded_request: FunctionTooLong \u2014 crab_http_server::peer::dispatch_forwarded_request 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/crab-http-server/src/peer.rs"},"region":{"startLine":968}}}],"partialFingerprints":{"codehealthFindingId/v1":"aacff7be4cdc56bb98927b1b961e5c36d802967661e7c16bd5f613b76c140c12"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: crab_http_server::releases::upload_asset: FunctionTooLong \u2014 crab_http_server::releases::upload_asset 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/crab-http-server/src/releases.rs"},"region":{"startLine":467}}}],"partialFingerprints":{"codehealthFindingId/v1":"28d02d0c66511afc78f033afb3a6c085128ee784de0628fc57eb0407475f664f"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: crab_workflow::executor::verify_and_hash_outs: FunctionTooLong \u2014 crab_workflow::executor::verify_and_hash_outs 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/crab-workflow/src/executor.rs"},"region":{"startLine":1167}}}],"partialFingerprints":{"codehealthFindingId/v1":"24226c23c89cc0abbe533271dc6a46e31670efbd4cb0ebb059ec5b18e629d871"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: docs-path-diagram.DocsPathDiagram: FunctionTooLong \u2014 DocsPathDiagram runs 114 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 14 over it, 1.14\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/web/components/docs/docs-path-diagram.tsx"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cec53aea3f77998bf48a5699a5d1179d75c9ae47e383a195b73e079c06026e6"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: pulls/review_threads.rs: FileTooLong \u2014 569 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 69 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/crab-http-server/src/pulls/review_threads.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a8114270c08ef244c1c23705f9df257b60ad589d69caeff73947313393727ae"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: CleanSession: TooManyMethods \u2014 34 methods. The bar is 30 methods; this is 4 over it, 1.13\u00D7 the bar. This type is on a published API surface \u2014 a cargo-semver-checks gate in CI (.github/workflows/sdk.yml) declares its compatibility contractual \u2014 so moving members onto a smaller type is a breaking change for every consumer, not a local refactor. To reduce it, treat the split as an API migration: move each cohesive group onto its own published type and keep the old members as deprecated forwards for a deprecation period, removing them at the next compatibility break. Where the surface has to stay as it is, that is a decision to record rather than a change to make."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/git/clean.rs"},"region":{"startLine":1263}}}],"partialFingerprints":{"codehealthFindingId/v1":"60dac6db8870314b99f2c8a106af2b9e6e40c6717da060ccdabad8f4cf0b0cc2"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: crab::cmd::config::run_internal_config_set: FunctionTooLong \u2014 crab::cmd::config::run_internal_config_set 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":"crab/src/cmd/config.rs"},"region":{"startLine":459}}}],"partialFingerprints":{"codehealthFindingId/v1":"580868dddc8287e172c4b020018a8e368b7a4e6a1fd1b5a602bd75949e2fe33e"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: crab::cmd::managed_admin::run_repository: FunctionTooLong \u2014 crab::cmd::managed_admin::run_repository 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":"crab/src/cmd/managed_admin.rs"},"region":{"startLine":358}}}],"partialFingerprints":{"codehealthFindingId/v1":"f219ea1feb5b647fac9caf8129368c136b0cdb40b862e3922339d5c720bf58dd"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: crab_metadata::ref_journal::materialize_ref_journal: FunctionTooLong \u2014 crab_metadata::ref_journal::materialize_ref_journal 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/crab-metadata/src/ref_journal.rs"},"region":{"startLine":625}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b99a796f7af5f7774d29db537ec6fe183c9235890ac5ae29eb4da6cfa97e277"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: RemoteGitReader.read_packed_entry: MethodTooLong \u2014 read_packed_entry 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/crab-remote-git/src/reader.rs"},"region":{"startLine":1242}}}],"partialFingerprints":{"codehealthFindingId/v1":"022457c0547ff8cf46bb6b6c734008927ed3fd7f296b55593a02a2f80132a24b"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: discussion-labels.LabelRow: FunctionTooLong \u2014 LabelRow runs 113 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 13 over it, 1.13\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/discussion-labels.tsx"},"region":{"startLine":286}}}],"partialFingerprints":{"codehealthFindingId/v1":"9832fa9b512a09658b37590054f9c385548c3a46674455b3ae1ac11487cb4a2e"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: cli-push-pipeline-svg.CliPushPipelineSvg: FunctionTooLong \u2014 CliPushPipelineSvg runs 113 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 13 over it, 1.13\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/web/app/diagrams/cli-push-pipeline-svg.tsx"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"840bd7cb77994119388ec0a74dc6201d8900cd85b47508eb9cfee4ad1c9e0802"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: blog-detail-diagrams.BinaryHistoryGrowthDiagram: FunctionTooLong \u2014 BinaryHistoryGrowthDiagram runs 113 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 13 over it, 1.13\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/web/components/blog/blog-detail-diagrams.tsx"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"5cfda29af65f625396180c3b983902c2e0bc141b9304af508d3a553b8dd4bd48"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: cache-visuals.CacheRouteTicket: FunctionTooLong \u2014 CacheRouteTicket runs 113 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 13 over it, 1.13\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/web/components/blog/cache-visuals.tsx"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"852a3d6183cae3b649687da56576aafcef414a29dd921cf6f3e508289e1b3a83"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: lazy-checkout-visuals.DiskBudgetWorkbench: FunctionTooLong \u2014 DiskBudgetWorkbench runs 113 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 13 over it, 1.13\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/web/components/blog/lazy-checkout-visuals.tsx"},"region":{"startLine":514}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a9d50f2ed381330a4e08e4300b0cc8bd2900ccd95881ee2ab9cc20c9454cef6"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: crab::lfs::prune::run_prune_with_cancel: FunctionTooLong \u2014 crab::lfs::prune::run_prune_with_cancel 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":"crab/src/lfs/prune.rs"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7e7e44a5e187da2835acdc52effd6e81a6a173c453f5f317f903c2195832046"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: crab_git::pack::install_pack_files_from_paths_with_identity: FunctionTooLong \u2014 crab_git::pack::install_pack_files_from_paths_with_identity 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/crab-git/src/pack.rs"},"region":{"startLine":418}}}],"partialFingerprints":{"codehealthFindingId/v1":"42d74b751a860bf17233a417a974a6bbba3642af4940c2c9ab5faa6a160c0049"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: crab_vfs::nfs_mount::run_until_cancelled: FunctionTooLong \u2014 crab_vfs::nfs_mount::run_until_cancelled 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/crab-vfs/src/nfs_mount.rs"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"04266b92fab4054d026fd3ea0686c4f2731ce50c7697b7a57f91e8fb14e2cc18"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: page.RemoteServicesPage: FunctionTooLong \u2014 RemoteServicesPage runs 112 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 12 over it, 1.12\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/web/app/remote-services/page.tsx"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"760c2a58c3936b1ae8170000279e70928d860f6102bcee6a0337b80ec4b22875"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/managed_repository.rs: FileTooLong \u2014 555 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 55 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/crab-auth-store/src/managed_repository.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdf61a3b1166e0423b09a819eecb0f250e76993b91938075b3dcad11cc200bf4"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: repository/codec.rs: FileTooLong \u2014 555 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 55 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/crab-http-server/src/cells/repository/codec.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b61569d4497aca316672088d98c7d476abdb112a063a26758b5889cb48aeec0"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: cli/page.tsx: FileTooLong \u2014 555 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 55 over it, 1.11\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/web/app/cli/page.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"de539cf2e471d19f83382e93fa4a26a84f4c0fbe3dec8b47ddbc0e47ea5e9823"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: crab::cmd::push::run_push_prepared_refspecs: FunctionTooLong \u2014 crab::cmd::push::run_push_prepared_refspecs 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":"crab/src/cmd/push.rs"},"region":{"startLine":390}}}],"partialFingerprints":{"codehealthFindingId/v1":"2463e834fbb9ff8f82834f50058c0d4cf2ad913145b7aad9446bced179c4e513"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: crab::cmd::replica::render_status: FunctionTooLong \u2014 crab::cmd::replica::render_status 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":"crab/src/cmd/replica.rs"},"region":{"startLine":12987}}}],"partialFingerprints":{"codehealthFindingId/v1":"c75e6190d11d694818b2b292e6d19c0dd1748935b40838d044b9920a5b5c3bb7"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: crab::cmd::setup::run_setup_at: FunctionTooLong \u2014 crab::cmd::setup::run_setup_at 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":"crab/src/cmd/setup.rs"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"600ec769d209da4c4aae7c6bd55ac613166387fa335867576690983971201ded"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: crab::git::remote_helper::fetch_packs: FunctionTooLong \u2014 crab::git::remote_helper::fetch_packs 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":"crab/src/git/remote_helper.rs"},"region":{"startLine":2472}}}],"partialFingerprints":{"codehealthFindingId/v1":"356efa59e4e80d09e10631f260e5ec435a6a447325a25c16da87cfc11413c6d7"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: crab_cache_server::bin::crab_cache::evidence: FunctionTooLong \u2014 crab_cache_server::bin::crab_cache::evidence 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/crab-cache-server/src/bin/crab_cache.rs"},"region":{"startLine":422}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed3e8c40b6081608b51abb4c507ff0d07b6f49c70980a9febcff0973e3e94961"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: crab_metadata::git_visibility::storage::prepare_catalog_journal_edits: FunctionTooLong \u2014 crab_metadata::git_visibility::storage::prepare_catalog_journal_edits 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/crab-metadata/src/git_visibility.rs"},"region":{"startLine":3154}}}],"partialFingerprints":{"codehealthFindingId/v1":"534e5f17cbeb83681004aff86ddfa8312dd49c729142a1108426c2a40df4e664"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: crab_workflow::stage_runtime::hash_object_store_location: FunctionTooLong \u2014 crab_workflow::stage_runtime::hash_object_store_location 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/crab-workflow/src/stage_runtime.rs"},"region":{"startLine":528}}}],"partialFingerprints":{"codehealthFindingId/v1":"f53b0a0bc264d803f99181d052ba691ffbcbbc8becb791879a287703fec70337"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: article-social-image.createArticleSocialImage: FunctionTooLong \u2014 createArticleSocialImage runs 111 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 11 over it, 1.11\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/web/app/article-social-image.tsx"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"0da8e471c6d9360a951cf544145d2b04a1b15cd42b785fc6339c959a108a7aca"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/store_client.rs: FileTooLong \u2014 551 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 64% of them inside a single declaration: StoreClient (3 blocks, 51-771). The bar is 500 significant lines; this is 51 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/crab-read/src/store_client.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f74be5ae6b4513217c24c5d7f79e4907c0680bb31a25841afe0a6896daec120"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Verifier: TooManyMethods \u2014 33 methods. The bar is 30 methods; this is 3 over it, 1.10\u00D7 the bar. This type is on a published API surface \u2014 a cargo-semver-checks gate in CI (.github/workflows/sdk.yml) declares its compatibility contractual \u2014 so moving members onto a smaller type is a breaking change for every consumer, not a local refactor. To reduce it, treat the split as an API migration: move each cohesive group onto its own published type and keep the old members as deprecated forwards for a deprecation period, removing them at the next compatibility break. Where the surface has to stay as it is, that is a decision to record rather than a change to make."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/scripts/verify-cache-service-smoke-report.py"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"75a04d8aaf7c5810ece4c756de747d6457bbd046f3bdabadb0a266a6d397db22"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFields: ImportArgs: TooManyFields \u2014 33 stored fields beside 5 methods. 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":"crab/src/cmd/import.rs"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c1dce9210e77db3024a141315d42df814cbe2c2be3f7aaa29a33bdf27346f52"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: pricing/page.tsx: FileTooLong \u2014 550 significant lines (blank, comment-only and punctuation-only lines excluded), about 60% of them inside a single declaration: PricingPage (298-658). The bar is 500 significant lines; this is 50 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":"packages/web/app/pricing/page.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ed474b7f9a9ffd51c8ff43758b7d88ffbdafb1c3e3f8f8d8d6f3e48609fccb9"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: library/ml-workflow-visuals.tsx: FileTooLong \u2014 550 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 50 over it, 1.10\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/web/components/library/ml-workflow-visuals.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ac9f2c857acb5aad66933b63d18fdfe21b58cddf2a2590d0d95b062f7b57eeb"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: crab::cmd::exp::apply_checkpoint_record_to: FunctionTooLong \u2014 crab::cmd::exp::apply_checkpoint_record_to runs 110 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 10 over it, 1.10\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/cmd/exp.rs"},"region":{"startLine":2133}}}],"partialFingerprints":{"codehealthFindingId/v1":"32bf7d0c983c613559a4822fabb30f9652b5fc92933e6cdaa096d638e56d1c13"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: crab_http_server::receive::receive: FunctionTooLong \u2014 crab_http_server::receive::receive 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/crab-http-server/src/receive.rs"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa11babdaaa456823b443b1675fa6b061458bf061927c07ee5a537707ef62bea"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: crab_s3_gateway::multipart::register_part: FunctionTooLong \u2014 crab_s3_gateway::multipart::register_part 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/crab-s3-gateway/src/multipart.rs"},"region":{"startLine":526}}}],"partialFingerprints":{"codehealthFindingId/v1":"94942d9f709632c40fa4166f24d3116a50eb6957bf147b22e4e2dded87da14d9"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: crab_workflow::artifact::visit_reachable_remote_artifact_objects: FunctionTooLong \u2014 crab_workflow::artifact::visit_reachable_remote_artifact_objects 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/crab-workflow/src/artifact.rs"},"region":{"startLine":769}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b79cb7751b158f886261aba2a4fa71a89d4724d40de9f4125b0094b43d67c01"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: crab-introduction-workbench.CrabIntroductionWorkbench: FunctionTooLong \u2014 CrabIntroductionWorkbench runs 109 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 9 over it, 1.09\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/web/components/blog/crab-introduction-workbench.tsx"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b9ce12f0f951c5b84635ca4ce4ec8d560c5e5099f769592bce9f1959d4a254f"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: mount-visuals.MountLifecycleConsole: FunctionTooLong \u2014 MountLifecycleConsole runs 109 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 9 over it, 1.09\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/web/components/blog/mount-visuals.tsx"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"782d842dda57dd3c7f105ddb3b6f49c72608fac9535f3003c23b9c5616d56429"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: scripts/nfs-read-path-bench-report.py: FileTooLong \u2014 544 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 44 over it, 1.09\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":"crab/scripts/nfs-read-path-bench-report.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c74924742f130558a0d7598658f633b3fd3ebe8ca7eee7f5306e9106c5eac871"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/plan_receipt.rs: FileTooLong \u2014 543 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 43 over it, 1.09\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/crab-metadata/src/plan_receipt.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"58a7f6c2db2e5459efaefa1ff337b2da0f40eddfb6c9288d150bb8212b06ac2d"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: GcRunJournal: ClassTooLong \u2014 434 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), 28 methods, 2 blocks, lines 89-726. The bar is 400 significant lines; this is 34 over it, 1.09\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":"crab/src/cmd/gc/journal.rs"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ad5c6fa34523e76dbdc4cc58d6b53dcf71bf2482f5668fae65c78fced0d3e8d"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/refresh.rs: FileTooLong \u2014 542 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 42 over it, 1.08\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-vfs/src/refresh.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"91f3cc1ac22886695158186489b8605a1f22c02f5cfc9667ba0d0a8555147e67"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: GitVisibilityIndex: ClassTooLong \u2014 432 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), 19 methods, 2 blocks, lines 343-1419. The bar is 400 significant lines; this is 32 over it, 1.08\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/crab-metadata/src/git_visibility.rs"},"region":{"startLine":343}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f030bd43e7021a72d95f5958421458f11c432ce6751210e992f0e7ae8cdcb82"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: Journal: ClassTooLong \u2014 432 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), 17 methods, 2 blocks, lines 110-692. The bar is 400 significant lines; this is 32 over it, 1.08\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/crab-workflow/src/journal.rs"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"69a844a68e637e71fd5d83761a4418c2e087a1a2fa41cead544334c81dd249b6"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: cmd/export.rs: FileTooLong \u2014 540 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 40 over it, 1.08\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/cmd/export.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c203c58210ec9920ea7559e3db56c5fa8c67e998ad5c77efceb751838bd7af6"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ChunkIndexStore.get_batch_with_candidates_inner: MethodTooLong \u2014 get_batch_with_candidates_inner runs 108 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 8 over it, 1.08\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/metadata/metadb/stores/chunk_index.rs"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"df479363e056ed57646e9fb17357daf208ba4e6dc7f6f0d7aa727f2dca1c153f"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: crab_cache_server::onboarding::readme: FunctionTooLong \u2014 crab_cache_server::onboarding::readme runs 108 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 8 over it, 1.08\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-cache-server/src/onboarding.rs"},"region":{"startLine":1183}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5c3beb67130adf9fad19d753dedc0e8fece6ba7b6edec64b7bb566c70550841"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: crab_http_server::cells::initializer::initialize_repository_at: FunctionTooLong \u2014 crab_http_server::cells::initializer::initialize_repository_at runs 108 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 8 over it, 1.08\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-http-server/src/cells/initializer.rs"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"37a0ac2abc9fc718d25a321979d8f88df9071e622a75fec8a27111f410d0dabf"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: lfs/discovery.rs: FileTooLong \u2014 539 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 39 over it, 1.08\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/lfs/discovery.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a847d95c2121a91e5955b9cb908eaa7710c24e81c746cc800200948f8b07663b"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/catalog.rs: FileTooLong \u2014 538 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 62% of them inside a single declaration: CatalogStore (2 blocks, 271-702). The bar is 500 significant lines; this is 38 over it, 1.08\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/crab-http-server/src/catalog.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"582c360d3b33f3fd603ef1c9a9ad0fb6d0a81c0152e61a70f308d7f28a1bb1ff"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: blog/lazy-checkout-visuals.tsx: FileTooLong \u2014 537 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 37 over it, 1.07\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/web/components/blog/lazy-checkout-visuals.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"19c0513f8b5a1b0b6245ef28681d7fb73b5108ead516c708a6ec3b7330a346ec"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/term_resolver.rs: FileTooLong \u2014 535 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 35 over it, 1.07\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-read/src/term_resolver.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"923c5d5ee226b2501016476dda640a9b3a402b4dd8bb6c73073d30d85e593cc0"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: crab::cmd::metadb::render_doctor_metadb: FunctionTooLong \u2014 crab::cmd::metadb::render_doctor_metadb 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":"crab/src/cmd/metadb.rs"},"region":{"startLine":3933}}}],"partialFingerprints":{"codehealthFindingId/v1":"e030a9f9ea08039a371f547b33bf1e611a6b979b14b53060c039328914d4065b"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: crab_auth_server::receive::commit_service_metadata: FunctionTooLong \u2014 crab_auth_server::receive::commit_service_metadata 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/crab-auth-server/src/receive.rs"},"region":{"startLine":1187}}}],"partialFingerprints":{"codehealthFindingId/v1":"41ec152318699020da4538e4f92358083f7adc9ee3d5122f1a35d121dffba485"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: crab_auth_server::view::publish_filtered_view: FunctionTooLong \u2014 crab_auth_server::view::publish_filtered_view 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/crab-auth-server/src/view.rs"},"region":{"startLine":439}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbc0e92357347c3fb49f8879cb1224fe05651e71048ea54d15ed2bd97ef26f96"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: crab_cache::local_cache::cached_remote_xorb_index: FunctionTooLong \u2014 crab_cache::local_cache::cached_remote_xorb_index 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/crab-cache/src/local_cache.rs"},"region":{"startLine":1455}}}],"partialFingerprints":{"codehealthFindingId/v1":"358b6a756b015f18facd295b871726befb1ec2afba4d91c689b9abe3e7f717c4"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: crab_git::pack_locator::decode_pack_kind_metadata_payload: FunctionTooLong \u2014 crab_git::pack_locator::decode_pack_kind_metadata_payload 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/crab-git/src/pack_locator.rs"},"region":{"startLine":589}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fcddd45165a994773eb0cb3c4f8a7832a15b6022d7594da80dfc3d24d522f5e"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: crab_http_server::git_import::import_repository: FunctionTooLong \u2014 crab_http_server::git_import::import_repository 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/crab-http-server/src/git_import.rs"},"region":{"startLine":471}}}],"partialFingerprints":{"codehealthFindingId/v1":"eed014488a193aecd73bdf03a32fa9e49b788d80f1072367cc4f43f7900a9593"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Metrics.render: MethodTooLong \u2014 render 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/crab-http-server/src/metrics.rs"},"region":{"startLine":987}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac6c8fd9f719724b6fe9644967c6b8832594922f40d6631a5b4700ff5fcb203b"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: RemoteGitReader.load_pack_index: MethodTooLong \u2014 load_pack_index 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/crab-remote-git/src/reader.rs"},"region":{"startLine":1479}}}],"partialFingerprints":{"codehealthFindingId/v1":"78db4ae96e2d182062ae8c8a1e758f828631a03ca32ec4f9827d7d9f92335327"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: reconstruction-visuals.HydrationSafetyGate: FunctionTooLong \u2014 HydrationSafetyGate runs 107 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 7 over it, 1.07\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/web/components/blog/reconstruction-visuals.tsx"},"region":{"startLine":450}}}],"partialFingerprints":{"codehealthFindingId/v1":"e66f0caf97074ea4fa93c708033757e0e740f040c53952e8516097fd7124e778"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: Authentication: ClassTooLong \u2014 427 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), 21 methods, 2 blocks, lines 279-832. The bar is 400 significant lines; this is 27 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/crab-http-server/src/auth.rs"},"region":{"startLine":279}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdc912e764baaa949e1e1fca7224846754dc14fc625ea544df7f3b844f3bda0e"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: GitObjectLocatorWriter: TooManyMethods \u2014 32 methods. The bar is 30 methods; this is 2 over it, 1.07\u00D7 the bar. This type is on a published API surface \u2014 a cargo-semver-checks gate in CI (.github/workflows/sdk.yml) declares its compatibility contractual \u2014 so moving members onto a smaller type is a breaking change for every consumer, not a local refactor. To reduce it, treat the split as an API migration: move each cohesive group onto its own published type and keep the old members as deprecated forwards for a deprecation period, removing them at the next compatibility break. Where the surface has to stay as it is, that is a decision to record rather than a change to make."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-metadata/src/git_object_locator/writer.rs"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9d1dd31ad7b6066ec571deeb96bb17cd9ac2893a023c15891ec039bb437580b"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFields: RepositoryCellScheduler: TooManyFields \u2014 32 stored fields beside 26 methods. The bar is 30 stored fields; this is 2 over it, 1.07\u00D7 the bar. This is width in DATA, not behaviour: every reader that takes the whole type couples to all of its fields, so a change to any one of them is a change every reader has to be checked against. To reduce it, group the fields that are read together by the same callers into a smaller type of their own, and have this one hold that type as a single member \u2014 each reader then names only the group it uses."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-http-server/src/cells/scheduler.rs"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b5dfe18572adb9cde37e957c13a48970574c145093b1ba99aaaf18417ca215f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: provider/s3.rs: FileTooLong \u2014 532 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 32 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":"crab/src/tier/provider/s3.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c21a78c985c7ac1e0489f4cb8471befa65e2d97aa304c738999649c7c8ec402f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: blog/git-architecture-player.tsx: FileTooLong \u2014 531 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 31 over it, 1.06\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/web/components/blog/git-architecture-player.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"440c019ba4e820922e13fdc9b585748e4a3e2e6d7f0033d02b23465b845864ef"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Index.create_push_snapshot: MethodTooLong \u2014 create_push_snapshot runs 106 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 6 over it, 1.06\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-staging/src/index.rs"},"region":{"startLine":4558}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c31e1bd2819283ac31c463778735182e3c55564809628485e690ca4c61a7538"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: crab_workflow::executor::resolve_dep_hashes_with_wdir_allow_missing_remote_aliases: FunctionTooLong \u2014 crab_workflow::executor::resolve_dep_hashes_with_wdir_allow_missing_remote_aliases runs 106 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 6 over it, 1.06\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-workflow/src/executor.rs"},"region":{"startLine":2432}}}],"partialFingerprints":{"codehealthFindingId/v1":"2360aa3abca4c6a40cec9585d8b61b379d05e5f6d3005cb70b1d7630029993e5"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: crab_write::generation::maintain_path_state: FunctionTooLong \u2014 crab_write::generation::maintain_path_state runs 106 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 6 over it, 1.06\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-write/src/generation.rs"},"region":{"startLine":335}}}],"partialFingerprints":{"codehealthFindingId/v1":"720eab6b1306f895d14e5e59199667413b10b00ce0cbc6104a6f7720e3cf52d3"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/shard_parse.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/crab-xet/src/shard_parse.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ca965ab71fa7f194ea626068a210bbc3e1e6b2c65582095fddea75e612f2da6"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/receive.rs: FileTooLong \u2014 527 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 27 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/crab-http-server/src/receive.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a33f8c49924ab6050fbe9ce225c3b2d2e22300f151c96a73549bcfb0e1eb3040"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: CleanSession.crab_clean_stream: MethodTooLong \u2014 crab_clean_stream 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":"crab/src/git/clean.rs"},"region":{"startLine":2084}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6af01e5a8018069a4062e3dd22636a8f9d4854e1d9c90ddde899ce9870dd87a"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Journal.load_plan: MethodTooLong \u2014 load_plan 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":"crab/src/import/journal.rs"},"region":{"startLine":529}}}],"partialFingerprints":{"codehealthFindingId/v1":"97bc26a278faa9fc3319e888291b3bfde41dceebf1f06ae40a61ddb3230e7235"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: crab_workflow::discover::merge_with_provenance: FunctionTooLong \u2014 crab_workflow::discover::merge_with_provenance 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/crab-workflow/src/discover.rs"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"16770528daa5bbccb819d8e2f55d882a92799a16f9e39262b3383374616495b1"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: content-editor.CommitPanel: FunctionTooLong \u2014 CommitPanel runs 105 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 5 over it, 1.05\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/content-editor.tsx"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"91024488ae6455b3c8da6f88aac05efe1423aab0aa27d97e59160eb19e0b6ebe"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: NodePublisher: ClassTooLong \u2014 417 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), 15 methods, 4 blocks, lines 137-692. The bar is 400 significant lines; this is 17 over it, 1.04\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-http-server/src/peer.rs"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a658ababdf3720eed90874e079b9c7681fb01c9ae893a8d77f19b14665f43bf"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: metadb/mod.rs: FileTooLong \u2014 521 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 21 over it, 1.04\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":"crab/src/metadata/metadb/mod.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2a83961b4f98eb1952fcddbbd09925cba572c020189244b4caaaa703fd7f042"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/params_runtime.rs: FileTooLong \u2014 520 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 20 over it, 1.04\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/crab-workflow/src/params_runtime.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9a82bcdeabc7d0f64fe6301341157af6890f25aa0d6d7c73f708ff515be706a"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: crab::cmd::gc::bucket::execute_bucket_journal: FunctionTooLong \u2014 crab::cmd::gc::bucket::execute_bucket_journal 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":"crab/src/cmd/gc/bucket.rs"},"region":{"startLine":911}}}],"partialFingerprints":{"codehealthFindingId/v1":"225f8aff036a413c52fcd4ff1c76a9b76ca5e643e8ba7aacb53eb9f509176870"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: crab::import::assemble::run_assemble: FunctionTooLong \u2014 crab::import::assemble::run_assemble 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":"crab/src/import/assemble.rs"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"131859c1579259cb5ebe52e170fa3299d25a85225238d7be4d9767f43704beac"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: crab_http_server::cells: FunctionTooLong \u2014 crab_http_server::cells 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/crab-http-server/src/main.rs"},"region":{"startLine":293}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3e37660698aa8ecdeb00ce6ae98db347398e9cf6eb28be05e209939b4abf8fa"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: crab_http_server::pulls::merge::execute: FunctionTooLong \u2014 crab_http_server::pulls::merge::execute 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/crab-http-server/src/pulls/merge.rs"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"787a63aa9169048fd2f8f3ad760e79b7196db1abbf3642897995fbc6f3e1cf1c"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: GitVisibilityCatalogV1.validate_binding: MethodTooLong \u2014 validate_binding 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/crab-metadata/src/git_visibility.rs"},"region":{"startLine":1956}}}],"partialFingerprints":{"codehealthFindingId/v1":"079b321647efd7b36d09cbf9ea163780bc43370e58b8d1c35e6b588697be3476"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: discussion-labels.LabelsPage: FunctionTooLong \u2014 LabelsPage runs 104 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 4 over it, 1.04\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/discussion-labels.tsx"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"79ce179092e84c7db51ab833914365ce17d7ee385de2279310a1003f3fb20fb2"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: blog-diagrams.CompareDiagram: FunctionTooLong \u2014 CompareDiagram runs 104 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 4 over it, 1.04\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/web/components/blog/blog-diagrams.tsx"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e90f461cb6d916631105d88beec6b2abac3568c99fe908e1800e526b3acdaf1"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: cache/add_remote_candidates.rs: FileTooLong \u2014 519 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 88% of them inside a single declaration: AddRemoteCandidateCache (2 blocks, 32-629). The bar is 500 significant lines; this is 19 over it, 1.04\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/cache/add_remote_candidates.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d00a8acc89b472ae3767db358f39404c70fd3ac8b8b7af2d5a98e79d4583b8dd"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: cmd/params.rs: FileTooLong \u2014 518 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 18 over it, 1.04\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":"crab/src/cmd/params.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c920b5ba10de342f772703ccbc3ed02e015cf0eeb5eae3b11d29ba0a4f9b986b"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: Coordinator: ClassTooLong \u2014 412 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), 37 methods, 3 blocks, lines 204-912. The bar is 400 significant lines; this is 12 over it, 1.03\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-vfs/src/coordinator.rs"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd1551b006e25ead7e6df5d71af56820cdbbd9f36ee1a6d8a8ef19584d025bdd"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: crab::cmd::replica::active_active_smoke_gates: FunctionTooLong \u2014 crab::cmd::replica::active_active_smoke_gates 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":"crab/src/cmd/replica.rs"},"region":{"startLine":7367}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8878ef658cc870d2c8ee865a08948a608206be58af4fe141ba16252d97212c3"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: EvidenceVerifier.verify_origin_outage: MethodTooLong \u2014 verify_origin_outage 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/crab-cache-server/src/evidence.rs"},"region":{"startLine":1562}}}],"partialFingerprints":{"codehealthFindingId/v1":"61e13b4d3f853176c10095bc392b838d7ac79d3a2ecbac13beb9edecfeaf1be0"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: crab_git::repack::repack_repository_geometric: FunctionTooLong \u2014 crab_git::repack::repack_repository_geometric 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/crab-git/src/repack.rs"},"region":{"startLine":275}}}],"partialFingerprints":{"codehealthFindingId/v1":"62e87020c2aab00aed50f9cb0176475d857e118504668d4b900b5ec5080902ca"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: crab_read::upload_pack::plan_from_visibility_catalog_ordinals: FunctionTooLong \u2014 crab_read::upload_pack::plan_from_visibility_catalog_ordinals 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/crab-read/src/upload_pack.rs"},"region":{"startLine":1361}}}],"partialFingerprints":{"codehealthFindingId/v1":"e88de360e529d2a80c5a8903caae57e9e3b0fcc13f68f6bc5f925e5705773eae"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: LocalRepository.pull_with_options: MethodTooLong \u2014 pull_with_options 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/crab-sdk/src/local/edit.rs"},"region":{"startLine":538}}}],"partialFingerprints":{"codehealthFindingId/v1":"53c98aef997f72665e468aceb836cb9cb390df70af18291117158dceaa10d764"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Error.into_response: MethodTooLong \u2014 into_response 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/crab-http-server/src/branches.rs"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"f129aa5d73b41e598e0a707d9bf65628a35d72dd1b9db7e60d7e9c359a8cceb9"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Error.into_response: MethodTooLong \u2014 into_response 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/crab-http-server/src/contents.rs"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"1cbdb7b6a2d701a5b450df8457ea81910cc3cf136d9e6b4b0b701f8f61d9ec85"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Config.validate: MethodTooLong \u2014 validate 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/crab-s3-gateway/src/config.rs"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c0e620d623ed0e2f2703f2f26660e42b823c2dcd4685f8483a34b2a598cc0c2"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Gateway.list_multipart_uploads: MethodTooLong \u2014 list_multipart_uploads 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/crab-s3-gateway/src/gateway.rs"},"region":{"startLine":2769}}}],"partialFingerprints":{"codehealthFindingId/v1":"7582a0c49ba41a4e9e5b5bd15cbb442b08fb59f545f1c495f323f1522ad82e22"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: crab_sdk::client::mutation::execute_mutation: FunctionTooLong \u2014 crab_sdk::client::mutation::execute_mutation 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/crab-sdk/src/client/mutation.rs"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"71212f1a4288bbc1fefa514e07b8b6d18f1bf779323f820d7664abbb3762be3c"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: legal-page.LegalPage: FunctionTooLong \u2014 LegalPage runs 102 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 2 over it, 1.02\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/web/components/marketing/legal-page.tsx"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd18f1491893c490d537265762b9993d513438dd4d3705795bc7c6b7558a094e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: cell-issue-fleet/qualify_read_replicas.py: FileTooLong \u2014 509 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 9 over it, 1.02\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-http-server/deploy/cell-issue-fleet/qualify_read_replicas.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c100a748244101459aea32d9a7ed5356fd1a9adae6d36532080aa7f0aa35658e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: cmd/upgrade.rs: FileTooLong \u2014 507 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 7 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":"crab/src/cmd/upgrade.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"672da03706de261bfaeaecc71f07fe1805485ceaecb7d55c703e4b8cf42efd58"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/provider_store.rs: FileTooLong \u2014 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). The bar is 500 significant lines; this is 5 over it, 1.01\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-storage/src/provider_store.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1e1fc823f68efd806991e79e5aabadce68538fad4723f88ff36ff7402b20526"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: crab::cmd::add::collect_literal_candidates: FunctionTooLong \u2014 crab::cmd::add::collect_literal_candidates 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":"crab/src/cmd/add.rs"},"region":{"startLine":2670}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a1f7fb71369c641c8c99be6c967c9b87c857d6fb38fe65217b100a17194adaf"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: crab::replication::replica_readiness: FunctionTooLong \u2014 crab::replication::replica_readiness 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":"crab/src/replication/mod.rs"},"region":{"startLine":8828}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ebdee357c0ef82f9f1c44e1e685c45f2eff7fb63fde35a85eaab887037f3538"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: crab_git::receive_plan::validate: FunctionTooLong \u2014 crab_git::receive_plan::validate 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/crab-git/src/receive_plan.rs"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8d04c556983f7aae8acf7d710b5e0989f9283cc7d2d09fa1dd7ee59e1397454"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: crab_remote::publication::acquire_ref_leases: FunctionTooLong \u2014 crab_remote::publication::acquire_ref_leases 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/crab-remote/src/publication.rs"},"region":{"startLine":275}}}],"partialFingerprints":{"codehealthFindingId/v1":"79cc285fa7f648a1cf0e57615d564a80013268aca2a1f1fed607d2af73b36a12"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: crab_staging::add_push_plan::prepare_uncached_file_plans_with_progress: FunctionTooLong \u2014 crab_staging::add_push_plan::prepare_uncached_file_plans_with_progress 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/crab-staging/src/add_push_plan.rs"},"region":{"startLine":378}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa7df1ef4086c71de5458904a4ab059d931292d110641468497f59ae0cdbd1d0"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/preflight.rs: FileTooLong \u2014 503 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 3 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/crab-cache-server/src/preflight.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e1505dd72b0c96e20607f475f049d813d0aaae61c20a59dcfe26e9815c0afa3"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/journal.rs: FileTooLong \u2014 501 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 86% of them inside a single declaration: Journal (2 blocks, 110-692). The bar is 500 significant lines; this is 1 over it, 1.00\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-workflow/src/journal.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8fb4fb56a32275b699834783c33985f154b5d140aa59df117126970816293be"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 21 shared lines): crab/src/cmd/run.rs:3435-3528 | crab/src/cmd/status_workflow.rs:898-964 | crates/crab-workflow/src/executor.rs:2298-2393 | crates/crab-workflow/src/executor.rs:2442-2572 \u2014 These 4 members are variants of one another: a block of 21 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":"crab/src/cmd/run.rs"},"region":{"startLine":3435}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b64b1aae85389958323b0fe43ff83cdbc833a52981889a5a5b4c41911635f93"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 17 shared lines): crab/src/cmd/gc/bucket.rs:1460-1501 | crab/src/cmd/gc/bucket.rs:1654-1711 | crab/src/cmd/gc/bucket.rs:1718-1782 | crab/src/cmd/gc/bucket.rs:1791-1833 \u2014 These 4 members are variants of one another: a block of 17 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":"crab/src/cmd/gc/bucket.rs"},"region":{"startLine":1460}}}],"partialFingerprints":{"codehealthFindingId/v1":"48a2fede1e91a450cc0055fefa6ce8222e96f22cdc45d755045e4d2681499424"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (3 members, 36 shared lines): crab/src/git/progress.rs:306-348 | crab/src/git/progress.rs:359-404 | crab/src/git/progress.rs:411-453 \u2014 These 3 members are variants of one another: a block of 36 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":"crab/src/git/progress.rs"},"region":{"startLine":306}}}],"partialFingerprints":{"codehealthFindingId/v1":"508defc9697f61e575f78239cb0e3461afcda85875064b072fb01e1491d14c23"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (98 shared lines): crab/src/cmd/run.rs:2144-2308 | crab/src/cmd/run.rs:2784-2956 \u2014 These two members are variants of one another: 98 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":"crab/src/cmd/run.rs"},"region":{"startLine":2144}}}],"partialFingerprints":{"codehealthFindingId/v1":"aad60a27ec175f96df2473b8142f9e5de674b9324bf23c286332697df2fdf234"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (69 shared lines): crates/crab-read/src/term_resolver.rs:110-216 | crates/crab-read/src/term_resolver.rs:255-365 \u2014 These two members are variants of one another: 69 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/crab-read/src/term_resolver.rs"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"885976f0d424597db4d918a2020d7957ff638b2100e92ac0029398e0d4aed450"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (46 shared lines): crab/src/cost/inventory/report/azure.rs:30-98 | crab/src/cost/inventory/report/gcs.rs:35-101 \u2014 These two members are variants of one another: 46 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":"crab/src/cost/inventory/report/azure.rs"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"d202c5b392043ad8fad713bbe3411e62a79ed752737a16f94adf7a55ae3e1cbd"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (46 shared lines): crates/crab-remote-git/src/snapshot.rs:77-152 | crates/crab-remote-git/src/snapshot.rs:164-252 \u2014 These two members are variants of one another: 46 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/crab-remote-git/src/snapshot.rs"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"59e6fff9edbe82f9a871ca6dcdf2117d636a4308704795b9722d8f480438212d"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (46 shared lines): crates/crab-metadata/src/git_visibility.rs:2203-2275 | crates/crab-metadata/src/git_visibility.rs:2321-2402 \u2014 These two members are variants of one another: 46 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/crab-metadata/src/git_visibility.rs"},"region":{"startLine":2203}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea4d6c861d90a320aa0d2edadf68f4877370ed8b7858aa6e6d23cab36978bdd6"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (41 shared lines): crab/src/git/filter_process.rs:1418-1519 | crab/src/git/filter_process.rs:1531-1647 \u2014 These two members are variants of one another: 41 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":"crab/src/git/filter_process.rs"},"region":{"startLine":1418}}}],"partialFingerprints":{"codehealthFindingId/v1":"20bb06d8871d78fcc5012fdc504ddcb63e7d86fa845eec10bfecd33462baaddc"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (36 shared lines): crates/crab-http-server/src/branches.rs:129-265 | crates/crab-http-server/src/contents.rs:231-364 \u2014 These two members are variants of one another: 36 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/crab-http-server/src/branches.rs"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bf44b410d1bbf873724cb083678354ece5c68934f047bd902572e44dcbe9584"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (36 shared lines): crates/crab-workflow/src/executor.rs:1658-1715 | crates/crab-workflow/src/executor.rs:1717-1836 \u2014 These two members are variants of one another: 36 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/crab-workflow/src/executor.rs"},"region":{"startLine":1658}}}],"partialFingerprints":{"codehealthFindingId/v1":"afb6ffc6f62ad2aba29659e6775b131ebf6033fac7a6ebb4d9dddee35c7a9ca4"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (32 shared lines): crates/crab-metadata/src/git_object_locator/reader.rs:630-716 | crates/crab-metadata/src/git_object_locator/reader.rs:722-803 \u2014 These two members are variants of one another: 32 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/crab-metadata/src/git_object_locator/reader.rs"},"region":{"startLine":630}}}],"partialFingerprints":{"codehealthFindingId/v1":"2cef0fe9a55bf3ccdcc410c4a520d14e3d13d35b7cb781669bcebb8b7f8a008c"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (32 shared lines): crates/crab-remote-git/src/pack.rs:1565-1659 | crates/crab-remote-git/src/pack.rs:1791-1917 \u2014 These two members are variants of one another: 32 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/crab-remote-git/src/pack.rs"},"region":{"startLine":1565}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc1ea13e0e87afe7c13347304e9bc3ce42210443e29e1d3f69c68ba915443335"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (28 shared lines): crates/crab-remote-git/src/pack.rs:870-1033 | crates/crab-remote-git/src/pack.rs:1040-1095 \u2014 These two members are variants of one another: 28 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/crab-remote-git/src/pack.rs"},"region":{"startLine":870}}}],"partialFingerprints":{"codehealthFindingId/v1":"d307b820479800c2d9cc444d115975c6a253e23cbfed37771e50b6c2d6ce4c42"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (28 shared lines): crates/crab-vfs/src/snapshot.rs:106-164 | crates/crab-vfs/src/snapshot.rs:172-227 \u2014 These two members are variants of one another: 28 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/crab-vfs/src/snapshot.rs"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fa7c0292732a06d401e13abfe3509331df0a3c9a3051f43d2a27de03cdbe621"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (26 shared lines): crab/src/cmd/exp.rs:2627-2715 | crab/src/cmd/exp.rs:3357-3448 \u2014 These two members are variants of one another: 26 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":"crab/src/cmd/exp.rs"},"region":{"startLine":2627}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f4f7c653fe8a4b816bceb262d26b55aa2bec0d687e24ccb65cfec9f653973e6"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (24 shared lines): crates/crab-staging/src/index.rs:7056-7122 | crates/crab-staging/src/index.rs:7257-7338 \u2014 These two members are variants of one another: 24 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/crab-staging/src/index.rs"},"region":{"startLine":7056}}}],"partialFingerprints":{"codehealthFindingId/v1":"2187456ef9cee17f54e177594ca4520eaab930923c32105fdc31a79fcdf5921b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): crab/src/cmd/params.rs:579-611 | crab/src/cmd/params.rs:631-676 \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":"crab/src/cmd/params.rs"},"region":{"startLine":579}}}],"partialFingerprints":{"codehealthFindingId/v1":"d109bd43d7befd2332bd9dd5f0365ab33f8d50d8dfb0e498cddab8b484a2f988"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): crab/src/cmd/gc/journal.rs:257-292 | crab/src/cmd/gc/journal.rs:676-697 \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":"crab/src/cmd/gc/journal.rs"},"region":{"startLine":257}}}],"partialFingerprints":{"codehealthFindingId/v1":"35e85c3c82c55d596e2ed79d2285dbc46bcb4a92c35e479f6eeb9f8a74d87e81"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (17 members, 50\u002B identical tokens): crab/scripts/check-architecture-gates.py:2919-2980 | crab/scripts/check-architecture-gates.py:3114-3169 | crab/scripts/check-architecture-gates.py:3173-3226 | crab/scripts/check-architecture-gates.py:3377-3447 | crab/scripts/check-architecture-gates.py:3610-3659 | crab/scripts/check-architecture-gates.py:3789-3820 | crab/scripts/check-architecture-gates.py:3824-3888 | crab/scripts/check-architecture-gates.py:3983-4014 | crab/scripts/check-architecture-gates.py:4123-4168 | crab/scripts/check-architecture-gates.py:4277-4319 | crab/scripts/check-architecture-gates.py:4466-4524 | crab/scripts/check-architecture-gates.py:4528-4588 | crab/scripts/check-architecture-gates.py:4592-4658 | crab/scripts/check-architecture-gates.py:4662-4705 | crab/scripts/check-architecture-gates.py:4709-4755 | crab/scripts/check-architecture-gates.py:4759-4814 | crab/scripts/check-architecture-gates.py:4818-4855 \u2014 These 17 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 17 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 17 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/scripts/check-architecture-gates.py"},"region":{"startLine":2919}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb7646c3033fa44f785bffb9346563563bbf1a0a2bf864800cc19ec318a58100"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (16 members, 50\u002B identical tokens): crab/scripts/check-architecture-gates.py:2919-2980 | crab/scripts/check-architecture-gates.py:3114-3169 | crab/scripts/check-architecture-gates.py:3173-3226 | crab/scripts/check-architecture-gates.py:3377-3447 | crab/scripts/check-architecture-gates.py:3610-3659 | crab/scripts/check-architecture-gates.py:3789-3820 | crab/scripts/check-architecture-gates.py:3824-3888 | crab/scripts/check-architecture-gates.py:3892-3979 | crab/scripts/check-architecture-gates.py:3983-4014 | crab/scripts/check-architecture-gates.py:4123-4168 | crab/scripts/check-architecture-gates.py:4277-4319 | crab/scripts/check-architecture-gates.py:4406-4462 | crab/scripts/check-architecture-gates.py:4466-4524 | crab/scripts/check-architecture-gates.py:4528-4588 | crab/scripts/check-architecture-gates.py:4592-4658 | crab/scripts/check-architecture-gates.py:4709-4755 \u2014 These 16 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 16 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 16 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/scripts/check-architecture-gates.py"},"region":{"startLine":2919}}}],"partialFingerprints":{"codehealthFindingId/v1":"51778d50760ce288ee07a7ac70f0874c62de638490e1281c73b5ae8cf1bd31b3"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (11 members, 50\u002B identical tokens): crab/src/cmd/cache.rs:255-269 | crab/src/cmd/doctor.rs:2521-2535 | crab/src/cmd/du.rs:392-409 | crab/src/cmd/lfs/convert.rs:615-628 | crab/src/cmd/lfs/dedup.rs:1333-1346 | crab/src/cmd/lfs/ls_files.rs:533-547 | crab/src/cmd/ls_files.rs:302-316 | crab/src/cmd/migrate.rs:2976-2990 | crab/src/cmd/mount.rs:4486-4500 | crab/src/lfs/migrate.rs:2895-2909 | crab/src/lfs/prune.rs:993-1007 \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":"crab/src/cmd/cache.rs"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"f31f263d1c0e90dd46b49dc7d4106cdb67ba85f09bec40a5ab8f2942db291610"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (11 members, 50\u002B identical tokens): crab/src/cmd/compact.rs:97-120 | crab/src/cmd/gc/bucket.rs:273-287 | crab/src/cmd/gc/bucket.rs:298-324 | crab/src/cmd/gc/bucket.rs:2450-2503 | crab/src/cmd/history_recovery.rs:398-434 | crab/src/cmd/history_recovery.rs:441-460 | crab/src/cmd/metadb.rs:2210-2264 | crab/src/cmd/recover.rs:2515-2521 | crates/crab-auth-server/src/receive/workflow.rs:236-251 | crates/crab-workflow/src/artifact.rs:927-939 | crates/crab-workflow/src/cache.rs:757-769 \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":"crab/src/cmd/compact.rs"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"a12d6655fa1723a34245e84c02df4c76ef3718da91de2cf834b37bb8923ad1a9"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (9 members, 50\u002B identical tokens): crates/crab-sdk/src/local.rs:356-384 | crates/crab-sdk/src/local/edit.rs:378-428 | crates/crab-sdk/src/local/edit.rs:442-485 | crates/crab-sdk/src/local/edit.rs:504-531 | crates/crab-sdk/src/local/edit.rs:542-662 | crates/crab-sdk/src/local/edit.rs:676-733 | crates/crab-sdk/src/local/edit.rs:747-792 | crates/crab-sdk/src/local/edit.rs:829-862 | crates/crab-sdk/src/local/push.rs:337-586 \u2014 These 9 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 9 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 9 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-sdk/src/local.rs"},"region":{"startLine":356}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0f8a9f74bcf9615dc3eeb3666dd5897827f2e6203badd5e26ef76d4ae34633b"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (7 members, 50\u002B identical tokens): crab/src/cmd/adopt.rs:275-333 | crab/src/cmd/adopt.rs:355-411 | crab/src/cmd/init.rs:743-804 | crab/src/cmd/reset.rs:301-358 | crab/src/cmd/setup.rs:539-616 | crab/src/cmd/status.rs:388-450 | crab/src/cmd/unadopt.rs:207-269 \u2014 These 7 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 7 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 7 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/cmd/adopt.rs"},"region":{"startLine":275}}}],"partialFingerprints":{"codehealthFindingId/v1":"10fc771c61232a252b6cfd3e2d5352b5e94089c3fefbc7f86a8c5fa325f029be"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (7 members, 50\u002B identical tokens): crates/crab-http-server/src/checks.rs:869-877 | crates/crab-http-server/src/issues.rs:705-713 | crates/crab-http-server/src/labels.rs:339-347 | crates/crab-http-server/src/pulls/storage.rs:843-851 | crates/crab-http-server/src/releases/storage.rs:443-451 | crates/crab-http-server/src/repository_settings.rs:258-266 | crates/crab-http-server/src/statuses.rs:428-436 \u2014 These 7 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 7 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 7 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-http-server/src/checks.rs"},"region":{"startLine":869}}}],"partialFingerprints":{"codehealthFindingId/v1":"60108731b2849c266780a98cc4c3507a634232014d0717a245bfef8ed48c7359"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (7 members, 50\u002B identical tokens): crates/crab-http-server/src/checks.rs:879-891 | crates/crab-http-server/src/issues.rs:715-727 | crates/crab-http-server/src/labels.rs:349-361 | crates/crab-http-server/src/pulls/storage.rs:854-866 | crates/crab-http-server/src/releases/storage.rs:453-465 | crates/crab-http-server/src/repository_settings.rs:268-280 | crates/crab-http-server/src/statuses.rs:438-450 \u2014 These 7 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 7 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 7 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-http-server/src/checks.rs"},"region":{"startLine":879}}}],"partialFingerprints":{"codehealthFindingId/v1":"cae40ca8466a7f481b874dbbdc186f1d1a5a0a83d7257fc134f920d00e2c5c86"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (7 members, 50\u002B identical tokens): crates/crab-vfs/src/publish.rs:999-1025 | crates/crab-vfs/src/publish.rs:1027-1075 | crates/crab-vfs/src/publish.rs:1235-1292 | crates/crab-vfs/src/publish.rs:1314-1374 | crates/crab-vfs/src/publish.rs:1379-1417 | crates/crab-vfs/src/publish.rs:1592-1614 | crates/crab-vfs/src/publish.rs:1616-1653 \u2014 These 7 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 7 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 7 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-vfs/src/publish.rs"},"region":{"startLine":999}}}],"partialFingerprints":{"codehealthFindingId/v1":"f27385ef7df64112145715edb0642a731095c1f0655b46ef08337fe8de7d3b4e"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (6 members, 50\u002B identical tokens): crab/src/cmd/add.rs:3146-3229 | crab/src/cmd/add.rs:3240-3302 | crab/src/cmd/dehydrate.rs:488-550 | crab/src/cmd/hydrate.rs:3574-3637 | crab/src/cmd/reset.rs:301-358 | crab/src/cmd/status.rs:388-450 \u2014 These 6 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 6 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/cmd/add.rs"},"region":{"startLine":3146}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b4be35674ea0468eac6e019861f30366aa466bf110a51efd6f1c35ba207a9dd"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (6 members, 50\u002B identical tokens): crab/src/cmd/add.rs:3421-3438 | crab/src/cmd/dehydrate.rs:460-477 | crab/src/cmd/du.rs:240-256 | crab/src/cmd/hydrate.rs:3543-3560 | crab/src/cmd/reset.rs:497-514 | crab/src/cmd/status.rs:784-803 \u2014 These 6 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 6 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/cmd/add.rs"},"region":{"startLine":3421}}}],"partialFingerprints":{"codehealthFindingId/v1":"eecd3048e9697eed2480feba388292220de6a2fb3fd883ab87d0ce3f9b464dd2"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (6 members, 50\u002B identical tokens): crab/src/cmd/metadb.rs:1787-1799 | crab/src/cmd/repack.rs:1346-1363 | crab/src/git/push.rs:18811-18823 | crab/src/optimize/xorbs/reconcile.rs:779-792 | crates/crab-coordination/src/cosmosdb_coordinator.rs:1492-1508 | crates/crab-types/src/time.rs:67-85 \u2014 These 6 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 6 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/cmd/metadb.rs"},"region":{"startLine":1787}}}],"partialFingerprints":{"codehealthFindingId/v1":"077523dccf42add6e1190bf4a300cdc20e82419c30c34b772a9b0f46667864ba"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (6 members, 50\u002B identical tokens): crab/src/git/push.rs:18295-18303 | crab/src/read/mod.rs:941-949 | crates/crab-auth-server/src/receive.rs:1176-1184 | crates/crab-cache-server/src/onboarding.rs:1018-1026 | crates/crab-metadata/src/shallow_closure.rs:578-586 | crates/crab-metadata/src/split_commit_graph.rs:1031-1039 \u2014 These 6 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 6 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/git/push.rs"},"region":{"startLine":18295}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fcfc251c463d319b103c36e8bde1856d891d1ecec2b2a5ea5960a26f11e53db"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (6 members, 50\u002B identical tokens): crates/crab-http-server/src/checks.rs:832-841 | crates/crab-http-server/src/issues.rs:676-685 | crates/crab-http-server/src/labels.rs:302-311 | crates/crab-http-server/src/pulls/storage.rs:816-825 | crates/crab-http-server/src/releases/storage.rs:415-424 | crates/crab-http-server/src/statuses.rs:341-350 \u2014 These 6 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 6 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-http-server/src/checks.rs"},"region":{"startLine":832}}}],"partialFingerprints":{"codehealthFindingId/v1":"51eaaa78e6d714ec4c41e9f8b5e41035a6822868ddf5c6b5abf25466f99c044d"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (6 members, 50\u002B identical tokens): crab/scripts/verify-nfs-smoke-report.py:413-551 | crab/scripts/verify-nfs-smoke-report.py:965-1260 | crab/scripts/verify-nfs-smoke-report.py:1270-1504 | crab/scripts/verify-nfs-smoke-report.py:1608-1695 | crab/scripts/verify-nfs-smoke-report.py:1704-1783 | crab/scripts/verify-nfs-smoke-report.py:1871-1937 \u2014 These 6 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 6 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/scripts/verify-nfs-smoke-report.py"},"region":{"startLine":413}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ea37d9ccea2c7e824310b9f5ff47dc8030b2c6507e857808240a8f61ee8a050"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): crab/src/cache/add_remote_candidates.rs:412-628 | crates/crab-staging/src/index.rs:2544-2782 | crates/crab-staging/src/index.rs:3106-3194 | crates/crab-staging/src/index.rs:3200-3349 | crates/crab-staging/src/index.rs:6338-6944 \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":"crab/src/cache/add_remote_candidates.rs"},"region":{"startLine":412}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9f5a74b2ee5fbe424eef60bbf0b01bd18820b6e1739feb00ca82f8f5066e793"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): crab/src/cmd/exp.rs:3930-3959 | crab/src/cmd/exp.rs:4190-4219 | crab/src/cmd/recover.rs:2821-2837 | crab/src/cmd/recover.rs:2914-2930 | crates/crab-vfs/src/publish.rs:1714-1729 \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":"crab/src/cmd/exp.rs"},"region":{"startLine":3930}}}],"partialFingerprints":{"codehealthFindingId/v1":"0039705c47c4e21f46507ff0b34684648d4f5a6a3d294e2a20ff4b3a0d99564d"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): crab/src/cmd/gc/bucket.rs:882-909 | crab/src/cmd/gc/bucket.rs:2421-2443 | crab/src/cmd/optimize/xorbs.rs:446-661 | crab/src/replication/mod.rs:8041-8110 | crates/crab-workflow/src/artifact.rs:549-561 \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":"crab/src/cmd/gc/bucket.rs"},"region":{"startLine":882}}}],"partialFingerprints":{"codehealthFindingId/v1":"44b2b58b649f19a684b97c23ee3ff4184dce999c83003a5417db879ccb951948"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): crab/src/git/connectivity.rs:82-114 | crab/src/git/incremental_walk.rs:88-261 | crates/crab-vfs/src/engine.rs:178-207 | crates/crab-vfs/src/snapshot.rs:557-599 | crates/crab-workflow/src/params_runtime.rs:366-473 \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":"crab/src/git/connectivity.rs"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"da3456c459383adfa5560e6aa9d092a65677664088c7bed022e3e0dc0fc7434d"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): crab/src/git/progress.rs:811-855 | crab/src/git/progress.rs:860-904 | crab/src/git/progress.rs:1135-1200 | crab/src/git/progress.rs:1205-1250 | crab/src/git/progress.rs:1255-1299 \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":"crab/src/git/progress.rs"},"region":{"startLine":811}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdb151949120b4c5154abdb3a2469cb088a60db619a8ff6e02298dc371a8709f"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): crab/src/import/assemble.rs:395-418 | crab/src/import/assemble.rs:440-461 | crab/src/import/assemble.rs:826-840 | crab/src/import/assemble.rs:842-856 | crab/src/import/assemble.rs:1043-1090 \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":"crab/src/import/assemble.rs"},"region":{"startLine":395}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f3f3cf37e79212ea9c75c5611c888c467c316c14db1ce136c3eb28e4cb7f54f"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): crab/src/import/coordinator.rs:1089-1099 | crates/crab-auth/src/aws_oidc.rs:324-332 | crates/crab-auth/src/azure_entra.rs:369-377 | crates/crab-auth/src/crab_auth_client.rs:610-618 | crates/crab-auth/src/gcp_federation.rs:362-370 \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":"crab/src/import/coordinator.rs"},"region":{"startLine":1089}}}],"partialFingerprints":{"codehealthFindingId/v1":"01c970ea6c36576ea77dd590fa2da5d1ef5a14dfeeb0675dea76f5fda96194c8"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): crates/crab-http-server/src/cells.rs:470-486 | crates/crab-http-server/src/cells.rs:1059-1075 | crates/crab-http-server/src/cells.rs:1271-1290 | crates/crab-http-server/src/cells.rs:1354-1414 | crates/crab-http-server/src/cells.rs:1420-1546 \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/crab-http-server/src/cells.rs"},"region":{"startLine":470}}}],"partialFingerprints":{"codehealthFindingId/v1":"b86d1aa960827ca606b4a3eff16d687923d105bf36d4ddb915d8334115b0d0f1"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): crates/crab-http-server/src/cells.rs:775-837 | crates/crab-http-server/src/cells.rs:1583-1673 | crates/crab-http-server/src/cells/router.rs:649-691 | crates/crab-http-server/src/projection.rs:176-198 | crates/crab-http-server/src/projection.rs:206-249 \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/crab-http-server/src/cells.rs"},"region":{"startLine":775}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd44198ae9ee58e993e3417c7ff47d89fbdd4b32a81c30eb56a584d2185e29e0"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): crates/crab-http-server/src/checks.rs:857-867 | crates/crab-http-server/src/issues.rs:687-697 | crates/crab-http-server/src/labels.rs:321-331 | crates/crab-http-server/src/repository_settings.rs:246-256 | crates/crab-http-server/src/statuses.rs:366-376 \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/crab-http-server/src/checks.rs"},"region":{"startLine":857}}}],"partialFingerprints":{"codehealthFindingId/v1":"13c43c64f4f97e16982d0043ae150b3c3adf8744edebaffed7c0283bff8cc0e9"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): crates/crab-remote-git/src/error.rs:472-511 | crates/crab-sdk/src/content/crab.rs:244-293 | crates/crab-sdk/src/remote_error.rs:133-149 | crates/crab-sdk/src/remote_error.rs:169-211 | crates/crab-storage/src/error.rs:170-188 \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/crab-remote-git/src/error.rs"},"region":{"startLine":472}}}],"partialFingerprints":{"codehealthFindingId/v1":"dec24684c7c8d11a901d46e80c40414042ad808a17759979f09ec91ccf8df035"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): crates/crab-staging/src/index.rs:1115-1162 | crates/crab-staging/src/index.rs:4080-4164 | crates/crab-staging/src/index.rs:4169-4222 | crates/crab-staging/src/index.rs:4562-4689 | crates/crab-staging/src/index.rs:5066-5645 \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/crab-staging/src/index.rs"},"region":{"startLine":1115}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b7bbf6732d6a6e74997036e3d6354e77e489db71a2c8d0af70472da16945754"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): crab/scripts/check-architecture-gates.py:2565-2630 | crab/scripts/check-architecture-gates.py:2634-2690 | crab/scripts/check-architecture-gates.py:2694-2740 | crab/scripts/check-architecture-gates.py:2744-2790 | crab/scripts/check-architecture-gates.py:2794-2840 \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":"crab/scripts/check-architecture-gates.py"},"region":{"startLine":2565}}}],"partialFingerprints":{"codehealthFindingId/v1":"a578daf17089ac0a6aa97d98ba2738c97b14259dd6e4ecd92f91fd46dc99d7a4"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): crab/src/auth/mod.rs:281-382 | crates/crab-auth-store/src/lib.rs:41-133 | crates/crab-auth-store/src/lib.rs:203-217 | crates/crab-storage/src/provider_store.rs:487-499 \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":"crab/src/auth/mod.rs"},"region":{"startLine":281}}}],"partialFingerprints":{"codehealthFindingId/v1":"5385893c8a1ed2fea68688d33e61581beb6d308ee8c0e31f6e88c233b2dda2bf"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): crab/src/cmd/data.rs:1741-1779 | crab/src/cmd/exp.rs:1865-1908 | crab/src/cmd/exp.rs:2294-2323 | crab/src/cmd/exp.rs:2398-2436 \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":"crab/src/cmd/data.rs"},"region":{"startLine":1741}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad1b6caae7797f616fbab8c557fe6dc3a2d1f289ea72cbf4e693d818f092b94b"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): crab/src/cmd/dehydrate.rs:395-408 | crab/src/cmd/hydrate.rs:3477-3490 | crab/src/cmd/reset.rs:432-445 | crab/src/cmd/status.rs:654-667 \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":"crab/src/cmd/dehydrate.rs"},"region":{"startLine":395}}}],"partialFingerprints":{"codehealthFindingId/v1":"09eb3c290f67e591012cf83af5668e63ac68f47c049f3c1b4705a46f32b8dce6"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): crab/src/cmd/exp.rs:4256-4293 | crab/src/cmd/exp.rs:4498-4530 | crab/src/cmd/exp.rs:4756-4804 | crab/src/cmd/exp.rs:4849-4896 \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":"crab/src/cmd/exp.rs"},"region":{"startLine":4256}}}],"partialFingerprints":{"codehealthFindingId/v1":"55f908c1df5934a76ebb6526567f28dd9ecdb7adfe3f0130e465ce1003a5c160"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): crab/src/cmd/exp.rs:5588-5675 | crab/src/cmd/metrics.rs:3526-3557 | crab/src/cmd/params.rs:371-402 | crates/crab-workflow/src/params_runtime.rs:504-534 \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":"crab/src/cmd/exp.rs"},"region":{"startLine":5588}}}],"partialFingerprints":{"codehealthFindingId/v1":"3951d4a40e3f6da4467a5695bd2414d9e672c6348bfbba226b413308b7ced715"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): crab/src/cmd/exp_queue.rs:892-908 | crab/src/cmd/exp_queue.rs:1019-1026 | crab/src/cmd/lfs/convert.rs:511-521 | crab/src/git/pack.rs:1912-1918 \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":"crab/src/cmd/exp_queue.rs"},"region":{"startLine":892}}}],"partialFingerprints":{"codehealthFindingId/v1":"02ce6ff9d9380aec91edb9b24d02111573a1982c77a9a19dc957e3bf9b11112d"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): crab/src/cmd/fsck_store.rs:340-355 | crab/src/lfs/lock.rs:288-328 | crab/src/lfs/lock.rs:338-374 | crab/src/metadata/refs.rs:83-121 \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":"crab/src/cmd/fsck_store.rs"},"region":{"startLine":340}}}],"partialFingerprints":{"codehealthFindingId/v1":"fee201973fbee632ed6378dabb93bea802f4081d143e44ad271ac06b9d2a5e2d"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): crab/src/cmd/metadb.rs:2692-3115 | crab/src/git/push.rs:13183-13520 | crates/crab-auth-server/src/receive.rs:1504-1687 | crates/crab-auth-server/src/receive/git_workspace.rs:392-529 \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":"crab/src/cmd/metadb.rs"},"region":{"startLine":2692}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9c7ed89c8f03a0eb40ab119687de27631128c53e2577d31b8610babb03b0b2d"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): crab/src/speculation/access_db.rs:336-350 | crab/src/speculation/access_db.rs:353-367 | crab/src/speculation/access_db.rs:387-401 | crab/src/speculation/access_db.rs:404-418 \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":"crab/src/speculation/access_db.rs"},"region":{"startLine":336}}}],"partialFingerprints":{"codehealthFindingId/v1":"020eb4ab1e66107402f00a8b647e5a3c42c8b646ae385932aaf64f53f79e45a8"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): crates/crab-auth/src/aws_oidc.rs:130-152 | crates/crab-auth/src/azure_entra.rs:156-178 | crates/crab-auth/src/crab_auth_client.rs:442-464 | crates/crab-auth/src/gcp_federation.rs:186-208 \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/crab-auth/src/aws_oidc.rs"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"5443d32654a1e21de1d4ceb4271908a86c2ef936386a5151512bfbc24adf0773"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): crates/crab-auth/src/aws_oidc.rs:296-322 | crates/crab-auth/src/azure_entra.rs:341-367 | crates/crab-auth/src/crab_auth_client.rs:582-608 | crates/crab-auth/src/gcp_federation.rs:334-360 \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/crab-auth/src/aws_oidc.rs"},"region":{"startLine":296}}}],"partialFingerprints":{"codehealthFindingId/v1":"38c5e6f2f9fa5089778fedaa518d630cc8ec53f70ffbbe803b788ea6a892103e"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): crates/crab-auth/src/aws_oidc.rs:345-355 | crates/crab-auth/src/azure_entra.rs:379-389 | crates/crab-auth/src/crab_auth_client.rs:620-630 | crates/crab-auth/src/gcp_federation.rs:376-386 \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/crab-auth/src/aws_oidc.rs"},"region":{"startLine":345}}}],"partialFingerprints":{"codehealthFindingId/v1":"de25b390e8c47ef41900701ccd7d1433bdf06001a0a8326c8969e5385ade7d3f"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): crates/crab-cache/src/local_cache.rs:585-595 | crates/crab-cache/src/local_cache.rs:623-637 | crates/crab-cache/src/local_cache.rs:640-652 | crates/crab-cache/src/local_cache.rs:779-790 \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/crab-cache/src/local_cache.rs"},"region":{"startLine":585}}}],"partialFingerprints":{"codehealthFindingId/v1":"f362a00d99234c52aa3024645d4c59d30a0ecdb6e05c4370447b21406f2f0cfe"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): crates/crab-http-server/src/cells/repository.rs:349-430 | crates/crab-http-server/src/cells/repository/checks.rs:139-224 | crates/crab-http-server/src/cells/repository/checks.rs:239-329 | crates/crab-http-server/src/cells/repository/operations.rs:398-501 \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/crab-http-server/src/cells/repository.rs"},"region":{"startLine":349}}}],"partialFingerprints":{"codehealthFindingId/v1":"a86f9251cee0e0eda65db5812a3cee34ecbfb4c386732b680c8c217bd465445e"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): crates/crab-http-server/src/cells/repository/checks.rs:684-696 | crates/crab-http-server/src/cells/repository/pull_review_threads.rs:823-835 | crates/crab-http-server/src/cells/repository/pulls.rs:671-683 | crates/crab-http-server/src/cells/repository/releases.rs:841-853 \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/crab-http-server/src/cells/repository/checks.rs"},"region":{"startLine":684}}}],"partialFingerprints":{"codehealthFindingId/v1":"acd14953bb1ac74ee56ce1cd93bda361a45cc065c093dc16f8f85babd8a8d1b0"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): crates/crab-http-server/src/cells/repository/checks.rs:801-811 | crates/crab-http-server/src/cells/repository/projection.rs:1124-1134 | crates/crab-http-server/src/cells/repository/pull_review_threads.rs:1270-1280 | crates/crab-http-server/src/cells/repository/releases.rs:1156-1166 \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/crab-http-server/src/cells/repository/checks.rs"},"region":{"startLine":801}}}],"partialFingerprints":{"codehealthFindingId/v1":"6265a454004041c8c86941824716062f530260f0824805becd1d5b999e67f481"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): crates/crab-lfs/src/lock.rs:290-334 | crates/crab-lfs/src/lock.rs:350-382 | crates/crab-lfs/src/lock.rs:407-438 | crates/crab-lfs/src/lock.rs:470-500 \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/crab-lfs/src/lock.rs"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"901fbea738d6d8e5b46ec8af5fa466b1b032ecaebc3177b9911116a0f45a2399"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): crates/crab-staging/src/index.rs:2288-2537 | crates/crab-staging/src/index.rs:4311-4461 | crates/crab-staging/src/index.rs:7842-7913 | crates/crab-staging/src/index.rs:8060-8313 \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/crab-staging/src/index.rs"},"region":{"startLine":2288}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf7fad8adf26965e20ced3b40a3aaf6d97483a3b2fb0e9cf35b6f8c8789e5b03"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): crates/crab-staging/src/lib.rs:3158-3200 | crates/crab-staging/src/lib.rs:3277-3403 | crates/crab-staging/src/lib.rs:3514-3613 | crates/crab-staging/src/lib.rs:4200-4260 \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/crab-staging/src/lib.rs"},"region":{"startLine":3158}}}],"partialFingerprints":{"codehealthFindingId/v1":"caaee29ba9ca5c9e41acec57239713995e17375f3381703a469816c5bc8a0f00"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): crates/crab-vfs/src/overlay.rs:309-337 | crates/crab-vfs/src/overlay.rs:563-584 | crates/crab-vfs/src/overlay.rs:587-620 | crates/crab-vfs/src/overlay.rs:747-756 \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/crab-vfs/src/overlay.rs"},"region":{"startLine":309}}}],"partialFingerprints":{"codehealthFindingId/v1":"49605735fa6f455ac63d4635a30522f6d79218315aacfb93a25cc764e2b35195"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): crates/crab-workflow/src/exp_worktree.rs:1152-1171 | crates/crab-workflow/src/exp_worktree.rs:1173-1190 | crates/crab-workflow/src/params.rs:301-319 | crates/crab-workflow/src/params.rs:321-337 \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/crab-workflow/src/exp_worktree.rs"},"region":{"startLine":1152}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fe9f182077fe026f9023de7b9fb3788c61ac98d33461a889a24e7a7345420fb"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): crates/crab-xet/src/shard_parse.rs:295-371 | crates/crab-xet/src/shard_parse.rs:468-538 | crates/crab-xet/src/shard_parse.rs:602-689 | crates/crab-xet/src/shard_parse.rs:759-787 \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/crab-xet/src/shard_parse.rs"},"region":{"startLine":295}}}],"partialFingerprints":{"codehealthFindingId/v1":"cff3a69cac44d3b7e449911d623333fe18a59801bcc53e1718c3fd5d98b10274"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (172 corresponding lines): crab/src/core/error.rs:2462-2633 | crab/src/core/error_catalog.rs:1396-1568 \u2014 These two members are one piece of code written twice and then edited apart: 172 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":"crab/src/core/error.rs"},"region":{"startLine":2462}}}],"partialFingerprints":{"codehealthFindingId/v1":"4aec90336ed98d4d1cfe946623d6321544fae02ffce36555f7d77ba30632a5f7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (197 corresponding lines): crab/src/lfs/migrate.rs:1398-1616 | crab/src/lfs/migrate.rs:2109-2305 \u2014 These two members are one piece of code written twice and then edited apart: 197 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":"crab/src/lfs/migrate.rs"},"region":{"startLine":1398}}}],"partialFingerprints":{"codehealthFindingId/v1":"73684dcb49c8472df32af260c08951746e0b41d8cf7413fc3e602c7c53c4b270"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (119 corresponding lines): crates/crab-staging/src/index.rs:7718-7836 | crates/crab-staging/src/index.rs:8341-8506 \u2014 These two members are one piece of code written twice and then edited apart: 119 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/crab-staging/src/index.rs"},"region":{"startLine":7718}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2ed4343b9b75b2bc7da0e6bcedf4fca1be1c56bf8ad073e2876a794714b5bfc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (113 corresponding lines): crab/src/cmd/gc/mod.rs:1689-1801 | crab/src/cmd/gc/mod.rs:2240-2394 \u2014 These two members are one piece of code written twice and then edited apart: 113 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":"crab/src/cmd/gc/mod.rs"},"region":{"startLine":1689}}}],"partialFingerprints":{"codehealthFindingId/v1":"529123f253c3045739a6270823cd0afa4a72b230fe96b8be80c0915fd76f308a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (85 corresponding lines): crates/crab-http-server/src/contents.rs:419-505 | crates/crab-http-server/src/contents.rs:513-597 \u2014 These two members are one piece of code written twice and then edited apart: 85 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/crab-http-server/src/contents.rs"},"region":{"startLine":419}}}],"partialFingerprints":{"codehealthFindingId/v1":"330e9f622fb60fe0fec29b65a13787ff06a227c9103bc1bce3472f8423d1bf3a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (85 corresponding lines): crates/crab-workflow/src/signals.rs:394-497 | crates/crab-workflow/src/signals.rs:504-588 \u2014 These two members are one piece of code written twice and then edited apart: 85 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/crab-workflow/src/signals.rs"},"region":{"startLine":394}}}],"partialFingerprints":{"codehealthFindingId/v1":"d35bfbe652119a15709411bd6bc28cba69815f0e6b26e5a1a410313f77919bdb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (86 corresponding lines): crab/src/lfs/migrate.rs:1968-2079 | crab/src/lfs/migrate.rs:2348-2433 \u2014 These two members are one piece of code written twice and then edited apart: 86 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":"crab/src/lfs/migrate.rs"},"region":{"startLine":1968}}}],"partialFingerprints":{"codehealthFindingId/v1":"4504b0eb9c9359b43e0cffed867b3f83d305c29406d5c865d005ac8fea50d5ed"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (72 corresponding lines): crates/crab-coordination/src/write_coordinator.rs:771-843 | crates/crab-coordination/src/write_coordinator.rs:1268-1339 \u2014 These two members are one piece of code written twice and then edited apart: 72 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/crab-coordination/src/write_coordinator.rs"},"region":{"startLine":771}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6d81845ee0372e556b4e5948c28439375b04aef012900d62cd335fea4679e86"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (66 corresponding lines): crates/crab-http-server/src/checks.rs:293-361 | crates/crab-http-server/src/checks.rs:444-509 \u2014 These two members are one piece of code written twice and then edited apart: 66 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/crab-http-server/src/checks.rs"},"region":{"startLine":293}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3401297918bd8e7ecec14ac409fc28f1238cc3872944b8cdb80a748057eaeed"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (59 corresponding lines): crab/src/metadata/metadb/stores/chunk_index.rs:340-416 | crab/src/metadata/metadb/stores/chunk_index.rs:440-498 \u2014 These two members are one piece of code written twice and then edited apart: 59 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":"crab/src/metadata/metadb/stores/chunk_index.rs"},"region":{"startLine":340}}}],"partialFingerprints":{"codehealthFindingId/v1":"36d48053899dd803dcafa85a459815798d87a719e2f4f421d21ef5c86b16c432"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (62 corresponding lines): crates/crab-metadata/src/git_object_locator/reader.rs:449-510 | crates/crab-metadata/src/git_object_locator/writer.rs:788-852 \u2014 These two members are one piece of code written twice and then edited apart: 62 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/crab-metadata/src/git_object_locator/reader.rs"},"region":{"startLine":449}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fc46aef7782c684b29dc7f28bebd484c3e678bb7e522441046d37620e4570a1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (122 corresponding lines): crates/crab-staging/src/index.rs:3394-3536 | crates/crab-staging/src/index.rs:3748-3869 \u2014 These two members are one piece of code written twice and then edited apart: 122 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/crab-staging/src/index.rs"},"region":{"startLine":3394}}}],"partialFingerprints":{"codehealthFindingId/v1":"31478c6467df949cc9eca0a90969129787dd9991d65853684973dedfeb5a7271"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (85 corresponding lines): crab/src/cmd/managed_admin.rs:267-356 | crab/src/cmd/managed_admin.rs:492-576 \u2014 These two members are one piece of code written twice and then edited apart: 85 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":"crab/src/cmd/managed_admin.rs"},"region":{"startLine":267}}}],"partialFingerprints":{"codehealthFindingId/v1":"a304368c49faf9d5e6af2d9bbff906eb6aefc5d76311171f389959839a8fc8fd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (55 corresponding lines): crates/crab-http-server/src/cells/repository/operations.rs:221-275 | crates/crab-http-server/src/cells/repository/operations.rs:290-367 \u2014 These two members are one piece of code written twice and then edited apart: 55 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/crab-http-server/src/cells/repository/operations.rs"},"region":{"startLine":221}}}],"partialFingerprints":{"codehealthFindingId/v1":"02bfe7dcdc4a448abe6a1799105ebf59ca8eadd0716f99d4d40051701dadeff3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (82 corresponding lines): crates/crab-cache-store/src/lib.rs:401-487 | crates/crab-cache-store/src/lib.rs:494-575 \u2014 These two members are one piece of code written twice and then edited apart: 82 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/crab-cache-store/src/lib.rs"},"region":{"startLine":401}}}],"partialFingerprints":{"codehealthFindingId/v1":"d29f99e9e11f148854fa7bec53dfb8530a93253c7db0755c34be42d5b181d45a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (58 corresponding lines): crates/crab-http-server/src/cells/repository/pull_review_threads.rs:417-498 | crates/crab-http-server/src/cells/repository/pulls.rs:865-922 \u2014 These two members are one piece of code written twice and then edited apart: 58 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/crab-http-server/src/cells/repository/pull_review_threads.rs"},"region":{"startLine":417}}}],"partialFingerprints":{"codehealthFindingId/v1":"a57b5f42c9f4dfff17d9ddeed00f014cb80cee59f0cb38d4f30f004df264bd4e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (67 corresponding lines): crab/src/cmd/gc/mod.rs:2601-2671 | crab/src/cmd/gc/mod.rs:2925-2991 \u2014 These two members are one piece of code written twice and then edited apart: 67 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":"crab/src/cmd/gc/mod.rs"},"region":{"startLine":2601}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f2403471c7a0bb8b845f2f7600091b40524a68b3dcaec1b2f5038854c430756"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (66 corresponding lines): crab/src/replication/mod.rs:1729-1794 | crab/src/replication/mod.rs:1811-1876 \u2014 These two members are one piece of code written twice and then edited apart: 66 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":"crab/src/replication/mod.rs"},"region":{"startLine":1729}}}],"partialFingerprints":{"codehealthFindingId/v1":"d91e6c92ae8662562c9f46ff7c684814fc3407bc194ba480e457cab44d7fae05"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (62 corresponding lines): crates/crab-remote-git/src/snapshot.rs:277-349 | crates/crab-remote-git/src/snapshot.rs:358-419 \u2014 These two members are one piece of code written twice and then edited apart: 62 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/crab-remote-git/src/snapshot.rs"},"region":{"startLine":277}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3d2d9aa13f15e10b136928f0e89ba439a540a85f4e5968bde1b1b04f6972b81"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (40 corresponding lines): crates/crab-workflow/src/params.rs:870-926 | crates/crab-workflow/src/params.rs:928-967 \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/crab-workflow/src/params.rs"},"region":{"startLine":870}}}],"partialFingerprints":{"codehealthFindingId/v1":"df5b9c1e5ca63e3a1cff38d3ccbae13c7bbef67e423bcd3831fc5bbe3f7a0876"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 69\u002B corresponding lines): crab/src/cmd/doctor.rs:1314-1382 | crab/src/cmd/doctor.rs:1389-1462 | crab/src/cmd/doctor.rs:1468-1536 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 69 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":"crab/src/cmd/doctor.rs"},"region":{"startLine":1314}}}],"partialFingerprints":{"codehealthFindingId/v1":"c93157b76306c4f621948c427268b5518334f42909f9445fdf83b2bad3615107"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (77 corresponding lines): crates/crab-auth/src/crab_auth_client.rs:159-235 | crates/crab-auth/src/crab_auth_client.rs:246-322 \u2014 These two members are one piece of code written twice and then edited apart: 77 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/crab-auth/src/crab_auth_client.rs"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"9518929f11f96a7d872195d903e9a0d70680d71efe0160de2b41af48c59ae27d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (52 corresponding lines): crab/src/cmd/gc/mod.rs:2091-2143 | crab/src/cmd/gc/mod.rs:2153-2204 \u2014 These two members are one piece of code written twice and then edited apart: 52 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":"crab/src/cmd/gc/mod.rs"},"region":{"startLine":2091}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c5c5d32751dc844c2605af25afa2a55b3564c7f39377a0fdc7ae97791712ebe"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (47 corresponding lines): crab/src/cmd/recover.rs:2000-2046 | crab/src/cmd/recover.rs:2257-2307 \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":"crab/src/cmd/recover.rs"},"region":{"startLine":2000}}}],"partialFingerprints":{"codehealthFindingId/v1":"43e5e3985e5bddf01f1af2caa4a40bb768477fc3358e9b87fed5bf7369bc30a8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (50 corresponding lines): crab/src/cmd/metrics.rs:497-561 | crab/src/cmd/metrics.rs:567-616 \u2014 These two members are one piece of code written twice and then edited apart: 50 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/cmd/metrics.rs"},"region":{"startLine":497}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f6f70029280c5ccbaee51d1cfebe8c58c5c1476d37bc4cd3c268078fa04558c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (39 corresponding lines): crab/src/cache/add_validation.rs:74-112 | crates/crab-staging/src/index.rs:6291-6332 \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":"crab/src/cache/add_validation.rs"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"c83e6c30cb842558cd78cea216045fd9c9d189ca0a344f304e27963c3889aabb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (80 corresponding lines): crab/src/replication/mod.rs:5989-6080 | crab/src/replication/mod.rs:6158-6237 \u2014 These two members are one piece of code written twice and then edited apart: 80 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":"crab/src/replication/mod.rs"},"region":{"startLine":5989}}}],"partialFingerprints":{"codehealthFindingId/v1":"67456bb0a2ecc5d97fce42586afa17d7469aa8bb8ca97e631aeb7c2b03502f15"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (45 corresponding lines): crab/src/git/push.rs:17575-17624 | crates/crab-write/src/generation.rs:818-862 \u2014 These two members are one piece of code written twice and then edited apart: 45 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/git/push.rs"},"region":{"startLine":17575}}}],"partialFingerprints":{"codehealthFindingId/v1":"8376cd24d164917cadb9621607b92b2d7a65b154de072c4605f4aad68a5dc56e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (70 corresponding lines): crab/src/replication/mod.rs:1266-1339 | crab/src/replication/mod.rs:1481-1550 \u2014 These two members are one piece of code written twice and then edited apart: 70 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":"crab/src/replication/mod.rs"},"region":{"startLine":1266}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa36b91e83c79c32249623c606ed65c80ce356a48879c033fe8bbef5d809ce3f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (54 corresponding lines): crates/crab-staging/src/lib.rs:624-677 | crates/crab-staging/src/lib.rs:738-797 \u2014 These two members are one piece of code written twice and then edited apart: 54 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/crab-staging/src/lib.rs"},"region":{"startLine":624}}}],"partialFingerprints":{"codehealthFindingId/v1":"96b0472180d46e58d48085bf56010294d31e46b95513016d1b34f385a86a8f55"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (68 corresponding lines): crab/src/cmd/replica.rs:12563-12630 | crab/src/cmd/replica.rs:12916-12985 \u2014 These two members are one piece of code written twice and then edited apart: 68 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":"crab/src/cmd/replica.rs"},"region":{"startLine":12563}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2c50f23901dbae5ee78530aade373c2c3591f90dfa47621415af739203b9b8c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (31 corresponding lines): crab/src/cmd/metrics.rs:4089-4119 | crab/src/cmd/params.rs:744-777 \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":"crab/src/cmd/metrics.rs"},"region":{"startLine":4089}}}],"partialFingerprints":{"codehealthFindingId/v1":"da3853dcb6aab53cd9cc616d80698cfc3cafd1f232a04d35e5e7e636417122c8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (35 corresponding lines): crates/crab-staging/src/push_plan.rs:1098-1132 | crates/crab-staging/src/push_plan.rs:1139-1173 \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/crab-staging/src/push_plan.rs"},"region":{"startLine":1098}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ac15e1131f2f31bd94d83caec73ca6c875c8fd00728ead0ed1e10cd7f73dbd5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (51 corresponding lines): crab/src/cmd/hydrate.rs:1619-1669 | crab/src/cmd/hydrate.rs:1968-2027 \u2014 These two members are one piece of code written twice and then edited apart: 51 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":"crab/src/cmd/hydrate.rs"},"region":{"startLine":1619}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a35bf276d80d54a943806d5946c7d738a421b13ede24a74f6138c0cfb76e606"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (38 corresponding lines): crates/crab-metadata/src/segmented_store.rs:169-206 | crates/crab-metadata/src/segmented_store.rs:230-267 \u2014 These two members are one piece of code written twice and then edited apart: 38 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/crab-metadata/src/segmented_store.rs"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"a084a0f48ae41e0a1ce476c7710af9f27de60e07edcf6d7f1cc938612d3ea608"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (46 corresponding lines): crab/src/git/incremental_walk.rs:265-310 | crab/src/git/push.rs:18311-18370 \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":"crab/src/git/incremental_walk.rs"},"region":{"startLine":265}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac6df3ef376b10612f7d190fc97377da4dda994a391ee462e4d15f54aa37ed9b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (42 corresponding lines): crates/crab-metadata/src/git_visibility.rs:531-572 | crates/crab-metadata/src/git_visibility.rs:1160-1213 \u2014 These two members are one piece of code written twice and then edited apart: 42 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/crab-metadata/src/git_visibility.rs"},"region":{"startLine":531}}}],"partialFingerprints":{"codehealthFindingId/v1":"b333795eb909d49a2e5ec966656e952b831a5a41881dcf9a2553e0da1d715c72"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (59 corresponding lines): crates/crab-staging/src/index.rs:2954-3012 | crates/crab-staging/src/index.rs:3871-3934 \u2014 These two members are one piece of code written twice and then edited apart: 59 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/crab-staging/src/index.rs"},"region":{"startLine":2954}}}],"partialFingerprints":{"codehealthFindingId/v1":"69de2597da558f6748c4539a17484984cc16956bef18d63d99971a9c2999f40f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (42 corresponding lines): crates/crab-workflow/src/exp_worktree.rs:401-455 | crates/crab-workflow/src/params_runtime.rs:321-362 \u2014 These two members are one piece of code written twice and then edited apart: 42 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/crab-workflow/src/exp_worktree.rs"},"region":{"startLine":401}}}],"partialFingerprints":{"codehealthFindingId/v1":"be2555e40d97698a26faff50bbe2392584e825fda1246b78a256442e713bc2b4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (39 corresponding lines): crates/crab-metadata/src/git_object_locator/reader.rs:530-568 | crates/crab-metadata/src/git_object_locator/reader.rs:579-624 \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/crab-metadata/src/git_object_locator/reader.rs"},"region":{"startLine":530}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfadc80332b739084c2af686e2759cd1dad192d81a0fbe02434d7f54eb1c1b48"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (41 corresponding lines): crab/src/cmd/metrics.rs:1836-1876 | crab/src/cmd/metrics.rs:1883-1929 \u2014 These two members are one piece of code written twice and then edited apart: 41 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":"crab/src/cmd/metrics.rs"},"region":{"startLine":1836}}}],"partialFingerprints":{"codehealthFindingId/v1":"5510ac10ac5a94e8de422d049c58a0de4a26096ab8b8f2484629d0aacd9f4e92"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 24\u002B corresponding lines): crates/crab-http-server/src/cells/repository/pull_review_threads.rs:513-556 | crates/crab-http-server/src/cells/repository/pulls.rs:937-960 | crates/crab-http-server/src/cells/repository/pulls.rs:1102-1125 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 24 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/crab-http-server/src/cells/repository/pull_review_threads.rs"},"region":{"startLine":513}}}],"partialFingerprints":{"codehealthFindingId/v1":"df19624a3d777dbea2bae8703cd398163a25bd10b639d88bb8eee7fb8e33b723"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (47 corresponding lines): crab/src/storage/retry.rs:328-404 | crates/crab-storage/src/retry.rs:123-169 \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":"crab/src/storage/retry.rs"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"913eab4e5a93f59738be3ddb1653172557a14279d2af109f4563927fa045b10b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (75 corresponding lines): crates/crab-coordination/src/write_coordinator.rs:1970-2044 | crates/crab-coordination/src/write_coordinator.rs:2051-2128 \u2014 These two members are one piece of code written twice and then edited apart: 75 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/crab-coordination/src/write_coordinator.rs"},"region":{"startLine":1970}}}],"partialFingerprints":{"codehealthFindingId/v1":"202723fd1f7291efb3bd619ab548e9fd482668038480f46417a7dec00ea2b587"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (39 corresponding lines): crab/src/lfs/migrate.rs:2837-2875 | crates/crab-workflow/src/yaml.rs:1875-1919 \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":"crab/src/lfs/migrate.rs"},"region":{"startLine":2837}}}],"partialFingerprints":{"codehealthFindingId/v1":"37e12d2916528523ea50c440c7ab90d322719f9859704c6286f876f1d8b9a4fd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (34 corresponding lines): crates/crab-http-server/src/peer.rs:1194-1227 | crates/crab-http-server/src/peer.rs:1274-1326 \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/crab-http-server/src/peer.rs"},"region":{"startLine":1194}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b2571e2fdd44777bed2d835b2927366e86af326a0dec1049fe63ddc559f698b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (51 corresponding lines): crates/crab-auth/src/azure_entra.rs:190-244 | crates/crab-auth/src/gcp_federation.rs:220-270 \u2014 These two members are one piece of code written twice and then edited apart: 51 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/crab-auth/src/azure_entra.rs"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d208ec5ceaf3bda6a0bd0c240ca9ca42c2be902fad6fe5f92459936dc7dcd82"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (56 corresponding lines): crab/src/cmd/metadb.rs:1407-1462 | crab/src/cmd/metadb.rs:1469-1524 \u2014 These two members are one piece of code written twice and then edited apart: 56 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":"crab/src/cmd/metadb.rs"},"region":{"startLine":1407}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5c272ac6df22b0de91bc5578b6650edef820735bf6e1f3bedee8fa2d2bdefe1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (36 corresponding lines): crab/src/read/mod.rs:341-376 | crab/src/read/mod.rs:382-417 \u2014 These two members are one piece of code written twice and then edited apart: 36 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/read/mod.rs"},"region":{"startLine":341}}}],"partialFingerprints":{"codehealthFindingId/v1":"977842d627dce4b2a50a4795f729c002aed5ddf78a22844f509471f9c05988cb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (6 members, 35\u002B corresponding lines): crab/src/cmd/workflow_checkpoint.rs:777-811 | crates/crab-workflow/src/artifact.rs:323-365 | crates/crab-workflow/src/checkpoint.rs:103-140 | crates/crab-workflow/src/dvc_inventory.rs:391-427 | crates/crab-workflow/src/external_hash.rs:93-133 | crates/crab-workflow/src/source.rs:60-96 \u2014 These 6 members are one piece of code written 6 times and then edited apart: every two of them correspond over at least 35 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 6 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/cmd/workflow_checkpoint.rs"},"region":{"startLine":777}}}],"partialFingerprints":{"codehealthFindingId/v1":"78e0c044953ffd091aa0b086b76445636f86e1b0274776d0aa88a94eb55e4d83"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (49 corresponding lines): crab/src/cost/recommendations.rs:148-197 | crab/src/cost/recommendations.rs:200-248 \u2014 These two members are one piece of code written twice and then edited apart: 49 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":"crab/src/cost/recommendations.rs"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"179e74c6dc25e32f4ff7a6250d0a151341c5d27d7660fb45837ae09cc45a316c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 46\u002B corresponding lines): crab/src/cmd/recover.rs:1938-1991 | crab/src/cmd/recover.rs:2059-2104 | crab/src/cmd/recover.rs:2197-2247 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 46 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":"crab/src/cmd/recover.rs"},"region":{"startLine":1938}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb1a2f44618a35a968364513d48df7958dda54238aafcda2831bdbf3190dab03"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (44 corresponding lines): crates/crab-http-server/src/cells/repository/checks.rs:627-670 | crates/crab-http-server/src/checks.rs:193-251 \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/crab-http-server/src/cells/repository/checks.rs"},"region":{"startLine":627}}}],"partialFingerprints":{"codehealthFindingId/v1":"c113d960c8f3891e48e9b74cf88d9d3ab6a738f064044ee9c36a65e5dc55f536"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (38 corresponding lines): crates/crab-s3-gateway/src/multipart.rs:1231-1268 | crates/crab-s3-gateway/src/multipart.rs:1274-1315 \u2014 These two members are one piece of code written twice and then edited apart: 38 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/crab-s3-gateway/src/multipart.rs"},"region":{"startLine":1231}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f6bc986e1a710831958e74d18ea511e4e9dde8a4fab373abfff0f4648f9ec07"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 43\u002B corresponding lines): crab/src/git/push.rs:5729-5772 | crab/src/git/push.rs:6353-6395 | crates/crab-write/src/journal.rs:392-438 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 43 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":"crab/src/git/push.rs"},"region":{"startLine":5729}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbe9f8f009ca461e731c86b9afe3b79faa6dc20a3597fb451d3cdb7ea5734761"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): crab/scripts/qualify_sdk.py:389-417 | crab/scripts/verify-sdk-read-only.py:53-82 \u2014 These two members are one piece of code written twice and then edited apart: 29 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/scripts/qualify_sdk.py"},"region":{"startLine":389}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f5973b325a16fc84db99effb0368c41d4f42b7f19134423ef6aad0224923b36"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (43 corresponding lines): crab/src/cmd/metrics.rs:1331-1383 | crab/src/cmd/metrics.rs:1389-1431 \u2014 These two members are one piece of code written twice and then edited apart: 43 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":"crab/src/cmd/metrics.rs"},"region":{"startLine":1331}}}],"partialFingerprints":{"codehealthFindingId/v1":"35b0edaa3707ca52b6f85c5c84b1fd079a3eab3d530f1cd83f7c45997e1ccff5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (31 corresponding lines): crates/crab-sdk/src/mutation.rs:692-722 | crates/crab-sdk/src/mutation.rs:734-767 \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/crab-sdk/src/mutation.rs"},"region":{"startLine":692}}}],"partialFingerprints":{"codehealthFindingId/v1":"34731128dd5754c514fec8e5937c2b6d7a4f8a10a18e0f6909dfe36b2153de1c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (33 corresponding lines): crates/crab-http-server/src/labels.rs:186-223 | crates/crab-http-server/src/labels.rs:230-262 \u2014 These two members are one piece of code written twice and then edited apart: 33 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/crab-http-server/src/labels.rs"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"136be1b80a05e81d474b2cddfd86d50f824ab6e7b8c35a1b6d264feae6ac2664"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (41 corresponding lines): crab/src/import/assemble.rs:336-390 | crab/src/import/coordinator.rs:1309-1349 \u2014 These two members are one piece of code written twice and then edited apart: 41 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":"crab/src/import/assemble.rs"},"region":{"startLine":336}}}],"partialFingerprints":{"codehealthFindingId/v1":"713db2e2b51805ec3a6840744371765849e269d93d2e02c11958026829e88e39"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (44 corresponding lines): crab/src/cmd/exp.rs:3557-3602 | crab/src/cmd/exp.rs:5169-5212 \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":"crab/src/cmd/exp.rs"},"region":{"startLine":3557}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd00f8760f48ce017f2ade9c25c9634a8f05928836f8c97da7388d3ce020986b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (35 corresponding lines): crates/crab-workflow/src/exp_worktree.rs:1050-1099 | crates/crab-workflow/src/params.rs:195-229 \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/crab-workflow/src/exp_worktree.rs"},"region":{"startLine":1050}}}],"partialFingerprints":{"codehealthFindingId/v1":"de48a067d2c9a07118d93ab8ba68f4a4b855323ecc5c3b7f39b0906238e756a5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (43 corresponding lines): crab/src/import/journal.rs:424-467 | crates/crab-metadata/src/persistent_chunk_index.rs:592-634 \u2014 These two members are one piece of code written twice and then edited apart: 43 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":"crab/src/import/journal.rs"},"region":{"startLine":424}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa2f25307a2a637856c25f3c8287f9ad681ce8458ed8a1188ca04c74f1964659"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (38 corresponding lines): crab/src/cmd/recover.rs:799-843 | crab/src/cmd/recover.rs:845-882 \u2014 These two members are one piece of code written twice and then edited apart: 38 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":"crab/src/cmd/recover.rs"},"region":{"startLine":799}}}],"partialFingerprints":{"codehealthFindingId/v1":"f81fcc6f04dab703742fee64e75fa76ef9851b0c0cb6bb02c6bf8ad0b9cff538"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 62\u002B corresponding lines): crab/src/storage/head_class.rs:143-204 | crab/src/storage/head_class.rs:239-309 | crab/src/storage/head_class.rs:348-420 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 62 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":"crab/src/storage/head_class.rs"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"de91ece6afc983e41b0661582bcdbfb29cdd4bb1d58baa167a79343594709245"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (32 corresponding lines): crates/crab-cache/src/active_probe.rs:147-178 | crates/crab-cache/src/active_probe.rs:186-222 \u2014 These two members are one piece of code written twice and then edited apart: 32 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/crab-cache/src/active_probe.rs"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"097f5de5449cd13a25cf8bf5a380294b7ef214e07b4b9dd78b38170efb08dc50"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (55 corresponding lines): crab/src/cmd/du.rs:164-218 | crab/src/cmd/status.rs:815-873 \u2014 These two members are one piece of code written twice and then edited apart: 55 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":"crab/src/cmd/du.rs"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"33baf362e2765bfc2e8ce755a91f0f53ad17c14da99f2bc9c1a8624ef762078b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (35 corresponding lines): crates/crab-cache-server/src/cache_store.rs:693-727 | crates/crab-cache-server/src/cache_store.rs:729-767 \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/crab-cache-server/src/cache_store.rs"},"region":{"startLine":693}}}],"partialFingerprints":{"codehealthFindingId/v1":"612bc19b9feccb9e81c6621e9c16bdce8b78350037e9e878d0f6c37947059294"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): crates/crab-vfs/src/nfs_control.rs:953-975 | crates/crab-vfs/src/nfs_control.rs:982-1007 \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/crab-vfs/src/nfs_control.rs"},"region":{"startLine":953}}}],"partialFingerprints":{"codehealthFindingId/v1":"e393aa42fcc00e4aa869c8ceb5e73f2d83584176bf2ac69409339d56c492319b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (36 corresponding lines): crates/crab-sdk/src/local/edit.rs:1066-1103 | crates/crab-sdk/src/local/fetch/recovery.rs:23-58 \u2014 These two members are one piece of code written twice and then edited apart: 36 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-sdk/src/local/edit.rs"},"region":{"startLine":1066}}}],"partialFingerprints":{"codehealthFindingId/v1":"ede2736d8fa1c52be92d07de527752fda945303a18ac1f22259fe97eaeb96aca"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (37 corresponding lines): crates/crab-staging/src/lib.rs:569-605 | crates/crab-staging/src/lib.rs:687-730 \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/crab-staging/src/lib.rs"},"region":{"startLine":569}}}],"partialFingerprints":{"codehealthFindingId/v1":"f438efcb21e1b506ab88299857ea00a88fd1a9e05e889687b81031f8c966434d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): crates/crab-vfs/src/nfs.rs:998-1019 | crates/crab-vfs/src/nfs.rs:1140-1165 \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/crab-vfs/src/nfs.rs"},"region":{"startLine":998}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e9ffa55a658da70e74f5a8baf8b0556fafe869f57bd4ba2ce478023dab67869"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): crates/crab-cache-server/src/handlers.rs:1964-1990 | crates/crab-cache-server/src/handlers.rs:1996-2032 \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/crab-cache-server/src/handlers.rs"},"region":{"startLine":1964}}}],"partialFingerprints":{"codehealthFindingId/v1":"84bc1d372418077fff9cea7e3edf75fb0402c33a550662482e713e50185f746b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): crates/crab-vfs/src/nfs_control.rs:1134-1158 | crates/crab-vfs/src/nfs_control.rs:1183-1212 \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/crab-vfs/src/nfs_control.rs"},"region":{"startLine":1134}}}],"partialFingerprints":{"codehealthFindingId/v1":"6820569e5d5172590aea1bc7b3c807516ae5db871c4147bff63fdc03f97ce49a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (52 corresponding lines): crab/deploy/auth-service/src/policy.py:328-379 | crab/deploy/auth-service/src/policy.py:392-449 \u2014 These two members are one piece of code written twice and then edited apart: 52 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":"crab/deploy/auth-service/src/policy.py"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"5aac218851122e3f7379112ce301de30ee0831e4cbef0679bbf33ed11852298f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (43 corresponding lines): crab/src/cmd/replica.rs:12636-12679 | crab/src/cmd/replica.rs:12798-12840 \u2014 These two members are one piece of code written twice and then edited apart: 43 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":"crab/src/cmd/replica.rs"},"region":{"startLine":12636}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b3062088e8a668253a701ea688a4bbd09965a8e54422deb533449fcca8eeca5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): crab/src/cmd/download.rs:410-437 | crab/src/cmd/export.rs:379-407 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/cmd/download.rs"},"region":{"startLine":410}}}],"partialFingerprints":{"codehealthFindingId/v1":"88da46d1e31793e1b5453a109e61470ec633aecf53bfba338d6d3e082ffbde95"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): crab/src/cmd/run.rs:3350-3378 | crates/crab-workflow/src/materialize.rs:252-280 \u2014 These two members are one piece of code written twice and then edited apart: 29 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/cmd/run.rs"},"region":{"startLine":3350}}}],"partialFingerprints":{"codehealthFindingId/v1":"85073e59280ddd42f0dd9a6e2e4ee99a4421c5040da9c9fb326cc0b672bbca50"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (40 corresponding lines): crab/src/cmd/add.rs:2351-2390 | crab/src/cmd/add.rs:2430-2470 \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":"crab/src/cmd/add.rs"},"region":{"startLine":2351}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff1f514c3776840f8449430dbdb05176327374658729b9968ce40f878f45380a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (35 corresponding lines): crab/src/metadata/metadb/db.rs:307-341 | crab/src/metadata/metadb/db.rs:385-437 \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":"crab/src/metadata/metadb/db.rs"},"region":{"startLine":307}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6e5522050693b0a57246d93e101c65fec8d99e56cf369beade67bb53bb9eb3e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): crates/crab-http-server/src/branches.rs:273-300 | crates/crab-http-server/src/branches.rs:352-383 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-http-server/src/branches.rs"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"fadde068b6f29fc0a3a64c12447f901bf30f126897229400beac062e4928753a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): crates/crab-http-server/src/issues.rs:570-598 | crates/crab-http-server/src/issues.rs:637-669 \u2014 These two members are one piece of code written twice and then edited apart: 29 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-http-server/src/issues.rs"},"region":{"startLine":570}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d0ea273c74beb076b5e01a1299d75dc58f83f35ef07fd50757b5c18e3043e79"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 26\u002B corresponding lines): crates/crab-http-server/src/cells/repository/pull_review_threads.rs:1377-1405 | crates/crab-http-server/src/cells/repository/pulls.rs:1612-1639 | crates/crab-http-server/src/cells/repository/releases.rs:1180-1205 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 26 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/crab-http-server/src/cells/repository/pull_review_threads.rs"},"region":{"startLine":1377}}}],"partialFingerprints":{"codehealthFindingId/v1":"856b631ebd0e02b8b90fda519931d7b9c0bbf548248c9cce2f0803d7eb571018"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (41 corresponding lines): crates/crab-vfs/src/coordinator.rs:1058-1098 | crates/crab-vfs/src/mount.rs:409-451 \u2014 These two members are one piece of code written twice and then edited apart: 41 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/crab-vfs/src/coordinator.rs"},"region":{"startLine":1058}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d996775900c811a344b5d995bdb1e85fe0128f8700035394884df447ef3ba34"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (34 corresponding lines): crates/crab-vfs/src/overlay.rs:1060-1093 | crates/crab-vfs/src/overlay.rs:1331-1375 \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/crab-vfs/src/overlay.rs"},"region":{"startLine":1060}}}],"partialFingerprints":{"codehealthFindingId/v1":"893f2d6f05145280679a3a53523c56e90b81155145d9abae816c8727e5915dfa"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): crates/crab-coordination/src/write_coordinator.rs:918-946 | crates/crab-coordination/src/write_coordinator.rs:1406-1434 \u2014 These two members are one piece of code written twice and then edited apart: 29 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-coordination/src/write_coordinator.rs"},"region":{"startLine":918}}}],"partialFingerprints":{"codehealthFindingId/v1":"c846cfaa5baff60b77204c9c188f565e560bc1e59328a09d8bd17a54ab0b486b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (33 corresponding lines): crab/src/cmd/recover.rs:1482-1514 | crab/src/cmd/recover.rs:1516-1559 \u2014 These two members are one piece of code written twice and then edited apart: 33 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":"crab/src/cmd/recover.rs"},"region":{"startLine":1482}}}],"partialFingerprints":{"codehealthFindingId/v1":"68c213a1910e2b881206d15708401e138dcb9dc0d3c0472cb38cf1405ead54fb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): crab/src/cmd/workflow_checkpoint.rs:859-887 | crates/crab-workflow/src/atomic.rs:60-91 \u2014 These two members are one piece of code written twice and then edited apart: 29 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/cmd/workflow_checkpoint.rs"},"region":{"startLine":859}}}],"partialFingerprints":{"codehealthFindingId/v1":"52c437aa742518922d1acc6b2de1737ac559ff2630f46a99687f11c9d3b03cb8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): crab/src/lfs/lock.rs:397-430 | crates/crab-lfs/src/lock.rs:445-468 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/lfs/lock.rs"},"region":{"startLine":397}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfcc4403bfd3f4b97a36218e369c7399d9e63b27e29fa1ad4d919dfd7905b659"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): crates/crab-coordination/src/push_lock.rs:1119-1137 | crates/crab-coordination/src/push_lock.rs:1144-1162 \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/crab-coordination/src/push_lock.rs"},"region":{"startLine":1119}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2c55b98d4652ec218e8fd65867f61d516c0e73dfb9a6a72e964ea8ac53021d8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (30 corresponding lines): crates/crab-remote-git/src/operation.rs:439-468 | crates/crab-remote-git/src/operation.rs:481-518 \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/crab-remote-git/src/operation.rs"},"region":{"startLine":439}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbf299b8404b08904b5063a262bd37a7764afac625ce68ea781bfab78fce1927"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): crates/crab-vfs/src/daemon.rs:411-442 | crates/crab-vfs/src/daemon.rs:445-470 \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/crab-vfs/src/daemon.rs"},"region":{"startLine":411}}}],"partialFingerprints":{"codehealthFindingId/v1":"b827f0c58c2eca6df005fa64467051d13b6de743b3a217ed81226e37ee33ac87"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (33 corresponding lines): crates/crab-vfs/src/mount_control.rs:264-296 | crates/crab-vfs/src/mount_control.rs:298-333 \u2014 These two members are one piece of code written twice and then edited apart: 33 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/crab-vfs/src/mount_control.rs"},"region":{"startLine":264}}}],"partialFingerprints":{"codehealthFindingId/v1":"48e786d72e8b2a7183a8a1bdb4672831ad8dfe67c9e5c1e0dbc623eb64e45e31"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): crab/src/cmd/exp.rs:2371-2396 | crab/src/cmd/migrate.rs:176-204 \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":"crab/src/cmd/exp.rs"},"region":{"startLine":2371}}}],"partialFingerprints":{"codehealthFindingId/v1":"8446dc5f97d78e731af326b6163cf0335b3078321840973b98c9c11feb24cfc0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 24\u002B corresponding lines): crab/src/cmd/adopt.rs:204-227 | crab/src/cmd/init.rs:711-735 | crab/src/cmd/setup.rs:381-414 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 24 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":"crab/src/cmd/adopt.rs"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"5019f8ac82064c85b66d881ba8067de93d28ab3e2b06bb6e9dd6e8bdac34363c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (45 corresponding lines): crab/src/cmd/doctor.rs:2004-2048 | crab/src/cmd/doctor.rs:2125-2169 \u2014 These two members are one piece of code written twice and then edited apart: 45 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/cmd/doctor.rs"},"region":{"startLine":2004}}}],"partialFingerprints":{"codehealthFindingId/v1":"4290d472c137b738b3efb90846cee488fb140c2c7600c06d10e14bd1598ef6f5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): crates/crab-workflow/src/checkpoint.rs:77-100 | crates/crab-workflow/src/external_hash.rs:64-90 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-workflow/src/checkpoint.rs"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"20c5945d0df305998e10d82e83a06bb352bcaabd39c9c6d31e7eacda766ec89a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): crab/src/cache/add_validation.rs:240-258 | crab/src/cache/hydrated_pointer.rs:254-272 \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":"crab/src/cache/add_validation.rs"},"region":{"startLine":240}}}],"partialFingerprints":{"codehealthFindingId/v1":"98e6833f115eed5c9306e73483998cfcb4f55f844c5f0de2b6a58791bc7bdc15"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): crab/src/tier/provider/azure.rs:63-90 | crab/src/tier/provider/gcs.rs:52-81 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/tier/provider/azure.rs"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e93fe973df90324caacf15d7cc9d0f24bfc9517ced600d39919242d683ab718"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (32 corresponding lines): crab/src/cmd/adopt.rs:665-704 | crab/src/main.rs:2568-2599 \u2014 These two members are one piece of code written twice and then edited apart: 32 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":"crab/src/cmd/adopt.rs"},"region":{"startLine":665}}}],"partialFingerprints":{"codehealthFindingId/v1":"215896c8960a7b94be287d54d1494c4b1cf01265449072a7f2b9634b5eb242da"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): crab/src/cmd/dehydrate.rs:789-813 | crab/src/lfs/status.rs:400-438 \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":"crab/src/cmd/dehydrate.rs"},"region":{"startLine":789}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ed03fcc1ed49694b70076a4341d4658aa7cbeda7f7e26a4075222e3f5ad5870"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): crates/crab-lfs/src/lock.rs:178-213 | crates/crab-lfs/src/lock.rs:234-260 \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/crab-lfs/src/lock.rs"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"420fbdea4a137d3a5b3cc4cc33d12ba4e5c9b69d491f3aeacc49a88d3151e090"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): crates/crab-cache-server/src/handlers.rs:1307-1336 | crates/crab-cache-server/src/handlers.rs:1343-1370 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-cache-server/src/handlers.rs"},"region":{"startLine":1307}}}],"partialFingerprints":{"codehealthFindingId/v1":"20c105975bbb91edd765bd300d83ee140395c6f7df8d1fdb5a24a92ec04b509d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 27\u002B corresponding lines): crab/src/cmd/lfs/dedup.rs:412-440 | crab/src/cmd/lfs/dedup.rs:916-942 | crab/src/cmd/lfs/dedup.rs:1006-1035 \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":"crab/src/cmd/lfs/dedup.rs"},"region":{"startLine":412}}}],"partialFingerprints":{"codehealthFindingId/v1":"09532f1588f3b0e71d31d19a79b63889c50a4bcb9e05f13cdc0b564cf3533265"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (31 corresponding lines): crates/crab-coordination/src/cosmosdb_coordinator.rs:534-564 | crates/crab-coordination/src/spanner_coordinator.rs:220-250 \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/crab-coordination/src/cosmosdb_coordinator.rs"},"region":{"startLine":534}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8c3a9a44d229dbf2bf0c5d7efa0a65b4f7530994c3991f9a85ac7bb4a38200d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 25\u002B corresponding lines): crates/crab-s3-gateway/src/gateway.rs:3316-3341 | crates/crab-s3-gateway/src/gateway.rs:4038-4073 | crates/crab-s3-gateway/src/gateway.rs:4090-4114 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 25 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-s3-gateway/src/gateway.rs"},"region":{"startLine":3316}}}],"partialFingerprints":{"codehealthFindingId/v1":"10600b29b4ca3a8416735103272178387dcf07f762450489aabe1562e990230a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 26\u002B corresponding lines): crates/crab-vfs/src/fuse.rs:555-586 | crates/crab-vfs/src/fuse.rs:1196-1221 | crates/crab-vfs/src/fuse.rs:1230-1272 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 26 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/crab-vfs/src/fuse.rs"},"region":{"startLine":555}}}],"partialFingerprints":{"codehealthFindingId/v1":"c19967ece7d436b0468859e5f2850d59b5df4c4ac34607d66396169bde5f0258"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (60 corresponding lines): crates/crab-coordination/src/cosmosdb_coordinator.rs:653-712 | crates/crab-coordination/src/spanner_coordinator.rs:955-1014 \u2014 These two members are one piece of code written twice and then edited apart: 60 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/crab-coordination/src/cosmosdb_coordinator.rs"},"region":{"startLine":653}}}],"partialFingerprints":{"codehealthFindingId/v1":"7253695a982fed10f13a3198450959b9b7bf037ecdbca450abc04bc922501483"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): crates/crab-http-server/src/pulls.rs:658-676 | crates/crab-http-server/src/pulls/reviews.rs:105-120 \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/crab-http-server/src/pulls.rs"},"region":{"startLine":658}}}],"partialFingerprints":{"codehealthFindingId/v1":"7101d2602d5f0d2e491ee81bd871221a7f607ec259369fd2764276cbfdc4738e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (32 corresponding lines): crab/src/cmd/gc/mod.rs:1820-1852 | crab/src/cmd/gc/mod.rs:2401-2432 \u2014 These two members are one piece of code written twice and then edited apart: 32 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":"crab/src/cmd/gc/mod.rs"},"region":{"startLine":1820}}}],"partialFingerprints":{"codehealthFindingId/v1":"be44d6d3e85bdfee698fb4771966c40d1869c149bb731b47ff0ed0897288fb8a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): crab/src/cmd/lfs/dedup.rs:175-203 | crab/src/cmd/lfs/dedup.rs:692-720 \u2014 These two members are one piece of code written twice and then edited apart: 29 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/cmd/lfs/dedup.rs"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb7e89fa12cf1fa607f679f5be9cc17d6138bce61ac84533b2fa4cf3d9ae9164"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 34\u002B corresponding lines): crab/src/replication/mod.rs:573-606 | crab/src/replication/mod.rs:723-757 | crab/src/replication/mod.rs:904-944 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 34 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/replication/mod.rs"},"region":{"startLine":573}}}],"partialFingerprints":{"codehealthFindingId/v1":"587aa675a0062d11b4247dbc2c06eb4fa90bd1013a3a3530512cc7c45796b501"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (35 corresponding lines): crates/crab-coordination/src/cosmosdb_coordinator.rs:751-794 | crates/crab-coordination/src/spanner_coordinator.rs:1053-1087 \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/crab-coordination/src/cosmosdb_coordinator.rs"},"region":{"startLine":751}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d3577809b68a24cfcfb1f129748885b662752b809f82dbd2b5844a6f2689621"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): crates/crab-staging/src/index.rs:506-545 | crates/crab-staging/src/index.rs:557-578 \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/crab-staging/src/index.rs"},"region":{"startLine":506}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e5e6c925a524b2fb869e4453c57ef8f64b5fe4b2f2d649bfa6a1d14a9c7c29b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 29\u002B corresponding lines): crab/src/cmd/exp.rs:4810-4842 | crab/src/cmd/metrics.rs:1534-1564 | crab/src/cmd/metrics.rs:3364-3392 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 29 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":"crab/src/cmd/exp.rs"},"region":{"startLine":4810}}}],"partialFingerprints":{"codehealthFindingId/v1":"183b5b1de6210071a8c7fe5867f8eb9d2de3ec31e077f9363b5c49e5691e0470"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 32\u002B corresponding lines): crab/src/maintenance.rs:63-94 | crates/crab-auth-server/src/receive/workflow.rs:45-80 | crates/crab-workflow/src/store.rs:46-81 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 32 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":"crab/src/maintenance.rs"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"212a2abb193b9264267d1b50b6d14f8d684d38df524dc59d0d64bd8797e41a50"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (32 corresponding lines): crates/crab-coordination/src/cosmosdb_coordinator.rs:269-300 | crates/crab-coordination/src/cosmosdb_coordinator.rs:310-347 \u2014 These two members are one piece of code written twice and then edited apart: 32 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/crab-coordination/src/cosmosdb_coordinator.rs"},"region":{"startLine":269}}}],"partialFingerprints":{"codehealthFindingId/v1":"4598f73b5155cb33fa276b8e3465106413fa7bc77ea0f48bdfb8f56619202197"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 34\u002B corresponding lines): crates/crab-vfs/src/overlay.rs:851-884 | crates/crab-vfs/src/overlay.rs:886-921 | crates/crab-vfs/src/overlay.rs:1015-1058 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 34 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-vfs/src/overlay.rs"},"region":{"startLine":851}}}],"partialFingerprints":{"codehealthFindingId/v1":"c99f19ac653e619d79a1c8fa5fabd9da2196b264c7bcf195cb0c62de23e05845"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (43 corresponding lines): crates/crab-vfs/src/daemon.rs:315-361 | crates/crab-vfs/src/overlay.rs:116-158 \u2014 These two members are one piece of code written twice and then edited apart: 43 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/crab-vfs/src/daemon.rs"},"region":{"startLine":315}}}],"partialFingerprints":{"codehealthFindingId/v1":"30942ce1e8f554c4a729ae6cadebc0125823c6ea4004f2d9e427a36dcb4acf34"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): crates/crab-workflow/src/yaml.rs:917-938 | crates/crab-workflow/src/yaml.rs:944-965 \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/crab-workflow/src/yaml.rs"},"region":{"startLine":917}}}],"partialFingerprints":{"codehealthFindingId/v1":"0658675032fff040c1ec08b35eb91c2666c1a2d9c2b8edbfd3878cd24f650901"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): crates/crab-cache/src/local_cache.rs:518-539 | crates/crab-cache/src/local_cache.rs:553-581 \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/crab-cache/src/local_cache.rs"},"region":{"startLine":518}}}],"partialFingerprints":{"codehealthFindingId/v1":"390d8fab61ea58a536d183749102ba310d01447b9209a6468ac4c567074847bc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (34 corresponding lines): crates/crab-http-server/src/cells/repository/settings.rs:73-106 | crates/crab-http-server/src/cells/repository/settings.rs:121-159 \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/crab-http-server/src/cells/repository/settings.rs"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"323f1b7ec1e56ab1a3bd07109aa5938275e9f46f4c9bbf50b83fc72b59be94c3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (31 corresponding lines): crab/src/cmd/replica.rs:6743-6773 | crab/src/cmd/replica.rs:6775-6805 \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":"crab/src/cmd/replica.rs"},"region":{"startLine":6743}}}],"partialFingerprints":{"codehealthFindingId/v1":"633c4d61e9e22a946d9f194886e7ccd30f31dbff3b90d0d09a061338f5695e93"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): crates/crab-auth/src/azure_entra.rs:315-339 | crates/crab-auth/src/gcp_federation.rs:308-332 \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/crab-auth/src/azure_entra.rs"},"region":{"startLine":315}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bf1acbd2a8c41aece76d2282fffd9c668a8c7ff800f5a5bb62d709fccd6ac72"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): crates/crab-remote-git/src/runtime.rs:1010-1035 | crates/crab-remote-git/src/snapshot.rs:2116-2138 \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/crab-remote-git/src/runtime.rs"},"region":{"startLine":1010}}}],"partialFingerprints":{"codehealthFindingId/v1":"b586296a6f7fd58cfa3a9cb0662242f549ae3753e53d736c90fac5ed18c8d184"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): crab/src/cmd/add.rs:863-889 | crab/src/git/progress.rs:1894-1920 \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":"crab/src/cmd/add.rs"},"region":{"startLine":863}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c8e7951b9e3f6630d8799f139fb99ccd1793580a4844c43b62aca8226c30b76"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (41 corresponding lines): crates/crab-auth/src/oidc.rs:103-143 | crates/crab-auth/src/oidc.rs:166-206 \u2014 These two members are one piece of code written twice and then edited apart: 41 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/crab-auth/src/oidc.rs"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"090fb91ffcbe24839a9c7da800c1b0f36896e85bbacc88644bdce7e5fd23322b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): crates/crab-vfs/src/nfs.rs:1079-1100 | crates/crab-vfs/src/nfs.rs:1108-1132 \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/crab-vfs/src/nfs.rs"},"region":{"startLine":1079}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1585f4e332ae6fa25e2fabe6e69c071d588e819d2991117f26714f4fc83c360"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): crates/crab-http-server/src/cells/repository.rs:712-733 | crates/crab-http-server/src/cells/repository/checks.rs:462-488 \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/crab-http-server/src/cells/repository.rs"},"region":{"startLine":712}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e05b2973e8bd256acead736d49a7ffab6a2aa5e4257258f101c9e158aebd7e8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): crab/scripts/generate_test_file.rs:202-216 | crab/src/core/config_resolver.rs:206-220 \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":"crab/scripts/generate_test_file.rs"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c56725e2396eabe21ee1fa9af3e9c27c6aec94de0d59fa71a527807e60de891"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): crates/crab-cache-server/src/cache_store.rs:1353-1380 | crates/crab-cache-server/src/cache_store.rs:1473-1498 \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/crab-cache-server/src/cache_store.rs"},"region":{"startLine":1353}}}],"partialFingerprints":{"codehealthFindingId/v1":"edb222c232dc07d36d75614b64ad42e7b21587bcc5adf749706560a809593f28"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 31\u002B corresponding lines): crates/crab-http-server/src/peer/node_log_client.rs:84-123 | crates/crab-http-server/src/peer/node_log_client.rs:129-159 | crates/crab-http-server/src/peer/node_log_client.rs:165-201 | crates/crab-http-server/src/peer/node_log_client.rs:256-297 \u2014 These 4 members are one piece of code written 4 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 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-http-server/src/peer/node_log_client.rs"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"3762f5916f294307deaa63656db4d5b9bffa7fd2e44fc85145395ab99d2adc30"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): crab/src/cmd/artifacts.rs:685-710 | crab/src/cmd/data.rs:1841-1866 \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":"crab/src/cmd/artifacts.rs"},"region":{"startLine":685}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5ad2053919c726c23eb659699ec7c219bd1fddfb248b03e3412b061a7e1d7a7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): crab/src/cmd/metrics.rs:4136-4161 | crates/crab-workflow/src/params_runtime.rs:776-801 \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":"crab/src/cmd/metrics.rs"},"region":{"startLine":4136}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0a12dad1691e505af669ce7913e695e1024cea1e034c610f4b258de96498f19"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): crab/src/cmd/recover.rs:2775-2796 | crab/src/cmd/release.rs:1088-1109 \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":"crab/src/cmd/recover.rs"},"region":{"startLine":2775}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6d53c3d5eebdcf5b796fc1c27024f5a4bd8e3d0bcb17f7582b10c702050c2b1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (30 corresponding lines): crab/src/cmd/run.rs:2471-2500 | crab/src/cmd/run.rs:3054-3085 \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":"crab/src/cmd/run.rs"},"region":{"startLine":2471}}}],"partialFingerprints":{"codehealthFindingId/v1":"9830ae1278365733a7dee6c6bd80019bb5dd1a63d5895d302e19fb102fba2af8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): crab/src/cache/add_validation.rs:34-69 | crab/src/cache/hydrated_pointer.rs:349-371 \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":"crab/src/cache/add_validation.rs"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa1f6240486cde1fbf2883a86593a47b4c856ef66263272c1fd0ee7e987cad70"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (37 corresponding lines): crab/src/cmd/gc/bucket.rs:148-184 | crab/src/cmd/gc/bucket.rs:195-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":"crab/src/cmd/gc/bucket.rs"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"3394321596cbfc695e4b14fd3171ac619a75a4bf87fed47e64019cd8ca14b882"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): crab/src/cmd/run.rs:4075-4095 | crab/src/main.rs:5842-5868 \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":"crab/src/cmd/run.rs"},"region":{"startLine":4075}}}],"partialFingerprints":{"codehealthFindingId/v1":"6bf5094237a172c1a8d3b155f8969a1fc9391a9530db3e0926c8d52accfb5b2b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): crab/src/lfs/track.rs:272-303 | crab/src/lfs/track.rs:310-333 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/lfs/track.rs"},"region":{"startLine":272}}}],"partialFingerprints":{"codehealthFindingId/v1":"73fff3a018722ee098bb1157bb920ce27ea9c56073897ecffbca60457fad8860"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (32 corresponding lines): crab/src/cmd/lfs/fetch.rs:251-286 | crab/src/lfs/batch.rs:137-168 \u2014 These two members are one piece of code written twice and then edited apart: 32 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":"crab/src/cmd/lfs/fetch.rs"},"region":{"startLine":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"954135ae388bd0c85a099f32e2ecc87753392eda11a68138c70d5f19689c6646"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 22\u002B corresponding lines): crab/src/cmd/exp.rs:2862-2887 | crab/src/cmd/exp.rs:4075-4098 | crab/src/cmd/recover.rs:2798-2819 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 22 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/cmd/exp.rs"},"region":{"startLine":2862}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ace61e0a305522196d1df0e53b5a685a19c52f87168d020eaa99d0303d57d11"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): crab/src/cmd/exp.rs:4927-4955 | crab/src/cmd/lfs/locks.rs:163-192 \u2014 These two members are one piece of code written twice and then edited apart: 29 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/cmd/exp.rs"},"region":{"startLine":4927}}}],"partialFingerprints":{"codehealthFindingId/v1":"feab08b130ac194a15423215248853ac503a4419b2ebc245ce4c5ae885957c31"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): crates/crab-workflow/src/yaml.rs:566-589 | crates/crab-workflow/src/yaml.rs:703-722 \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/crab-workflow/src/yaml.rs"},"region":{"startLine":566}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f8c2df3908cd2913994eaee9ca0afde59954dba5e9ed52236f540ffdb503e54"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): crab/src/cmd/metrics.rs:2620-2642 | crab/src/cmd/metrics.rs:2644-2662 \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":"crab/src/cmd/metrics.rs"},"region":{"startLine":2620}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8ed85efc98f50c19c484c09c25a2cc15d4ba8ce971fb130b2cb0acb63b8a9b2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): crab/src/cmd/metrics.rs:3500-3524 | crab/src/cmd/params.rs:347-369 \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":"crab/src/cmd/metrics.rs"},"region":{"startLine":3500}}}],"partialFingerprints":{"codehealthFindingId/v1":"d98dc9bed22d982f92ab21ab49129e8fb5b9afd2261c111f481176a7a9d72753"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 27\u002B corresponding lines): crab/src/cmd/stage/list.rs:311-337 | crates/crab-workflow/src/discover.rs:385-416 | crates/crab-workflow/src/resume.rs:309-336 \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":"crab/src/cmd/stage/list.rs"},"region":{"startLine":311}}}],"partialFingerprints":{"codehealthFindingId/v1":"b43d67fd27482967054f74f103adcae7b154ab743ad2cc53a9d1d65e79467603"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (33 corresponding lines): crab/src/git/progress.rs:469-502 | crab/src/git/progress.rs:512-544 \u2014 These two members are one piece of code written twice and then edited apart: 33 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":"crab/src/git/progress.rs"},"region":{"startLine":469}}}],"partialFingerprints":{"codehealthFindingId/v1":"93910f3e826d6231338656726f6dffba17553608411076f833aeb28c3e54567b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 38\u002B corresponding lines): crates/crab-auth/src/aws_oidc.rs:87-128 | crates/crab-auth/src/gcp_federation.rs:103-142 | crates/crab-auth/src/gcp_federation.rs:147-184 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 38 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/crab-auth/src/aws_oidc.rs"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"af574a6e30ca0256dd944bb5dd3693304dcf01d935e8dfc9d77a9437683ecacc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): crates/crab-http-server/src/metrics.rs:1751-1772 | crates/crab-s3-gateway/src/metrics.rs:770-798 \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/crab-http-server/src/metrics.rs"},"region":{"startLine":1751}}}],"partialFingerprints":{"codehealthFindingId/v1":"fed875437535c98b942f606fb4ee193b6cf531abbd15a39f3cc3c927496c1d62"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 23\u002B corresponding lines): crab/scripts/check-architecture-gates.py:4221-4245 | crab/scripts/check-architecture-gates.py:4249-4273 | crab/scripts/check-architecture-gates.py:4323-4347 | crab/scripts/check-architecture-gates.py:4351-4373 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 23 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":"crab/scripts/check-architecture-gates.py"},"region":{"startLine":4221}}}],"partialFingerprints":{"codehealthFindingId/v1":"afab11498a344a291923a9b3a78676b9114e05a1fff870219e1d866c445cefc8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): crates/crab-sdk/src/local/push/git.rs:14-37 | crates/crab-sdk/src/local/push/git.rs:133-160 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-sdk/src/local/push/git.rs"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"df2246c0362b05466f95dd8973fc908d02b798814ca27220bc5aa2f4bedc0784"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): crates/crab-storage/src/store.rs:917-942 | crates/crab-storage/src/store.rs:1041-1069 \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/crab-storage/src/store.rs"},"region":{"startLine":917}}}],"partialFingerprints":{"codehealthFindingId/v1":"7776b6d39eb277d9b572d30ae55bcb44331046484ed1dbdb45f88b9a3227d9ea"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): crab/src/cmd/metrics.rs:1263-1295 | crab/src/cmd/metrics.rs:1301-1324 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/cmd/metrics.rs"},"region":{"startLine":1263}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e670916e621c129c421f74d5621c277b768b125289c80deb74a97ee86cda44d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): crates/crab-coordination/src/write_coordinator.rs:873-906 | crates/crab-coordination/src/write_coordinator.rs:1367-1394 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-coordination/src/write_coordinator.rs"},"region":{"startLine":873}}}],"partialFingerprints":{"codehealthFindingId/v1":"07636bc8eec349f462f3e90ecb0ad6936e997bdb6193dbbd1c8cca9f7671ff0a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): crates/crab-workflow/src/lockfile.rs:994-1019 | crates/crab-workflow/src/lockfile.rs:1071-1094 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-workflow/src/lockfile.rs"},"region":{"startLine":994}}}],"partialFingerprints":{"codehealthFindingId/v1":"903c9c6abccc6ac1dd3064da58c0e30c8f24e8cfec39174ac6d9f1139cb46eb2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (35 corresponding lines): crab/src/cmd/exp.rs:6675-6709 | crab/src/cmd/workflow_journal.rs:581-617 \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":"crab/src/cmd/exp.rs"},"region":{"startLine":6675}}}],"partialFingerprints":{"codehealthFindingId/v1":"4adfa5ed4e84b3a2f526b2cf860ba1c93b6bc74b263ae1b28ebd311b089a8101"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): crates/crab-staging/src/lib.rs:932-954 | crates/crab-staging/src/stream.rs:1758-1792 \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/crab-staging/src/lib.rs"},"region":{"startLine":932}}}],"partialFingerprints":{"codehealthFindingId/v1":"d80c84229c4f13e3eb0979cf046d4639d4da429ac7ec8b12ba76d3a8d3bc13c0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 23\u002B corresponding lines): crates/crab-http-server/src/cells/repository.rs:1236-1258 | crates/crab-http-server/src/cells/repository.rs:1274-1301 | crates/crab-http-server/src/cells/repository/settings.rs:264-288 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 23 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/crab-http-server/src/cells/repository.rs"},"region":{"startLine":1236}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7a136b33aa23002eb9577af498e2c755fde3ffc3355944d0c8b3fece3476534"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): crates/crab-vfs/src/daemon.rs:1909-1933 | crates/crab-vfs/src/pipeline.rs:650-672 \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/crab-vfs/src/daemon.rs"},"region":{"startLine":1909}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5aa0019dce269e041e0f2ce3046b83124b49e81a5c104d8412d294b2972b006"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): crab/src/cmd/lfs/hooks.rs:74-102 | crab/src/lfs/track.rs:421-444 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/cmd/lfs/hooks.rs"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ecef1a751039fd6f719a2124d5a5dd782b81b8bc7a6ef659a71d0d6ee3c9d53"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): crates/crab-cache-server/src/cache_store.rs:1218-1250 | crates/crab-cache-server/src/cache_store.rs:1257-1285 \u2014 These two members are one piece of code written twice and then edited apart: 29 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-cache-server/src/cache_store.rs"},"region":{"startLine":1218}}}],"partialFingerprints":{"codehealthFindingId/v1":"b17060c88faf57d7c7faf5760376165a7bbafb01cf334a00c1c20ddcad824c78"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): crates/crab-http-server/src/catalog.rs:384-409 | crates/crab-http-server/src/catalog.rs:418-437 \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/crab-http-server/src/catalog.rs"},"region":{"startLine":384}}}],"partialFingerprints":{"codehealthFindingId/v1":"361c7143459f8fd6f7cc5b7f4d9ae2592e6a0de25e1e92f1f343dcd36abb3e70"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 20\u002B corresponding lines): crates/crab-sdk/src/client.rs:623-646 | crates/crab-sdk/src/client.rs:760-784 | crates/crab-sdk/src/client.rs:791-810 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 20 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/crab-sdk/src/client.rs"},"region":{"startLine":623}}}],"partialFingerprints":{"codehealthFindingId/v1":"d127f656a5f0041baeeb72fa9f5fd1b21287afdb9cede1d6ebe40bca445da2df"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 25\u002B corresponding lines): crab/src/cmd/push.rs:1521-1551 | crab/src/cmd/push.rs:1557-1581 | crab/src/cmd/push.rs:1587-1612 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 25 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/cmd/push.rs"},"region":{"startLine":1521}}}],"partialFingerprints":{"codehealthFindingId/v1":"940cacf7c7a4c308f280c2c077806560e0d60c313728463158bc50f47f3f8b46"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): crab/src/cmd/replica.rs:7275-7301 | crab/src/cmd/replica.rs:7310-7336 \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":"crab/src/cmd/replica.rs"},"region":{"startLine":7275}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbc8d5c5128b9fe3c122606bdddbffe14c3c619d52e4b63c2d3fb747a3001238"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (31 corresponding lines): crab/src/replication/mod.rs:7676-7710 | crab/src/replication/mod.rs:7717-7747 \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":"crab/src/replication/mod.rs"},"region":{"startLine":7676}}}],"partialFingerprints":{"codehealthFindingId/v1":"16c8ccb2d28e54cc911b1610018771a0c8df81a45f50dadda854ef2863885899"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): crates/crab-coordination/src/write_coordinator.rs:739-764 | crates/crab-coordination/src/write_coordinator.rs:1238-1261 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-coordination/src/write_coordinator.rs"},"region":{"startLine":739}}}],"partialFingerprints":{"codehealthFindingId/v1":"720e535a7313999dac91efb806c592a40fec2951e19ab728d321a7fba32a9db3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): crates/crab-workflow/src/signals.rs:754-781 | crates/crab-workflow/src/signals.rs:788-814 \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/crab-workflow/src/signals.rs"},"region":{"startLine":754}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d866da9ea1f4cc75d32036de3dbefd66032b2335e37bfe2ee7306a6e12c620b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): crates/crab-workflow/src/template/foreach.rs:295-345 | crates/crab-workflow/src/template/matrix.rs:309-331 \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/crab-workflow/src/template/foreach.rs"},"region":{"startLine":295}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc77339b62287b3a06475ba4d6f5f0ce298b69e08f39d1facc816c123476c641"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): crates/crab-auth/src/managed/client.rs:1026-1045 | crates/crab-auth/src/managed/client.rs:1052-1071 \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/crab-auth/src/managed/client.rs"},"region":{"startLine":1026}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b88cc3a152b45da20e8369b4f7f0ef5761c54b17763a4e1e58102f0935ae0f2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (31 corresponding lines): crates/crab-storage/src/store.rs:1674-1704 | crates/crab-storage/src/store.rs:1750-1782 \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/crab-storage/src/store.rs"},"region":{"startLine":1674}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd564873d2f9f2274a571756b0003892cf1c8d8f1c53c650def5649a088c5558"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): crab/src/cmd/metrics.rs:3775-3801 | crab/src/cmd/params.rs:537-555 \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":"crab/src/cmd/metrics.rs"},"region":{"startLine":3775}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c25e56df12e620c779af02446e56638d97770e6c63aec91660d4c4cf021b6d7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): crab/src/git/smudge.rs:177-202 | crab/src/git/smudge.rs:223-246 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/git/smudge.rs"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"1399f22a97c98ee96cf8a0ed8dda6ad5ecca6d06a27e25179bc3f124eeeda642"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): crab/src/metadata/metadb/mod.rs:775-799 | crab/src/metadata/metadb/mod.rs:806-830 \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":"crab/src/metadata/metadb/mod.rs"},"region":{"startLine":775}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4facc8e9d8f744740911819f1904bf09aca698309a98c55b100c2491c0230e4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): crab/src/cmd/hydrate.rs:2940-2964 | crab/src/cmd/hydrate.rs:2973-2997 \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":"crab/src/cmd/hydrate.rs"},"region":{"startLine":2940}}}],"partialFingerprints":{"codehealthFindingId/v1":"c64d48f4028f910805e4a54a7c9bbfce552b85b3a99fdb67b3086b8e2cd951e0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): crab/src/cmd/lfs/push.rs:435-458 | crab/src/lfs/transfer_agent.rs:888-906 \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":"crab/src/cmd/lfs/push.rs"},"region":{"startLine":435}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a9e0eae16f27e8d54219295a44def58623b67073ecc574305561bdcb481f1ed"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (31 corresponding lines): crates/crab-git/src/url.rs:218-253 | crates/crab-git/src/url.rs:293-323 \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/crab-git/src/url.rs"},"region":{"startLine":218}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ed4f0d76b441d7c62edb1f8614ca7925c89abd72256fe2a72070977d1858596"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 28\u002B corresponding lines): crates/crab-workflow/src/exp_worktree.rs:1627-1660 | crates/crab-workflow/src/exp_worktree.rs:1667-1696 | crates/crab-workflow/src/exp_worktree.rs:1698-1725 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 28 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/crab-workflow/src/exp_worktree.rs"},"region":{"startLine":1627}}}],"partialFingerprints":{"codehealthFindingId/v1":"98f527b00283636e86acd111fcec2a1c282b35dda63d25c9572d694467763098"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): crab/src/cmd/lfs/mod.rs:702-718 | crates/crab-vfs/src/publish.rs:1545-1562 \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":"crab/src/cmd/lfs/mod.rs"},"region":{"startLine":702}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c831c0c20975d0ba984a904f2d5fc177c3ea02524fc579d80c6368cbd37e009"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): crab/src/cmd/mount.rs:3168-3194 | crab/src/cmd/mount.rs:3199-3229 \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":"crab/src/cmd/mount.rs"},"region":{"startLine":3168}}}],"partialFingerprints":{"codehealthFindingId/v1":"17de7f1baff7e81a7c48975d8284282ded6e02e2d4730f0b7d4b4c7002da9351"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): crates/crab-storage/src/observation.rs:508-529 | crates/crab-storage/src/observation.rs:534-552 \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/crab-storage/src/observation.rs"},"region":{"startLine":508}}}],"partialFingerprints":{"codehealthFindingId/v1":"c293900363b103e1a580b598519a86406331fdff8552b45af33adfdb629d065a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): crates/crab-http-server/src/peer.rs:1365-1384 | crates/crab-http-server/src/peer/node_log_client.rs:359-377 \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/crab-http-server/src/peer.rs"},"region":{"startLine":1365}}}],"partialFingerprints":{"codehealthFindingId/v1":"c51239180babd550c8fedfbae88f9666b89fd9cf001b3d6beaf4eda20a33f6f6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): crates/crab-http-server/src/releases/storage.rs:116-144 | crates/crab-http-server/src/releases/storage.rs:152-178 \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/crab-http-server/src/releases/storage.rs"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"726d2f490672712fc74e72b78b09d1e1c1853e0af8a4a14e51a25f83a36767a4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): crab/src/cmd/auth_status.rs:252-264 | crab/src/cmd/mount.rs:3054-3073 \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":"crab/src/cmd/auth_status.rs"},"region":{"startLine":252}}}],"partialFingerprints":{"codehealthFindingId/v1":"9eb6d57fe871c536ed84d30a54a8fa43bc3b7dd2a38c15e125cda88422fea861"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): crates/crab-http-server/src/checks.rs:616-644 | crates/crab-http-server/src/checks.rs:673-705 \u2014 These two members are one piece of code written twice and then edited apart: 29 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-http-server/src/checks.rs"},"region":{"startLine":616}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbea9d4bc47ebbff4f86d50e60269bd20a0a5301ef79e3b404f79994380d9405"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 21\u002B corresponding lines): crates/crab-write/src/generation.rs:703-725 | crates/crab-write/src/generation.rs:733-753 | crates/crab-write/src/generation.rs:918-938 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 21 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-write/src/generation.rs"},"region":{"startLine":703}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e95ce432c30f5aef114cc0c20229563335a3834d8f8423e25d0827a696db213"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): crab/src/cmd/auth_status.rs:192-203 | crab/src/cmd/history_recovery.rs:1281-1295 \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":"crab/src/cmd/auth_status.rs"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"74d3857a9c85fa2414bab2a5f523dae594c8014b51b7ff56ab02e782a442b812"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): crab/src/cmd/freeze.rs:354-377 | crab/src/cmd/run.rs:3863-3888 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/cmd/freeze.rs"},"region":{"startLine":354}}}],"partialFingerprints":{"codehealthFindingId/v1":"a086dcc1777cbcb03db4f10b370fc580c09305223dcea11148c468f407cf33d4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): crab/src/cmd/metrics.rs:2684-2705 | crab/src/cmd/metrics.rs:2713-2730 \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":"crab/src/cmd/metrics.rs"},"region":{"startLine":2684}}}],"partialFingerprints":{"codehealthFindingId/v1":"9eb96a67b3f621ad0de2dc260a782b44331215c8fe40a1abce11950de777569e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): crab/src/cmd/run.rs:2445-2464 | crab/src/cmd/run.rs:4413-4436 \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":"crab/src/cmd/run.rs"},"region":{"startLine":2445}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d63c4e56fdbefd16a007834e1ab9a9e6a9381a1d67decadf67aa119de2e0e5d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (32 corresponding lines): crab/src/replication/mod.rs:7089-7120 | crates/crab-coordination/src/active_active_runtime.rs:109-141 \u2014 These two members are one piece of code written twice and then edited apart: 32 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":"crab/src/replication/mod.rs"},"region":{"startLine":7089}}}],"partialFingerprints":{"codehealthFindingId/v1":"a74e25b7cf95dd55b83a4b0431366f426133bf70399baed3c56fd7e893c1afc7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): crab/src/replication/mod.rs:8798-8826 | crab/src/replication/mod.rs:8951-8983 \u2014 These two members are one piece of code written twice and then edited apart: 29 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/replication/mod.rs"},"region":{"startLine":8798}}}],"partialFingerprints":{"codehealthFindingId/v1":"10dfccec252d51edd555c7a55f4edacc3a7c61b80d84764e33045ef48f9c2baa"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 27\u002B corresponding lines): crates/crab-workflow/src/exp_worktree.rs:1760-1787 | crates/crab-workflow/src/exp_worktree.rs:1794-1820 | crates/crab-workflow/src/exp_worktree.rs:1874-1901 | crates/crab-workflow/src/exp_worktree.rs:1908-1934 \u2014 These 4 members are one piece of code written 4 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 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-workflow/src/exp_worktree.rs"},"region":{"startLine":1760}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7f5858ab99d8f407a69a5c36e44890caf51ba15ff226ed125e191bb1f720f17"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): crab/src/core/config.rs:2852-2880 | crab/src/optimize/xorbs/profile.rs:251-278 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/core/config.rs"},"region":{"startLine":2852}}}],"partialFingerprints":{"codehealthFindingId/v1":"15c89655684dc56122256e67df73e4ca4ca50092fff9bda2f93f6c86ff53f83d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): crab/src/git/incremental_walk.rs:450-473 | crab/src/git/pack_native.rs:148-167 \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":"crab/src/git/incremental_walk.rs"},"region":{"startLine":450}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e90d6866f04620b0353ba09bd6ecf370393f7773717611f9acea57b2ecd64d2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): crates/crab-coordination/src/write_coordinator.rs:1046-1074 | crates/crab-coordination/src/write_coordinator.rs:1521-1547 \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/crab-coordination/src/write_coordinator.rs"},"region":{"startLine":1046}}}],"partialFingerprints":{"codehealthFindingId/v1":"febc3807a35f2e7a5400f95fdd5ded6da21af0a16831e417e25a806bc678edea"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): crates/crab-workflow/src/yaml.rs:527-555 | crates/crab-workflow/src/yaml.rs:671-697 \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/crab-workflow/src/yaml.rs"},"region":{"startLine":527}}}],"partialFingerprints":{"codehealthFindingId/v1":"05e93fc678ecf18f7e315634cf1c912f16ed346b5f7e455fd4f04713709466a8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 38\u002B corresponding lines): crates/crab-http-server/src/metrics.rs:1611-1648 | crates/crab-s3-gateway/src/metrics.rs:441-488 | crates/crab-s3-gateway/src/metrics/backend.rs:54-94 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 38 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/crab-http-server/src/metrics.rs"},"region":{"startLine":1611}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c0b1fd75218dd735d95027f7ebbd14d99e34d33685c246c32dfa3c4e21b66f7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (32 corresponding lines): crates/crab-http-server/src/releases/storage.rs:241-275 | crates/crab-http-server/src/releases/storage.rs:283-314 \u2014 These two members are one piece of code written twice and then edited apart: 32 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/crab-http-server/src/releases/storage.rs"},"region":{"startLine":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6935cfd22169cfff11a1ed43e7623318094c7090848b007fd19344d1896e6e7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (7 members, 17\u002B corresponding lines): crab/src/cmd/add.rs:3444-3462 | crab/src/cmd/dehydrate.rs:438-456 | crab/src/cmd/du.rs:221-237 | crab/src/cmd/hydrate.rs:3520-3538 | crab/src/cmd/ls_files.rs:80-96 | crab/src/cmd/reset.rs:475-493 | crab/src/cmd/status.rs:754-775 \u2014 These 7 members are one piece of code written 7 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 7 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/cmd/add.rs"},"region":{"startLine":3444}}}],"partialFingerprints":{"codehealthFindingId/v1":"b19b952451c3cf84a4600acac9d9ad58b1a69a902254a530bf5eb8c8482e3ef6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): crab/src/cmd/doctor.rs:1253-1277 | crates/crab-cache/src/active_probe.rs:224-248 \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":"crab/src/cmd/doctor.rs"},"region":{"startLine":1253}}}],"partialFingerprints":{"codehealthFindingId/v1":"c31b67b0e8471934f8417f4fa546bdbaf2ee5ff23494d2935a2874fff6d87a9b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): crab/src/core/error.rs:993-1019 | crates/crab-cache/src/error.rs:178-192 \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":"crab/src/core/error.rs"},"region":{"startLine":993}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2321fe8cbd80433db371471826ef5b29ee89d5622f46d9bd3cc8138535b96ab"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 39\u002B corresponding lines): crab/src/replication/mod.rs:7784-7826 | crab/src/replication/mod.rs:7833-7871 | crab/src/replication/mod.rs:7908-7950 | crab/src/replication/mod.rs:7957-7995 \u2014 These 4 members are one piece of code written 4 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 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/replication/mod.rs"},"region":{"startLine":7784}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d828c3d29b86020d9a07cd7e6ead3487907244677b6eeda8fdc99da047aec85"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): crates/crab-remote-git/src/operation.rs:727-745 | crates/crab-remote-git/src/operation.rs:912-930 \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/crab-remote-git/src/operation.rs"},"region":{"startLine":727}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7ea329435c9c1a2d58ac0b3614c30e63b499105431745119ba3304bc5aa5952"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 19\u002B corresponding lines): crates/crab-workflow/src/exp_worktree.rs:841-860 | crates/crab-workflow/src/exp_worktree.rs:862-889 | crates/crab-workflow/src/exp_worktree.rs:891-909 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 19 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/crab-workflow/src/exp_worktree.rs"},"region":{"startLine":841}}}],"partialFingerprints":{"codehealthFindingId/v1":"217c5695cda59e7ef482c91c932b760b151172309ffd19d484e1b099642508f5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): crab/src/cmd/artifacts.rs:570-591 | crab/src/cmd/lfs/locks.rs:616-640 \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":"crab/src/cmd/artifacts.rs"},"region":{"startLine":570}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f91f13ced27626885a223dc41e96b758513a6d88b6df72b916d840fd8648ab6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): crab/src/git/progress.rs:649-674 | crab/src/git/progress.rs:687-711 \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":"crab/src/git/progress.rs"},"region":{"startLine":649}}}],"partialFingerprints":{"codehealthFindingId/v1":"f78a329f5bd7ddda0a3259d513f2a001c57289f323158e9fd053f504395e3980"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): crab/src/lfs/recent.rs:227-249 | crab/src/lfs/recent.rs:256-282 \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":"crab/src/lfs/recent.rs"},"region":{"startLine":227}}}],"partialFingerprints":{"codehealthFindingId/v1":"2121d2caeea297255a1b923f76cf4e3a89aa69ab98283cfbdab28aca5f66c834"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): crab/src/replication/mod.rs:9242-9260 | crab/src/replication/mod.rs:9272-9291 \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":"crab/src/replication/mod.rs"},"region":{"startLine":9242}}}],"partialFingerprints":{"codehealthFindingId/v1":"46150c8834a7d0838f4fb83de5df0037381c62440300666e2436f4cf5432c530"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (41 corresponding lines): crab/src/cmd/replica.rs:10660-10708 | crab/src/cmd/replica.rs:10713-10753 \u2014 These two members are one piece of code written twice and then edited apart: 41 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":"crab/src/cmd/replica.rs"},"region":{"startLine":10660}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd6684181560622bfb193421505fad3f82d81578bbac17d651840880bf94f837"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): crates/crab-auth/src/managed/client.rs:745-780 | crates/crab-auth/src/managed/client.rs:844-872 \u2014 These two members are one piece of code written twice and then edited apart: 29 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-auth/src/managed/client.rs"},"region":{"startLine":745}}}],"partialFingerprints":{"codehealthFindingId/v1":"52d5b1b9234cefe00b631ff12c2d3913c6b1f46ccefa43e8084b3bf5dc67d666"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): crab/deploy/auth-service/src/policy.py:519-541 | crab/deploy/auth-service/src/policy.py:545-562 \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":"crab/deploy/auth-service/src/policy.py"},"region":{"startLine":519}}}],"partialFingerprints":{"codehealthFindingId/v1":"806420d65321aeef80bd34eadbcd3db0c371f717dedb4004d9ac43435c29f5b3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 27\u002B corresponding lines): crab/src/replication/mod.rs:4084-4112 | crab/src/replication/mod.rs:4114-4140 | crab/src/replication/mod.rs:4142-4174 \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":"crab/src/replication/mod.rs"},"region":{"startLine":4084}}}],"partialFingerprints":{"codehealthFindingId/v1":"d026a904f97f88b86bdecae21cb9c82a1c36736f04260ce8ceb71ab4b2f4b1d4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): crab/src/cmd/adopt.rs:707-737 | crab/src/cmd/unadopt.rs:313-333 \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":"crab/src/cmd/adopt.rs"},"region":{"startLine":707}}}],"partialFingerprints":{"codehealthFindingId/v1":"79dd73004db78e8eaa88bbd48b348cba3e4d682e2f5f25da21c8d30af6d7e31a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 21\u002B corresponding lines): crates/crab-auth-server/src/view/git_workspace.rs:415-438 | crates/crab-auth-server/src/view/git_workspace.rs:443-464 | crates/crab-auth-server/src/view/git_workspace.rs:469-489 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 21 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-auth-server/src/view/git_workspace.rs"},"region":{"startLine":415}}}],"partialFingerprints":{"codehealthFindingId/v1":"c348fef21733c2e7fe84b8e18929bce03f99ef24c6369e610e2678d32a5a6f74"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): crab/src/cmd/gc/journal.rs:620-640 | crab/src/cmd/gc/journal.rs:643-658 \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":"crab/src/cmd/gc/journal.rs"},"region":{"startLine":620}}}],"partialFingerprints":{"codehealthFindingId/v1":"35a2890dfec95680ceb329f3e246e86ffb5af720f86cbfea63a193fbc55a2668"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): crab/src/git/clean.rs:477-496 | crates/crab-staging/src/lib.rs:2700-2717 \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":"crab/src/git/clean.rs"},"region":{"startLine":477}}}],"partialFingerprints":{"codehealthFindingId/v1":"b62f878b0f7112542f03a3b16d58351488605df46b6868daaa33eeb6e9a3bc3e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): crab/src/cmd/lfs/env.rs:84-103 | crab/src/cmd/lock.rs:230-249 \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":"crab/src/cmd/lfs/env.rs"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d36da14965dae6a6239aa4e9f558a70f920df0529c6bf94ae7965733843e9c0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): crates/crab-coordination/src/push_lock.rs:715-733 | crates/crab-coordination/src/push_lock.rs:965-982 \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/crab-coordination/src/push_lock.rs"},"region":{"startLine":715}}}],"partialFingerprints":{"codehealthFindingId/v1":"949b4e7dbca98ac42af8d44f4f3d236ebc88de87b5239d3bd1084f1461843327"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): crates/crab-vfs/src/clone_cache.rs:211-233 | crates/crab-vfs/src/mount_runtime.rs:205-231 \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/crab-vfs/src/clone_cache.rs"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f80d236efc449f087811fc7b321b2cbbaf75da7360590bfa35fe852e76e3f6f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): crates/crab-workflow/src/exp_worktree.rs:1822-1843 | crates/crab-workflow/src/exp_worktree.rs:1936-1957 \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/crab-workflow/src/exp_worktree.rs"},"region":{"startLine":1822}}}],"partialFingerprints":{"codehealthFindingId/v1":"45611e5beb1849c97c0306eec2be70fd5692737fccf19108728588ff4989a29b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): crab/deploy/auth-service/src/receive_helper.py:192-216 | crab/deploy/auth-service/src/view_helper.py:91-111 \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":"crab/deploy/auth-service/src/receive_helper.py"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"608ed8d8d23a04bda84d648e593f38fd56558c0cceedd4a0873b2f528ce66248"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 30\u002B corresponding lines): crab/src/speculation/access_db.rs:125-159 | crab/src/speculation/access_db.rs:177-206 | crates/crab-workflow/src/journal.rs:609-640 \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":"crab/src/speculation/access_db.rs"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ada40559a1838aa9b7063fef2047559cc3573a6edd30a550c88b4661176045b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): crates/crab-coordination/src/write_coordinator.rs:982-1010 | crates/crab-coordination/src/write_coordinator.rs:1470-1495 \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/crab-coordination/src/write_coordinator.rs"},"region":{"startLine":982}}}],"partialFingerprints":{"codehealthFindingId/v1":"92debfc21c6b6847da91e6989edf7fd43991e1b96551f6b6337f3833546cc7ee"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): crates/crab-coordination/src/spanner_coordinator.rs:362-383 | crates/crab-coordination/src/spanner_coordinator.rs:748-765 \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/crab-coordination/src/spanner_coordinator.rs"},"region":{"startLine":362}}}],"partialFingerprints":{"codehealthFindingId/v1":"70ecd27b69aab11d63a521888e6d5213feac14bda7041a54f6f760f5b5e06f48"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): crates/crab-http-server/src/cells/repository/pulls.rs:759-776 | crates/crab-http-server/src/cells/repository/releases.rs:954-973 \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/crab-http-server/src/cells/repository/pulls.rs"},"region":{"startLine":759}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2f2e2561326c453347914107da6ac429f4659c530eb3d4fbe83369c3ec4cf13"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): crab/src/cmd/metrics.rs:3192-3212 | crab/src/cmd/metrics.rs:3293-3320 \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":"crab/src/cmd/metrics.rs"},"region":{"startLine":3192}}}],"partialFingerprints":{"codehealthFindingId/v1":"31c104fe31e968e30943ebd97e425d39a29abfa793c09f86564e2ffc3ec9deed"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): crab/src/cmd/replica.rs:4836-4860 | crab/src/cmd/replica.rs:4890-4917 \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":"crab/src/cmd/replica.rs"},"region":{"startLine":4836}}}],"partialFingerprints":{"codehealthFindingId/v1":"9987c53cfabc824848dfdb649ac491e16d2d672f247330060b3e0343138b4f5c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): crates/crab-auth/src/managed/client.rs:426-447 | crates/crab-auth/src/managed/client.rs:499-527 \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/crab-auth/src/managed/client.rs"},"region":{"startLine":426}}}],"partialFingerprints":{"codehealthFindingId/v1":"68928eb0ea067e6af07092fdd28f9131db163623248a99fd07484c378be69114"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): crates/crab-coordination/src/cosmosdb_coordinator.rs:1042-1075 | crates/crab-coordination/src/spanner_coordinator.rs:665-693 \u2014 These two members are one piece of code written twice and then edited apart: 29 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-coordination/src/cosmosdb_coordinator.rs"},"region":{"startLine":1042}}}],"partialFingerprints":{"codehealthFindingId/v1":"2177792cb9ecb5d349989069d5f392448b562b314eca256e5ef0ebb0590d4300"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): crab/src/cmd/artifacts.rs:125-138 | crab/src/cmd/data.rs:141-150 \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":"crab/src/cmd/artifacts.rs"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"5cbcf6ce542ac46bbb6ab7f5ab30a5b5ccde945349d0aecd246d058e9c04af38"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): crates/crab-http-server/src/pulls/review_threads.rs:665-681 | crates/crab-http-server/src/pulls/review_threads.rs:688-707 \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/crab-http-server/src/pulls/review_threads.rs"},"region":{"startLine":665}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb5355f3ee893f0edfd0d5b470dbb53bf5ff6b0533817623a216f11b9d679217"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): crates/crab-staging/src/index.rs:1084-1113 | crates/crab-staging/src/index.rs:7174-7199 \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/crab-staging/src/index.rs"},"region":{"startLine":1084}}}],"partialFingerprints":{"codehealthFindingId/v1":"99e056657bb1a42996ed002ca5f0ee0b736337376f4acc1593ef77161ab9c907"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): crab/src/cmd/artifacts.rs:140-154 | crab/src/cmd/data.rs:153-164 \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":"crab/src/cmd/artifacts.rs"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac92271192e4eba8e8997cf7e3ec50532b9e208aaef2dc09c155adce9d536a89"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): crab/src/cmd/lfs/dedup.rs:1309-1331 | crab/src/lfs/prune.rs:968-990 \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":"crab/src/cmd/lfs/dedup.rs"},"region":{"startLine":1309}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f1483662bcaf0caa8d699256f978046813c2dff6efc6ae9bf0d03bce6d07cde"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): crates/crab-metadata/src/manifests.rs:330-354 | crates/crab-metadata/src/segmented.rs:439-457 \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/crab-metadata/src/manifests.rs"},"region":{"startLine":330}}}],"partialFingerprints":{"codehealthFindingId/v1":"9963c606001d42c148cccbb251b21c9a6c40bbf9fe5a5c010e33aff130ab49be"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): crab/src/cmd/run.rs:2399-2418 | crab/src/cmd/run.rs:4371-4389 \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":"crab/src/cmd/run.rs"},"region":{"startLine":2399}}}],"partialFingerprints":{"codehealthFindingId/v1":"8544da12f5a10618e7cb6648dc001c5c6833dc1488d7cdf8c38450c9f0d906be"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): crab/src/metadata/metadb/mod.rs:683-704 | crab/src/metadata/metadb/mod.rs:707-728 \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":"crab/src/metadata/metadb/mod.rs"},"region":{"startLine":683}}}],"partialFingerprints":{"codehealthFindingId/v1":"314aef8aeca1becf2577aadaf5de8a1a70602907ab2c1829594f8ff88eadf8aa"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): crates/crab-workflow/src/cache.rs:450-467 | crates/crab-workflow/src/experiment.rs:335-349 \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/crab-workflow/src/cache.rs"},"region":{"startLine":450}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c6e31f18c8a0bdeadd178d91a3496d2a443eb553ff55cdd097db3a44f833d54"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): crab/src/replication/mod.rs:5260-5282 | crab/src/replication/mod.rs:5287-5307 \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":"crab/src/replication/mod.rs"},"region":{"startLine":5260}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c9be95bb10e4056a9f9f42f52896db141f8423f208d63d68ec1dd18252d88a4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): crates/crab-vfs/src/coordinator.rs:536-555 | crates/crab-vfs/src/coordinator.rs:588-604 \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/crab-vfs/src/coordinator.rs"},"region":{"startLine":536}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ced930766bdd1fc8a7eb10f66d010cf0f94f8a7209de8811d56c5c99c000e7e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): crab/src/cmd/clone.rs:1029-1051 | crates/crab-auth-server/src/receive/git_workspace.rs:1171-1188 \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":"crab/src/cmd/clone.rs"},"region":{"startLine":1029}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a7b0ce78e945e045657c37a16fbddd71608d57a7b47cd97c0891fe26a110193"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): crab/src/replication/mod.rs:1018-1046 | crab/src/replication/mod.rs:1437-1475 \u2014 These two members are one piece of code written twice and then edited apart: 29 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/replication/mod.rs"},"region":{"startLine":1018}}}],"partialFingerprints":{"codehealthFindingId/v1":"aee4bba2ad8ecb002f8fbd233d2801058c37a01863514ce7529d453f07c6cf63"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): crab/src/speculation/access_db.rs:319-333 | crab/src/speculation/access_db.rs:370-384 \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":"crab/src/speculation/access_db.rs"},"region":{"startLine":319}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f720279e087db4b71adf6e21b4efdd6e7d0f335544f0e9d0f14327897da1e62"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): crates/crab-http-server/src/pulls/storage.rs:396-418 | crates/crab-http-server/src/pulls/storage.rs:533-555 \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/crab-http-server/src/pulls/storage.rs"},"region":{"startLine":396}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c34cb4f3ce7f475119ecfd2cf2ca148c909693a17814b24c84abb12590ad440"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): crates/crab-storage/src/store.rs:1319-1343 | crates/crab-storage/src/store.rs:1366-1390 \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/crab-storage/src/store.rs"},"region":{"startLine":1319}}}],"partialFingerprints":{"codehealthFindingId/v1":"305bf70c90706d4b9c0ef31701e26d53a5db1171e24aac9660660c40ed9dfd6d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 19\u002B corresponding lines): crab/src/cmd/recover.rs:2959-2978 | crab/src/cmd/status_workflow.rs:824-843 | crab/src/lfs/prune.rs:444-462 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 19 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":"crab/src/cmd/recover.rs"},"region":{"startLine":2959}}}],"partialFingerprints":{"codehealthFindingId/v1":"b13c4c68ef1ad6745875771a70a3a07d3d7d28045e4bbf6817c5a723940e8ab5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): crates/crab-staging/src/index.rs:4970-4982 | crates/crab-staging/src/index.rs:7616-7631 \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/crab-staging/src/index.rs"},"region":{"startLine":4970}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5e47854db0126279c0c0641e7369cbd616d4abe76e53cbd0411991b718ec80a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): crates/crab-workflow/src/scheduler.rs:192-214 | crates/crab-workflow/src/scheduler.rs:219-255 \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/crab-workflow/src/scheduler.rs"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"70fe06336750e68f16cf1c08da3e4b9513394a437249ec880c4f2996ee33f69b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 24\u002B corresponding lines): crab/src/cmd/lfs/fsck.rs:358-381 | crab/src/cmd/lfs/ls_files.rs:358-391 | crab/src/lfs/status.rs:543-569 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 24 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":"crab/src/cmd/lfs/fsck.rs"},"region":{"startLine":358}}}],"partialFingerprints":{"codehealthFindingId/v1":"75935cacd1166f62a850917b55dc3904f5624d59c427df071b9e84399fbc6348"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 20\u002B corresponding lines): crates/crab-coordination/src/cosmosdb_coordinator.rs:569-588 | crates/crab-coordination/src/dynamodb_coordinator.rs:460-480 | crates/crab-coordination/src/dynamodb_coordinator.rs:838-857 | crates/crab-coordination/src/spanner_coordinator.rs:255-274 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 20 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/crab-coordination/src/cosmosdb_coordinator.rs"},"region":{"startLine":569}}}],"partialFingerprints":{"codehealthFindingId/v1":"31606433ca152390468b6cb9096ec7c0233e880cc8ce47d2c7087249876d5fd6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): crates/crab-staging/src/lib.rs:2810-2818 | crates/crab-staging/src/lib.rs:3844-3852 \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/crab-staging/src/lib.rs"},"region":{"startLine":2810}}}],"partialFingerprints":{"codehealthFindingId/v1":"07d2b822828440915f9b665aa01ff3744bdcc2d0704980ca3248db656ce35e00"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): crab/src/cmd/add.rs:3402-3416 | crab/src/cmd/clone.rs:1589-1605 \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":"crab/src/cmd/add.rs"},"region":{"startLine":3402}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d7a664f993e6b32216b52981065d59df4ca10c9dece59233f56c6d60236bee3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 17\u002B corresponding lines): crab/src/cmd/metrics.rs:987-1003 | crab/src/cmd/metrics.rs:1019-1035 | crab/src/cmd/metrics.rs:1057-1073 \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":"crab/src/cmd/metrics.rs"},"region":{"startLine":987}}}],"partialFingerprints":{"codehealthFindingId/v1":"5da600d1b45cf9d76478c99961f698137307fab8b6fe24b20d0064a0091707cc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): crates/crab-auth/src/token_cache.rs:447-465 | crates/crab-cache-server/src/config.rs:410-423 \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/crab-auth/src/token_cache.rs"},"region":{"startLine":447}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7868159f4359bce570f9b32e62504d10aecd67d7bd897afb98ffd428ff24220"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 15\u002B corresponding lines): crates/crab-http-server/src/peer.rs:580-597 | crates/crab-http-server/src/peer.rs:603-623 | crates/crab-http-server/src/peer.rs:628-642 \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/crab-http-server/src/peer.rs"},"region":{"startLine":580}}}],"partialFingerprints":{"codehealthFindingId/v1":"879de9ce4310d97785204f387d2d9678d8e3d6d17955ecc68f8e48e6b719297e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): crates/crab-vfs/src/coordinator.rs:664-688 | crates/crab-vfs/src/coordinator.rs:884-911 \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/crab-vfs/src/coordinator.rs"},"region":{"startLine":664}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e0c508ff51032e1ae848c4e8d7c2f9a50d2d05a4e81a80e10d946b9b98cc697"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): crab/src/lfs/lock.rs:441-462 | crates/crab-lfs/src/lock.rs:543-560 \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":"crab/src/lfs/lock.rs"},"region":{"startLine":441}}}],"partialFingerprints":{"codehealthFindingId/v1":"52d7ee538f506caace2410ce5a350847873edf9d51e48db1a3d06507462dabe8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): crates/crab-cache-server/src/metrics.rs:383-400 | crates/crab-cache-server/src/metrics.rs:470-488 \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/crab-cache-server/src/metrics.rs"},"region":{"startLine":383}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b3baf974dc93f6ba9833d560406ac2e509f5be3fe18c7189d234c70b1b02923"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 16\u002B corresponding lines): crates/crab-vfs/src/fuse.rs:1086-1104 | crates/crab-vfs/src/fuse.rs:1171-1186 | crates/crab-vfs/src/fuse.rs:1274-1292 \u2014 These 3 members are one piece of code written 3 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 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-vfs/src/fuse.rs"},"region":{"startLine":1086}}}],"partialFingerprints":{"codehealthFindingId/v1":"90d8b561b3738acdf346c968b6790d24f693d8c375380d16b04d68526b358d80"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): crab/src/cmd/exp.rs:5861-5880 | crab/src/cmd/exp.rs:6521-6539 \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":"crab/src/cmd/exp.rs"},"region":{"startLine":5861}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fef34373d317d2e156d3829b01b6e3de08c14d86106b0a4b99cf89b26c13889"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 23\u002B corresponding lines): crab/src/replication/mod.rs:1230-1260 | crab/src/replication/mod.rs:1382-1404 | crab/src/replication/mod.rs:1409-1431 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 23 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":"crab/src/replication/mod.rs"},"region":{"startLine":1230}}}],"partialFingerprints":{"codehealthFindingId/v1":"404834f8bddf4a74dd34f9e8184b5f6178316ddf78ed421f6dc771adc0251642"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): crates/crab-s3-gateway/src/namespace.rs:111-130 | crates/crab-s3-gateway/src/namespace.rs:132-155 \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/crab-s3-gateway/src/namespace.rs"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"747e6b2b89c1d42f967219bfa4b9b5f7143b2d5f02f628fd43c9857e7b2bb4ef"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (7 members, 21\u002B corresponding lines): crab/scripts/check-architecture-gates.py:4018-4038 | crab/scripts/check-architecture-gates.py:4042-4065 | crab/scripts/check-architecture-gates.py:4069-4092 | crab/scripts/check-architecture-gates.py:4096-4119 | crab/scripts/check-architecture-gates.py:4172-4193 | crab/scripts/check-architecture-gates.py:4197-4217 | crab/scripts/check-architecture-gates.py:4377-4402 \u2014 These 7 members are one piece of code written 7 times and then edited apart: every two of them correspond over at least 21 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 7 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/scripts/check-architecture-gates.py"},"region":{"startLine":4018}}}],"partialFingerprints":{"codehealthFindingId/v1":"9974873f691a7e0f2990a496ca64e74a58136543dfa701b3a626999b2f8e6179"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 19\u002B corresponding lines): crab/src/cmd/exp.rs:5789-5810 | crab/src/cmd/exp.rs:5812-5830 | crab/src/cmd/exp.rs:5832-5850 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 19 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":"crab/src/cmd/exp.rs"},"region":{"startLine":5789}}}],"partialFingerprints":{"codehealthFindingId/v1":"f76ea4dee0bdbb70e901b9ff134b2d91890e5eab0aa18a92bbed1b9fec1f7f10"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): crab/src/cmd/gc/bucket.rs:1313-1329 | crab/src/cmd/gc/bucket.rs:1331-1348 \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":"crab/src/cmd/gc/bucket.rs"},"region":{"startLine":1313}}}],"partialFingerprints":{"codehealthFindingId/v1":"124f51f707f92a375e5b6ce16e9258026903db899a7a65ebe7403537dad91f6e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): crab/src/cmd/lfs/checkout.rs:341-360 | crab/src/lfs/extension.rs:62-80 \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":"crab/src/cmd/lfs/checkout.rs"},"region":{"startLine":341}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff7e91618d7f8d22c460fc5c5a6a942f649c199055d42456b8310e8eabf3aaa7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): crab/src/cmd/worktree.rs:995-1015 | crab/src/cmd/worktree.rs:1017-1039 \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":"crab/src/cmd/worktree.rs"},"region":{"startLine":995}}}],"partialFingerprints":{"codehealthFindingId/v1":"78d79a4407a8354efa6167cbf6e6724f4c50851b43fa4c8baae2d2e8114677f3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): crab/src/git/clean.rs:1333-1358 | crab/src/git/clean.rs:1374-1400 \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":"crab/src/git/clean.rs"},"region":{"startLine":1333}}}],"partialFingerprints":{"codehealthFindingId/v1":"a008b857f9906aabc1d14cd87e5fc5f41b8293d7db61802bc6a2661f794d5845"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): crab/src/replication/mod.rs:2411-2431 | crates/crab-coordination/src/cosmosdb_coordinator.rs:866-887 \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":"crab/src/replication/mod.rs"},"region":{"startLine":2411}}}],"partialFingerprints":{"codehealthFindingId/v1":"21230dcf78b1a979c67e9827ef9183c37a2ac7624a08cc3e7513472756d5bf19"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): crates/crab-coordination/src/dynamodb_coordinator.rs:437-455 | crates/crab-coordination/src/dynamodb_coordinator.rs:482-503 \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/crab-coordination/src/dynamodb_coordinator.rs"},"region":{"startLine":437}}}],"partialFingerprints":{"codehealthFindingId/v1":"57ef07fe12b480432a505035337c0123be8216d3f2ef8f8f20a5b3dcf676d881"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): crates/crab-read/src/hydrator/stream.rs:83-97 | crates/crab-sdk/src/content/crab.rs:215-231 \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/crab-read/src/hydrator/stream.rs"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ef13aee08df45c56d04b717e5bf93d70e179831f12cfc15e27f5fd9eb470bbf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): crab/src/cache/mod.rs:51-69 | crates/crab-cache/src/shard_hints.rs:39-53 \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":"crab/src/cache/mod.rs"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d354c16440aae2a37b9be6cb564bf03adfa7489890f71ced9ccf4f3f04c6401"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): crab/src/cmd/lfs/convert.rs:229-246 | crab/src/cmd/optimize.rs:273-291 \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":"crab/src/cmd/lfs/convert.rs"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2fbdd2e08d893e1a5c30c49ee2cfa01852eb7408581df3b2676f3b6426f4407"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): crab/src/lfs/migrate.rs:1202-1217 | crab/src/lfs/prune.rs:587-607 \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":"crab/src/lfs/migrate.rs"},"region":{"startLine":1202}}}],"partialFingerprints":{"codehealthFindingId/v1":"f55b0a484febae75ba44fff1e2def924e5e952f95eea5fd9cefc6fb3f0df3bc2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): crates/crab-read/src/hydrator.rs:655-671 | crates/crab-read/src/hydrator.rs:673-690 \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/crab-read/src/hydrator.rs"},"region":{"startLine":655}}}],"partialFingerprints":{"codehealthFindingId/v1":"7eff04165ffde26440c3835f8eca7a9462b423ded651530f16f13b8e0458243d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (6 members, 17\u002B corresponding lines): crates/crab-vfs/src/ipc_client.rs:353-375 | crates/crab-vfs/src/ipc_client.rs:421-443 | crates/crab-vfs/src/ipc_client.rs:448-471 | crates/crab-vfs/src/ipc_client.rs:474-490 | crates/crab-vfs/src/ipc_client.rs:493-510 | crates/crab-vfs/src/ipc_client.rs:513-530 \u2014 These 6 members are one piece of code written 6 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 6 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-vfs/src/ipc_client.rs"},"region":{"startLine":353}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a65d8aabd004230943db3d2b2721f957e3033da7a23accdc353d0e9e40645e7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): crab/src/cmd/configure.rs:207-229 | crab/src/cmd/configure.rs:231-252 \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":"crab/src/cmd/configure.rs"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"08c4c2e7ea644f8e8f9bc30af63fca0282cde742e9300205525e460e8577157d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): crab/src/cmd/lfs/locks.rs:449-480 | crab/src/cmd/lfs/locks.rs:482-502 \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":"crab/src/cmd/lfs/locks.rs"},"region":{"startLine":449}}}],"partialFingerprints":{"codehealthFindingId/v1":"40dc59d37726ff5436d5ba119e8fbcd41640f45454b47c3f53f1309b139400e1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): crab/src/diff/format_hint.rs:183-203 | crab/src/diff/format_hint.rs:315-338 \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":"crab/src/diff/format_hint.rs"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3e015ce74938f741503e33d288d699dc8eea39ba49dca0dde39106ca9ade6ee"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (6 members, 26\u002B corresponding lines): crab/src/replication/mod.rs:2072-2097 | crab/src/replication/mod.rs:2099-2124 | crab/src/replication/mod.rs:7409-7435 | crates/crab-coordination/src/write_coordinator.rs:376-402 | crates/crab-coordination/src/write_coordinator.rs:456-482 | crates/crab-coordination/src/write_coordinator.rs:484-510 \u2014 These 6 members are one piece of code written 6 times and then edited apart: every two of them correspond over at least 26 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 6 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/replication/mod.rs"},"region":{"startLine":2072}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6c3f0dffe14c9c808a0f2ddf3ceaba48a348fd38af3167ffdc6539637e7bf36"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): crates/crab-metadata/src/git_visibility.rs:2994-3011 | crates/crab-metadata/src/git_visibility.rs:3682-3707 \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/crab-metadata/src/git_visibility.rs"},"region":{"startLine":2994}}}],"partialFingerprints":{"codehealthFindingId/v1":"755f65c43d2ee2f4b136d6b56acccd28252eb13511bd97669ff051fb876a4884"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): crates/crab-storage/src/store.rs:700-715 | crates/crab-storage/src/store.rs:1256-1275 \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/crab-storage/src/store.rs"},"region":{"startLine":700}}}],"partialFingerprints":{"codehealthFindingId/v1":"d41ba45a2d28736fc746a76b090b8823f24ebb71a644f8d884647194bd610620"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): crates/crab-workflow/src/template/foreach.rs:169-190 | crates/crab-workflow/src/template/matrix.rs:197-215 \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/crab-workflow/src/template/foreach.rs"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"04cd915b4a997c29c065c9330842daca4f07e65776966ee8809345e7104d7f86"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): crab/src/cmd/metrics.rs:3611-3620 | crab/src/cmd/params.rs:457-466 \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":"crab/src/cmd/metrics.rs"},"region":{"startLine":3611}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c679359459352ca20dfef850126d22c98db296176a8c9fe1d1ca51923f28c0e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): crates/crab-staging/src/push_plan.rs:594-609 | crates/crab-staging/src/push_plan.rs:815-830 \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/crab-staging/src/push_plan.rs"},"region":{"startLine":594}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b595035e845389b52835b0313a4c597507ca620402e8511e09f8841ee58ed49"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): crab/src/cmd/exp.rs:2974-2990 | crab/src/cmd/exp_queue.rs:1398-1415 \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":"crab/src/cmd/exp.rs"},"region":{"startLine":2974}}}],"partialFingerprints":{"codehealthFindingId/v1":"95849ea62f89addeb656c35166f21d9c8f09f11b2206585629cbfcffa6d5ce22"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): crab/src/cmd/mount.rs:476-497 | crab/src/cmd/mount.rs:1852-1874 \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":"crab/src/cmd/mount.rs"},"region":{"startLine":476}}}],"partialFingerprints":{"codehealthFindingId/v1":"145ca9814c368ef4855e526022407489d7875bf1251deb3b6a226ba57c967525"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): crab/src/replication/mod.rs:1896-1922 | crab/src/replication/mod.rs:1977-2002 \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":"crab/src/replication/mod.rs"},"region":{"startLine":1896}}}],"partialFingerprints":{"codehealthFindingId/v1":"0115bf14e127aeb6f14c23f64b23b8c708aa5a47a84a9e788532aea80e1d7eed"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): crates/crab-auth-server/src/receive/git_workspace.rs:118-135 | crates/crab-auth-server/src/receive/git_workspace.rs:536-555 \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/crab-auth-server/src/receive/git_workspace.rs"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"e248ff625c2f73f219f4924ce5ec78932fff4bb8f33dfe7d2b5eeeea1d7e7450"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): crates/crab-http-server/src/issues.rs:62-78 | crates/crab-http-server/src/issues.rs:86-102 \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/crab-http-server/src/issues.rs"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"a453721b1e7f0c4e8c367878730051c251cdb5aa8c61b5a32c3cbe6a7701bcd1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 15\u002B corresponding lines): crates/crab-metadata/src/git_visibility.rs:2752-2770 | crates/crab-metadata/src/ref_journal.rs:838-852 | crates/crab-metadata/src/ref_registry.rs:704-718 \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/crab-metadata/src/git_visibility.rs"},"region":{"startLine":2752}}}],"partialFingerprints":{"codehealthFindingId/v1":"2231800d456813a627c53ef0e38799c18e567ae51f2ff08bd8bb675a5109d5de"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): crates/crab-metadata/src/key_codec.rs:115-127 | crates/crab-metadata/src/key_codec.rs:186-198 \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/crab-metadata/src/key_codec.rs"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4bb3428c97f67e341428dffa0e87e88585d6e4676bbcb3af8eb8a7e8c991e33"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 13\u002B corresponding lines): crab/src/cmd/doctor.rs:1721-1733 | crab/src/cmd/replica.rs:2845-2858 | crab/src/cmd/replica.rs:2860-2872 \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":"crab/src/cmd/doctor.rs"},"region":{"startLine":1721}}}],"partialFingerprints":{"codehealthFindingId/v1":"631e8f67bbe1deb4554e009c55a6daaf1970f5653594ce40f90658c39a82cf8b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): crab/src/cmd/lfs/install.rs:146-170 | crab/src/cmd/lfs/update.rs:42-61 \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":"crab/src/cmd/lfs/install.rs"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa5dab58bd6aa3d910a8e71be6743b7bfe034fb9572f11ed342fb07288e2ac17"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): crates/crab-auth/src/managed/profile.rs:177-192 | crates/crab-auth/src/token_cache.rs:170-185 \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/crab-auth/src/managed/profile.rs"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"10089287e5a7dc2e6cb28361cd81458ff1814bc2ef6a8e8cbb6a254dc4a1a456"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): crates/crab-http-server/src/cells/repository.rs:738-756 | crates/crab-http-server/src/cells/repository/pull_review_threads.rs:1032-1048 \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/crab-http-server/src/cells/repository.rs"},"region":{"startLine":738}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ea40d46142287561539abc2e47faa5b7f996670eaa5130854b1c99ba3442b19"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): crates/crab-remote-git/src/snapshot.rs:1205-1219 | crates/crab-remote-git/src/snapshot.rs:1261-1278 \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/crab-remote-git/src/snapshot.rs"},"region":{"startLine":1205}}}],"partialFingerprints":{"codehealthFindingId/v1":"671723d3ca712c00d3d7eb28dfae8f358440a30babf3ac6a984a8376860da258"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): crab/src/cmd/install.rs:390-410 | crab/src/cmd/lfs/install.rs:465-485 \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":"crab/src/cmd/install.rs"},"region":{"startLine":390}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdaed3367e98828a67818bc5bba8d5dbb8cfc3faad2a473053fef7cad133fb5c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): crab/src/cmd/recover.rs:1345-1366 | crab/src/cmd/recover.rs:1404-1427 \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":"crab/src/cmd/recover.rs"},"region":{"startLine":1345}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf7b3c15edc76e90dfcf24aa1e76ecdc513eb3e65dc47fcfdd20126bb470e78b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): crab/src/cmd/status.rs:895-910 | crab/src/cmd/why.rs:226-241 \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":"crab/src/cmd/status.rs"},"region":{"startLine":895}}}],"partialFingerprints":{"codehealthFindingId/v1":"9989d51372c44979eab9d40474dea1c621b72339b0df21899efb35c5a4626421"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 21\u002B corresponding lines): crab/src/git/push.rs:5780-5802 | crab/src/git/push.rs:6403-6423 | crates/crab-write/src/journal.rs:445-466 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 21 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/git/push.rs"},"region":{"startLine":5780}}}],"partialFingerprints":{"codehealthFindingId/v1":"86a01163ed07b33bc874349bc4f42b5203cfe0f63bbf2db922680b11bf053310"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (30 corresponding lines): crates/crab-coordination/src/active_active_runtime.rs:268-297 | crates/crab-coordination/src/active_active_runtime.rs:322-351 \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/crab-coordination/src/active_active_runtime.rs"},"region":{"startLine":268}}}],"partialFingerprints":{"codehealthFindingId/v1":"2439567b933df6b1eab36f231c58e016b31e99704780300ce84a336e47b806a1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): crates/crab-http-server/src/branches.rs:390-408 | crates/crab-http-server/src/branches.rs:415-436 \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/crab-http-server/src/branches.rs"},"region":{"startLine":390}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7ad71198db2c002696eff25730f8b73ba3a494bed3d421b01218ca26c018710"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 22\u002B corresponding lines): crates/crab-sdk/src/managed.rs:304-326 | crates/crab-sdk/src/managed.rs:335-356 | crates/crab-sdk/src/managed.rs:365-386 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 22 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-sdk/src/managed.rs"},"region":{"startLine":304}}}],"partialFingerprints":{"codehealthFindingId/v1":"01d0924ffad37c69edd7df537e4f808fd6081d6f0094ad950870d92e0491da8b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): crates/crab-workflow/src/template/context.rs:357-371 | crates/crab-workflow/src/template/substitute.rs:183-197 \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/crab-workflow/src/template/context.rs"},"region":{"startLine":357}}}],"partialFingerprints":{"codehealthFindingId/v1":"a37d416ab98aadd6af0954bddc0429f498d1afd3c29cf29d934bf3a0cbacaa55"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): crab/src/cmd/exp_queue.rs:1355-1369 | crates/crab-workflow/src/cache.rs:471-484 \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":"crab/src/cmd/exp_queue.rs"},"region":{"startLine":1355}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a731159523d75ead89b861a1cfe2dc3c0df89013965d5171c3115e6e73f4019"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): crab/src/cmd/lfs/fsck.rs:384-405 | crab/src/cmd/lfs/ls_files.rs:394-415 \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":"crab/src/cmd/lfs/fsck.rs"},"region":{"startLine":384}}}],"partialFingerprints":{"codehealthFindingId/v1":"08f87f95b165ac2bb92b0cf86b253bd628f69e60b5b78abe4a418e896e038e8c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): crab/src/cmd/recover.rs:1320-1340 | crab/src/cmd/recover.rs:1463-1480 \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":"crab/src/cmd/recover.rs"},"region":{"startLine":1320}}}],"partialFingerprints":{"codehealthFindingId/v1":"10069ef0ce1b51784d0957b5d357f427e4c7c69d92e3fc1f5c6fa67ba18f38d7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): crab/src/metadata/metadb/db.rs:793-807 | crab/src/metadata/metadb/db.rs:815-828 \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":"crab/src/metadata/metadb/db.rs"},"region":{"startLine":793}}}],"partialFingerprints":{"codehealthFindingId/v1":"02152454aa3588418ef05950ae895a28399b38e0643a66932d483c160812ccff"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): crates/crab-http-server/src/assignees.rs:57-74 | crates/crab-http-server/src/labels.rs:150-165 \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/crab-http-server/src/assignees.rs"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"baf6e8b9d3881f998423bb6b176840a7de91e3753373b6746b379111ee492f83"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): crates/crab-workflow/src/exp_range.rs:311-333 | crates/crab-workflow/src/template/matrix.rs:145-165 \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/crab-workflow/src/exp_range.rs"},"region":{"startLine":311}}}],"partialFingerprints":{"codehealthFindingId/v1":"5933180c14cb5120decf5bf8cb3ddeaaa716906bbca723919374782f1fc68eaa"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): crab/scripts/generate_test_file.rs:287-301 | crates/crab-workflow/src/cache.rs:115-128 \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":"crab/scripts/generate_test_file.rs"},"region":{"startLine":287}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bd322b985ce95549111e5c39c0dade73eac088160f1704f275f26703ea725e5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): crab/src/cmd/dag.rs:451-460 | crab/src/cmd/stage/list.rs:280-289 \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":"crab/src/cmd/dag.rs"},"region":{"startLine":451}}}],"partialFingerprints":{"codehealthFindingId/v1":"7594e3a9229a2f8ec1b51b4e6bae51ea6f5cde32e692b38158df9ae289daebba"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): crab/src/cmd/replica.rs:7954-7980 | crab/src/cmd/replica.rs:8034-8059 \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":"crab/src/cmd/replica.rs"},"region":{"startLine":7954}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6f037487570c8e54604a5106b40b4fc1bd989bcbf047e02934b6a2ec429d7f4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 17\u002B corresponding lines): crates/crab-staging/src/index.rs:336-352 | crates/crab-staging/src/index.rs:670-686 | crates/crab-staging/src/index.rs:688-704 | crates/crab-staging/src/index.rs:8517-8550 \u2014 These 4 members are one piece of code written 4 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 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-staging/src/index.rs"},"region":{"startLine":336}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0494495dd3c5e1679030cc8aa976b99b9943aa4d60e55dd826686abae483ff2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): crates/crab-vfs/src/daemon.rs:1946-1966 | crates/crab-vfs/src/pipeline.rs:690-710 \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/crab-vfs/src/daemon.rs"},"region":{"startLine":1946}}}],"partialFingerprints":{"codehealthFindingId/v1":"851dcfe379d044ba438bd266ac5c8fa233469aa1fc7617155d5e1c6dac3c8263"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): crates/crab-vfs/src/engine.rs:1539-1556 | crates/crab-vfs/src/engine.rs:1832-1853 \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/crab-vfs/src/engine.rs"},"region":{"startLine":1539}}}],"partialFingerprints":{"codehealthFindingId/v1":"26b9606ab28b8ed85327693dee28b2b000bfad63158c5789253ef7c0a7f04259"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): crab/src/cmd/metrics.rs:156-166 | crab/src/cmd/params.rs:90-100 \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":"crab/src/cmd/metrics.rs"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1f64a2475693169b0d60945677cb0c86515173f3b800e7729128ce866d4dd26"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): crab/src/replication/mod.rs:7456-7479 | crab/src/replication/mod.rs:7565-7587 \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":"crab/src/replication/mod.rs"},"region":{"startLine":7456}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1031f8a9081db7886b5e439291567a284c8192642ab32f86399310530843ca0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): crates/crab-auth/src/managed/client.rs:1524-1539 | crates/crab-auth/src/managed/client.rs:1544-1559 \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/crab-auth/src/managed/client.rs"},"region":{"startLine":1524}}}],"partialFingerprints":{"codehealthFindingId/v1":"ede2a5faddd92f12b956d3c16e2a9c9e86c2d43708257761caac85d136a2d5c9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): crates/crab-metadata/src/persistent_chunk_index.rs:479-500 | crates/crab-metadata/src/persistent_chunk_index.rs:523-537 \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/crab-metadata/src/persistent_chunk_index.rs"},"region":{"startLine":479}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd0bd8803858366bf9a1a9409c327bbe09290ba7dd1d5dd25736db1fd6c8c348"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 12\u002B corresponding lines): crab/src/cmd/run.rs:2317-2328 | crab/src/cmd/run.rs:2337-2349 | crab/src/cmd/run.rs:2359-2373 | crab/src/cmd/run.rs:2380-2391 | crab/src/cmd/run.rs:2424-2437 \u2014 These 5 members are one piece of code written 5 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 5 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/cmd/run.rs"},"region":{"startLine":2317}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe49c7a977aa9712a050839924f26cae25a83bf9ce6ffb805a9a6eaeaa26dd1c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (36 corresponding lines): crab/src/core/metrics.rs:1528-1563 | crab/src/core/metrics.rs:1567-1604 \u2014 These two members are one piece of code written twice and then edited apart: 36 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/core/metrics.rs"},"region":{"startLine":1528}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a8e484382265d5f9f6f81119afe5682ea647e7de4974147e90be8ea24215921"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): crates/crab-cache-server/src/server.rs:338-361 | crates/crab-cache-server/src/server.rs:363-381 \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/crab-cache-server/src/server.rs"},"region":{"startLine":338}}}],"partialFingerprints":{"codehealthFindingId/v1":"9cb14c001be959c042cb2dfa8bb6c9bdf9d24731b275529c6b08f1aeaf943aec"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): crates/crab-git/src/lfs_pointer.rs:317-328 | crates/crab-types/src/pointer.rs:232-246 \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/crab-git/src/lfs_pointer.rs"},"region":{"startLine":317}}}],"partialFingerprints":{"codehealthFindingId/v1":"511c41ef78acfd71253aae93cb0569a25f733eb4422977015ff019438a5e8ed0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 13\u002B corresponding lines): crates/crab-http-server/src/cells/repository/pull_review_threads.rs:589-601 | crates/crab-http-server/src/cells/repository/pull_review_threads.rs:668-680 | crates/crab-http-server/src/cells/repository/pulls.rs:1293-1309 | crates/crab-http-server/src/cells/repository/pulls.rs:1335-1351 \u2014 These 4 members are one piece of code written 4 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 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-http-server/src/cells/repository/pull_review_threads.rs"},"region":{"startLine":589}}}],"partialFingerprints":{"codehealthFindingId/v1":"29bddfd218c07ada251d66f64f615cbbe9612b7ee6f57d883083b7829ce55a24"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (7 members, 15\u002B corresponding lines): crates/crab-vfs/src/engine.rs:1563-1577 | crates/crab-vfs/src/engine.rs:1585-1599 | crates/crab-vfs/src/engine.rs:1602-1616 | crates/crab-vfs/src/engine.rs:1619-1633 | crates/crab-vfs/src/engine.rs:1636-1650 | crates/crab-vfs/src/engine.rs:1692-1710 | crates/crab-vfs/src/engine.rs:1713-1731 \u2014 These 7 members are one piece of code written 7 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 7 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-vfs/src/engine.rs"},"region":{"startLine":1563}}}],"partialFingerprints":{"codehealthFindingId/v1":"240ddc077ece48cc3db99e8ff057b97d43a1141d57829d2346f83c54a7a2ce32"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): crab/src/cmd/worktree.rs:1405-1420 | crates/crab-staging/src/lib.rs:833-850 \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":"crab/src/cmd/worktree.rs"},"region":{"startLine":1405}}}],"partialFingerprints":{"codehealthFindingId/v1":"b98bb161ceba846b4e8e02f1b88bb1de31ab4fb327ceff0175823607f684ee78"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): crab/src/import/assemble.rs:617-639 | crab/src/import/assemble.rs:643-664 \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":"crab/src/import/assemble.rs"},"region":{"startLine":617}}}],"partialFingerprints":{"codehealthFindingId/v1":"d262434457f9607d106fa18a56acf5085fdf7e553adac90d66f8026111a42201"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): crates/crab-read/src/term_resolver.rs:429-450 | crates/crab-read/src/term_resolver.rs:457-477 \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/crab-read/src/term_resolver.rs"},"region":{"startLine":429}}}],"partialFingerprints":{"codehealthFindingId/v1":"e61a87b05dc26256d342af2f542706c313e3b8ab91a93725ac285edadeaed3b7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): crates/crab-workflow/src/template/foreach.rs:69-86 | crates/crab-workflow/src/template/foreach.rs:96-117 \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/crab-workflow/src/template/foreach.rs"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7d07db27b68be34f310e10c3091b0ee0e23dd9fe720983d7d67555afd64c3b9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): crab/src/import/versions.rs:1445-1459 | crab/src/storage/head_class.rs:440-458 \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":"crab/src/import/versions.rs"},"region":{"startLine":1445}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8026e757af86e12e30fc8a51b964aef6359269d29050fa7be0570c346da4ee8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): crab/src/main.rs:3003-3029 | crates/crab-s3-gateway/src/server.rs:461-481 \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":"crab/src/main.rs"},"region":{"startLine":3003}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d95b27355244565496543cebdd347697a914dbcadf42a6fb686b2a4cc0e94e2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): crates/crab-cache-server/src/onboarding.rs:1333-1349 | crates/crab-workflow/src/lockfile.rs:696-717 \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/crab-cache-server/src/onboarding.rs"},"region":{"startLine":1333}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b48ebd65499c8e5f56da15a90d86588619e9ba3add1ecf43d20fd3449e9e2d1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): crates/crab-coordination/src/cosmosdb_coordinator.rs:1352-1367 | crates/crab-coordination/src/spanner_coordinator.rs:1125-1140 \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/crab-coordination/src/cosmosdb_coordinator.rs"},"region":{"startLine":1352}}}],"partialFingerprints":{"codehealthFindingId/v1":"89764b3b18ce87b2987f18e3b9160dd66160d13dcf770029b8a401b411d8f03a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): crates/crab-coordination/src/write_coordinator.rs:845-867 | crates/crab-coordination/src/write_coordinator.rs:1341-1361 \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/crab-coordination/src/write_coordinator.rs"},"region":{"startLine":845}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a1fbf4f0c27d8f8bc063e08ff34f517d748f7890212c45110f6ec9129beac69"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): crates/crab-http-server/src/cells/repository.rs:781-798 | crates/crab-http-server/src/cells/repository.rs:800-811 \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/crab-http-server/src/cells/repository.rs"},"region":{"startLine":781}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d9a3cf8a258c726d3033cb35ab5936e659f9905d1a67514d0735949a1aa0dd7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): crates/crab-vfs/src/publish.rs:1491-1508 | crates/crab-vfs/src/publish.rs:1510-1528 \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/crab-vfs/src/publish.rs"},"region":{"startLine":1491}}}],"partialFingerprints":{"codehealthFindingId/v1":"9927ba13c0e2fd6f7226a09ba065bdee4f55753155c2faffe5d390430e3e60ef"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): crab/src/replication/mod.rs:9309-9327 | crab/src/replication/mod.rs:9334-9352 \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":"crab/src/replication/mod.rs"},"region":{"startLine":9309}}}],"partialFingerprints":{"codehealthFindingId/v1":"1716f4d3b624b83f1c10d64a1e0888254d1242a72b4a8ea5573458cd4c63afd1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): crates/crab-auth/src/managed/client.rs:1123-1140 | crates/crab-auth/src/managed/client.rs:1142-1159 \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/crab-auth/src/managed/client.rs"},"region":{"startLine":1123}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9054683780bf703dcca6eef057c7aa4ee157de2b4b01e276e33a7cc8aa6d9e5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): crab/src/cmd/download.rs:517-538 | crab/src/cmd/export.rs:579-600 \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":"crab/src/cmd/download.rs"},"region":{"startLine":517}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f44e744dd3399812e34cbbf79808cc5bfcd4771bee85ec3bacdb7a993a42046"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): crab/src/cmd/exp.rs:4972-4984 | crates/crab-workflow/src/artifact.rs:1697-1708 \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":"crab/src/cmd/exp.rs"},"region":{"startLine":4972}}}],"partialFingerprints":{"codehealthFindingId/v1":"b871333ac0e4c9db497a41e8fa1c30cf8333416ecc6cd968c52409f094a5ad22"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): crab/src/cmd/gc/bucket.rs:245-263 | crab/src/cmd/gc/mod.rs:436-456 \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":"crab/src/cmd/gc/bucket.rs"},"region":{"startLine":245}}}],"partialFingerprints":{"codehealthFindingId/v1":"faef3ffe5a3cb6b08fda64026b1a973e5774c56d926e06be4f99bfcd83d34d6d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): crates/crab-http-server/src/cells/repository/codec.rs:380-393 | crates/crab-http-server/src/cells/repository/codec.rs:621-633 \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/crab-http-server/src/cells/repository/codec.rs"},"region":{"startLine":380}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f59ce4e2aa4c5c6ee244ccd05f3fa5cc275152323ee093361a47a71b2946e25"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): crates/crab-http-server/src/issues.rs:36-53 | crates/crab-http-server/src/pulls.rs:40-60 \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/crab-http-server/src/issues.rs"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5991b965769348847eafa2f842c78bc650f33e0c148ba779068fbcd0255be0a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): crates/crab-vfs/src/engine.rs:1041-1056 | crates/crab-vfs/src/nfs.rs:595-613 \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/crab-vfs/src/engine.rs"},"region":{"startLine":1041}}}],"partialFingerprints":{"codehealthFindingId/v1":"78355964d15a72aa51c07e5be91be3371993afde4209f092a1190f91bc0c6239"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): crab/src/replication/mod.rs:5153-5168 | crab/src/replication/mod.rs:5206-5219 \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":"crab/src/replication/mod.rs"},"region":{"startLine":5153}}}],"partialFingerprints":{"codehealthFindingId/v1":"008c608bf41e740c8d5b7c864411b34ec71080021e36a6eda907261e9e303133"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 16\u002B corresponding lines): crates/crab-lfs/src/object_store.rs:236-273 | crates/crab-lfs/src/object_store.rs:541-556 | crates/crab-lfs/src/object_store.rs:675-706 \u2014 These 3 members are one piece of code written 3 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 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-lfs/src/object_store.rs"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c31aeec226e04eebd86b588ea90dd9fd63486f7b9af95e242e3379d6e4dc623"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): crates/crab-remote-git/src/pack.rs:1717-1749 | crates/crab-remote-git/src/pack.rs:1757-1781 \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/crab-remote-git/src/pack.rs"},"region":{"startLine":1717}}}],"partialFingerprints":{"codehealthFindingId/v1":"4cdb4e9c69da0155a8539e1f8a327fe21361cb60f02c4d3c966c553136efb005"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): crab/src/cmd/migrate.rs:2415-2430 | crab/src/cmd/migrate.rs:2432-2450 \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":"crab/src/cmd/migrate.rs"},"region":{"startLine":2415}}}],"partialFingerprints":{"codehealthFindingId/v1":"181abc14c4fb7ad393edad7c109ec572aca152426d7611b317ba03dff50a1bfb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): crab/src/cmd/replica.rs:2371-2390 | crab/src/cmd/replica.rs:2392-2411 \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":"crab/src/cmd/replica.rs"},"region":{"startLine":2371}}}],"partialFingerprints":{"codehealthFindingId/v1":"0508e985ed79433ea4a15062b7159c7b7828f490e82cd1c24b859c0b17d2639e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): crab/src/cmd/replica.rs:8718-8739 | crab/src/cmd/replica.rs:9015-9039 \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":"crab/src/cmd/replica.rs"},"region":{"startLine":8718}}}],"partialFingerprints":{"codehealthFindingId/v1":"70943859fc8c01e10774b57fd59b047389d14e921cee8d879617f16928d600cf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): crates/crab-coordination/src/spanner_coordinator.rs:1369-1382 | crates/crab-coordination/src/spanner_coordinator.rs:1388-1406 \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/crab-coordination/src/spanner_coordinator.rs"},"region":{"startLine":1369}}}],"partialFingerprints":{"codehealthFindingId/v1":"31eb780dfd91738cd284133da2b62b904982f43e93f0d04856683f68086c57f5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): crates/crab-http-server/src/cells/scheduler.rs:984-1001 | crates/crab-http-server/src/cells/scheduler.rs:1017-1034 \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/crab-http-server/src/cells/scheduler.rs"},"region":{"startLine":984}}}],"partialFingerprints":{"codehealthFindingId/v1":"44a12acd2d2ebae664ea264ca781127f35d753474eeb9ab9f1220a1edf3f733a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): crates/crab-read/src/upload_pack_wire.rs:365-377 | crates/crab-remote-git/src/pack.rs:2943-2959 \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/crab-read/src/upload_pack_wire.rs"},"region":{"startLine":365}}}],"partialFingerprints":{"codehealthFindingId/v1":"133f70d84ebf02a51828b8a4140e5f30e3fa5e6ef3aff9dce88b5382eb4700ac"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 18\u002B corresponding lines): crates/crab-remote-git/src/operation.rs:975-1002 | crates/crab-remote-git/src/operation.rs:1008-1033 | crates/crab-remote-git/src/operation.rs:1083-1100 | crates/crab-remote-git/src/operation.rs:1105-1122 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 18 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/crab-remote-git/src/operation.rs"},"region":{"startLine":975}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d33fa9d4be63aa729fd5f9f8d139c45198e9db5d638cc3201ba93a95f62cbb5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): crab/src/cmd/lfs/checkout.rs:455-476 | crab/src/cmd/lfs/convert.rs:527-543 \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":"crab/src/cmd/lfs/checkout.rs"},"region":{"startLine":455}}}],"partialFingerprints":{"codehealthFindingId/v1":"b11f5e7c3d07076dea2e43331015b47d7d75ae053757ee8ec6a8e0105ce53813"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): crab/src/cmd/replica.rs:8401-8412 | crab/src/cmd/replica.rs:8414-8425 \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":"crab/src/cmd/replica.rs"},"region":{"startLine":8401}}}],"partialFingerprints":{"codehealthFindingId/v1":"abc580b687ca93731384d1c22a239ecc02402892399d7909ecdfb3d53eb045aa"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): crab/src/cmd/replica.rs:9041-9064 | crab/src/replication/mod.rs:9133-9154 \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":"crab/src/cmd/replica.rs"},"region":{"startLine":9041}}}],"partialFingerprints":{"codehealthFindingId/v1":"372042e1d21670dff98a46e9c25e54b7fafa599ba09fa34d2bccb03e97e202a3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 16\u002B corresponding lines): crates/crab-coordination/src/cosmosdb_coordinator.rs:590-605 | crates/crab-coordination/src/dynamodb_coordinator.rs:814-833 | crates/crab-coordination/src/dynamodb_coordinator.rs:859-874 | crates/crab-coordination/src/spanner_coordinator.rs:276-291 \u2014 These 4 members are one piece of code written 4 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 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-coordination/src/cosmosdb_coordinator.rs"},"region":{"startLine":590}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e66b0b3a0f950710b53f5845a33f6f23b00f2740f571d1d9cb21103eae5d902"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): crates/crab-coordination/src/push_lock.rs:561-571 | crates/crab-coordination/src/push_lock.rs:938-946 \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/crab-coordination/src/push_lock.rs"},"region":{"startLine":561}}}],"partialFingerprints":{"codehealthFindingId/v1":"07c4388c66bdae99787f45de08c450245804d6fbd794558ad2e1537dcb1e9d81"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): crates/crab-coordination/src/spanner_coordinator.rs:344-360 | crates/crab-coordination/src/spanner_coordinator.rs:385-401 \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/crab-coordination/src/spanner_coordinator.rs"},"region":{"startLine":344}}}],"partialFingerprints":{"codehealthFindingId/v1":"03cf7d12a1def17c388a02559e43a52d39780941fd4ceb6e5dfea04d229328c8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): crates/crab-http-server/src/cells/repository/codec.rs:367-378 | crates/crab-http-server/src/cells/repository/codec.rs:609-619 \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/crab-http-server/src/cells/repository/codec.rs"},"region":{"startLine":367}}}],"partialFingerprints":{"codehealthFindingId/v1":"40d1ba66f0445bdbb936733ac2af70a8973d2c716ab362bfd45c775cae6cda18"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 14\u002B corresponding lines): crates/crab-http-server/src/cells/repository/pull_review_threads.rs:616-635 | crates/crab-http-server/src/cells/repository/pulls.rs:551-571 | crates/crab-http-server/src/cells/repository/pulls.rs:1363-1376 | crates/crab-http-server/src/cells/repository/releases.rs:740-755 \u2014 These 4 members are one piece of code written 4 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 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-http-server/src/cells/repository/pull_review_threads.rs"},"region":{"startLine":616}}}],"partialFingerprints":{"codehealthFindingId/v1":"7907571965ea619ffac6d66e3ce7d19954781a9c228f2c8d891fcf50bd078696"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): crates/crab-remote-git/src/runtime.rs:791-811 | crates/crab-remote-git/src/runtime.rs:824-849 \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/crab-remote-git/src/runtime.rs"},"region":{"startLine":791}}}],"partialFingerprints":{"codehealthFindingId/v1":"098d7464f6103316c982e2ac32e809ad34ffcdf347c7dc416e54cc9b57cd9edc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): crates/crab-sdk/src/client/mutation.rs:988-1008 | crates/crab-sdk/src/client/mutation.rs:1057-1075 \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/crab-sdk/src/client/mutation.rs"},"region":{"startLine":988}}}],"partialFingerprints":{"codehealthFindingId/v1":"43c724b12cd88cfef114364247c52853272ae2facd87491049c0ec9a10678be4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): crates/crab-vfs/src/refresh.rs:186-205 | crates/crab-vfs/src/refresh.rs:207-224 \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/crab-vfs/src/refresh.rs"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ac1dc21a28366c431af720f35ee2ffb9ea3f043f5a4ba411b5fbcc5f4cc72af"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): crab/src/cmd/data.rs:1530-1542 | crates/crab-workflow/src/dvc_inventory.rs:2308-2326 \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":"crab/src/cmd/data.rs"},"region":{"startLine":1530}}}],"partialFingerprints":{"codehealthFindingId/v1":"2747c3bdd1077f8c9c683041d7ea32f63ba714ddf357dd5475d52130ffddbf43"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): crab/src/cmd/replica.rs:12107-12125 | crab/src/cmd/replica.rs:12144-12162 \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":"crab/src/cmd/replica.rs"},"region":{"startLine":12107}}}],"partialFingerprints":{"codehealthFindingId/v1":"817a817a95b9f3b24a1d9ed35ea4d6e7c049a627ff698176d58115801cf3021d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): crab/src/metadata/metadb/stores/chunk_index.rs:644-659 | crates/crab-metadata/src/remote_index.rs:400-415 \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":"crab/src/metadata/metadb/stores/chunk_index.rs"},"region":{"startLine":644}}}],"partialFingerprints":{"codehealthFindingId/v1":"185656933934475560de6b493cb83918bbe6102471c22e452128ca924c42b904"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): crates/crab-auth-server/src/receive.rs:1366-1382 | crates/crab-write/src/catalog.rs:108-128 \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/crab-auth-server/src/receive.rs"},"region":{"startLine":1366}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c004552501ec8d14f483e0f7be7c45430c0c01079fd714ca93293cba5ca6228"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): crates/crab-http-server/src/peer.rs:1418-1431 | crates/crab-metadata/src/git_visibility.rs:1470-1481 \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/crab-http-server/src/peer.rs"},"region":{"startLine":1418}}}],"partialFingerprints":{"codehealthFindingId/v1":"5691dc8c55a09b7c08e9af961faf64bd448a4a135aceb2250979d5c87c502fb2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 14\u002B corresponding lines): crates/crab-workflow/src/exp_worktree.rs:1732-1745 | crates/crab-workflow/src/exp_worktree.rs:1845-1859 | crates/crab-workflow/src/exp_worktree.rs:1959-1972 \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/crab-workflow/src/exp_worktree.rs"},"region":{"startLine":1732}}}],"partialFingerprints":{"codehealthFindingId/v1":"b62593394950bd5a666e258f0b44612f7a1b0a977c13a1a95ca193a950519224"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): crates/crab-workflow/src/hydra.rs:1357-1368 | crates/crab-workflow/src/hydra.rs:1370-1381 \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/crab-workflow/src/hydra.rs"},"region":{"startLine":1357}}}],"partialFingerprints":{"codehealthFindingId/v1":"14e01d1820d88de5c0ec9ddfb736b045c71e4cb85b0b8a6da60fc98aaa80f501"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): crates/crab-write/src/journal.rs:577-598 | crates/crab-write/src/journal.rs:611-624 \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/crab-write/src/journal.rs"},"region":{"startLine":577}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebcbd9de59a8b70778d269ada8968c4538a5c3bf56c6e6ccc3851b456760c9c7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): crab/src/cmd/hydrate.rs:1183-1197 | crab/src/cmd/hydrate.rs:1199-1213 \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":"crab/src/cmd/hydrate.rs"},"region":{"startLine":1183}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2d89c9f5f3874436ba6a6ebeff8871dcd4e8732b42b47b0f1ec5c165805a675"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): crates/crab-cache/src/cache_client.rs:236-250 | crates/crab-cache/src/cache_client.rs:255-267 \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/crab-cache/src/cache_client.rs"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ab41a09db18e6f10a1178d42f3e61c717445d78162d3d8703e5d1f4f4e5de8d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): crates/crab-http-server/src/cells/repository/codec.rs:26-38 | crates/crab-http-server/src/cells/repository/codec.rs:52-62 \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/crab-http-server/src/cells/repository/codec.rs"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"a05c7dd1de41665bb7d14c4629a08e773ed94b53f17b6c6526bdb82475fba8ba"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): crates/crab-http-server/src/cells/repository/pulls.rs:744-757 | crates/crab-http-server/src/cells/repository/releases.rs:939-952 \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/crab-http-server/src/cells/repository/pulls.rs"},"region":{"startLine":744}}}],"partialFingerprints":{"codehealthFindingId/v1":"00e5dfb505e31e48330191162652f229bba4e976fd05d879f3119f1730a3d274"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): crab/src/cmd/download.rs:487-504 | crab/src/cmd/export.rs:548-566 \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":"crab/src/cmd/download.rs"},"region":{"startLine":487}}}],"partialFingerprints":{"codehealthFindingId/v1":"df4964180eb71c5bede7fa2c5c627671aa155801a69e34b0b7f9571761aa7826"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): crab/src/core/output/mod.rs:91-100 | crab/src/core/output/mod.rs:111-121 \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":"crab/src/core/output/mod.rs"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"f77ee476053177f5bb4eeda53b0fecaaa2375757769c06d05f2ce5bf820d2ba0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): crates/crab-auth-server/src/receive.rs:795-806 | crates/crab-xet/src/shard.rs:548-560 \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/crab-auth-server/src/receive.rs"},"region":{"startLine":795}}}],"partialFingerprints":{"codehealthFindingId/v1":"f91e620b2010ccc6e5e07398405ce1d0fe3ba588fa7dece631123428a6eb4d1b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): crab/src/cmd/metrics.rs:3803-3818 | crab/src/cmd/params.rs:557-572 \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":"crab/src/cmd/metrics.rs"},"region":{"startLine":3803}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d974dc863b1cdbd5945865522a5c4bd980f12d07e1866c6ea0de31fda7ab5cf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): crab/src/lfs/track.rs:566-583 | crab/src/lfs/track.rs:623-642 \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":"crab/src/lfs/track.rs"},"region":{"startLine":566}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8919faeef386f173b7f007df07fa482f044ca1ad682c16143a7cb7cbe6f02a9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 21\u002B corresponding lines): crates/crab-auth/src/managed/client.rs:226-246 | crates/crab-auth/src/managed/client.rs:255-277 | crates/crab-auth/src/managed/client.rs:332-356 | crates/crab-auth/src/managed/client.rs:366-392 | crates/crab-auth/src/managed/client.rs:685-710 \u2014 These 5 members are one piece of code written 5 times and then edited apart: every two of them correspond over at least 21 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 5 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-auth/src/managed/client.rs"},"region":{"startLine":226}}}],"partialFingerprints":{"codehealthFindingId/v1":"89b98b80b6795a14418c072a147b3c0f0a71df80829412163a4f7d899daa0fc1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): crates/crab-cache/src/local_cache.rs:601-609 | crates/crab-cache/src/local_cache.rs:612-620 \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/crab-cache/src/local_cache.rs"},"region":{"startLine":601}}}],"partialFingerprints":{"codehealthFindingId/v1":"ceb1f6385877c5d2fea76ed03e88238216de6fcf77c1283e7c3d2a51f2b28d4e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): crates/crab-http-server/src/cells/repository.rs:962-978 | crates/crab-http-server/src/cells/repository/pulls.rs:1571-1583 \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/crab-http-server/src/cells/repository.rs"},"region":{"startLine":962}}}],"partialFingerprints":{"codehealthFindingId/v1":"633ff51d60b53244d791b191da3a8074362ab0b0e12ba68b0f7fd663fea8d8c2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): crab/src/cmd/mount.rs:987-1003 | crates/crab-vfs/src/nfs_mount.rs:119-135 \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":"crab/src/cmd/mount.rs"},"region":{"startLine":987}}}],"partialFingerprints":{"codehealthFindingId/v1":"8562f464d28fa7e4e46961e655a802fda1fa3ab0fbbb48f6b01f1858d021b82c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): crab/src/git/push.rs:18789-18806 | crab/src/optimize/xorbs/reconcile.rs:765-777 \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":"crab/src/git/push.rs"},"region":{"startLine":18789}}}],"partialFingerprints":{"codehealthFindingId/v1":"350d532e428e9a7e5e184007941ad5c8080f09fd50143e556c24ecd42bb1bbd2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 24\u002B corresponding lines): crates/crab-coordination/src/cosmosdb_coordinator.rs:625-648 | crates/crab-coordination/src/dynamodb_coordinator.rs:894-917 | crates/crab-coordination/src/spanner_coordinator.rs:927-950 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 24 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/crab-coordination/src/cosmosdb_coordinator.rs"},"region":{"startLine":625}}}],"partialFingerprints":{"codehealthFindingId/v1":"c13673ada3404ab1f09532de016de175b6568fa03c845b551ecae21b12719254"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 12\u002B corresponding lines): crates/crab-http-server/src/cells/repository.rs:1222-1234 | crates/crab-http-server/src/cells/repository.rs:1260-1272 | crates/crab-http-server/src/cells/repository/settings.rs:251-262 \u2014 These 3 members are one piece of code written 3 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 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-http-server/src/cells/repository.rs"},"region":{"startLine":1222}}}],"partialFingerprints":{"codehealthFindingId/v1":"63ebee9fba8002e7bc7a6cd453bf6acc56a5a7e66a1d18973235bdbf7e22423a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): crates/crab-metadata/src/git_object_locator/format.rs:272-280 | crates/crab-metadata/src/value_codec.rs:29-37 \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/crab-metadata/src/git_object_locator/format.rs"},"region":{"startLine":272}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5788988ff7430fefe3cfe022bc04b0fe3b1c92280fc21205accd372c7661996"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): crates/crab-staging/src/index.rs:1389-1415 | crates/crab-staging/src/index.rs:7685-7704 \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/crab-staging/src/index.rs"},"region":{"startLine":1389}}}],"partialFingerprints":{"codehealthFindingId/v1":"1960d8d085a160eca19a9f3d9d241ddbad1f1376311d27b523a986fbe5bd4f3d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): crab/src/cmd/add.rs:2815-2831 | crab/src/cmd/status_workflow.rs:555-567 \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":"crab/src/cmd/add.rs"},"region":{"startLine":2815}}}],"partialFingerprints":{"codehealthFindingId/v1":"11b415c7a218640279bfcb0612dce131d6b830b8884d36fc7d4a15dc1d7ffaa6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 13\u002B corresponding lines): crab/src/cmd/dehydrate.rs:1085-1101 | crab/src/cmd/history_recovery.rs:1081-1093 | crab/src/cmd/migrate.rs:2646-2660 | crab/src/cmd/recover.rs:2945-2957 | crates/crab-staging/src/push_plan.rs:1079-1091 \u2014 These 5 members are one piece of code written 5 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 5 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/cmd/dehydrate.rs"},"region":{"startLine":1085}}}],"partialFingerprints":{"codehealthFindingId/v1":"29cda45a3a0faa3c88b4c723a165d26228989ec957c818fbc81d570f84df8e70"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): crab/src/git/smudge.rs:377-405 | crates/crab-vfs/src/hydration.rs:781-799 \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":"crab/src/git/smudge.rs"},"region":{"startLine":377}}}],"partialFingerprints":{"codehealthFindingId/v1":"c19b22ce5376be3baf445967069b18c7376046e9e0d3114129d85ac6984ecec8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 21\u002B corresponding lines): crab/src/import/journal.rs:1017-1043 | crab/src/import/journal.rs:1051-1077 | crab/src/import/journal.rs:1081-1101 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 21 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/import/journal.rs"},"region":{"startLine":1017}}}],"partialFingerprints":{"codehealthFindingId/v1":"9831b2cdf727f022e605587e62ec4850c2414b83d05daaef4c00084175aed133"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 22\u002B corresponding lines): crates/crab-cache-server/src/chunk_index.rs:112-135 | crates/crab-metadata/src/persistent_chunk_index.rs:271-296 | crates/crab-metadata/src/persistent_chunk_index.rs:314-335 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 22 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-cache-server/src/chunk_index.rs"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"db9492a9e648f60b281db4dfa2fce70e0fe12d5b6079409a1f1f1b53997b652b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): crates/crab-http-server/src/cells/repository/checks.rs:754-763 | crates/crab-http-server/src/cells/repository/checks.rs:765-775 \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/crab-http-server/src/cells/repository/checks.rs"},"region":{"startLine":754}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd48aa5a45516f3350be82d7d7c4e94901b53c7c1dd8827b71224a9f5e726136"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): crab/src/cmd/mount.rs:352-376 | crab/src/cmd/mount.rs:383-403 \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":"crab/src/cmd/mount.rs"},"region":{"startLine":352}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae25118f2fa91c29906fb3662db30d9d8f989ad6692383760b488413fe3fb3c4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): crab/src/replication/mod.rs:4819-4828 | crab/src/replication/mod.rs:4931-4940 \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":"crab/src/replication/mod.rs"},"region":{"startLine":4819}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a25c0aae6d8ff6d88676a587b33511ed0f72219b8d51bf1313479cb07be1214"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): crates/crab-coordination/src/cosmosdb_coordinator.rs:957-970 | crates/crab-coordination/src/cosmosdb_coordinator.rs:972-984 \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/crab-coordination/src/cosmosdb_coordinator.rs"},"region":{"startLine":957}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0e0ae41f27d03eaffa3d437936445b4e921f1eeb373b2ae7ef0d6689e852420"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): crates/crab-http-server/src/api.rs:975-989 | crates/crab-http-server/src/projection.rs:954-965 \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/crab-http-server/src/api.rs"},"region":{"startLine":975}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f7f3ce76e2e199751833356469375f6cd65a74238064ca1199497e9c40497e8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): crates/crab-workflow/src/graph.rs:208-220 | crates/crab-workflow/src/graph.rs:227-239 \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/crab-workflow/src/graph.rs"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ae68e66ab9edb508f082dd1566aa567877653c53d25364010d3cebf0f36adbd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): crab/src/cmd/install.rs:222-238 | crab/src/import/assemble.rs:982-998 \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":"crab/src/cmd/install.rs"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac6a5599080bc9b19dfbb8306b837389dacfc14fbfd0172f675e85a2251497bb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): crates/crab-cache/src/private_fs.rs:52-59 | crates/crab-cache/src/private_fs.rs:61-71 \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/crab-cache/src/private_fs.rs"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee08e21db8a99e9dc68495929202dc39170e78603877634b88327a4fefacf028"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): crates/crab-coordination/src/write_coordinator.rs:1012-1032 | crates/crab-coordination/src/write_coordinator.rs:1497-1515 \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/crab-coordination/src/write_coordinator.rs"},"region":{"startLine":1012}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ad827cea3c67c41f5d429dcaabadaeeb122581dc97d08ebd5cf65bc672dc5d4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): crates/crab-git/src/ref_resolve.rs:50-64 | crates/crab-git/src/ref_resolve.rs:106-124 \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/crab-git/src/ref_resolve.rs"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"40ff4e0205c85e71f6e1003ceabab8a6bde58a9640033d59eb5a56eec3113a27"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): crates/crab-http-server/src/cells/repository/pulls.rs:685-701 | crates/crab-http-server/src/cells/repository/releases.rs:893-908 \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/crab-http-server/src/cells/repository/pulls.rs"},"region":{"startLine":685}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3de0b5d7262338ff3ee597dcd7575214af14c04a1e9c551e7c4c4ddb42c7d10"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): crates/crab-remote-git/src/objects.rs:336-356 | crates/crab-remote-git/src/reader.rs:2118-2139 \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/crab-remote-git/src/objects.rs"},"region":{"startLine":336}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6d05c4c1e01f8136625faefd851b091c5cbee425920f75be1eb732e2b3e496f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 14\u002B corresponding lines): crates/crab-remote-git/src/operation.rs:712-725 | crates/crab-remote-git/src/operation.rs:947-970 | crates/crab-remote-git/src/operation.rs:1038-1052 \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/crab-remote-git/src/operation.rs"},"region":{"startLine":712}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbbe46b924bb844555ddc1b89fb37111925a30687e9ace19ed072965710bf8d5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): crab/src/cmd/exp.rs:6557-6577 | crab/src/cmd/exp.rs:6579-6599 \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":"crab/src/cmd/exp.rs"},"region":{"startLine":6557}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f2f9215c41c7c3d135f0fdac8b683d34f10e9109ccb49d2de8d5e9ef944313b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 17\u002B corresponding lines): crab/src/cmd/mount.rs:5006-5022 | crab/src/cmd/mount.rs:5140-5156 | crab/src/cmd/mount.rs:5192-5208 | crab/src/cmd/mount.rs:5212-5228 \u2014 These 4 members are one piece of code written 4 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 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/cmd/mount.rs"},"region":{"startLine":5006}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b53b31daaec6d56c7cff106761bd0ce292ff9f25cf0ec1537f2ca61b64cf0e2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): crates/crab-http-server/src/cells/repository.rs:851-863 | crates/crab-http-server/src/cells/repository/projection.rs:1083-1095 \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/crab-http-server/src/cells/repository.rs"},"region":{"startLine":851}}}],"partialFingerprints":{"codehealthFindingId/v1":"6775d1f23d459828eb5c1de07bc1cdab3b236540755d7c062a4ffbd06ea2fc4f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): crates/crab-http-server/src/cells/repository/checks_codec.rs:239-249 | crates/crab-http-server/src/cells/repository/codec.rs:531-543 \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/crab-http-server/src/cells/repository/checks_codec.rs"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fbb4a333180fc7266ec917e67cc8616de9c496893ec40af9936d8ecb83cdd37"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 18\u002B corresponding lines): crates/crab-http-server/src/cells/repository/pull_review_threads.rs:882-901 | crates/crab-http-server/src/cells/repository/pull_review_threads.rs:907-926 | crates/crab-http-server/src/cells/repository/pulls.rs:1405-1422 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 18 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/crab-http-server/src/cells/repository/pull_review_threads.rs"},"region":{"startLine":882}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1cc75f990f26a12bffea73a98a6c7d9cf91aeba9f1ef659d81757451b174301"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): crates/crab-workflow/src/hydra.rs:1339-1355 | crates/crab-workflow/src/template/context.rs:334-354 \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/crab-workflow/src/hydra.rs"},"region":{"startLine":1339}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6966b3b9cb63c1ebf7aa8f4f2d284484c8780298428f65a162e9608e9ec14be"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): crab/scripts/check-architecture-gates.py:4895-4968 | crab/scripts/release/check-shipped-binary-versions.py:86-109 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/scripts/check-architecture-gates.py"},"region":{"startLine":4895}}}],"partialFingerprints":{"codehealthFindingId/v1":"b14c3a9ed0f6f6ea482d34612f4a624914361d2740a145ecf3e54c3013218cca"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): crab/scripts/qualify_sdk.py:67-83 | crab/scripts/qualify_sdk.py:87-106 \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":"crab/scripts/qualify_sdk.py"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c9366069f520de1027e2a47a3bf6b476d5ce6d9beb8acb0e03136cb7a86952e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): crab/src/cmd/exp.rs:5509-5523 | crab/src/cmd/exp.rs:5525-5539 \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":"crab/src/cmd/exp.rs"},"region":{"startLine":5509}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf7d8101a249cda22e56689c463741dcc4f778a1240a9178d4fc7b313cb64ae4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 13\u002B corresponding lines): crab/src/cmd/lfs/fsck.rs:309-324 | crab/src/cmd/lfs/locks.rs:221-233 | crab/src/cmd/lfs/ls_files.rs:277-295 \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":"crab/src/cmd/lfs/fsck.rs"},"region":{"startLine":309}}}],"partialFingerprints":{"codehealthFindingId/v1":"c785b6565fb1d6e290a017469a0c4c5bdd8ce4bd50b6a5243f136816ae03f105"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): crab/src/cmd/metadb.rs:1977-1990 | crab/src/cmd/metadb.rs:1995-2018 \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":"crab/src/cmd/metadb.rs"},"region":{"startLine":1977}}}],"partialFingerprints":{"codehealthFindingId/v1":"0cd19f30396972e7ec43db93dfe701b16392caa1fa70ed97d08d23d0cee1b928"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): crab/src/cmd/push.rs:1131-1144 | crab/src/cmd/push.rs:1150-1167 \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":"crab/src/cmd/push.rs"},"region":{"startLine":1131}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d494a715bc8d775442dfda94d1bc6cf7ee0c05447a08bdc5bd4e50ac21e479f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): crab/src/cmd/replica.rs:12842-12861 | crab/src/cmd/replica.rs:12863-12888 \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":"crab/src/cmd/replica.rs"},"region":{"startLine":12842}}}],"partialFingerprints":{"codehealthFindingId/v1":"872da12a47da5a8d68b191782b99c89beacef51781c3d1c02e35d1f10cc0563e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): crab/src/git/pack.rs:584-604 | crab/src/git/pack.rs:1446-1463 \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":"crab/src/git/pack.rs"},"region":{"startLine":584}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8a516f09c788806614c8915d6975e427b6e8b7536c4b3bdf5597fbd655e4e3f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): crates/crab-http-server/src/cells/repository/checks.rs:718-731 | crates/crab-http-server/src/statuses.rs:119-130 \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/crab-http-server/src/cells/repository/checks.rs"},"region":{"startLine":718}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2f6d7cdd3d9ff0b162fb0e7c3b2a306a4cb9b50682ec4d30b7b2eb34f6717f0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): crates/crab-lfs/src/object_store.rs:283-292 | crates/crab-lfs/src/object_store.rs:1075-1089 \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/crab-lfs/src/object_store.rs"},"region":{"startLine":283}}}],"partialFingerprints":{"codehealthFindingId/v1":"22ec1ac13428008ded8dd36d7267d9aaf00eb0f9c71928742f845f5217d3470d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): crates/crab-remote-git/src/pack.rs:1509-1523 | crates/crab-remote-git/src/pack.rs:1530-1541 \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/crab-remote-git/src/pack.rs"},"region":{"startLine":1509}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f6d0764cc978d3bfdc43794c3375b314d5ec503be3f5f9ec65504b763ff3146"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): crates/crab-workflow/src/hydra.rs:1151-1167 | crates/crab-workflow/src/hydra.rs:1173-1185 \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/crab-workflow/src/hydra.rs"},"region":{"startLine":1151}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b07576466a28c15645edfe60f12155bb7309b27941e932e887a45f53320a364"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): crab/src/cmd/release.rs:390-405 | crab/src/cmd/release.rs:529-539 \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":"crab/src/cmd/release.rs"},"region":{"startLine":390}}}],"partialFingerprints":{"codehealthFindingId/v1":"5531f6f30dc3fb6d401572be1538330761b34e347026ef0a370f559d90823dfb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): crab/src/cmd/run.rs:3970-3984 | crates/crab-workflow/src/scheduler.rs:289-303 \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":"crab/src/cmd/run.rs"},"region":{"startLine":3970}}}],"partialFingerprints":{"codehealthFindingId/v1":"623d396e223bcf9afd7eadbc9a11283bc3b6126344935f5e8c3d1b8f5375f251"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): crates/crab-http-server/src/assignees.rs:86-94 | crates/crab-http-server/src/labels.rs:171-179 \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/crab-http-server/src/assignees.rs"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf1a8d0b0c84103ff90327f2eb68964a351add364bfc2768f1b6df0cf6de4ac4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): crates/crab-http-server/src/pulls/review_thread_storage.rs:108-117 | crates/crab-http-server/src/pulls/review_thread_storage.rs:249-258 \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/crab-http-server/src/pulls/review_thread_storage.rs"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"31f4bcff6bef63fabd294bd0d28ac83c96a7c79dd644c9494400c6aada1bb950"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): crates/crab-metadata/src/git_object_locator/reader.rs:884-890 | crates/crab-metadata/src/git_object_locator/writer.rs:1752-1758 \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/crab-metadata/src/git_object_locator/reader.rs"},"region":{"startLine":884}}}],"partialFingerprints":{"codehealthFindingId/v1":"181e434e4d322633907f5bd5240da5e667c181e35959d42b49f55d3ce7c42fbf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): crates/crab-metadata/src/manifest_store.rs:738-746 | crates/crab-metadata/src/segmented_store.rs:275-283 \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/crab-metadata/src/manifest_store.rs"},"region":{"startLine":738}}}],"partialFingerprints":{"codehealthFindingId/v1":"59108345e27ab9bd5a5c83cba534e445d57a1a19ef4f25374d1381497c923d7d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 14\u002B corresponding lines): crates/crab-vfs/src/ipc_server.rs:811-828 | crates/crab-vfs/src/ipc_server.rs:838-855 | crates/crab-vfs/src/ipc_server.rs:876-889 \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/crab-vfs/src/ipc_server.rs"},"region":{"startLine":811}}}],"partialFingerprints":{"codehealthFindingId/v1":"be3c7cdcbf80169e6a02a249c10e1474c4783cf3fe35d202720720bf25cba711"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): crates/crab-workflow/src/exp_worktree.rs:1249-1265 | crates/crab-workflow/src/params.rs:265-278 \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/crab-workflow/src/exp_worktree.rs"},"region":{"startLine":1249}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2f2fa929737021f87828ca11e1dd40b3571c2c8928a76ed5ee68a55f36ec7a5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): crates/crab-xet/src/shard_bloom.rs:91-99 | crates/crab-xet/src/shard_bloom.rs:103-117 \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/crab-xet/src/shard_bloom.rs"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b4a326d2377d58490a64e26f43ef02ee3ad06965d78112fa2abc2462ff4ba71"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 12\u002B corresponding lines): crab/scripts/verify-nfs-smoke-report.py:600-611 | crab/scripts/verify-nfs-smoke-report.py:644-659 | crab/scripts/verify-nfs-smoke-report.py:668-679 \u2014 These 3 members are one piece of code written 3 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 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/scripts/verify-nfs-smoke-report.py"},"region":{"startLine":600}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc605a006c06a1138190798801221222a285cd6e356531cba2818f8566f8be77"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): crab/src/cmd/data.rs:934-945 | crates/crab-workflow/src/executor.rs:1456-1467 \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":"crab/src/cmd/data.rs"},"region":{"startLine":934}}}],"partialFingerprints":{"codehealthFindingId/v1":"17058adefc24ae0b285ab64c80135e46d42e58da1a4297932f54cdc290377d1c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): crab/src/cmd/push.rs:1214-1231 | crab/src/cmd/ship.rs:313-328 \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":"crab/src/cmd/push.rs"},"region":{"startLine":1214}}}],"partialFingerprints":{"codehealthFindingId/v1":"a45d11112f1da033fe5fcdbe8734a8a8890e1d7cea9b21643e1a60a491e25001"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): crates/crab-http-server/src/git_import.rs:859-872 | crates/crab-remote/src/local.rs:769-783 \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/crab-http-server/src/git_import.rs"},"region":{"startLine":859}}}],"partialFingerprints":{"codehealthFindingId/v1":"80c7b25ff696f9bd7e4ef9f7f053e1131887031fa22ad3c20aec9705d83f400f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): crates/crab-http-server/src/pulls/storage.rs:727-739 | crates/crab-http-server/src/pulls/storage.rs:744-756 \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/crab-http-server/src/pulls/storage.rs"},"region":{"startLine":727}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c8e0b0dbe9b3242c6fff56bf7b94870f4b585fbfc31e2af9a8fca0f9d27b744"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): crates/crab-vfs/src/mounts_registry.rs:258-273 | crates/crab-vfs/src/mounts_registry.rs:278-293 \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/crab-vfs/src/mounts_registry.rs"},"region":{"startLine":258}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d52abadb40d7b1d3e82e68ea21ae3716d68aa7b4de561912da3f99dd2428e73"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): crab/src/cmd/fsck_store.rs:307-323 | crab/src/cmd/fsck_store.rs:326-337 \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":"crab/src/cmd/fsck_store.rs"},"region":{"startLine":307}}}],"partialFingerprints":{"codehealthFindingId/v1":"0212a875bb788db1f6c652f93b33ca078c10465b69872c9b20198e4ab37da005"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): crates/crab-auth-store/src/gateway_store.rs:246-256 | crates/crab-auth-store/src/refreshing_store.rs:290-301 \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/crab-auth-store/src/gateway_store.rs"},"region":{"startLine":246}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee50453ef882985ff2953599392efa919e2ad4c85903326d8d7152f7ab131f09"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): crates/crab-cache-store/src/lib.rs:582-596 | crates/crab-cache-store/src/lib.rs:602-619 \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/crab-cache-store/src/lib.rs"},"region":{"startLine":582}}}],"partialFingerprints":{"codehealthFindingId/v1":"d06627eef0fc5f0f642a3c716d74b80c37fa3a5ecf6c1bb657d440c1c058d675"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): crates/crab-http-server/src/cells/repository/checks.rs:742-752 | crates/crab-http-server/src/cells/repository/pulls.rs:1501-1510 \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/crab-http-server/src/cells/repository/checks.rs"},"region":{"startLine":742}}}],"partialFingerprints":{"codehealthFindingId/v1":"e83530cdf1981f77e955e43a11804be70e8bcc279323220bbfd430d1945e53d6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 18\u002B corresponding lines): crates/crab-http-server/src/pulls/storage.rs:317-339 | crates/crab-http-server/src/pulls/storage.rs:427-444 | crates/crab-http-server/src/releases/storage.rs:89-110 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 18 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/crab-http-server/src/pulls/storage.rs"},"region":{"startLine":317}}}],"partialFingerprints":{"codehealthFindingId/v1":"d69cac0a549dcf020182d631aadfa8f49cef99beca7a29d94b8b52df2ea5098e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): crates/crab-read/src/upload_pack.rs:436-448 | crates/crab-read/src/upload_pack.rs:455-470 \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/crab-read/src/upload_pack.rs"},"region":{"startLine":436}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bf27a1792acb22b6890b6a808157b9bcb99c6f26a0ed6ddf5f6903a18c27116"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): crates/crab-sdk/src/managed.rs:280-294 | crates/crab-sdk/src/managed.rs:412-428 \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/crab-sdk/src/managed.rs"},"region":{"startLine":280}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c642ed0d75dfb3fbc009eba3923311fd983053d117f6005f650d42437ea4065"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): crates/crab-vfs/src/coordinator.rs:987-1006 | crates/crab-vfs/src/mounts_registry.rs:207-224 \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/crab-vfs/src/coordinator.rs"},"region":{"startLine":987}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ee1568070930154dca9b89a3fb45821ac439e58e778c5b4f3472179f22ca992"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): crates/crab-vfs/src/overlay.rs:1377-1388 | crates/crab-vfs/src/overlay.rs:1415-1426 \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/crab-vfs/src/overlay.rs"},"region":{"startLine":1377}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5213c0dac685c2cedce705c75ff496bccc807805c8293bbef47bd65d1bcffa7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): crates/crab-workflow/src/lockfile.rs:601-619 | crates/crab-workflow/src/lockfile.rs:646-656 \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/crab-workflow/src/lockfile.rs"},"region":{"startLine":601}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc5e29d7f3d7ff210c16539979d87f5a9c0347db9a40e2f148822ec153b23409"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 11\u002B corresponding lines): crab/src/cmd/metadb.rs:2266-2277 | crates/crab-remote-git/src/operation.rs:1202-1212 | crates/crab-write/src/lib.rs:73-83 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 11 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/cmd/metadb.rs"},"region":{"startLine":2266}}}],"partialFingerprints":{"codehealthFindingId/v1":"9af3f70305fb97c192e71a56571a42b1ce980bd4a4aab36a14efc71d20bb1aaa"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): crates/crab-http-server/src/cells/repository/checks.rs:410-422 | crates/crab-http-server/src/cells/repository/checks.rs:437-455 \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/crab-http-server/src/cells/repository/checks.rs"},"region":{"startLine":410}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ce1732e5efa6078a52f6c19fa4e95ab2a4d393cf016d3c327a19becef9f8f3c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): crates/crab-s3-gateway/src/multipart.rs:346-357 | crates/crab-s3-gateway/src/multipart.rs:359-370 \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/crab-s3-gateway/src/multipart.rs"},"region":{"startLine":346}}}],"partialFingerprints":{"codehealthFindingId/v1":"382f566e014ec7b20d3716c776607b833e790b9472c800270cc039303f1d2115"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): crates/crab-sdk/src/local.rs:460-475 | crates/crab-sdk/src/local/push/git.rs:43-58 \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/crab-sdk/src/local.rs"},"region":{"startLine":460}}}],"partialFingerprints":{"codehealthFindingId/v1":"c61a78c0325c036c57152437c3a01b11b0862a4e867a2c2e98733d7308d8c778"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 12\u002B corresponding lines): crates/crab-workflow/src/exp_worktree.rs:1614-1625 | crates/crab-workflow/src/exp_worktree.rs:1747-1758 | crates/crab-workflow/src/exp_worktree.rs:1861-1872 \u2014 These 3 members are one piece of code written 3 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 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-workflow/src/exp_worktree.rs"},"region":{"startLine":1614}}}],"partialFingerprints":{"codehealthFindingId/v1":"81f2b3f34c54e897b305da068c21bfa8d01eba102031d7ceadb87c266107e369"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 10\u002B corresponding lines): crab/src/cmd/migrate.rs:1592-1602 | crates/crab-cache-server/src/cache_store.rs:1949-1958 | crates/crab-metadata/src/split_commit_graph.rs:1041-1051 | crates/crab-workflow/src/stage_runtime.rs:405-415 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 10 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/cmd/migrate.rs"},"region":{"startLine":1592}}}],"partialFingerprints":{"codehealthFindingId/v1":"de44c1f8bc4975326b545774b35a6ec5d0dac5e22fec1cad0cdae0d86ff1c881"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): crab/src/git/progress.rs:37-52 | crab/src/git/progress.rs:55-69 \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":"crab/src/git/progress.rs"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"0524bae7f6cf5a55603747829e9561dc1816b46785284eaefd6aee3ea0067072"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 15\u002B corresponding lines): crates/crab-auth-server/src/view.rs:727-744 | crates/crab-auth/src/credential_response.rs:225-239 | crates/crab-auth/src/managed/transfer.rs:382-396 \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/crab-auth-server/src/view.rs"},"region":{"startLine":727}}}],"partialFingerprints":{"codehealthFindingId/v1":"b438c06123d7909100267ee03729504d49455a570c30543016d0bd3dd561cb81"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): crates/crab-http-server/src/branches.rs:438-450 | crates/crab-http-server/src/releases.rs:180-193 \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/crab-http-server/src/branches.rs"},"region":{"startLine":438}}}],"partialFingerprints":{"codehealthFindingId/v1":"27061c8b54f51d02dad08fbfe3c427ce75b5cd045be91edde2348530a03ea6f7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): crates/crab-http-server/src/lfs.rs:100-108 | crates/crab-http-server/src/receive.rs:110-118 \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/crab-http-server/src/lfs.rs"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a79702e392f5a44452ec45b28c42dca665b58e03281e5be79ef47f496d60a58"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 15\u002B corresponding lines): crates/crab-remote-git/src/operation.rs:323-341 | crates/crab-remote-git/src/operation.rs:524-542 | crates/crab-remote-git/src/operation.rs:551-565 \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/crab-remote-git/src/operation.rs"},"region":{"startLine":323}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec8bce68f85311c8889c0d201d79440e25bfbded92e07e3cc29499630a2468c2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): crates/crab-sdk/src/local/edit.rs:966-981 | crates/crab-sdk/src/local/edit.rs:1254-1273 \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/crab-sdk/src/local/edit.rs"},"region":{"startLine":966}}}],"partialFingerprints":{"codehealthFindingId/v1":"5134562071b5645b86c71b4d0f9385f7cd44aa2afff0a16a62ae5f61d40840c3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 22\u002B corresponding lines): crates/crab-staging/src/index.rs:1429-1460 | crates/crab-staging/src/index.rs:1468-1489 | crates/crab-staging/src/index.rs:1495-1521 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 22 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-staging/src/index.rs"},"region":{"startLine":1429}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7a365328fb39e68d66dc76a568090ce8c2ecf8b834374f77197025a524e633f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): crab/deploy/auth-service/src/providers/azure.py:49-66 | crab/deploy/auth-service/src/providers/gcp.py:51-68 \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":"crab/deploy/auth-service/src/providers/azure.py"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"925ac60e5d9e0fa0980da7bd9457b2f702baa6500dd910fc174016a045bfd005"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): crab/src/cmd/mount.rs:2535-2548 | crab/src/cmd/mount.rs:2559-2574 \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":"crab/src/cmd/mount.rs"},"region":{"startLine":2535}}}],"partialFingerprints":{"codehealthFindingId/v1":"46e279a62f7d12db8f724aea08877d8057666814ce92b0a7d5f87c44602fd655"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (8 members, 10\u002B corresponding lines): crab/src/cmd/push.rs:1094-1105 | crab/src/git/push.rs:3294-3304 | crab/src/git/push.rs:3306-3316 | crab/src/storage/retry.rs:407-417 | crates/crab-remote/src/publication.rs:257-268 | crates/crab-storage/src/cas.rs:151-161 | crates/crab-storage/src/retry.rs:171-180 | crates/crab-write/src/journal.rs:373-384 \u2014 These 8 members are one piece of code written 8 times and then edited apart: every two of them correspond over at least 10 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 8 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/cmd/push.rs"},"region":{"startLine":1094}}}],"partialFingerprints":{"codehealthFindingId/v1":"b41286440058ef2e79133c4022acf5b7ba949789378c257765d52555ac1a28c3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): crab/src/metadata/metadb/stores/chunk_index.rs:661-674 | crab/src/metadata/metadb/stores/chunk_index.rs:676-690 \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":"crab/src/metadata/metadb/stores/chunk_index.rs"},"region":{"startLine":661}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff35c9d56a75ec22de9c5705748921ae6bf0e937d9174a819f71236bc8428b66"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): crates/crab-diff/src/chunk_sequence.rs:120-133 | crates/crab-diff/src/chunk_sequence.rs:135-148 \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/crab-diff/src/chunk_sequence.rs"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"473b866d701459907dc3a570230a20d22ced3f68414e8f2009126a0fc121d3bf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): crates/crab-http-server/src/checks.rs:707-717 | crates/crab-http-server/src/checks.rs:725-735 \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/crab-http-server/src/checks.rs"},"region":{"startLine":707}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0513214c764ebd8fbae6f21bea6b23260feefc85ae12046c2f7e2dfa5804875"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): crates/crab-metadata/src/split_commit_graph.rs:987-999 | crates/crab-metadata/src/split_commit_graph.rs:1013-1025 \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/crab-metadata/src/split_commit_graph.rs"},"region":{"startLine":987}}}],"partialFingerprints":{"codehealthFindingId/v1":"71be7098113061efa43e7bc474a31ad940481945bbca813d34ce730c421aae3d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): crates/crab-remote-git/src/budget.rs:268-280 | crates/crab-remote-git/src/budget.rs:285-297 \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/crab-remote-git/src/budget.rs"},"region":{"startLine":268}}}],"partialFingerprints":{"codehealthFindingId/v1":"76eb80692efc21c5793b87cc33c3894f2c57cef912aedbd62c529c016eba7021"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): crates/crab-remote-git/src/runtime.rs:746-760 | crates/crab-remote-git/src/runtime.rs:982-997 \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/crab-remote-git/src/runtime.rs"},"region":{"startLine":746}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4c28ea06872fa5252ddec2e343f2312c3cf87f2f2f3893af6871d8f370cce81"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): crab/src/cmd/history_recovery.rs:1318-1339 | crab/src/cmd/history_recovery.rs:1341-1365 \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":"crab/src/cmd/history_recovery.rs"},"region":{"startLine":1318}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f67e3a4f4cf8f058e93e3784eaa073debea0c7de0563ac76a41bc83d2bc1a0a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 16\u002B corresponding lines): crab/src/cmd/lfs/checkout.rs:437-453 | crab/src/lfs/status.rs:268-283 | crab/src/lfs/status.rs:449-464 \u2014 These 3 members are one piece of code written 3 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 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/cmd/lfs/checkout.rs"},"region":{"startLine":437}}}],"partialFingerprints":{"codehealthFindingId/v1":"0290a46e093a61f6090b450b353804d2e2d0d87461f5ae56367b0da2e21cfd62"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): crab/src/cmd/run.rs:3949-3960 | crab/src/cmd/status_workflow.rs:569-580 \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":"crab/src/cmd/run.rs"},"region":{"startLine":3949}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e81af3b0f710c488dda524d354769488081b3ebd038ff2c9b504c89b405c865"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): crab/src/core/config_resolver.rs:169-178 | crab/src/core/config_resolver.rs:182-191 \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":"crab/src/core/config_resolver.rs"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"0be8bf0504685d7700dc4e445cacd150d96de4c708309b972e1c8e47f8b0eac4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): crab/src/core/config_resolver.rs:239-256 | crates/crab-git/src/discover.rs:23-37 \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":"crab/src/core/config_resolver.rs"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"f949e8e4684281b545d0df53618dceda33c7c8150b74885cc760d9b72518fe66"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): crab/src/diff/format_hint.rs:109-123 | crab/src/diff/format_hint.rs:238-252 \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":"crab/src/diff/format_hint.rs"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"d42e5bb3451cd977e1dcd8a701aa7c31f493e40faaccc7709bdc7b4d4aa9fc56"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 11\u002B corresponding lines): crab/src/lfs/migrate.rs:342-355 | crab/src/lfs/migrate.rs:357-372 | crab/src/lfs/migrate.rs:1703-1713 | crab/src/lfs/migrate.rs:1812-1826 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 11 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/lfs/migrate.rs"},"region":{"startLine":342}}}],"partialFingerprints":{"codehealthFindingId/v1":"20ba2d772bedefd67a74e37c689fb678f7f1c04ae466f71075fa2fe5783382ba"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): crab/src/tier/apply.rs:449-463 | crab/src/tier/apply.rs:465-477 \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":"crab/src/tier/apply.rs"},"region":{"startLine":449}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9f89563bfc996e2979b329a65c5e4a31292c8ce37ddd57e0ddf1c6a292c535d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): crates/crab-sdk/src/mutation.rs:345-357 | crates/crab-sdk/src/mutation.rs:446-457 \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/crab-sdk/src/mutation.rs"},"region":{"startLine":345}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcbc81a9c9b725f535095cb74ccb9fe80d68aa83d3d53da4f2e371314c6a4a26"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): crates/crab-workflow/src/artifact.rs:1152-1166 | crates/crab-workflow/src/artifact.rs:1724-1735 \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/crab-workflow/src/artifact.rs"},"region":{"startLine":1152}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c3007d9cecf2c02aff8e22ca09b2bd6181b079a00e2fad1562670fb3ee60b8f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): crab/src/cmd/add.rs:1729-1750 | crab/src/cmd/add.rs:1763-1785 \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":"crab/src/cmd/add.rs"},"region":{"startLine":1729}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3fc908c03f6ed7c9f867b6a00cf97ec67eb75a93bfd9f03618fd21a87a9d78c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): crab/src/cmd/dehydrate.rs:1152-1160 | crab/src/cmd/hydrate.rs:1406-1414 \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":"crab/src/cmd/dehydrate.rs"},"region":{"startLine":1152}}}],"partialFingerprints":{"codehealthFindingId/v1":"46db003567637289c7b6e6729d3b47eb0d8cda22e1574198e8599a9f1c8d4233"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): crab/src/cmd/lfs/install.rs:251-263 | crab/src/cmd/lfs/install.rs:333-348 \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":"crab/src/cmd/lfs/install.rs"},"region":{"startLine":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"8341134959fdb4cbfc46f38c528218940589fe71ecb0bc8c585b70e3a21cd569"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): crates/crab-cache/src/catalog.rs:310-319 | crates/crab-cache/src/private_fs.rs:208-221 \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/crab-cache/src/catalog.rs"},"region":{"startLine":310}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc2f33cfbf35398f4339107967e59500591f223ebf88abd30d944a34e25bfdd2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): crab/src/cmd/gc/marks.rs:343-358 | crab/src/cmd/gc/marks.rs:428-441 \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":"crab/src/cmd/gc/marks.rs"},"region":{"startLine":343}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe603f9b973295139ddb18303681dfb9451601f3f5fa3c952ce0b6eba39f1567"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): crab/src/cmd/lfs/convert.rs:438-452 | crab/src/cmd/reset.rs:361-373 \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":"crab/src/cmd/lfs/convert.rs"},"region":{"startLine":438}}}],"partialFingerprints":{"codehealthFindingId/v1":"c717700463260c9732611163933cd0a5f20e32377266b123f2c7e6e163a1a926"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): crab/src/import/ingest.rs:719-738 | crab/src/import/ingest.rs:863-875 \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":"crab/src/import/ingest.rs"},"region":{"startLine":719}}}],"partialFingerprints":{"codehealthFindingId/v1":"5de9d8610237b09bb95dff01035e32e646182e3c8479e3602de3ea471c77ec2b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): crates/crab-coordination/src/push_admission.rs:512-517 | crates/crab-coordination/src/read_admission.rs:178-183 \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/crab-coordination/src/push_admission.rs"},"region":{"startLine":512}}}],"partialFingerprints":{"codehealthFindingId/v1":"eabf97670a3944ed3556631c9c311508ad40ec023504a6de106f3aa1507f1450"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): crates/crab-metadata/src/path_state/codec.rs:150-162 | crates/crab-metadata/src/path_state/codec.rs:172-187 \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/crab-metadata/src/path_state/codec.rs"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e1a1121725e6a3e59eb3611a2134473978267ba5e9693de692c18192cd67957"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): crates/crab-workflow/src/stage_dep.rs:43-70 | crates/crab-workflow/src/stage_out.rs:143-168 \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/crab-workflow/src/stage_dep.rs"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a88998d229fb410f288ee04de6279c7b2d430fa33f885369ff3dbee11bad533"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): crab/src/cmd/exp_queue.rs:1164-1171 | crab/src/cmd/exp_queue.rs:1299-1308 \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":"crab/src/cmd/exp_queue.rs"},"region":{"startLine":1164}}}],"partialFingerprints":{"codehealthFindingId/v1":"f79ff2cc43f74adf1abfefdea30233f9a23ff311eadc717c9d16022a5561e5dd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 7\u002B corresponding lines): crab/src/git/push.rs:18777-18783 | crates/crab-auth-server/src/receive/git_workspace.rs:917-923 | crates/crab-workflow/src/executor.rs:1517-1523 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 7 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/git/push.rs"},"region":{"startLine":18777}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfbc14e8d0d3488f4df2fc74a6d316fcc78c7dfc52fda702b5735a0b6ccb2251"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 11\u002B corresponding lines): crates/crab-auth-server/src/receive/git_workspace.rs:1089-1103 | crates/crab-auth-server/src/receive/git_workspace.rs:1108-1120 | crates/crab-auth-server/src/receive/git_workspace.rs:1127-1137 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 11 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-auth-server/src/receive/git_workspace.rs"},"region":{"startLine":1089}}}],"partialFingerprints":{"codehealthFindingId/v1":"f79ce5208a926c9cbda32083ec57af188a73bf39f3a713456fc480261ad1c5d9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): crates/crab-cache-server/src/handlers.rs:1254-1275 | crates/crab-cache-server/src/handlers.rs:1280-1297 \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/crab-cache-server/src/handlers.rs"},"region":{"startLine":1254}}}],"partialFingerprints":{"codehealthFindingId/v1":"2577d39615243ae6f68f0f9dec2d8fbda5f1bd9a8b7b112160c79d2041b2df28"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): crates/crab-http-server/src/cells/repository/codec.rs:14-24 | crates/crab-http-server/src/cells/repository/codec.rs:42-50 \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/crab-http-server/src/cells/repository/codec.rs"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a92e24962cc9235ea771a953127845868533143f0514997b89aeafcdf6348d5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): crates/crab-metadata/src/shallow_closure.rs:602-613 | crates/crab-metadata/src/shallow_closure.rs:615-626 \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/crab-metadata/src/shallow_closure.rs"},"region":{"startLine":602}}}],"partialFingerprints":{"codehealthFindingId/v1":"22be8dda28247f3c2bccb51c2885b7269622e9025a1bd3b48c6b813be3075316"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): crates/crab-vfs/src/refresh.rs:296-313 | crates/crab-vfs/src/refresh.rs:954-969 \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/crab-vfs/src/refresh.rs"},"region":{"startLine":296}}}],"partialFingerprints":{"codehealthFindingId/v1":"6030e694e008c2a45bedd1f5049c7a0572dd48c4723ca8f4ce3c5ff93d9dce40"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): crates/crab-workflow/src/cache.rs:602-616 | crates/crab-workflow/src/cache.rs:622-634 \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/crab-workflow/src/cache.rs"},"region":{"startLine":602}}}],"partialFingerprints":{"codehealthFindingId/v1":"cef93bc533a4dae8325deb98f2216f40db4926612f23c768fe98a916c34bd644"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): crab/src/cmd/exp.rs:5026-5042 | crab/src/cmd/exp.rs:5044-5056 \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":"crab/src/cmd/exp.rs"},"region":{"startLine":5026}}}],"partialFingerprints":{"codehealthFindingId/v1":"606ab699d365bd0cac82061ac28a01d5c8a2d28d072751451429640259a9ce62"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): crab/src/cmd/exp_queue.rs:1515-1529 | crab/src/cmd/exp_queue.rs:1531-1555 \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":"crab/src/cmd/exp_queue.rs"},"region":{"startLine":1515}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb030c29b3bc83ce08449639ed3e4e154d4d9dede4c74b3f1e62f9506b62ea25"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): crab/src/cmd/lfs/fsck.rs:425-440 | crab/src/lfs/migrate.rs:2816-2831 \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":"crab/src/cmd/lfs/fsck.rs"},"region":{"startLine":425}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef78a12e20f024fb46cab06e3c1e12837ace6d7ed96b7f60b509e435aafa5144"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): crab/src/cmd/replica.rs:5992-6004 | crab/src/cmd/replica.rs:6286-6298 \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":"crab/src/cmd/replica.rs"},"region":{"startLine":5992}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f20363aaf96ffb1cb71a56403bd192d6e466603bee1408538369d59153eac93"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 19\u002B corresponding lines): crab/src/lfs/track.rs:506-524 | crab/src/lfs/track.rs:526-544 | crab/src/lfs/track.rs:546-564 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 19 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":"crab/src/lfs/track.rs"},"region":{"startLine":506}}}],"partialFingerprints":{"codehealthFindingId/v1":"e632d0759d99d4660a2ff6de2de2f4deecac719f516379c46e5c7cfae726f87a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): crab/src/metadata/metadb/stores/chunk_index.rs:326-335 | crab/src/metadata/metadb/stores/chunk_index.rs:426-435 \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":"crab/src/metadata/metadb/stores/chunk_index.rs"},"region":{"startLine":326}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fdd9f8331d170c305ce5818e8d7a21884631d05134ce365a5f7fb867f7e0a81"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): crab/src/tier/provider/s3.rs:151-157 | crab/src/tier/provider/s3.rs:163-169 \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":"crab/src/tier/provider/s3.rs"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed3056e4123e21c2a70ab26f6ea2f5a0d9dee9be1871ff567920ea47826342e5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): crates/crab-xet/src/shard_parse.rs:541-554 | crates/crab-xet/src/shard_parse.rs:577-595 \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/crab-xet/src/shard_parse.rs"},"region":{"startLine":541}}}],"partialFingerprints":{"codehealthFindingId/v1":"967a5581f26fc20be814817c11aef407f1f4d6090ec1f6f107ee6545c34b2f2a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (7 members, 13\u002B corresponding lines): crab/src/cmd/replica.rs:4388-4400 | crab/src/cmd/replica.rs:4402-4414 | crab/src/cmd/replica.rs:4416-4428 | crab/src/cmd/replica.rs:4430-4445 | crab/src/cmd/replica.rs:4447-4462 | crab/src/cmd/replica.rs:4464-4479 | crab/src/cmd/replica.rs:4481-4493 \u2014 These 7 members are one piece of code written 7 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 7 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/cmd/replica.rs"},"region":{"startLine":4388}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7350ef55ecb22ce16a178d4660c3deb9c1c6174441a512bac61ab86c0ec90c5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 10\u002B corresponding lines): crab/src/cmd/replica.rs:5002-5016 | crab/src/cmd/replica.rs:6154-6163 | crab/src/cmd/replica.rs:6221-6230 | crab/src/cmd/replica.rs:6269-6278 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 10 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/cmd/replica.rs"},"region":{"startLine":5002}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c2a00988e97d6f74765914010575c0d5fcfcad1872d355ead68786df1bf3524"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 10\u002B corresponding lines): crab/src/replication/mod.rs:6556-6565 | crab/src/replication/mod.rs:6581-6590 | crab/src/replication/mod.rs:8494-8503 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 10 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/replication/mod.rs"},"region":{"startLine":6556}}}],"partialFingerprints":{"codehealthFindingId/v1":"833f955ad986c08002eb8b3912716b623432751075ac60330edd09f43828e82a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): crates/crab-auth-server/src/receive/git_workspace.rs:663-687 | crates/crab-auth-server/src/receive/git_workspace.rs:689-703 \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/crab-auth-server/src/receive/git_workspace.rs"},"region":{"startLine":663}}}],"partialFingerprints":{"codehealthFindingId/v1":"aaae61f0950fadedc24c9b8ca8644cf665038106efe5e541249d4b67c2c15608"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 14\u002B corresponding lines): crates/crab-auth/src/aws_oidc.rs:43-56 | crates/crab-auth/src/azure_entra.rs:74-87 | crates/crab-auth/src/gcp_federation.rs:74-88 \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/crab-auth/src/aws_oidc.rs"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0e166b8308e069ddc7b5335b9c7b7ebdcbffc732078fd4532518d0e977e77de"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): crates/crab-metadata/src/receipts.rs:61-71 | crates/crab-metadata/src/receipts.rs:75-85 \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/crab-metadata/src/receipts.rs"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"b061d73f7ed12564a93206976912c88da647dcf690cede79a6b6225e8f3b9208"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): crates/crab-workflow/src/executor.rs:2606-2611 | crates/crab-workflow/src/hasher.rs:493-498 \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/crab-workflow/src/executor.rs"},"region":{"startLine":2606}}}],"partialFingerprints":{"codehealthFindingId/v1":"f37fbf08a8564629e4a68f421ade57e954fe7de9cc18a5684d5376fc3648c0ca"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): crab/src/cmd/dag.rs:299-309 | crab/src/cmd/dag.rs:311-322 \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":"crab/src/cmd/dag.rs"},"region":{"startLine":299}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b7cc7e1f4dbb221fe1f3f26849457148bd257ef23960f81453678ca6246e8bb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): crab/src/cmd/hydrate.rs:1822-1837 | crates/crab-workflow/src/dvc_inventory.rs:2328-2340 \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":"crab/src/cmd/hydrate.rs"},"region":{"startLine":1822}}}],"partialFingerprints":{"codehealthFindingId/v1":"77f515d1144f0877d5b36492d51ec5f22ded3f451de6f227761996ff493d2cf4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 9\u002B corresponding lines): crab/src/cmd/metrics.rs:3559-3567 | crab/src/cmd/metrics.rs:3581-3595 | crab/src/cmd/params.rs:404-412 | crab/src/cmd/params.rs:416-430 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 9 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/cmd/metrics.rs"},"region":{"startLine":3559}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8c7d34c2bc04cfda9061f893269364892b9b4422ad9ee13a0185f8c62fc201d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 15\u002B corresponding lines): crab/src/replication/mod.rs:1158-1172 | crab/src/replication/mod.rs:1346-1360 | crab/src/replication/mod.rs:1557-1571 \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":"crab/src/replication/mod.rs"},"region":{"startLine":1158}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9008bffd001155f955554a2f4a3c1fea25ee2cb5732908b056d2bfb0e5cf9dd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 12\u002B corresponding lines): crab/src/replication/mod.rs:2436-2452 | crab/src/replication/mod.rs:2489-2500 | crab/src/replication/mod.rs:2506-2522 | crab/src/replication/mod.rs:2562-2578 \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":"crab/src/replication/mod.rs"},"region":{"startLine":2436}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2fa3cc83eb5f059f076e06b8be6d854a246e109750bd8011cafae462a47bf3c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): crates/crab-cache/src/local_cache.rs:1186-1195 | crates/crab-workflow/src/cache.rs:297-311 \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/crab-cache/src/local_cache.rs"},"region":{"startLine":1186}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cddbb9bc70a7b6fcb8a9980dd9167a69eac97df2d2248d9a25d72c7e9ad7ca9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): crates/crab-cache/src/private_fs/windows.rs:180-190 | crates/crab-cache/src/private_fs/windows.rs:192-199 \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/crab-cache/src/private_fs/windows.rs"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8957c9d78dd155ec183fdf0e95fae8fa1eedf42f34a1cdfc7b3552d9738df6a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): crates/crab-sdk/src/local/edit.rs:1105-1115 | crates/crab-sdk/src/local/fetch/recovery.rs:76-87 \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/crab-sdk/src/local/edit.rs"},"region":{"startLine":1105}}}],"partialFingerprints":{"codehealthFindingId/v1":"b07d79e71ca469228ab05fc8d4c332e86a755d87326b27cf49ed29a80a283271"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): crates/crab-staging/src/index.rs:1692-1707 | crates/crab-staging/src/index.rs:1717-1732 \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/crab-staging/src/index.rs"},"region":{"startLine":1692}}}],"partialFingerprints":{"codehealthFindingId/v1":"c097a6532f3496ddca04a7ea502e3badddf0d2f88cb82a94bc7ddc5225a630a0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): crates/crab-vfs/src/publish.rs:1821-1833 | crates/crab-vfs/src/publish.rs:1846-1855 \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/crab-vfs/src/publish.rs"},"region":{"startLine":1821}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6291146b202728ed5c48d08803e849fbb0c49afd03a3eb182e213dd97aed459"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): crates/crab-workflow/src/exp_worktree.rs:1192-1202 | crates/crab-workflow/src/params.rs:339-349 \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/crab-workflow/src/exp_worktree.rs"},"region":{"startLine":1192}}}],"partialFingerprints":{"codehealthFindingId/v1":"13dfe2a546086196c7ebd4533baaa20c22c7d2b7cc3bdffa4d3b304892461eb0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): crates/crab-http-server/deploy/cell-issue-fleet/fault.py:184-200 | crates/crab-http-server/deploy/cell-issue-fleet/qualify.py:35-50 \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/crab-http-server/deploy/cell-issue-fleet/fault.py"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fab5d4c71c0cfba79179e7076916e1d3b93b490529f0155519b9fdce5a31a95"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): crab/src/auth/oidc.rs:450-464 | crab/src/auth/oidc.rs:467-481 \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":"crab/src/auth/oidc.rs"},"region":{"startLine":450}}}],"partialFingerprints":{"codehealthFindingId/v1":"3846da94ca9b3e53caf91f675c30f3db1f5cbd88cb59b5dc3f1397e81c9c0e29"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): crab/src/cmd/replica.rs:1834-1845 | crab/src/cmd/replica.rs:2063-2069 \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":"crab/src/cmd/replica.rs"},"region":{"startLine":1834}}}],"partialFingerprints":{"codehealthFindingId/v1":"2407df3b16899ed3e03d455532a407969b956d453a436b9614536069375cefb9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): crates/crab-git/src/lfs_pointer.rs:340-348 | crates/crab-types/src/pointer.rs:261-269 \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/crab-git/src/lfs_pointer.rs"},"region":{"startLine":340}}}],"partialFingerprints":{"codehealthFindingId/v1":"bcf708db66ad08b771cbaa48b0326c66c0e4229ace3cc8e458f9d6528e839a47"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 9\u002B corresponding lines): crates/crab-workflow/src/hydra.rs:1383-1391 | crates/crab-workflow/src/template/foreach.rs:348-356 | crates/crab-workflow/src/template/matrix.rs:334-342 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 9 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-workflow/src/hydra.rs"},"region":{"startLine":1383}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce8121e3e94f02d2db30001086a3367c2b461a20255e641a7d8ca19d663f1823"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 15\u002B corresponding lines): crab/src/cmd/artifacts.rs:667-683 | crab/src/cmd/migrate.rs:236-250 | crates/crab-workflow/src/artifact.rs:1617-1634 | crates/crab-workflow/src/artifact.rs:1863-1877 \u2014 These 4 members are one piece of code written 4 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 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/cmd/artifacts.rs"},"region":{"startLine":667}}}],"partialFingerprints":{"codehealthFindingId/v1":"29397abe66bfed35eca05108dc66d36bc6e06364ba533725f927107f55ea1649"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 10\u002B corresponding lines): crab/src/cmd/config.rs:649-660 | crab/src/cmd/data.rs:1691-1700 | crab/src/cmd/stage/add.rs:364-373 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 10 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/cmd/config.rs"},"region":{"startLine":649}}}],"partialFingerprints":{"codehealthFindingId/v1":"10c026bfcc49944e9445e4af356f3d0f54b7189cd3a5858e322cbd3dc4184cdb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): crab/src/cmd/lfs/convert.rs:416-425 | crab/src/cmd/lfs/convert.rs:427-436 \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":"crab/src/cmd/lfs/convert.rs"},"region":{"startLine":416}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e07e90e5c4701811170fe60b729e8893e6a16863a163227d3c344a6ae784956"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): crates/crab-cache-server/src/onboarding.rs:498-513 | crates/crab-cache-server/src/onboarding.rs:521-539 \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/crab-cache-server/src/onboarding.rs"},"region":{"startLine":498}}}],"partialFingerprints":{"codehealthFindingId/v1":"05fc5fd491eb29e84e717965f526b4ef5aa082aaa525a4777c67936e36272a51"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): crates/crab-cache/src/private_fs/platform/database/file.rs:170-179 | crates/crab-cache/src/private_fs/platform/database/file.rs:181-192 \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/crab-cache/src/private_fs/platform/database/file.rs"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"43b48b989e2fb13a78860ba710f39703a7d85047261753df38bc7684727279a4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 8\u002B corresponding lines): crates/crab-http-server/src/cells/repository.rs:605-619 | crates/crab-http-server/src/cells/repository/pulls.rs:1515-1522 | crates/crab-http-server/src/cells/repository/pulls.rs:1526-1535 | crates/crab-http-server/src/cells/repository/pulls.rs:1561-1570 \u2014 These 4 members are one piece of code written 4 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 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-http-server/src/cells/repository.rs"},"region":{"startLine":605}}}],"partialFingerprints":{"codehealthFindingId/v1":"06403c57efd3fdd6f66b56ac0a799325764090ba609cfba18b2359d817a1abc9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 10\u002B corresponding lines): crates/crab-http-server/src/cells/repository.rs:758-768 | crates/crab-http-server/src/cells/repository.rs:770-779 | crates/crab-http-server/src/cells/repository/pull_review_threads.rs:965-974 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 10 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-http-server/src/cells/repository.rs"},"region":{"startLine":758}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b4b9f0853285e0abee651fe2c2d7b29c4ad0231625ba103fc795f0eb696e006"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): crates/crab-http-server/src/cells/repository.rs:896-908 | crates/crab-http-server/src/cells/repository/pulls.rs:1536-1546 \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/crab-http-server/src/cells/repository.rs"},"region":{"startLine":896}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0a2148051b0d523d797549c2805e02d2128aabdbaf27f5e3747732034b5fb95"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): crates/crab-s3-gateway/src/server.rs:425-437 | crates/crab-s3-gateway/src/server.rs:439-450 \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/crab-s3-gateway/src/server.rs"},"region":{"startLine":425}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa62b8713e7bdaad83febd644d0fef7ed0307b6193bf1b9c63301f1f6157d099"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): crates/crab-workflow/src/journal.rs:286-302 | crates/crab-workflow/src/journal.rs:308-325 \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/crab-workflow/src/journal.rs"},"region":{"startLine":286}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a8b5aef58d454a509f2939d307051c37fa7151b2f736cb7d102337b863730e1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 9\u002B corresponding lines): crates/crab-workflow/src/params.rs:110-119 | crates/crab-workflow/src/params.rs:123-132 | crates/crab-workflow/src/params.rs:135-143 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 9 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-workflow/src/params.rs"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"2dff71f0d4848e17d42943ca9a007def5ff195bce08da964b9ecd116eb34db61"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 11\u002B corresponding lines): crab/src/cmd/artifacts.rs:796-806 | crab/src/cmd/data.rs:1989-1999 | crab/src/cmd/migrate.rs:2701-2711 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 11 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/cmd/artifacts.rs"},"region":{"startLine":796}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9382cc891265475a14c48d3af18c0eaf8e36008d7bfc5fd2a9ba32a5ceed395"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): crab/src/cmd/exp.rs:3540-3550 | crab/src/cmd/exp.rs:5214-5224 \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":"crab/src/cmd/exp.rs"},"region":{"startLine":3540}}}],"partialFingerprints":{"codehealthFindingId/v1":"a25abab1f4b8bf65cc8d0ed5210de3faf1fa064bff1076b8679b856ef4fff74e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): crab/src/cmd/lfs/ls_files.rs:298-309 | crab/src/lfs/prune.rs:562-575 \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":"crab/src/cmd/lfs/ls_files.rs"},"region":{"startLine":298}}}],"partialFingerprints":{"codehealthFindingId/v1":"557288602a7c9fe77b34e9479629a7a70ac3d51e0df0d9ac2c007ea5693dce9b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): crab/src/cmd/push.rs:1018-1032 | crab/src/cmd/push.rs:1034-1048 \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":"crab/src/cmd/push.rs"},"region":{"startLine":1018}}}],"partialFingerprints":{"codehealthFindingId/v1":"588128a40f2b43cd19598c46c911e216630251e182163a7a251f4c334222ed76"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): crab/src/cmd/recover.rs:896-904 | crab/src/cmd/recover.rs:906-914 \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":"crab/src/cmd/recover.rs"},"region":{"startLine":896}}}],"partialFingerprints":{"codehealthFindingId/v1":"41b75b66cdec5bfcbc3b41520fe6e2abc861394a76ea10044e7eeb22b096a283"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): crates/crab-storage/src/store.rs:79-85 | crates/crab-vfs/src/hydration.rs:1458-1464 \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/crab-storage/src/store.rs"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b578fcbbb0917927b887be5d95af31be1ef0f0b55de3ba4930e53d2e398f48f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): crab/src/cmd/exp.rs:6267-6282 | crab/src/cmd/metrics.rs:4163-4177 \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":"crab/src/cmd/exp.rs"},"region":{"startLine":6267}}}],"partialFingerprints":{"codehealthFindingId/v1":"49a6451d92243e3baf4edee0b6584d14bd6029d7972e45e5a698bca5aaa8e295"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): crab/src/cmd/mount.rs:2688-2695 | crates/crab-vfs/src/mount_control.rs:446-453 \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":"crab/src/cmd/mount.rs"},"region":{"startLine":2688}}}],"partialFingerprints":{"codehealthFindingId/v1":"28c22f4599474e6a658cdde0859b5630a146f392a2fc660a9963fa59ce0328a0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): crab/src/cmd/recover.rs:991-1005 | crab/src/cmd/recover.rs:1011-1025 \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":"crab/src/cmd/recover.rs"},"region":{"startLine":991}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ea3c6264dd94c1e31cc65baa579a8eb14e9f5668e8701e61fe7cc3ca477608a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): crab/src/cmd/replica.rs:11324-11335 | crab/src/lfs/track.rs:708-723 \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":"crab/src/cmd/replica.rs"},"region":{"startLine":11324}}}],"partialFingerprints":{"codehealthFindingId/v1":"d10b7bd87de2f5a922886f38792af9d146d71e15114a08f588652b1f06978db4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): crab/src/metadata/metadb/stores/chunk_index.rs:597-608 | crab/src/metadata/metadb/stores/chunk_index.rs:626-635 \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":"crab/src/metadata/metadb/stores/chunk_index.rs"},"region":{"startLine":597}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6f1f3d2cd43eada3536a0bd8524034e196af2e2336126bd86fa4f3d3a94c671"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 9\u002B corresponding lines): crates/crab-cache/src/xet_chunk_cache.rs:305-313 | crates/crab-http-server/src/cells.rs:1252-1260 | crates/crab-http-server/src/cells/router.rs:1340-1348 | crates/crab-http-server/src/peer.rs:1785-1793 | crates/crab-vfs/src/nfs.rs:1863-1871 \u2014 These 5 members are one piece of code written 5 times and then edited apart: every two of them correspond over at least 9 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 5 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-cache/src/xet_chunk_cache.rs"},"region":{"startLine":305}}}],"partialFingerprints":{"codehealthFindingId/v1":"428f6ffdce27adbeaf14d6aa7e0c5b225f69d3e6e8af7838f359dfd630dcfa8d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): crates/crab-staging/src/segment.rs:160-173 | crates/crab-staging/src/segment.rs:187-199 \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/crab-staging/src/segment.rs"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f2f8d1a77014c8c9ce912793e1939d57bde0b1a1804fa1f7e7ba3c3aed857f6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 12\u002B corresponding lines): crates/crab-vfs/src/daemon.rs:397-408 | crates/crab-vfs/src/daemon.rs:485-497 | crates/crab-vfs/src/daemon.rs:500-512 \u2014 These 3 members are one piece of code written 3 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 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-vfs/src/daemon.rs"},"region":{"startLine":397}}}],"partialFingerprints":{"codehealthFindingId/v1":"184c310cb9fbf51ac733ed5d51969a4cb008e8fd6c6c482d41eb3cc650d7cac3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 16\u002B corresponding lines): crates/crab-vfs/src/engine.rs:899-915 | crates/crab-vfs/src/nfs.rs:421-439 | crates/crab-vfs/src/read_lease_pool.rs:45-60 \u2014 These 3 members are one piece of code written 3 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 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-vfs/src/engine.rs"},"region":{"startLine":899}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9490b9811223a20088375ffdf0f8ad1fbab7ee8688b7015625b28807a1b320d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 10\u002B corresponding lines): crab/src/cmd/init.rs:127-136 | crab/src/cmd/metadb.rs:1113-1129 | crab/src/git/push.rs:5615-5630 | crab/src/git/push.rs:5638-5653 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 10 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/cmd/init.rs"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b92bc18ac7b8bdce2af05e8030465a19750304b9ec4af49304c37172d094bc8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): crab/src/core/config.rs:1806-1814 | crab/src/core/config.rs:1818-1823 \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":"crab/src/core/config.rs"},"region":{"startLine":1806}}}],"partialFingerprints":{"codehealthFindingId/v1":"534389442ac1725a1c57b74180a89e9d0b66df4b3937c84b7c6d0c7e1a4e18ff"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): crab/src/replication/mod.rs:5031-5043 | crates/crab-coordination/src/write_coordinator.rs:2187-2198 \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":"crab/src/replication/mod.rs"},"region":{"startLine":5031}}}],"partialFingerprints":{"codehealthFindingId/v1":"eabdc7f33799ac7700cad68ee832753cb902a0aaca4fda47cc25ab961316900a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): crab/src/speculation/driver.rs:85-96 | crab/src/speculation/driver.rs:110-121 \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":"crab/src/speculation/driver.rs"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd6d743bfa00fb7c7a884cfb4c2b1c6ecfac3b5baf994e18cd5d5a464bd59471"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): crab/src/storage/retry.rs:294-308 | crates/crab-storage/src/retry.rs:103-116 \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":"crab/src/storage/retry.rs"},"region":{"startLine":294}}}],"partialFingerprints":{"codehealthFindingId/v1":"1540cde7117bde74eb241d00f3550e2faf1ac368588b3622524d276693d956b5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): crates/crab-cache/src/local_cache/maintenance.rs:321-329 | crates/crab-cache/src/local_cache/maintenance.rs:331-339 \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/crab-cache/src/local_cache/maintenance.rs"},"region":{"startLine":321}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ce0ebaadfb201f3ab07c5f9c28adf5b22f17b311bcfab7caa9a2d0d2ee6a79d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): crates/crab-staging/src/lib.rs:2395-2403 | crates/crab-staging/src/lib.rs:3833-3841 \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/crab-staging/src/lib.rs"},"region":{"startLine":2395}}}],"partialFingerprints":{"codehealthFindingId/v1":"1457846e40cdec21c104495c750133fe07910addca6d1cc5d29d63e3ee11a2c0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): crates/crab-vfs/src/engine.rs:1000-1014 | crates/crab-vfs/src/nfs.rs:533-545 \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/crab-vfs/src/engine.rs"},"region":{"startLine":1000}}}],"partialFingerprints":{"codehealthFindingId/v1":"53a1a3fa6b544df4c7e9971d917e3f26aefdb51aa030790d45627f758a244648"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): crates/crab-workflow/src/yaml.rs:508-516 | crates/crab-workflow/src/yaml.rs:652-661 \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/crab-workflow/src/yaml.rs"},"region":{"startLine":508}}}],"partialFingerprints":{"codehealthFindingId/v1":"132aa624bbc7537bc4364922733a31f6d404550164f1f5cac0499389bac48b92"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): crab/src/cmd/add.rs:3682-3696 | crab/src/cmd/add.rs:3698-3712 \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":"crab/src/cmd/add.rs"},"region":{"startLine":3682}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bf7c5c21916e56f7e1ef85391d1e65bf88a6f437649ec08e2b3786bd6fd65f9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): crab/src/cmd/auth_status.rs:175-188 | crab/src/cmd/metadb.rs:1772-1781 \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":"crab/src/cmd/auth_status.rs"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"8271237650df7c648260a1c21395cff9429a19106380cfdaa7244234481063fc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 14\u002B corresponding lines): crab/src/cmd/login.rs:227-241 | crab/src/cmd/login.rs:249-263 | crab/src/cmd/logout.rs:150-163 | crab/src/main.rs:5943-5956 \u2014 These 4 members are one piece of code written 4 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 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/cmd/login.rs"},"region":{"startLine":227}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8f94fec99bc0b20862cd793c9a3d36ead648f9da129c6065c2056197438efae"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): crab/src/core/output/jsonl.rs:147-159 | crab/src/core/output/jsonl.rs:209-220 \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":"crab/src/core/output/jsonl.rs"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"0138e51a9b0ba366b79d6b8231c93dbf86806d8c38d43b9260c9c8d41506d6f1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): crab/src/replication/mod.rs:7280-7288 | crates/crab-auth-server/src/receive.rs:260-273 \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":"crab/src/replication/mod.rs"},"region":{"startLine":7280}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8efebe409a5fc75291508a33ae51a465465717ba96b921e396530ca23978bbd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): crates/crab-auth/src/managed/client.rs:285-298 | crates/crab-auth/src/managed/client.rs:401-419 \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/crab-auth/src/managed/client.rs"},"region":{"startLine":285}}}],"partialFingerprints":{"codehealthFindingId/v1":"07615b5e003063eb72cd5dc56e3175835114ebbd2355b6bed786bd1b17d2e0c9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): crates/crab-http-server/src/api.rs:772-780 | crates/crab-remote-git/src/snapshot.rs:1462-1470 \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/crab-http-server/src/api.rs"},"region":{"startLine":772}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6cfb5263b0a9c91aee92a44c9611ad5b81a2fdc95b793494c566e3b3c50a7bf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): crates/crab-http-server/src/cells/repository/codec.rs:135-145 | crates/crab-http-server/src/cells/repository/codec.rs:425-435 \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/crab-http-server/src/cells/repository/codec.rs"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f5b4631069d777fe89189416ad2875807434bbc1b432738ca77e77361b0f357"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): crates/crab-staging/src/push_plan.rs:297-310 | crates/crab-staging/src/push_plan.rs:323-336 \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/crab-staging/src/push_plan.rs"},"region":{"startLine":297}}}],"partialFingerprints":{"codehealthFindingId/v1":"d082b97bd54db15bf3a67641b62f665c7bc1363175dd961a14fb264ffed4f2e6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 13\u002B corresponding lines): crates/crab-vfs/src/nfs_control.rs:1252-1264 | crates/crab-vfs/src/nfs_control.rs:1304-1316 | crates/crab-vfs/src/nfs_control.rs:1322-1342 \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/crab-vfs/src/nfs_control.rs"},"region":{"startLine":1252}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fe2dbe50e88676d079187c96c328db93dbc6b086ccc92bd35ae48d252d0936f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): crates/crab-workflow/src/artifact.rs:1572-1578 | crates/crab-workflow/src/artifact.rs:1580-1586 \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/crab-workflow/src/artifact.rs"},"region":{"startLine":1572}}}],"partialFingerprints":{"codehealthFindingId/v1":"0cb0e902deca4133a03fc1dcf0eac36d56d70900a33beec690840ca6dec1657e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 16\u002B corresponding lines): crab/src/git/push.rs:911-929 | crab/src/git/push.rs:998-1014 | crab/src/git/push.rs:1021-1036 \u2014 These 3 members are one piece of code written 3 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 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/git/push.rs"},"region":{"startLine":911}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe32390adf4d05259185ffa8b9eeb46150dbf4b234cf21a12f6ec9c3a07c23b6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): crab/src/git/upload_pack_wire.rs:134-144 | crab/src/git/upload_pack_wire.rs:146-156 \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":"crab/src/git/upload_pack_wire.rs"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab51b456ea6914fb3442b5014a0f052874fca2fcbb457e04018ed6c621bc683f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): crab/src/import/versions.rs:395-409 | crab/src/import/versions.rs:597-614 \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":"crab/src/import/versions.rs"},"region":{"startLine":395}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec9dfefb738ec80dda1ecf54831c9aa4af830bb21db2f5bd77dc741e264aa1f1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 8\u002B corresponding lines): crab/src/maintenance.rs:34-41 | crab/src/maintenance.rs:130-137 | crab/src/maintenance.rs:145-154 \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":"crab/src/maintenance.rs"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc8529f92934071df3494a4bbee60455770cebc3a0fca7ad2661d2dfd3ac9bb7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): crab/src/replication/mod.rs:3543-3553 | crates/crab-coordination/src/spanner_coordinator.rs:720-729 \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":"crab/src/replication/mod.rs"},"region":{"startLine":3543}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a195d7e2f41418c8024cd9495fdbb9e369e1550614715e9d2016d565edb260c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): crates/crab-cache-server/src/db.rs:82-90 | crates/crab-vfs/src/snapshot.rs:433-441 \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/crab-cache-server/src/db.rs"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"edc370e7eac079b8c9775bfcd73d4f832ea4d513dd14507169f69d4b7c4ce741"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 9\u002B corresponding lines): crates/crab-http-server/src/cells/repository/codec.rs:216-226 | crates/crab-http-server/src/cells/repository/codec.rs:263-272 | crates/crab-http-server/src/cells/repository/codec.rs:451-459 | crates/crab-http-server/src/cells/repository/codec.rs:578-587 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 9 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-http-server/src/cells/repository/codec.rs"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a41505f67fc6b7e9fb7b30d2fb1a5f7f17b7589a7ad4e2ac89ba7f4b860d4ae"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 8\u002B corresponding lines): crates/crab-http-server/src/cells/repository/pulls.rs:785-792 | crates/crab-http-server/src/cells/repository/pulls.rs:797-804 | crates/crab-http-server/src/cells/repository/pulls.rs:1550-1557 \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/crab-http-server/src/cells/repository/pulls.rs"},"region":{"startLine":785}}}],"partialFingerprints":{"codehealthFindingId/v1":"eaae4dee902462f6be89a51526e82b72a56861db91389899e0fee7c382fa0538"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): crates/crab-http-server/src/server.rs:960-973 | crates/crab-http-server/src/server.rs:975-988 \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/crab-http-server/src/server.rs"},"region":{"startLine":960}}}],"partialFingerprints":{"codehealthFindingId/v1":"caa404cd93bf3a04fd851e756f8eabad629a9599052efd6399fa355d0262071a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): crates/crab-metadata/src/path_state.rs:224-234 | crates/crab-metadata/src/split_commit_graph.rs:140-150 \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/crab-metadata/src/path_state.rs"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d9991b474f0d800d53cf5dbb892de70e7ec62ac60399957d13b08488681c7b2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): crates/crab-staging/src/index.rs:1859-1875 | crates/crab-staging/src/index.rs:6259-6270 \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/crab-staging/src/index.rs"},"region":{"startLine":1859}}}],"partialFingerprints":{"codehealthFindingId/v1":"03d625da951cb5c29eb4bbc9bd0aad9a98fd8b72e3abd39fa9b24db9efbb6d80"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): crab/src/core/remote_layout.rs:22-33 | crab/src/core/remote_layout.rs:36-47 \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":"crab/src/core/remote_layout.rs"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ecde9fb5c28c25a920daf125da377835d850ab2ec7af4f168b7e15c1c3432bf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): crab/src/git/clean.rs:1174-1191 | crab/src/git/clean.rs:1198-1218 \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":"crab/src/git/clean.rs"},"region":{"startLine":1174}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f7e6e57ad21658f5c8cc035c50e5176c85c72f8554e686bb9d7b4a7c8e2ff08"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): crab/src/git/push.rs:1630-1637 | crates/crab-write/src/catalog.rs:93-100 \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":"crab/src/git/push.rs"},"region":{"startLine":1630}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3489c4f9662d583922693226dcef3995f030def8611b72ac1f0f6e45c6fc5a5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): crab/src/git/push.rs:1639-1646 | crates/crab-read/src/upload_pack.rs:1260-1267 \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":"crab/src/git/push.rs"},"region":{"startLine":1639}}}],"partialFingerprints":{"codehealthFindingId/v1":"c64fde616bf03eab80bb5082163f3b13ed9a1601b4bb723ec3ace9698f212b19"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): crab/src/git/push.rs:6429-6442 | crab/src/git/push.rs:6448-6462 \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":"crab/src/git/push.rs"},"region":{"startLine":6429}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2d82c81a0d8d55857eaf1ca8a2eb1bbdf6205d1c5b1e91b84c4b6983432418e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 12\u002B corresponding lines): crab/src/import/summary.rs:298-313 | crab/src/import/summary.rs:330-341 | crab/src/import/summary.rs:358-371 \u2014 These 3 members are one piece of code written 3 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 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/import/summary.rs"},"region":{"startLine":298}}}],"partialFingerprints":{"codehealthFindingId/v1":"7586936c702f84c80fa5f791b625801c1eeb9eeba4e4764c7814042cf7691f7f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): crates/crab-http-server/src/server.rs:882-897 | crates/crab-http-server/src/server.rs:899-912 \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/crab-http-server/src/server.rs"},"region":{"startLine":882}}}],"partialFingerprints":{"codehealthFindingId/v1":"9230c1eef2508950d234f9b4890eb50995605fa8646b0f9bdba751186d87a108"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): crates/crab-metadata/src/path_state/storage.rs:260-275 | crates/crab-metadata/src/split_commit_graph.rs:854-869 \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/crab-metadata/src/path_state/storage.rs"},"region":{"startLine":260}}}],"partialFingerprints":{"codehealthFindingId/v1":"f607e8ae98233f58b8d0706f71c2f59058898d775d4ca770d65135f3aa0e91ec"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): crates/crab-metadata/src/path_state/storage.rs:281-290 | crates/crab-metadata/src/split_commit_graph.rs:876-885 \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/crab-metadata/src/path_state/storage.rs"},"region":{"startLine":281}}}],"partialFingerprints":{"codehealthFindingId/v1":"53b9e5c39248bdf2b9923d44f5a16b2b293ab4bd289a62d33eb8cf2199440524"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): crates/crab-vfs/src/ipc_server.rs:482-489 | crates/crab-vfs/src/nfs_control.rs:1244-1250 \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/crab-vfs/src/ipc_server.rs"},"region":{"startLine":482}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5f2963c2c1495ac5b006c4a1c7df65aa35f7dce0340df18e8a72ffed6384124"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): crates/crab-workflow/src/lockfile.rs:1140-1148 | crates/crab-workflow/src/lockfile.rs:1150-1158 \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/crab-workflow/src/lockfile.rs"},"region":{"startLine":1140}}}],"partialFingerprints":{"codehealthFindingId/v1":"37e0cfe0e718d62760d3d35b5588fa13839f2c64ff40be82787f9c01be9bf11d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): crab/src/cmd/download.rs:330-339 | crab/src/cmd/export.rs:290-299 \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":"crab/src/cmd/download.rs"},"region":{"startLine":330}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff1858f2257c7ea92c7e164622ece2185f4b8a490011b683cf116b2fe852ecff"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): crab/src/cmd/gc/bucket.rs:1074-1080 | crab/src/cmd/gc/mod.rs:1909-1915 \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":"crab/src/cmd/gc/bucket.rs"},"region":{"startLine":1074}}}],"partialFingerprints":{"codehealthFindingId/v1":"843699dc758491f4940db69a3e5d592fb64545694e67a1607218a74c3d678019"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 10\u002B corresponding lines): crab/src/cmd/mount.rs:3934-3945 | crates/crab-vfs/src/coordinator.rs:151-161 | crates/crab-vfs/src/ipc_client.rs:292-301 | crates/crab-vfs/src/mounts_registry.rs:62-71 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 10 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/cmd/mount.rs"},"region":{"startLine":3934}}}],"partialFingerprints":{"codehealthFindingId/v1":"4000b4e9f8d890f0b2334fdeb685915456a26757c33d743da673de3809e2f497"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 7\u002B corresponding lines): crates/crab-auth/src/token_cache.rs:201-209 | crates/crab-staging/src/lib.rs:435-441 | crates/crab-staging/src/lib.rs:1010-1017 | crates/crab-staging/src/recovery.rs:161-171 | crates/crab-workflow/src/exp_queue.rs:191-198 \u2014 These 5 members are one piece of code written 5 times and then edited apart: every two of them correspond over at least 7 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 5 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-auth/src/token_cache.rs"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ec8e705562fae51b42ec987f0f31aac3c78aaea5ca2e04d481f0da314f51268"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): crates/crab-cache/src/local_cache.rs:956-965 | crates/crab-cache/src/local_cache.rs:972-983 \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/crab-cache/src/local_cache.rs"},"region":{"startLine":956}}}],"partialFingerprints":{"codehealthFindingId/v1":"950b29267f8adfd572e7acd1e6c9b510430f35f5d2e8507fba24a741b1658f13"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): crates/crab-http-server/src/cells/repository/checks_codec.rs:192-199 | crates/crab-http-server/src/cells/repository/codec.rs:78-88 \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/crab-http-server/src/cells/repository/checks_codec.rs"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9787d2d83fb5d35c81e98a8d6745903b521ebc3fb2bdbc4c4643cc751632322"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): crates/crab-remote-git/src/budget.rs:251-259 | crates/crab-storage/src/transport_read_admission.rs:88-96 \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/crab-remote-git/src/budget.rs"},"region":{"startLine":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"02d58266de90ebf29fb2ed3628867fba3984cf67a2dfe20a2c9c48c35a64c5e5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): crates/crab-remote-git/src/traversal.rs:152-159 | crates/crab-remote-git/src/traversal.rs:173-180 \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/crab-remote-git/src/traversal.rs"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"22ff737427ef959ec344c10d40542de67e3487ba9e116e7731d77bf46e15df92"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): crates/crab-storage/src/observation.rs:201-207 | crates/crab-storage/src/observation.rs:370-377 \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/crab-storage/src/observation.rs"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7cafbd824ca1e12fb4a93955aa510c41ce35b70dc4f3336d482f96a3c6dca1f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 13\u002B corresponding lines): crates/crab-vfs/src/coordinator.rs:644-656 | crates/crab-vfs/src/coordinator.rs:846-858 | crates/crab-vfs/src/coordinator.rs:867-880 \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/crab-vfs/src/coordinator.rs"},"region":{"startLine":644}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d25234982660b67007e05ae1cd26a39e2a65e1b9120e451f7164e52cfc0878a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): crates/crab-workflow/src/template/substitute.rs:101-113 | crates/crab-workflow/src/template/substitute.rs:172-181 \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/crab-workflow/src/template/substitute.rs"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2b8b033073a4f0b092089505238438054151554d4477632f7c74d54bab74686"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): crab/src/cmd/recover.rs:3019-3025 | crates/crab-workflow/src/artifact.rs:1936-1943 \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":"crab/src/cmd/recover.rs"},"region":{"startLine":3019}}}],"partialFingerprints":{"codehealthFindingId/v1":"d921772d4fa518e4cdbe762bd420847fb692ba82d58b5521ef029564bee6d2cc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): crab/src/core/credential_discovery.rs:237-254 | crab/src/core/credential_discovery.rs:256-269 \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":"crab/src/core/credential_discovery.rs"},"region":{"startLine":237}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6602a8bd5c0f805cd95580bd7761289a16269479ac07f0a5807c2f55c736a80"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): crab/src/git/connectivity.rs:286-298 | crab/src/git/pack.rs:1032-1046 \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":"crab/src/git/connectivity.rs"},"region":{"startLine":286}}}],"partialFingerprints":{"codehealthFindingId/v1":"37df7632d7020b629e355782fcee2361ccaecc0d2935a39446ddde86ab7ca434"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 13\u002B corresponding lines): crates/crab-auth/src/managed/client.rs:187-199 | crates/crab-auth/src/managed/client.rs:306-323 | crates/crab-auth/src/managed/client.rs:617-632 \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/crab-auth/src/managed/client.rs"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e2b48d72249bc0799cfa5d7b14ef5cbe2b0d7bea751bf55e6919f8a5e160b81"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): crates/crab-git/src/url.rs:201-210 | crates/crab-git/src/url.rs:274-282 \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/crab-git/src/url.rs"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddf28262e54fccf7c9b3cdbbd77affacde71f05da023da95c9cd4b4fe005ea14"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): crates/crab-http-server/src/auth.rs:895-906 | crates/crab-storage/src/provider_store.rs:707-715 \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/crab-http-server/src/auth.rs"},"region":{"startLine":895}}}],"partialFingerprints":{"codehealthFindingId/v1":"6723bb0a78aa526deaf4e46fad979f84b93fa8f86743639ed8f2dd6fa493d300"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 13\u002B corresponding lines): crates/crab-http-server/src/cells/repository.rs:577-590 | crates/crab-http-server/src/cells/repository/checks.rs:494-509 | crates/crab-http-server/src/cells/repository/checks.rs:531-543 | crates/crab-http-server/src/cells/repository/pull_review_threads.rs:864-876 \u2014 These 4 members are one piece of code written 4 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 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-http-server/src/cells/repository.rs"},"region":{"startLine":577}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f0137067d5c588ca1cd3e3e90c43f4abcb35f99cef8e6c4e61859b4b9cad677"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): crates/crab-http-server/src/cells/repository/checks_codec.rs:169-177 | crates/crab-http-server/src/cells/repository/checks_codec.rs:212-221 \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/crab-http-server/src/cells/repository/checks_codec.rs"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"5de40e79a307fbcfb8d0e9a88c2cdf7d83e215fa05747c140933f4ebf7538473"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): crates/crab-http-server/src/peer/node_log_client.rs:500-508 | crates/crab-metadata/src/git_visibility.rs:1491-1499 \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/crab-http-server/src/peer/node_log_client.rs"},"region":{"startLine":500}}}],"partialFingerprints":{"codehealthFindingId/v1":"f25788b343bdd75e39240d28bc25781ea6e836404a5bed3a65de93c825aa1ac6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 11\u002B corresponding lines): crates/crab-http-server/src/pulls.rs:301-311 | crates/crab-http-server/src/pulls/review_threads.rs:57-67 | crates/crab-http-server/src/pulls/review_threads.rs:581-591 | crates/crab-http-server/src/pulls/reviews.rs:87-97 | crates/crab-http-server/src/releases.rs:140-150 \u2014 These 5 members are one piece of code written 5 times and then edited apart: every two of them correspond over at least 11 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 5 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-http-server/src/pulls.rs"},"region":{"startLine":301}}}],"partialFingerprints":{"codehealthFindingId/v1":"28779e9ff7b34f78ea6c56b3a10e3fb40e63e7b1f676808bd511ae73e40aeb61"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): crates/crab-metadata/src/file_index_lookup.rs:748-761 | crates/crab-metadata/src/file_index_lookup.rs:778-790 \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/crab-metadata/src/file_index_lookup.rs"},"region":{"startLine":748}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b3935fc441b4e3e779c7b9ad45c4e2907ee059958784f0cfb566b33337682aa"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): crates/crab-metadata/src/ref_registry.rs:159-166 | crates/crab-metadata/src/ref_registry.rs:178-186 \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/crab-metadata/src/ref_registry.rs"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"36ae02239dd7d4951d03eb0d3c82e661ca64f582b87a8217b975d0c7e22cb20a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): crates/crab-workflow/src/cache.rs:437-446 | crates/crab-workflow/src/experiment.rs:240-254 \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/crab-workflow/src/cache.rs"},"region":{"startLine":437}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5e169860be3c7c8dce428b6ba6c47e01c94a9e43e49dbcc8d595c4858560d4f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): crates/crab-workflow/src/journal.rs:406-426 | crates/crab-workflow/src/journal.rs:560-577 \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/crab-workflow/src/journal.rs"},"region":{"startLine":406}}}],"partialFingerprints":{"codehealthFindingId/v1":"32d046ebda4b1daee9c58b0c48b0df93e445f7c8a4e97d7f409a81c391f1eeb5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): crab/src/cache/add_remote_candidates.rs:650-663 | crates/crab-cache/src/shard_hints.rs:330-342 \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":"crab/src/cache/add_remote_candidates.rs"},"region":{"startLine":650}}}],"partialFingerprints":{"codehealthFindingId/v1":"64b36f0983aa99ecb61f4f4d47739e28da51ce9786301e5a5d52d7c5c3536e23"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): crab/src/cmd/freeze.rs:161-172 | crab/src/cmd/stage/add.rs:418-429 \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":"crab/src/cmd/freeze.rs"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"803842a5c7650ec644e47e58d3aa62b9a1a5682b2b5860811b7e21c10d7fb848"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): crab/src/cmd/hydrate.rs:1215-1227 | crates/crab-read/src/hydrator.rs:692-701 \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":"crab/src/cmd/hydrate.rs"},"region":{"startLine":1215}}}],"partialFingerprints":{"codehealthFindingId/v1":"d36f84c0e3fb3fcdc89fb919824b154a0ea322286da41a7c361fabcbaa546be6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): crab/src/cmd/metrics.rs:910-920 | crab/src/cmd/metrics.rs:926-936 \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":"crab/src/cmd/metrics.rs"},"region":{"startLine":910}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bd57ea05195141ab7990198d2f43374b969f307ea00624526107c1477f61d65"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): crab/src/diff/term_resolver.rs:29-38 | crab/src/read/mod.rs:78-91 \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":"crab/src/diff/term_resolver.rs"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"e20e133d5e3db9bcaf4b8eec9c149ee2635c778a09d263ad63a7040ff1e7b966"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 10\u002B corresponding lines): crates/crab-cache-server/src/metrics.rs:296-305 | crates/crab-cache-server/src/metrics.rs:308-317 | crates/crab-cache-server/src/metrics.rs:320-330 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 10 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-cache-server/src/metrics.rs"},"region":{"startLine":296}}}],"partialFingerprints":{"codehealthFindingId/v1":"90376dfa19cb9a08585dd7cd33d5115b9fe8b43534d0698d85c553e718859bd3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): crates/crab-cache-server/src/preflight.rs:227-246 | crates/crab-cache-server/src/onboarding.rs:982-996 \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/crab-cache-server/src/preflight.rs"},"region":{"startLine":227}}}],"partialFingerprints":{"codehealthFindingId/v1":"b118390eac2fa0968781891a5340a6a5ff62ebe02bbbbd7d69a4487e45738796"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 9\u002B corresponding lines): crates/crab-http-server/src/cells/repository.rs:886-894 | crates/crab-http-server/src/cells/repository/projection.rs:1136-1144 | crates/crab-http-server/src/cells/repository/releases.rs:1146-1154 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 9 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-http-server/src/cells/repository.rs"},"region":{"startLine":886}}}],"partialFingerprints":{"codehealthFindingId/v1":"daa5cacaaa7ed824ea99dbccc02d3867c0c3d77580e7a10e73c5c509320f573b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 8\u002B corresponding lines): crates/crab-http-server/src/cells/repository.rs:1303-1310 | crates/crab-http-server/src/cells/repository/checks.rs:733-740 | crates/crab-http-server/src/cells/repository/pulls.rs:1493-1500 \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/crab-http-server/src/cells/repository.rs"},"region":{"startLine":1303}}}],"partialFingerprints":{"codehealthFindingId/v1":"13853f451882c710eee41b772196d7a63a90ee40c31716ce4e9ce9e19f96c2d8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (7 members, 10\u002B corresponding lines): crates/crab-http-server/src/pulls/review_thread_storage.rs:88-101 | crates/crab-http-server/src/pulls/review_thread_storage.rs:125-141 | crates/crab-http-server/src/pulls/review_thread_storage.rs:225-242 | crates/crab-http-server/src/pulls/storage.rs:176-192 | crates/crab-http-server/src/pulls/storage.rs:347-356 | crates/crab-http-server/src/pulls/storage.rs:452-461 | crates/crab-http-server/src/pulls/storage.rs:469-485 \u2014 These 7 members are one piece of code written 7 times and then edited apart: every two of them correspond over at least 10 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 7 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-http-server/src/pulls/review_thread_storage.rs"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5ed81b7fd099f4b92d3a3781658285a43051f38e7d47b4e6c5b749d9ad72a1c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): crates/crab-sdk/src/value.rs:159-165 | crates/crab-sdk/src/value.rs:168-174 \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/crab-sdk/src/value.rs"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5115f5670279f54bb33ed47c031c190522ace2c072103afffa091062be44e40"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): crates/crab-storage/src/store.rs:416-424 | crates/crab-storage/src/store.rs:431-439 \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/crab-storage/src/store.rs"},"region":{"startLine":416}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a37c1a9807ecb655b5966be2a8beda5fb9b5391015d0649b235ea218bd75fb1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): crates/crab-vfs/src/ipc_server.rs:254-271 | crates/crab-vfs/src/ipc_server.rs:281-298 \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/crab-vfs/src/ipc_server.rs"},"region":{"startLine":254}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec19b7b5bc595f32fb1cd3af0d192a24c7e680f75c8b9bf73a58288b6eab808f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 7\u002B corresponding lines): crab/src/cmd/metrics.rs:2217-2223 | crab/src/cmd/recover.rs:2992-2998 | crab/src/cmd/recover.rs:3000-3006 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 7 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/cmd/metrics.rs"},"region":{"startLine":2217}}}],"partialFingerprints":{"codehealthFindingId/v1":"22b614592d0feaefbf1a0b3f1b45d11fcae49cd72844c343a300d655e41701b0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): crab/src/git/push_native.rs:883-893 | crab/src/git/remote_helper.rs:1735-1742 \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":"crab/src/git/push_native.rs"},"region":{"startLine":883}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8e09bf61a29d3f570dac75270eb96cc1d9e64f84e83c09c77c7344414244648"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 11\u002B corresponding lines): crates/crab-http-server/src/cells/repository/checks_codec.rs:225-237 | crates/crab-http-server/src/cells/repository/codec.rs:66-76 | crates/crab-http-server/src/cells/repository/codec.rs:202-214 | crates/crab-http-server/src/cells/repository/codec.rs:250-261 | crates/crab-http-server/src/cells/repository/codec.rs:565-576 \u2014 These 5 members are one piece of code written 5 times and then edited apart: every two of them correspond over at least 11 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 5 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-http-server/src/cells/repository/checks_codec.rs"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"ccdb7c17d32482433e6349c13d8f0d68bb4abf7287118b19e039f8997a753446"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): crates/crab-http-server/src/cells/repository/codec.rs:190-198 | crates/crab-http-server/src/cells/repository/codec.rs:238-246 \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/crab-http-server/src/cells/repository/codec.rs"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"aead14723fd3d5c05f19b951ad5be5e64e86cb112a0708b14409010296b2e190"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): crates/crab-metadata/src/git_visibility.rs:619-625 | crates/crab-metadata/src/git_visibility.rs:1412-1418 \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/crab-metadata/src/git_visibility.rs"},"region":{"startLine":619}}}],"partialFingerprints":{"codehealthFindingId/v1":"d979db929ee1ce8579b249cc45db3465d7392917a356775633d3842508f8994b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): crates/crab-storage/src/store.rs:822-831 | crates/crab-storage/src/store.rs:1023-1032 \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/crab-storage/src/store.rs"},"region":{"startLine":822}}}],"partialFingerprints":{"codehealthFindingId/v1":"472a5d6bcd786946765d6f6e4661accf8a90d7da6d827b4fe9d13b6d4e58e3db"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): crates/crab-workflow/src/exp_range.rs:277-287 | crates/crab-workflow/src/hydra.rs:1265-1275 \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/crab-workflow/src/exp_range.rs"},"region":{"startLine":277}}}],"partialFingerprints":{"codehealthFindingId/v1":"95558545df006ec1f3eaaa99bab0053c15b51bb00aad2888a318413a3dcb5969"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): crab/src/cmd/add.rs:3349-3360 | crab/src/cmd/status.rs:697-708 \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":"crab/src/cmd/add.rs"},"region":{"startLine":3349}}}],"partialFingerprints":{"codehealthFindingId/v1":"227e95cf9b6ea823709463c84d52de09fd80c6fd79e1664a78cdb53b43251860"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): crab/src/cmd/data.rs:1781-1790 | crab/src/cmd/exp.rs:2325-2334 \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":"crab/src/cmd/data.rs"},"region":{"startLine":1781}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b31da139a1ecc1128060ead38bcdff52377d43ee92f0053772b3f31db8a5010"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): crab/src/cmd/metrics.rs:99-110 | crab/src/cmd/params.rs:102-113 \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":"crab/src/cmd/metrics.rs"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"35a70ddf6d820e9fd567b2c3575713d04af8c88532f83733e4ccb668eb7cf1d5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): crates/crab-cache-server/src/cache_store.rs:1900-1907 | crates/crab-cache-server/src/chunk_index.rs:293-299 \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/crab-cache-server/src/cache_store.rs"},"region":{"startLine":1900}}}],"partialFingerprints":{"codehealthFindingId/v1":"38ac5951d459712cbac5b5adc6e0af346f5852f3b966d6546b6a761270abcce8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): crates/crab-http-server/src/cells/repository/codec.rs:125-133 | crates/crab-http-server/src/cells/repository/codec.rs:415-423 \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/crab-http-server/src/cells/repository/codec.rs"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"88950a0ee052dcd56264d93d415dfa91fe985d45a14b3fc97dc7922140d09623"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): crates/crab-http-server/src/statuses.rs:96-107 | crates/crab-http-server/src/checks.rs:164-173 \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/crab-http-server/src/statuses.rs"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec1e34056795cd13edfb5020bc1a3439d2fb80d743be23a5ee384360c4c75f27"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): crates/crab-sdk/src/local/push.rs:816-828 | crates/crab-sdk/src/mutation.rs:321-332 \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/crab-sdk/src/local/push.rs"},"region":{"startLine":816}}}],"partialFingerprints":{"codehealthFindingId/v1":"0cda8498977460e7d0c1260f946290607decd2c6880aadad4d103cb231f975f4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 13\u002B corresponding lines): crates/crab-storage/src/store.rs:1397-1409 | crates/crab-storage/src/store.rs:1455-1467 | crates/crab-storage/src/store.rs:1470-1482 | crates/crab-storage/src/store.rs:1557-1570 \u2014 These 4 members are one piece of code written 4 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 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-storage/src/store.rs"},"region":{"startLine":1397}}}],"partialFingerprints":{"codehealthFindingId/v1":"3261e12e8dbc624982d31bb5120ec2e045f630545f73b7576950313e099eeec5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 8\u002B corresponding lines): crates/crab-vfs/src/nfs.rs:1612-1619 | crates/crab-vfs/src/nfs.rs:1625-1634 | crates/crab-vfs/src/nfs.rs:1636-1643 \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/crab-vfs/src/nfs.rs"},"region":{"startLine":1612}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f616fb38e01854b1a205639df0639951f7a03079ebaeefbf6ff3b143a0d999c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): crates/crab-workflow/src/exp_worktree.rs:240-257 | crates/crab-workflow/src/exp_worktree.rs:2025-2036 \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/crab-workflow/src/exp_worktree.rs"},"region":{"startLine":240}}}],"partialFingerprints":{"codehealthFindingId/v1":"60e96e19df802ae6cef095240dbb69e6111b174bcd12e730f56f67dd01ab2cba"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): crab/src/cmd/replica.rs:8524-8530 | crab/src/cmd/replica.rs:8532-8538 \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":"crab/src/cmd/replica.rs"},"region":{"startLine":8524}}}],"partialFingerprints":{"codehealthFindingId/v1":"146be5667fa159cf1ce0b9a6e3771b0806fce6725d102e446285d4d32eafd1d1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): crab/src/git/pack.rs:1428-1436 | crates/crab-vfs/src/hydration.rs:1466-1472 \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":"crab/src/git/pack.rs"},"region":{"startLine":1428}}}],"partialFingerprints":{"codehealthFindingId/v1":"c99ca7362e0aea2b6f3c7101ed9315de410c2a985fff7c9e711517600b7ee454"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 9\u002B corresponding lines): crates/crab-auth-store/src/refreshing_store.rs:233-242 | crates/crab-auth-store/src/refreshing_store.rs:317-326 | crates/crab-auth-store/src/refreshing_store.rs:381-389 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 9 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-auth-store/src/refreshing_store.rs"},"region":{"startLine":233}}}],"partialFingerprints":{"codehealthFindingId/v1":"aabff384f4f13770846dfcfb15dbca32b3a6a936c6bf3240d914c3bcf95897a6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): crates/crab-cache/src/local_cache.rs:1092-1106 | crates/crab-cache/src/local_cache.rs:1108-1121 \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/crab-cache/src/local_cache.rs"},"region":{"startLine":1092}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3e044dfd7461267a14244e207fb1dd39749ab957f0265be76a64b3ab89decfe"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): crates/crab-cache/src/local_cache.rs:1266-1276 | crates/crab-cache/src/local_cache.rs:1283-1294 \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/crab-cache/src/local_cache.rs"},"region":{"startLine":1266}}}],"partialFingerprints":{"codehealthFindingId/v1":"24f703a07881f9c5ba0e5c9e7ed150d5e2bd4325ee771fd83be7e18e631856a4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): crates/crab-http-server/src/cells/router.rs:452-462 | crates/crab-http-server/src/cells/router/replicas.rs:159-171 \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/crab-http-server/src/cells/router.rs"},"region":{"startLine":452}}}],"partialFingerprints":{"codehealthFindingId/v1":"edb4aa3b080372d8aef55e243fa5b539ce33363f9793440a9d92865de481eabc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): crates/crab-metadata/src/bloom_prefilter.rs:98-111 | crates/crab-metadata/src/bloom_prefilter.rs:126-137 \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/crab-metadata/src/bloom_prefilter.rs"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d7be73bd477f85057bb6e5954c08ab192c0974bfed0d9f9bc1cdb7e14f1667c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): crates/crab-sdk/src/mutation.rs:207-220 | crates/crab-sdk/src/mutation.rs:228-241 \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/crab-sdk/src/mutation.rs"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8b07203a86bb6419d549b6df4ae9ff9ec61839aeff65a8e78e5337d5921c2e2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): crab/src/cmd/lfs/hooks.rs:218-233 | crab/src/cmd/lfs/hooks.rs:236-245 \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":"crab/src/cmd/lfs/hooks.rs"},"region":{"startLine":218}}}],"partialFingerprints":{"codehealthFindingId/v1":"41c06e5863bc06223f441ab20d4e926dd70ba05722aa0f4891b79f718994d664"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 9\u002B corresponding lines): crab/src/cmd/lfs/merge_driver.rs:311-320 | crab/src/cmd/replica.rs:3413-3421 | crab/src/cmd/replica.rs:10128-10137 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 9 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/cmd/lfs/merge_driver.rs"},"region":{"startLine":311}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ab1d7ade4c07c4f96de11d6c564b73c7de7d30455ff7ca131c641f268f3931f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): crab/src/core/config_resolver.rs:195-203 | crab/src/lfs/config.rs:355-364 \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":"crab/src/core/config_resolver.rs"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"334e49d7f170fdb0e24ef09f7b6c7b0b7429185c064bff8d70629421318268a0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 9\u002B corresponding lines): crab/src/core/error/read_failure.rs:154-163 | crab/src/core/error/read_failure.rs:165-173 | crab/src/core/error/read_failure.rs:175-183 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 9 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/core/error/read_failure.rs"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1c2406a8a1fb4344fe6277e9381e0a4fb84c452dd8548e59ccf5b6ab90dff11"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): crates/crab-cache-server/src/cache_store.rs:214-223 | crates/crab-cache-server/src/metrics.rs:64-72 \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/crab-cache-server/src/cache_store.rs"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"b869c189c6326be3b02b8f9c84964a256567222f16898e6ca9aabf41c3c4b82a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): crates/crab-cache-server/src/db.rs:121-136 | crates/crab-vfs/src/snapshot.rs:494-503 \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/crab-cache-server/src/db.rs"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2adaec307bd2b10d768c5d30d4877a501d160e25cb579d5df53517dfe4717cf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): crates/crab-cache/src/local_cache/xorb_file.rs:24-32 | crates/crab-cache/src/local_cache/xorb_file.rs:39-49 \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/crab-cache/src/local_cache/xorb_file.rs"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9ad93f4d254a8322dca606cca1165af9c9591999d0d19c0f721cdff5ede6cb4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): crates/crab-http-server/src/app.rs:435-443 | crates/crab-http-server/src/contents.rs:676-687 \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/crab-http-server/src/app.rs"},"region":{"startLine":435}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2c397826c1e51a8604a8c4f83c0e53f1a0ba4135e537d400f8664c04e675e3d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 10\u002B corresponding lines): crates/crab-http-server/src/cells/repository.rs:1022-1033 | crates/crab-http-server/src/cells/repository.rs:1195-1208 | crates/crab-http-server/src/cells/repository/checks.rs:698-707 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 10 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-http-server/src/cells/repository.rs"},"region":{"startLine":1022}}}],"partialFingerprints":{"codehealthFindingId/v1":"79b03e7d4182ba1683542cc114461899d66912c59777e1dfb1bd79905c85e021"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): crates/crab-metadata/src/git_object_locator/reader.rs:1161-1170 | crates/crab-metadata/src/git_object_locator/writer.rs:1770-1779 \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/crab-metadata/src/git_object_locator/reader.rs"},"region":{"startLine":1161}}}],"partialFingerprints":{"codehealthFindingId/v1":"89bd886dcdfc6d20ce6600c8df97c81a38ca4533d298f1637f2ef76332c403ed"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): crates/crab-staging/src/lib.rs:335-341 | crates/crab-workflow/src/scheduler_lock.rs:245-250 \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/crab-staging/src/lib.rs"},"region":{"startLine":335}}}],"partialFingerprints":{"codehealthFindingId/v1":"c11c9958c2b768291deaf24582748851c008f81171ef589a3e2624ad98a8b52d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 8\u002B corresponding lines): crab/src/cmd/fsck_store.rs:358-365 | crab/src/cmd/status_workflow.rs:815-822 | crab/src/git/push.rs:18491-18498 \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":"crab/src/cmd/fsck_store.rs"},"region":{"startLine":358}}}],"partialFingerprints":{"codehealthFindingId/v1":"806bd78d5e372739e8cec72b5fc5c62eaeccab5a43a1f75cae764b18d1cb545e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): crab/src/core/project_config.rs:153-165 | crab/src/replication/mod.rs:9526-9538 \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":"crab/src/core/project_config.rs"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6e0ecbcc1435520d7288d4ae6869d15439feaa37e2393267a2f44cf9d685afb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): crab/src/lfs/migrate.rs:2757-2762 | crab/src/lfs/migrate.rs:2764-2771 \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":"crab/src/lfs/migrate.rs"},"region":{"startLine":2757}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3d5e1f676910326f68e3f429231666b1e2efb10622dcbb47534e13f925b7837"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 14\u002B corresponding lines): crates/crab-cache/src/cache_client.rs:676-689 | crates/crab-cache/src/cache_client.rs:692-705 | crates/crab-cache/src/cache_client.rs:708-721 \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/crab-cache/src/cache_client.rs"},"region":{"startLine":676}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1f00edec64bd30531060e55a369c768490fa12831003a38861ea5356e6dbf8f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): crates/crab-coordination/src/active_active.rs:495-507 | crates/crab-coordination/src/write_coordinator.rs:2372-2382 \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/crab-coordination/src/active_active.rs"},"region":{"startLine":495}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb389c00699778ac8f6cc63a5fd38f8536ea8a8b9a5d8a4ed8a434ba8a0c6fb2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 10\u002B corresponding lines): crates/crab-http-server/src/checks.rs:149-162 | crates/crab-http-server/src/labels.rs:59-68 | crates/crab-http-server/src/statuses.rs:68-77 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 10 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-http-server/src/checks.rs"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"17c34e05550cfe5c80b08a7312558a5ca7ca7a9c52d82dffab0d30b0ded874f3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 7\u002B corresponding lines): crab/src/cmd/exp_queue.rs:1286-1292 | crab/src/cmd/migrate.rs:278-284 | crates/crab-vfs/src/hydration.rs:1425-1431 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 7 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/cmd/exp_queue.rs"},"region":{"startLine":1286}}}],"partialFingerprints":{"codehealthFindingId/v1":"953d8c2df163ace6b8361ea0b3efa65971dbec30400ff41975b594879bf1be57"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): crab/src/git/push.rs:274-286 | crates/crab-auth-server/src/receive.rs:473-485 \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":"crab/src/git/push.rs"},"region":{"startLine":274}}}],"partialFingerprints":{"codehealthFindingId/v1":"8445456fa11fbc18cf069fb139f1879aa73590d5e33f5d43b599302c4c927d4c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): crates/crab-vfs/src/resolver.rs:437-448 | crates/crab-vfs/src/overlay.rs:1600-1610 \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/crab-vfs/src/resolver.rs"},"region":{"startLine":437}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ba5ee6862106dc51a04430db9166c0b56483fb845345f276a39df070b264fa4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): crab/src/cmd/mirror/reconcile.rs:471-476 | crates/crab-metadata/src/manifest_store.rs:73-77 \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":"crab/src/cmd/mirror/reconcile.rs"},"region":{"startLine":471}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d3a08ac16c7706c38b8cc5ad7b3adc64de1b5400e27c6f2f2bcb9a2937ea59c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): crab/src/git/filter_process.rs:1874-1880 | crab/src/git/filter_process.rs:1888-1897 \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":"crab/src/git/filter_process.rs"},"region":{"startLine":1874}}}],"partialFingerprints":{"codehealthFindingId/v1":"945bc9bf1dcc595ed069bcf369b8463a2874886245e79b352c6c7dcf30dd0b9f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): crates/crab-auth/src/token_cache.rs:494-505 | crab/src/import/journal.rs:1367-1377 \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/crab-auth/src/token_cache.rs"},"region":{"startLine":494}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a912d60a7caf29661027d859a00a107ef4fcbcfe86ecbcb08b21a9d18ee3c82"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): crates/crab-lfs/src/object_store.rs:729-735 | crates/crab-metadata/src/ref_journal.rs:1005-1014 \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/crab-lfs/src/object_store.rs"},"region":{"startLine":729}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8e77c67c098366cc0734caf147a85c973e922b07a9225dc9dc9ce78f0beceeb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 18\u002B corresponding lines): crates/crab-vfs/src/ipc_server.rs:154-171 | crates/crab-vfs/src/ipc_server.rs:174-191 | crates/crab-vfs/src/ipc_server.rs:194-211 | crates/crab-vfs/src/ipc_server.rs:214-231 | crates/crab-vfs/src/ipc_server.rs:234-251 \u2014 These 5 members are one piece of code written 5 times and then edited apart: every two of them correspond over at least 18 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/crab-vfs/src/ipc_server.rs"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"68db43fe421562632fe7daa3ea847536ccea41220657e623a99ab3f282575f73"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 10\u002B corresponding lines): crates/crab-workflow/src/template/foreach.rs:261-272 | crates/crab-workflow/src/template/foreach.rs:279-289 | crates/crab-workflow/src/template/matrix.rs:279-289 | crates/crab-workflow/src/template/matrix.rs:296-306 | crates/crab-workflow/src/yaml.rs:1003-1012 \u2014 These 5 members are one piece of code written 5 times and then edited apart: every two of them correspond over at least 10 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 5 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-workflow/src/template/foreach.rs"},"region":{"startLine":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"058b6600d32e1320d2e3f4f1ea5516b94d29eb814bb2e41df8a08de44cd121f5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): crab/scripts/nfs-evidence-summary.py:625-634 | crab/scripts/nfs-read-path-bench-report.py:76-84 \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":"crab/scripts/nfs-evidence-summary.py"},"region":{"startLine":625}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fd9d31907f1b3dfd071d9f1ab63d025b4691624be2698c1aed1495ad316deaa"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): crab/src/storage/head_class.rs:315-327 | crab/src/tier/provider/gcs.rs:195-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":"crab/src/storage/head_class.rs"},"region":{"startLine":315}}}],"partialFingerprints":{"codehealthFindingId/v1":"edb09f4db23b28c5b80a8c4f228bed70c4460931a0a6caa3e5c27338aa4e29a9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): crates/crab-auth/src/managed/client.rs:39-47 | crates/crab-auth/src/managed/transfer.rs:21-27 \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/crab-auth/src/managed/client.rs"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3ef34ea2beb76c660b67fdc5d729e68f8bf54966ab1b9c63a2320cd663cdada"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): crates/crab-lfs/src/read_session.rs:20-31 | crates/crab-sdk/src/runtime.rs:132-143 \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/crab-lfs/src/read_session.rs"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"a94b989a316fecd1fb83cb5a9f7cba04830c6143bf93110ae4e64740eaca05a5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): crates/crab-metadata/src/file_index_lookup.rs:635-650 | crates/crab-metadata/src/git_object_locator/reader.rs:870-881 \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/crab-metadata/src/file_index_lookup.rs"},"region":{"startLine":635}}}],"partialFingerprints":{"codehealthFindingId/v1":"a133f39952aa8df7157d36adf4f29ccb4fc7e3200f40e2b42a2abee6c5b08693"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): crates/crab-http-server/src/cells/repository/checks_codec.rs:161-167 | crates/crab-http-server/src/cells/repository/codec.rs:182-188 \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/crab-http-server/src/cells/repository/checks_codec.rs"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"62328b209590b1bfc1871e74dcb64a1aa1d9093b26849886f11e1eb59d6d6aa6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): crates/crab-sdk/src/store_options/azure.rs:61-74 | crates/crab-sdk/src/store_options.rs:62-73 \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/crab-sdk/src/store_options/azure.rs"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"0da1544ea916d9e59e08d8ab38d3c1da6d7e34a2e02008866473441f449237aa"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 8\u002B corresponding lines): crab/src/cmd/history_recovery.rs:1072-1079 | crates/crab-metadata/src/path_state/storage.rs:292-299 | crates/crab-metadata/src/segmented_store.rs:21-28 \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":"crab/src/cmd/history_recovery.rs"},"region":{"startLine":1072}}}],"partialFingerprints":{"codehealthFindingId/v1":"8629174ac3c0c906df0544b2109015b601c32721b43b704c103e0d719ad255e2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): crab/src/replication/mod.rs:4913-4928 | crates/crab-coordination/src/dynamodb_coordinator.rs:768-779 \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":"crab/src/replication/mod.rs"},"region":{"startLine":4913}}}],"partialFingerprints":{"codehealthFindingId/v1":"44d7cc3441fdec5a9a5af28887e41507df9657dcbd2a164e42ae2416fba0ac9e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 10\u002B corresponding lines): crates/crab-auth-server/src/receive.rs:276-288 | crates/crab-http-server/src/cells/repository/releases.rs:879-891 | crates/crab-metadata/src/git_visibility.rs:1459-1468 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 10 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-auth-server/src/receive.rs"},"region":{"startLine":276}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e4cf2ce9a7bfbb68780940cce882238f65b4bf690fa20dadf03dc0a424b299a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): crates/crab-auth/src/protected_push.rs:39-47 | crates/crab-auth/src/credential_response.rs:28-35 \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/crab-auth/src/protected_push.rs"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"d95edeaafc146e2fdc079c309f3cb7ee982e1804854e45d4dbce59532a43b3ee"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): crates/crab-http-server/src/cells/repository/codec.rs:439-449 | crates/crab-http-server/src/cells/repository/checks_codec.rs:181-190 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-http-server/src/cells/repository/codec.rs"},"region":{"startLine":439}}}],"partialFingerprints":{"codehealthFindingId/v1":"877b56e14001af4406c48335ef84ff16b2f606ab1b49c63a79674bcd61de20af"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): crates/crab-http-server/src/pulls/storage.rs:692-699 | crates/crab-http-server/src/pulls/merge.rs:79-88 \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/crab-http-server/src/pulls/storage.rs"},"region":{"startLine":692}}}],"partialFingerprints":{"codehealthFindingId/v1":"80e33a2c8e89d87be1dc3e3a8b0449d18e70486af8b8a5bf8e1cabfc3c4d1b4f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 8\u002B corresponding lines): crates/crab-http-server/src/cells/repository/checks_codec.rs:303-313 | crates/crab-http-server/src/cells/repository/codec.rs:645-655 | crates/crab-http-server/src/cells/repository/settings_codec.rs:91-98 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 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/crab-http-server/src/cells/repository/checks_codec.rs"},"region":{"startLine":303}}}],"partialFingerprints":{"codehealthFindingId/v1":"2aa246efb2e1b7df58fcc09a8fa88bba88e636966ab9e2beeae97b08f3224725"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 12\u002B corresponding lines): crates/crab-coordination/src/cosmosdb_coordinator.rs:608-619 | crates/crab-coordination/src/dynamodb_coordinator.rs:877-888 | crates/crab-coordination/src/spanner_coordinator.rs:910-921 | crates/crab-coordination/src/write_coordinator.rs:411-423 \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/crab-coordination/src/cosmosdb_coordinator.rs"},"region":{"startLine":608}}}],"partialFingerprints":{"codehealthFindingId/v1":"79f1f4ff0c31bb2bc7d6bfb4f76dbd391e34bdcf0fa96902123db00fc96c1294"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 8\u002B corresponding lines): crates/crab-http-server/src/app.rs:461-468 | crates/crab-http-server/src/cells/repository/checks.rs:709-716 | crates/crab-http-server/src/checks.rs:175-182 \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/crab-http-server/src/app.rs"},"region":{"startLine":461}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fc25cda379ec0bd236b66fa35f641ba6630ced6091bda9a20bed94f00bf1e30"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): crates/crab-http-server/deploy/cell-issue-fleet/qualify_reader_retention.py:19-24 | crates/crab-http-server/deploy/cell-issue-fleet/qualify.py:207-229 \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/crab-http-server/deploy/cell-issue-fleet/qualify_reader_retention.py"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d3ef1a96b64a6340462244b6ef2867c51e808ea58fc76238454f153e83ad712"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): crab/src/cmd/history_recovery.rs:141-148 | crab/src/cmd/release.rs:201-208 \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":"crab/src/cmd/history_recovery.rs"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"5111218653815ca9b66248ea5fc5123df53e7049b5d9a0cbcd58f58db60d2dce"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): crates/crab-cache-server/src/server.rs:331-336 | crates/crab-http-server/src/peer_tls.rs:473-478 \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/crab-cache-server/src/server.rs"},"region":{"startLine":331}}}],"partialFingerprints":{"codehealthFindingId/v1":"4054d3e62ab43f321dcb61358707754698aa8b089f022f0fe793372761ff702a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): crates/crab-coordination/src/gc_fence.rs:782-790 | crates/crab-coordination/src/push_admission.rs:529-537 \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/crab-coordination/src/gc_fence.rs"},"region":{"startLine":782}}}],"partialFingerprints":{"codehealthFindingId/v1":"105a8952ca0bf38fa2aef146fdfeb6c3ed1a36e378eb6a9d8d6ed8a53185ff6b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): crates/crab-cache-server/src/chunk_index.rs:215-221 | crates/crab-vfs/src/overlay.rs:253-259 \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/crab-cache-server/src/chunk_index.rs"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"47f2fba4c90bec1164a8387efe17dca33dd77712e02a86d27ccf0e32c3d1988e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): crates/crab-coordination/src/dynamodb_coordinator.rs:396-403 | crates/crab-coordination/src/write_coordinator.rs:1837-1844 \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/crab-coordination/src/dynamodb_coordinator.rs"},"region":{"startLine":396}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfe9454c13a221b3b5a19c0173dfd6db55fc6994051f4d62c691491e98e4f6d7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): crates/crab-remote-git/src/budget.rs:240-249 | crates/crab-storage/src/transport_read_admission.rs:77-86 \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/crab-remote-git/src/budget.rs"},"region":{"startLine":240}}}],"partialFingerprints":{"codehealthFindingId/v1":"3eeba18495afee81eac12ae4b808d8769563a60729096b6500b3bef001d4fc99"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): crates/crab-vfs/src/nfs.rs:630-635 | crates/crab-vfs/src/read_lease_pool.rs:225-230 \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/crab-vfs/src/nfs.rs"},"region":{"startLine":630}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fc4ed674de0767b23f96e3c4d2068bb5a27e60620392daef5c69f9f76385fb1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): crab/src/replication/mod.rs:1800-1806 | crates/crab-coordination/src/write_coordinator.rs:330-336 \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":"crab/src/replication/mod.rs"},"region":{"startLine":1800}}}],"partialFingerprints":{"codehealthFindingId/v1":"74b4409488848627e142c2f9e22eaa9128eaa239bddd6c920f5d3ddddb937740"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): crab/src/replication/mod.rs:1882-1888 | crates/crab-coordination/src/write_coordinator.rs:367-373 \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":"crab/src/replication/mod.rs"},"region":{"startLine":1882}}}],"partialFingerprints":{"codehealthFindingId/v1":"607013b4baec8accb19bd4c6c0a83d46b0bfe5093e69a9555e9050090e1ab7bd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): crates/crab-http-server/src/cells/repository.rs:865-872 | crates/crab-http-server/src/cells/repository/projection.rs:1097-1104 \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/crab-http-server/src/cells/repository.rs"},"region":{"startLine":865}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ae458cbcde970298fd14baad7b8a532f91538f3c459fb4083b461a3f410ba62"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): crates/crab-sdk/src/archive.rs:44-53 | crates/crab-sdk/src/content.rs:37-43 \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/crab-sdk/src/archive.rs"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bb0d58fab2db5a8fe847bd526af0feda76fb820d9a9ea9ac37e5315712a7245"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): crab/deploy/auth-service/src/providers/azure.py:30-39 | crab/deploy/auth-service/src/providers/gcp.py:37-41 \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":"crab/deploy/auth-service/src/providers/azure.py"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"23b136bf5c44afcad1484c0669007937770861f857c605662b6571b7fe69984c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 5\u002B corresponding lines): crab/src/cmd/fetch.rs:54-58 | crab/src/cmd/lfs/store_setup.rs:237-242 | crab/src/cmd/optimize.rs:267-271 | crab/src/cmd/workflow.rs:64-69 \u2014 These 4 members are one piece of code written 4 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 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/cmd/fetch.rs"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"b16b786451aa5f1f34ad74f3883f67b2c335c3475fc8f9d3d43ed7841f091c58"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): crab/src/git/incremental_walk.rs:534-541 | crab/src/git/pack_native.rs:186-194 \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":"crab/src/git/incremental_walk.rs"},"region":{"startLine":534}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1391e37eba5a65bfcaacf649c322f703bcdf165b2e8d8a80e6f107382551d1c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 6\u002B corresponding lines): crates/crab-auth-server/src/receive.rs:956-961 | crates/crab-auth/src/protected_push.rs:259-264 | crates/crab-metadata/src/validation.rs:18-26 \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/crab-auth-server/src/receive.rs"},"region":{"startLine":956}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9d239c0d55eb8be73d274a6b5cab9e4067aea981df8d17bd45c7edf5d575a32"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): crates/crab-auth-server/src/receive/workflow.rs:116-120 | crates/crab-metadata/src/plan_receipt.rs:667-672 \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/crab-auth-server/src/receive/workflow.rs"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"b78b76e76403c7ae4e7a7beb9cf8bc5671ff4741d8b73381e3155953187a186d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): crates/crab-coordination/src/active_active.rs:509-519 | crates/crab-http-server/src/cells/repository.rs:813-823 \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/crab-coordination/src/active_active.rs"},"region":{"startLine":509}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1ddbac434481a2fcd7465ec998dbd435203bdac27bfbb5a12cdd607a5f53b07"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): crates/crab-http-server/src/pulls/review_thread_storage.rs:377-386 | crates/crab-http-server/src/pulls/storage.rs:788-797 \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/crab-http-server/src/pulls/review_thread_storage.rs"},"region":{"startLine":377}}}],"partialFingerprints":{"codehealthFindingId/v1":"11c849411d524059423db7b6796f0eae212e0b568f7d0a557a40766b26cc7579"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): crates/crab-sdk/src/local.rs:483-488 | crates/crab-sdk/src/managed.rs:265-272 \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/crab-sdk/src/local.rs"},"region":{"startLine":483}}}],"partialFingerprints":{"codehealthFindingId/v1":"386af4ca2a4acefbdac9dd61f0ace789538cd04715f65ef8addc590733a0b125"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 11\u002B corresponding lines): crab/src/cmd/clone.rs:612-624 | crab/src/cmd/mount.rs:2076-2086 | crab/src/git/remote_helper.rs:1919-1932 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 11 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/cmd/clone.rs"},"region":{"startLine":612}}}],"partialFingerprints":{"codehealthFindingId/v1":"639b45d574e013386d9927b88054fd8a03753e68e1339492597acfcb98ef55b8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): crab/src/cmd/fsck_store.rs:1077-1083 | crates/crab-storage/src/store.rs:2797-2803 \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":"crab/src/cmd/fsck_store.rs"},"region":{"startLine":1077}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3f006e96f9e32bda7cc7cc66a80f1a4d1cb9a3a84a260d0c5c54d05e0e2ce8d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): crab/src/cmd/history_recovery.rs:1257-1263 | crab/src/cmd/repack.rs:1042-1048 \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":"crab/src/cmd/history_recovery.rs"},"region":{"startLine":1257}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ba8c4256d974396ea908b97817ba662cab99cd805a8b48a39871ff23878aa11"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): crab/src/cmd/repack.rs:897-907 | crates/crab-cache/src/local_cache/maintenance.rs:341-347 \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":"crab/src/cmd/repack.rs"},"region":{"startLine":897}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e105230fc0d58a2b48b2bcd201976b4c995cfc692773ae8e9ac1fb919d4076b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): crab/src/replication/mod.rs:3901-3911 | crates/crab-cache-server/src/evidence.rs:1838-1845 \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":"crab/src/replication/mod.rs"},"region":{"startLine":3901}}}],"partialFingerprints":{"codehealthFindingId/v1":"9219d6f503e3d7c1f2117aac29fd87d2b0d208982a9fa9150d7feb8e3c16d576"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): crab/scripts/check-architecture-gates.py:2077-2080 | crab/scripts/release/check-install-layout.py:53-57 \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":"crab/scripts/check-architecture-gates.py"},"region":{"startLine":2077}}}],"partialFingerprints":{"codehealthFindingId/v1":"72feac65d589e4dcb6cda8e0bb47313d64a0f99c949f6f74c3cd3fecf4b9e105"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): crab/src/cmd/add.rs:4070-4076 | crates/crab-vfs/src/publish.rs:1664-1668 \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":"crab/src/cmd/add.rs"},"region":{"startLine":4070}}}],"partialFingerprints":{"codehealthFindingId/v1":"71353079e1aafddb1b3e9717e6c1c03d3d8c8f82248a4b1408a4ebebf5451a37"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): crates/crab-coordination/src/cosmosdb_coordinator.rs:135-140 | crates/crab-coordination/src/spanner_coordinator.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/crab-coordination/src/cosmosdb_coordinator.rs"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"34e56eb1a834804fbaadb947783c92da356f91e00fd7a91c744928df75556786"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): crates/crab-coordination/src/gc_fence.rs:801-809 | crates/crab-coordination/src/push_lock.rs:1220-1228 \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/crab-coordination/src/gc_fence.rs"},"region":{"startLine":801}}}],"partialFingerprints":{"codehealthFindingId/v1":"143a1bf639d7f7175c867572c16f6e0e67e368681acccbaf059979eb017b9b72"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): crates/crab-http-server/src/cells/repository.rs:874-881 | crates/crab-http-server/src/cells/repository/projection.rs:1115-1122 \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/crab-http-server/src/cells/repository.rs"},"region":{"startLine":874}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d075491552f5f95271e86c56ca9bc6e0334956c29f725b5b7c1735bfa52a2f7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 6\u002B corresponding lines): crab/src/cmd/mount.rs:2698-2703 | crates/crab-vfs/src/coordinator.rs:1025-1030 | crates/crab-vfs/src/mount.rs:81-86 \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":"crab/src/cmd/mount.rs"},"region":{"startLine":2698}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba218523234007d7d7490681f91a22a87c3dfcc063874ec10f88118fc5aa2ef9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): crab/src/import/journal.rs:1358-1365 | crab/src/optimize/xorbs/journal.rs:234-243 \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":"crab/src/import/journal.rs"},"region":{"startLine":1358}}}],"partialFingerprints":{"codehealthFindingId/v1":"6207fa939e2417b45bee4fc4257856f4400fa236e64a0140dfd171dc33bf0eaa"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): crates/crab-http-server/src/cells/repository/projection.rs:906-914 | crates/crab-http-server/src/cells/repository/pull_review_threads.rs:1349-1357 \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/crab-http-server/src/cells/repository/projection.rs"},"region":{"startLine":906}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7a8e672e4ae30014b57370e545cb1223f60335b3e8ffd808e80f6731c5419f8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): crates/crab-metadata/src/file_index_lookup.rs:82-89 | crates/crab-storage/src/store.rs:2827-2835 \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/crab-metadata/src/file_index_lookup.rs"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"5caf277baf0503ed78f7706133200b075fef761145055594d6d44fbef1c7daf4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): crates/crab-metadata/src/git_visibility.rs:1452-1457 | crates/crab-metadata/src/ref_journal.rs:1174-1182 \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/crab-metadata/src/git_visibility.rs"},"region":{"startLine":1452}}}],"partialFingerprints":{"codehealthFindingId/v1":"34110d80113acb8328808ef36fee4b48595d6d1f140ea22aee29593378cd2ca8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 8\u002B corresponding lines): crab/src/cmd/metadb.rs:1563-1570 | crates/crab-workflow/src/executor.rs:1863-1872 | crates/crab-workflow/src/lockfile.rs:736-744 \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":"crab/src/cmd/metadb.rs"},"region":{"startLine":1563}}}],"partialFingerprints":{"codehealthFindingId/v1":"084b73a6090d742105409886d7a8f0b6965459ecfff7ed419f81ff88722832ad"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): crates/crab-auth/src/protected_push.rs:242-247 | crates/crab-cache/src/clean.rs:111-116 \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/crab-auth/src/protected_push.rs"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6da0961eb4ca98320f15b7329c582ce62adba77d48f728192e8a99196102362"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): crates/crab-cache/src/private_fs.rs:622-625 | crates/crab-cache/src/private_fs/windows.rs:214-218 \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/crab-cache/src/private_fs.rs"},"region":{"startLine":622}}}],"partialFingerprints":{"codehealthFindingId/v1":"04c9b12c8d49574966c26d7ead4369487b539f89e273c7cf92f35a0bd693bb7d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): crates/crab-http-server/src/cells/repository/checks_codec.rs:285-291 | crates/crab-http-server/src/cells/repository/codec.rs:665-671 \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/crab-http-server/src/cells/repository/checks_codec.rs"},"region":{"startLine":285}}}],"partialFingerprints":{"codehealthFindingId/v1":"970accc207d092aaf1653dbc17fdb773c5605d88230533c3e86b32e91503cab7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): crates/crab-sdk/src/client/mutation/native_content.rs:380-387 | crates/crab-sdk/src/local/push/content.rs:249-256 \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/crab-sdk/src/client/mutation/native_content.rs"},"region":{"startLine":380}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdd45bd173689b22dcbd3b4c78075cc52d8c6f2c44d987eb4fec3bae2bb3d831"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 8\u002B corresponding lines): crab/src/lfs/prune.rs:577-585 | crates/crab-auth-server/src/receive/git_workspace.rs:1230-1237 | crates/crab-workflow/src/template/context.rs:299-306 \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":"crab/src/lfs/prune.rs"},"region":{"startLine":577}}}],"partialFingerprints":{"codehealthFindingId/v1":"1039b5b7866459025eee168d1dd443b03db2233fd94a401ba62fed1495a78b27"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 6\u002B corresponding lines): crates/crab-http-server/src/contents.rs:759-764 | crates/crab-http-server/src/pulls/merge.rs:45-50 | crates/crab-http-server/src/statuses.rs:87-94 \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/crab-http-server/src/contents.rs"},"region":{"startLine":759}}}],"partialFingerprints":{"codehealthFindingId/v1":"aadc0613d93bcb6b6841a5dff1aa2ed447dbb6205165b0ecc3e517928d8a771e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): crab/scripts/qualify_sdk.py:375-378 | crab/scripts/verify-sdk-read-only.py:39-42 \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":"crab/scripts/qualify_sdk.py"},"region":{"startLine":375}}}],"partialFingerprints":{"codehealthFindingId/v1":"062d118e3b54ac7cd5079ba85e1e44eae8cf917eb3323cd4ad94ea2569513450"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): crab/src/cmd/optimize.rs:726-736 | crab/src/cmd/replica.rs:10386-10394 \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":"crab/src/cmd/optimize.rs"},"region":{"startLine":726}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a2451b6866b65244b7c3a7ee82813055bd0fdc7bb4d2c7745125b4c9c4ca46c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): crab/src/import/assemble.rs:65-73 | crab/src/import/coordinator.rs:1377-1385 \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":"crab/src/import/assemble.rs"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ee1725df8fa5e6f8f5607f9d9cb2325687cd426d99eca6956adabae5bc36a0b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): crates/crab-sdk/src/local.rs:318-323 | crates/crab-sdk/src/local/edit.rs:492-497 \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/crab-sdk/src/local.rs"},"region":{"startLine":318}}}],"partialFingerprints":{"codehealthFindingId/v1":"e58f099a6b8a61a5320adbc3484e80845cd88fd97e1732fba123a42834e68460"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): crab/src/cmd/stage/list.rs:266-271 | crates/crab-workflow/src/params_runtime.rs:212-218 \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":"crab/src/cmd/stage/list.rs"},"region":{"startLine":266}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c3b93c84e99d1fa84b6d828b68b61e0fe913fc4517dcee6c81d9e788801a518"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): crab/src/git/push.rs:1405-1408 | crates/crab-xet/src/reconstruction.rs:34-37 \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":"crab/src/git/push.rs"},"region":{"startLine":1405}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b7517a5eb87ef26753a9bc7dec8b66ec16d4e1a50800bb34e014cfa17233f02"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): crab/src/cmd/lfs/dedup.rs:493-499 | crab/src/lfs/batch.rs:360-367 \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":"crab/src/cmd/lfs/dedup.rs"},"region":{"startLine":493}}}],"partialFingerprints":{"codehealthFindingId/v1":"d35390929e51944eee74fc0408ecb21b71255547e28310ecd8e1b291fa0c1b1a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): crates/crab-cache-server/src/evidence.rs:1793-1798 | crates/crab-workflow/src/executor.rs:2629-2634 \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/crab-cache-server/src/evidence.rs"},"region":{"startLine":1793}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc06674b2bf2e54a4265b5e08d1c37f95cc6a00e42850d02d1eac33859822d3c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): crates/crab-vfs/src/mounts_registry.rs:156-160 | crates/crab-workflow/src/artifact.rs:1711-1714 \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/crab-vfs/src/mounts_registry.rs"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b2b1ea1a574076d8c6ea9c5f25ff939b85d6acfe7ad3efbf08796b774f42e44"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 3\u002B corresponding lines): crab/src/cmd/lfs/dedup.rs:1077-1079 | crab/src/lfs/discovery.rs:80-82 | crates/crab-git/src/pre_push.rs:95-97 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 3 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/cmd/lfs/dedup.rs"},"region":{"startLine":1077}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8083c9894a19c40a8a962bf021e9fb8bc3fb8024d8e90559ffa57041e8cce71"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): crates/crab-http-server/src/cells/repository.rs:830-834 | crates/crab-http-server/src/cells/repository/projection.rs:1069-1073 \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/crab-http-server/src/cells/repository.rs"},"region":{"startLine":830}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c507d7883d016048deac66fd99e3b4ed21934ebd5ad36538d834545aabe5feb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): crates/crab-vfs/src/engine.rs:2378-2382 | crates/crab-workflow/src/stage_runtime.rs:421-427 \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/crab-vfs/src/engine.rs"},"region":{"startLine":2378}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2ca82b961834718a1acbebd42321c3b1545987c32a1b802ca29f437188a8ce8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): crab/scripts/qualify_sdk.py:381-384 | crab/scripts/verify-sdk-read-only.py:45-48 \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":"crab/scripts/qualify_sdk.py"},"region":{"startLine":381}}}],"partialFingerprints":{"codehealthFindingId/v1":"6340f3fa2ac592783a6a94818100c254b315f98e73c0a358e885922879ca5102"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): crab/src/cmd/metrics.rs:1112-1119 | crates/crab-workflow/src/sandbox.rs:235-242 \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":"crab/src/cmd/metrics.rs"},"region":{"startLine":1112}}}],"partialFingerprints":{"codehealthFindingId/v1":"b24010f325e53ab066511d6dbcbe836fbdbc81a9000b2b3951cb75ad68e3417e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 5\u002B corresponding lines): crates/crab-http-server/src/cells/repository/pull_review_threads_codec.rs:14-18 | crates/crab-http-server/src/cells/repository/pulls_codec.rs:15-19 | crates/crab-http-server/src/cells/repository/releases_codec.rs:14-18 \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/crab-http-server/src/cells/repository/pull_review_threads_codec.rs"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"af8e919281826a30ed489b700fe42f4fc670a565a0d793d9bc7915ceb81ca49e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): crab/scripts/check-architecture-gates.py:2066-2073 | crab/scripts/release/check-install-layout.py:42-49 \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":"crab/scripts/check-architecture-gates.py"},"region":{"startLine":2066}}}],"partialFingerprints":{"codehealthFindingId/v1":"72228ce63da618fee62b1c358c926ac619a48ad0f61722d2c2e68f816593dc9f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 8\u002B corresponding lines): crab/src/cmd/exp.rs:5099-5107 | crates/crab-workflow/src/artifact.rs:1608-1615 | crates/crab-workflow/src/dvc_migration.rs:553-560 \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":"crab/src/cmd/exp.rs"},"region":{"startLine":5099}}}],"partialFingerprints":{"codehealthFindingId/v1":"dccb0ce077981c88e50bbe35466a10566400297e40ba961592e743f822aca4a0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): crab/src/cmd/metrics.rs:1203-1208 | crab/src/cmd/replica.rs:3423-3430 \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":"crab/src/cmd/metrics.rs"},"region":{"startLine":1203}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb1f6dd2ce623ae4b263b7bed64057fe2865a9ebc67a3de383f806667fc59689"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 8\u002B corresponding lines): crates/crab-http-server/src/cells/repository/pull_review_threads.rs:1407-1414 | crates/crab-http-server/src/cells/repository/pulls.rs:1467-1474 | crates/crab-http-server/src/cells/repository/releases.rs:922-929 \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/crab-http-server/src/cells/repository/pull_review_threads.rs"},"region":{"startLine":1407}}}],"partialFingerprints":{"codehealthFindingId/v1":"9619657dfdc2fe4a2c6b3359762abf30ae53671dea827f91388fe72034b7e09d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): crates/crab-sdk/src/local.rs:961-964 | crates/crab-sdk/src/local/edit.rs:1350-1353 \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/crab-sdk/src/local.rs"},"region":{"startLine":961}}}],"partialFingerprints":{"codehealthFindingId/v1":"f042b77b28747d874cb3738306cecd3c1a2034ca7805ff360e6418099080a4c2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): crates/crab-sdk/src/local/push.rs:168-172 | crates/crab-sdk/src/mutation.rs:770-774 \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/crab-sdk/src/local/push.rs"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"117f84d32f67b04d508d11e5167f71b11cfaf7fcbde158017963ca2cd803b013"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): crates/crab-workflow/src/exp_worktree.rs:1204-1209 | crates/crab-workflow/src/params.rs:351-357 \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/crab-workflow/src/exp_worktree.rs"},"region":{"startLine":1204}}}],"partialFingerprints":{"codehealthFindingId/v1":"967518f21a550516f6c22b6f068127223391379df82808ebf66aa55a1ab967a7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 4\u002B corresponding lines): crab/deploy/auth-service/src/receive_helper.py:376-379 | crab/deploy/auth-service/src/view_helper.py:156-159 | crab/scripts/verify-provider-qualification-report.py:38-41 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 4 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/deploy/auth-service/src/receive_helper.py"},"region":{"startLine":376}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c3f618157a840c5e5ba33b2b58b24521d80aea684bfa94ac61de87d393fc75f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): crab/src/cmd/gc/mod.rs:766-783 | crab/src/cmd/run.rs:2744-2760 \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":"crab/src/cmd/gc/mod.rs"},"region":{"startLine":766}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7cf9a32c0b20acc218f448b257d008234c7b73f4d8e92ede7d081c068b0359e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): crab/src/cmd/metrics.rs:4121-4126 | crab/src/cmd/params.rs:779-784 \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":"crab/src/cmd/metrics.rs"},"region":{"startLine":4121}}}],"partialFingerprints":{"codehealthFindingId/v1":"a31913215f0f08f2c93d4c923c092993e426423f4d42208483737f0ca8f31ede"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): crab/src/lfs/migrate.rs:374-381 | crates/crab-workflow/src/hydra.rs:698-703 \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":"crab/src/lfs/migrate.rs"},"region":{"startLine":374}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9b8a48d4e2822a876b800f8ffd63c85962abf21b6c9d363a70365c7764a3915"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): crates/crab-remote-git/src/repository.rs:1633-1641 | crates/crab-remote-git/src/snapshot.rs:1300-1308 \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/crab-remote-git/src/repository.rs"},"region":{"startLine":1633}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce5b03a7909e25a0ae5c35bc9e0dc7fbdb710e622cedbad429118ebf284a1e81"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): crates/crab-s3-gateway/src/metrics/filesystem.rs:184-191 | crates/crab-xet/src/xorb/builder.rs:256-261 \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/crab-s3-gateway/src/metrics/filesystem.rs"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd4e6c56abb08b6700921915ae3bff92f32c60ed853d147829af4d36e45b4068"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): crab/src/cmd/mirror.rs:917-921 | crab/src/cmd/recover.rs:1205-1210 \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":"crab/src/cmd/mirror.rs"},"region":{"startLine":917}}}],"partialFingerprints":{"codehealthFindingId/v1":"d56b487de295b18432ddec7b84992139554d2bfe9c3efa0a2ee17bad4e285980"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): crates/crab-http-server/src/cells/repository/checks_codec.rs:279-283 | crates/crab-http-server/src/cells/repository/codec.rs:659-663 \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/crab-http-server/src/cells/repository/checks_codec.rs"},"region":{"startLine":279}}}],"partialFingerprints":{"codehealthFindingId/v1":"517aac68c3f6b3b4e3bb2dc1e1b390e52e3fa6a2a740d40e3bc0154942c5045e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (59 lines \u00D7 2): crates/crab-coordination/src/write_coordinator.rs:774-832 | crates/crab-coordination/src/write_coordinator.rs:1272-1330 \u2014 both copies are in the same file, so extract the block 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/crab-coordination/src/write_coordinator.rs:774\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/crab-coordination/src/write_coordinator.rs"},"region":{"startLine":774}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b0c84bfc7bd79502b44ca9a8b116da472a360258fd5339ff967d06bd586eaaa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (43\u201347 lines \u00D7 2): crates/crab-staging/src/lib.rs:2323-2369 | crates/crab-staging/src/lib.rs:3748-3790 \u2014 both copies are in the same file, so extract the block 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/crab-staging/src/lib.rs"},"region":{"startLine":2323}}}],"partialFingerprints":{"codehealthFindingId/v1":"3aa93fcb5737a970f9410da621b726a7524b06d447db5815ae86e393434af65d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (42 lines \u00D7 2): crab/src/cmd/gc/mod.rs:2098-2139 | crab/src/cmd/gc/mod.rs:2159-2200 \u2014 both copies are in the same file, so extract the block 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 \u0060crab/src/cmd/gc/mod.rs:2098\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":"crab/src/cmd/gc/mod.rs"},"region":{"startLine":2098}}}],"partialFingerprints":{"codehealthFindingId/v1":"3af68342d273eadefc15216791485563c98c96ccef3da8c104b23cde4fdff321"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (39 lines \u00D7 2): crates/crab-workflow/src/exp_worktree.rs:1295-1333 | crates/crab-workflow/src/params.rs:420-458 \u2014 before extracting anything, compare \u0060crates/crab-workflow/src/exp_worktree.rs\u0060 and \u0060crates/crab-workflow/src/params.rs\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 94 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/crab-workflow/src/exp_worktree.rs"},"region":{"startLine":1295}}}],"partialFingerprints":{"codehealthFindingId/v1":"4987d544e791aafa76cf728296e1dd95a35f0582313dff43e45cdcc6d79f1c75"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (38 lines \u00D7 2): crates/crab-remote-git/src/snapshot.rs:312-349 | crates/crab-remote-git/src/snapshot.rs:382-419 \u2014 both copies are in the same file, so extract the block 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/crab-remote-git/src/snapshot.rs:312\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/crab-remote-git/src/snapshot.rs"},"region":{"startLine":312}}}],"partialFingerprints":{"codehealthFindingId/v1":"efa17c7e607182abe22a23a4d6859458585c5548d1d38a9bcac95aca84c60564"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (30\u201337 lines \u00D7 2): crab/src/lfs/migrate.rs:1974-2010 | crab/src/lfs/migrate.rs:2349-2378 \u2014 both copies are in the same file, so extract the block 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 \u0060crab/src/lfs/migrate.rs:1974\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":"crab/src/lfs/migrate.rs"},"region":{"startLine":1974}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ddc8285705c2b151e50c4bc1e811f084cd958734a0eb924fadb4f105943dc11"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (30\u201336 lines \u00D7 2): crab/src/cmd/run.rs:841-870 | crab/src/cmd/run.rs:2904-2939 \u2014 both copies are in the same file, so extract the block 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 \u0060crab/src/cmd/run.rs:2904\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":"crab/src/cmd/run.rs"},"region":{"startLine":841}}}],"partialFingerprints":{"codehealthFindingId/v1":"31021530dc020af37836eabef40f7c5fb28e4ddcff0b04bc24a7487c26448f53"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (30\u201336 lines \u00D7 2): crates/crab-workflow/src/executor.rs:2358-2393 | crates/crab-workflow/src/executor.rs:2543-2572 \u2014 both copies are in the same file, so extract the block 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/crab-workflow/src/executor.rs:2358\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/crab-workflow/src/executor.rs"},"region":{"startLine":2358}}}],"partialFingerprints":{"codehealthFindingId/v1":"30fc1fe84dbe34b6e569c600989caedfb45fb37f63d7e6e052b1d439fcff6310"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27\u201336 lines \u00D7 2): crates/crab-workflow/src/signals.rs:398-433 | crates/crab-workflow/src/signals.rs:509-535 \u2014 both copies are in the same file, so extract the block 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/crab-workflow/src/signals.rs:398\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/crab-workflow/src/signals.rs:508\u0060 calls \u0060ctrl_c\u0060 and \u0060crates/crab-workflow/src/signals.rs:396\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/crab-workflow/src/signals.rs"},"region":{"startLine":398}}}],"partialFingerprints":{"codehealthFindingId/v1":"96e9e4c4757aa031ea579b211e78c62a93f4f908362ba793ee7596e4a4a963e0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29\u201335 lines \u00D7 2): crab/src/cmd/run.rs:1896-1930 | crab/src/cmd/run.rs:1999-2027 \u2014 both copies are in the same file, so extract the block 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 \u0060crab/src/cmd/run.rs:1896\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":"crab/src/cmd/run.rs"},"region":{"startLine":1896}}}],"partialFingerprints":{"codehealthFindingId/v1":"68760b2d380d4f5f0c497dfd0d4aae64fac3f7ba37096f6b682f6dcf72fb6359"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (30\u201334 lines \u00D7 2): crab/src/lfs/migrate.rs:2041-2074 | crab/src/lfs/migrate.rs:2403-2432 \u2014 both copies are in the same file, so extract the block 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 \u0060crab/src/lfs/migrate.rs:2041\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":"crab/src/lfs/migrate.rs"},"region":{"startLine":2041}}}],"partialFingerprints":{"codehealthFindingId/v1":"f03597f08960096f2d41b472644548f701635ddadcad2a35204296b9df3adca5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25\u201333 lines \u00D7 2): crab/src/git/filter_process.rs:1450-1474 | crab/src/git/filter_process.rs:1561-1593 \u2014 both copies are in the same file, so extract the block 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 \u0060crab/src/git/filter_process.rs:1450\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":"crab/src/git/filter_process.rs"},"region":{"startLine":1450}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3f6b9d7615951869a9d4f9e963731f57a93c9788dc03ce3a479b7800bc48ba3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25\u201333 lines \u00D7 2): crab/src/storage/retry.rs:372-404 | crates/crab-storage/src/retry.rs:145-169 \u2014 before extracting anything, compare \u0060crab/src/storage/retry.rs\u0060 and \u0060crates/crab-storage/src/retry.rs\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 49 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crab/src/storage/retry.rs:372\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":"crab/src/storage/retry.rs"},"region":{"startLine":372}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f785066ff30c35a527a7a28828cea36697a283df1a2d7791ee9d20be6d6722d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (32 lines \u00D7 2): crab/src/cmd/add.rs:2359-2390 | crab/src/cmd/add.rs:2439-2470 \u2014 both copies are in the same file, so extract the block 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 \u0060crab/src/cmd/add.rs:2359\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":"crab/src/cmd/add.rs"},"region":{"startLine":2359}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef1ed0c368f9a71f736ad79ee1810eb02c64945d2b60e5d0fd6effd00e7084e6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (30\u201332 lines \u00D7 2): crates/crab-workflow/src/template/foreach.rs:203-234 | crates/crab-workflow/src/template/matrix.rs:227-256 \u2014 before extracting anything, compare \u0060crates/crab-workflow/src/template/foreach.rs\u0060 and \u0060crates/crab-workflow/src/template/matrix.rs\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 106 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. 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/crab-workflow/src/template/foreach.rs"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e7a6789e696bb841bb3264390e4eccc1ce3aa589024ae3d69435ed145a6240d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (31 lines \u00D7 2): crates/crab-metadata/src/segmented_store.rs:170-200 | crates/crab-metadata/src/segmented_store.rs:231-261 \u2014 both copies are in the same file, so extract the block 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/crab-metadata/src/segmented_store.rs:170\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/crab-metadata/src/segmented_store.rs"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc49213f7da3eaa5cd3b781f26ab9365e7ab846b559629c0056d8276fb48955e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29\u201330 lines \u00D7 2): crab/src/cmd/metrics.rs:4091-4119 | crab/src/cmd/params.rs:748-777 \u2014 before extracting anything, compare \u0060crab/src/cmd/metrics.rs\u0060 and \u0060crab/src/cmd/params.rs\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 89 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crab/src/cmd/metrics.rs:4091\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":"crab/src/cmd/metrics.rs"},"region":{"startLine":4091}}}],"partialFingerprints":{"codehealthFindingId/v1":"bcb63b681501e47ab9a10724fd495b80eafbc3967149aa453918a4094803818c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (30 lines \u00D7 2): crates/crab-coordination/src/write_coordinator.rs:951-980 | crates/crab-coordination/src/write_coordinator.rs:1439-1468 \u2014 both copies are in the same file, so extract the block 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/crab-coordination/src/write_coordinator.rs:951\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/crab-coordination/src/write_coordinator.rs"},"region":{"startLine":951}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce4df55e66d139647277b49674292ddaa5001b69466e873bce5784a78968e11a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (30 lines \u00D7 2): crates/crab-read/src/upload_pack.rs:967-996 | crates/crab-read/src/upload_pack.rs:1372-1401 \u2014 both copies are in the same file, so extract the block 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/crab-read/src/upload_pack.rs"},"region":{"startLine":967}}}],"partialFingerprints":{"codehealthFindingId/v1":"98bbb17b2a5d3a4282df6c6d254d7d0acf78d6f4834f1a3786867c94629a2b17"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27\u201329 lines \u00D7 3): crab/src/cmd/adopt.rs:307-333 | crab/src/cmd/init.rs:776-804 | crab/src/cmd/setup.rs:588-616 \u2014 before extracting anything, compare \u0060crab/src/cmd/adopt.rs\u0060 and \u0060crab/src/cmd/init.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 75 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 \u0060crab/src/cmd/adopt.rs:307\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 \u0060new_exts\u0060 to \u0060\u0026mut BTreeSet\u003CString\u003E\u0060 in one and \u0060\u0026mut std::collections::BTreeSet\u003CString\u003E\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":"crab/src/cmd/adopt.rs"},"region":{"startLine":307}}}],"partialFingerprints":{"codehealthFindingId/v1":"35ce4ad912d7f8726b88ec7cefd7a3caeb66c6ab372f8a1997a727ff5356d9b5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (42 lines \u00D7 2): crab/src/cmd/replica.rs:12589-12630 | crab/src/cmd/replica.rs:12944-12985 \u2014 both copies are in the same file, so extract the block 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 \u0060crab/src/cmd/replica.rs:12589\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 first that the copies are not typed on the same thing: the declarations holding them bind \u0060payload\u0060 to \u0060\u0026PromotePayload\u0060 in one and \u0060\u0026SetPrimaryPayload\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":"crab/src/cmd/replica.rs"},"region":{"startLine":12589}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a644dfb7e18608e5e64f8fab1f8ba86ca01100ba0adf963d9d88cd9dbdbfb2e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25\u201328 lines \u00D7 2): crab/src/cmd/run.rs:2476-2500 | crab/src/cmd/run.rs:3058-3085 \u2014 both copies are in the same file, so extract the block 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 \u0060crab/src/cmd/run.rs:2476\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":"crab/src/cmd/run.rs"},"region":{"startLine":2476}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c12ef2f377413ef63e2bc9c9706a8b70a22df05828517e8ce7e48cc1c671a9c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28 lines \u00D7 2): crates/crab-coordination/src/spanner_coordinator.rs:315-342 | crates/crab-coordination/src/spanner_coordinator.rs:607-634 \u2014 both copies are in the same file, so extract the block 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/crab-coordination/src/spanner_coordinator.rs"},"region":{"startLine":315}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9cb33770223bb8c92222d4bf1096c8bf5cdad260cddb7030de2148303d68df3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 2): crates/crab-http-server/src/peer.rs:1195-1221 | crates/crab-http-server/src/peer.rs:1275-1301 \u2014 both copies are in the same file, so extract the block 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/crab-http-server/src/peer.rs"},"region":{"startLine":1195}}}],"partialFingerprints":{"codehealthFindingId/v1":"e508e273b7371179522f0808b9829e32a7141a7126b129e9a0a8a4b916a53a2c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28 lines \u00D7 2): crates/crab-vfs/src/daemon.rs:1843-1870 | crates/crab-vfs/src/pipeline.rs:598-625 \u2014 before extracting anything, compare \u0060crates/crab-vfs/src/daemon.rs\u0060 and \u0060crates/crab-vfs/src/pipeline.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 63 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. 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/crab-vfs/src/daemon.rs"},"region":{"startLine":1843}}}],"partialFingerprints":{"codehealthFindingId/v1":"12a8baeeb1192de5723f13adfb573b2077c83b5531e4e632b7c8686f09c2c78c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 2): crates/crab-xet/src/shard_parse.rs:296-322 | crates/crab-xet/src/shard_parse.rs:469-495 \u2014 both copies are in the same file, so extract the block 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/crab-xet/src/shard_parse.rs"},"region":{"startLine":296}}}],"partialFingerprints":{"codehealthFindingId/v1":"33883247b2af5144d7d6f88b2ac254e314e7b5c54c4342dff4b9272e2f4c5155"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 2): crab/src/cmd/add.rs:3204-3229 | crab/src/cmd/add.rs:3277-3302 \u2014 both copies are in the same file, so extract the block 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 \u0060crab/src/cmd/add.rs:3204\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":"crab/src/cmd/add.rs"},"region":{"startLine":3204}}}],"partialFingerprints":{"codehealthFindingId/v1":"c31fe6e7256165dce66bc44a2e6e050b16a48da03bcbd25de4491c9aae9883e3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24\u201326 lines \u00D7 2): crab/src/cmd/gc/mod.rs:908-931 | crab/src/cmd/gc/mod.rs:1205-1230 \u2014 both copies are in the same file, so extract the block 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 \u0060crab/src/cmd/gc/mod.rs:908\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":"crab/src/cmd/gc/mod.rs"},"region":{"startLine":908}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c5ea4386a380fe74c646ef94cf0db85485e2eabaacf4047432f23804999401f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 2): crates/crab-coordination/src/write_coordinator.rs:921-946 | crates/crab-coordination/src/write_coordinator.rs:1409-1434 \u2014 both copies are in the same file, so extract the block 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/crab-coordination/src/write_coordinator.rs:921\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/crab-coordination/src/write_coordinator.rs"},"region":{"startLine":921}}}],"partialFingerprints":{"codehealthFindingId/v1":"68b4c5b2af50c703f26c95e3011072215a72e3763da9ff5721ff9cede62553db"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 2): crates/crab-sdk/src/mutation.rs:697-722 | crates/crab-sdk/src/mutation.rs:742-767 \u2014 both copies are in the same file, so extract the block 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/crab-sdk/src/mutation.rs:697\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/crab-sdk/src/mutation.rs"},"region":{"startLine":697}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d166e9d5efbb062bde4b5a28064cefdf3b39764e75bab8f9be7c3461ac9f924"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 2): crates/crab-staging/src/lib.rs:3159-3184 | crates/crab-staging/src/lib.rs:4201-4226 \u2014 both copies are in the same file, so extract the block 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/crab-staging/src/lib.rs"},"region":{"startLine":3159}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c262ca0093d3ada5f4ebbfd8727e53413017829fd07c74353753b0961a7d4ea"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23\u201325 lines \u00D7 2): crab/src/cmd/run.rs:2286-2308 | crab/src/cmd/run.rs:2932-2956 \u2014 both copies are in the same file, so extract the block 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 \u0060crab/src/cmd/run.rs:2286\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":"crab/src/cmd/run.rs"},"region":{"startLine":2286}}}],"partialFingerprints":{"codehealthFindingId/v1":"69237814fee78d915818179a9291101272f1ed6bd32d4df391dc7229a7048b7d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): crab/src/lfs/transfer_agent.rs:401-425 | crab/src/lfs/transfer_agent.rs:482-506 \u2014 both copies are in the same file, so extract the block 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 \u0060crab/src/lfs/transfer_agent.rs:401\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":"crab/src/lfs/transfer_agent.rs"},"region":{"startLine":401}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2561c4d046e7feef7712d8f3b819e8d5df4b3a388d10847ddfa1f3f47fc3ddb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24\u201325 lines \u00D7 2): crates/crab-read/src/term_resolver.rs:140-163 | crates/crab-read/src/term_resolver.rs:287-311 \u2014 both copies are in the same file, so extract the block 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/crab-read/src/term_resolver.rs:140\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/crab-read/src/term_resolver.rs"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"67e759c5d6aed05a4eaf58ad05ee814283b415b5d2c9c080edf5cf4daa15fefc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22\u201325 lines \u00D7 2): crates/crab-workflow/src/template/foreach.rs:321-345 | crates/crab-workflow/src/template/matrix.rs:310-331 \u2014 before extracting anything, compare \u0060crates/crab-workflow/src/template/foreach.rs\u0060 and \u0060crates/crab-workflow/src/template/matrix.rs\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 106 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. 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/crab-workflow/src/template/foreach.rs"},"region":{"startLine":321}}}],"partialFingerprints":{"codehealthFindingId/v1":"37a7ec453bb7b00ac2255fe7729b7776f93e0586f6d9619b969172ff35d7c4fc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22\u201324 lines \u00D7 2): crab/src/cmd/add.rs:1200-1223 | crab/src/cmd/add.rs:1235-1256 \u2014 both copies are in the same file, so extract the block 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 \u0060crab/src/cmd/add.rs:1200\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":"crab/src/cmd/add.rs"},"region":{"startLine":1200}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e476370d8b98cab796ddd8ba82e1102aa94ddc43cf25d3314ee85880a6ccf9d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23\u201324 lines \u00D7 2): crab/src/cmd/gc/mod.rs:2620-2642 | crab/src/cmd/gc/mod.rs:2939-2962 \u2014 both copies are in the same file, so extract the block 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 \u0060crab/src/cmd/gc/mod.rs:2620\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":"crab/src/cmd/gc/mod.rs"},"region":{"startLine":2620}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfe174f18ca242f9c0cec011e2ac023122f76447bb241ea57923e8e7416d60e5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): crates/crab-storage/src/store.rs:2200-2223 | crates/crab-storage/src/store.rs:2264-2287 \u2014 both copies are in the same file, so extract the block 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/crab-storage/src/store.rs:2200\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/crab-storage/src/store.rs"},"region":{"startLine":2200}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fee5eaf243b424eee3e75b473c14c635c60cbebada7bd4dce12be461bb070c8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): crab/src/cmd/gc/bucket.rs:1855-1877 | crab/src/cmd/gc/bucket.rs:1908-1930 \u2014 both copies are in the same file, so extract the block 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":"crab/src/cmd/gc/bucket.rs"},"region":{"startLine":1855}}}],"partialFingerprints":{"codehealthFindingId/v1":"9728f0ffc92521b12c9a47fc7cddea4f1ba522dbd222f7c0243862eb9bafa933"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): crab/src/cmd/replica.rs:5471-5493 | crab/src/cmd/replica.rs:5517-5539 \u2014 both copies are in the same file, so extract the block 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 \u0060crab/src/cmd/replica.rs:5471\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":"crab/src/cmd/replica.rs"},"region":{"startLine":5471}}}],"partialFingerprints":{"codehealthFindingId/v1":"705ea50acee43aaa9803f9f2e49b6a9cdf9ef8462deb1b8703a43490553de4f7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): crab/src/replication/mod.rs:7785-7807 | crab/src/replication/mod.rs:7834-7856 \u2014 both copies are in the same file, so extract the block 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 \u0060crab/src/replication/mod.rs:7785\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":"crab/src/replication/mod.rs"},"region":{"startLine":7785}}}],"partialFingerprints":{"codehealthFindingId/v1":"80c0f8cc2fa4891cab422480387cd609093ef0bfb4280a63114f398f46645e29"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): crab/src/replication/mod.rs:7909-7931 | crab/src/replication/mod.rs:7958-7980 \u2014 both copies are in the same file, so extract the block 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 \u0060crab/src/replication/mod.rs:7909\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":"crab/src/replication/mod.rs"},"region":{"startLine":7909}}}],"partialFingerprints":{"codehealthFindingId/v1":"6de60f971bd1779a5248920137c71e316e6f1aa118fed80d263e7f7bd94a1ffb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): crates/crab-metadata/src/git_visibility.rs:2217-2239 | crates/crab-metadata/src/git_visibility.rs:2335-2357 \u2014 both copies are in the same file, so extract the block 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/crab-metadata/src/git_visibility.rs:2217\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/crab-metadata/src/git_visibility.rs"},"region":{"startLine":2217}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c49e533d694f3a0cb13c29ddd17d22cdac40aa8c13a9d0a96a17e300640f3a3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): crates/crab-read/src/term_resolver.rs:194-216 | crates/crab-read/src/term_resolver.rs:343-365 \u2014 both copies are in the same file, so extract the block 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/crab-read/src/term_resolver.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/crab-read/src/term_resolver.rs"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"3275f4c59de7e51e7fc7db885e9571d17e548ffc1fbfd6d23fe8646697220ede"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): crates/crab-sdk/src/local/edit.rs:677-700 | crates/crab-sdk/src/local/edit.rs:748-771 \u2014 both copies are in the same file, so extract the block 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/crab-sdk/src/local/edit.rs:677\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/crab-sdk/src/local/edit.rs"},"region":{"startLine":677}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba91633069d00c9b4b9065793b662ec2f0f545bf3156bed6872b2d3d22da3fec"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): crates/crab-staging/src/add_push_plan.rs:207-229 | crates/crab-staging/src/add_push_plan.rs:389-411 \u2014 both copies are in the same file, so extract the block 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/crab-staging/src/add_push_plan.rs:207\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/crab-staging/src/add_push_plan.rs"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"9595663fbf2ec725ea2da4a275cae4ab17a3fe5fb27f1245f20b753f5dc1094d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201322 lines \u00D7 4): crab/src/cmd/add.rs:3265-3286 | crab/src/cmd/dehydrate.rs:513-534 | crab/src/cmd/hydrate.rs:3599-3620 | crab/src/cmd/reset.rs:322-340 \u2014 before extracting anything, compare \u0060crab/src/cmd/add.rs\u0060 and \u0060crab/src/cmd/dehydrate.rs\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 131 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 \u0060crab/src/cmd/add.rs:3265\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":"crab/src/cmd/add.rs"},"region":{"startLine":3265}}}],"partialFingerprints":{"codehealthFindingId/v1":"f62f7f100a11ec88cd582e1e8550a42bd600546df455f1f5e9e6224b2383e211"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21\u201322 lines \u00D7 2): crab/src/cmd/replica.rs:12653-12673 | crab/src/cmd/replica.rs:12813-12834 \u2014 both copies are in the same file, so extract the block 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 \u0060crab/src/cmd/replica.rs:12813\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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060payload\u0060 to \u0060\u0026DiagnosticsPayload\u0060 in one and \u0060\u0026DoctorPayload\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":"crab/src/cmd/replica.rs"},"region":{"startLine":12653}}}],"partialFingerprints":{"codehealthFindingId/v1":"daa1c061a15e9bc9dc682fef4a75d32af5b3b130b862fbe3975be26b64e8e1d3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21\u201322 lines \u00D7 2): crab/src/cmd/run.rs:2798-2819 | crab/src/cmd/run.rs:3590-3610 \u2014 both copies are in the same file, so extract the block 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 \u0060crab/src/cmd/run.rs:2798\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":"crab/src/cmd/run.rs"},"region":{"startLine":2798}}}],"partialFingerprints":{"codehealthFindingId/v1":"e88090f4a4ad5ae2488769b19245d3e64092f747b3c970aeb940bd4da26e94e3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21\u201322 lines \u00D7 2): crab/src/git/progress.rs:470-491 | crab/src/git/progress.rs:513-533 \u2014 both copies are in the same file, so extract the block 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 \u0060crab/src/git/progress.rs:470\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 \u0060stream\u0060 to \u0060Option\u003CArc\u003CMutex\u003CJsonlStream\u003CStdout\u003E\u003E\u003E\u003E\u0060 in one and \u0060Option\u003CArc\u003CMutex\u003CJsonlStream\u003CStderr\u003E\u003E\u003E\u003E\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":"crab/src/git/progress.rs"},"region":{"startLine":470}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdc92cee6c7f3fb75fd3c9de330bb12536980b7be952ca1183665fedd6badf7b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20\u201321 lines \u00D7 4): crab/src/cmd/adopt.rs:279-298 | crab/src/cmd/adopt.rs:359-378 | crab/src/cmd/init.rs:747-767 | crab/src/cmd/unadopt.rs:211-230 \u2014 before extracting anything, compare \u0060crab/src/cmd/adopt.rs\u0060 and \u0060crab/src/cmd/init.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 75 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 \u0060crab/src/cmd/adopt.rs:279\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":"crab/src/cmd/adopt.rs"},"region":{"startLine":279}}}],"partialFingerprints":{"codehealthFindingId/v1":"21cdd1eb47a80d6496e775b3cff0f9e95cbb37b5d78ce5478c42817def143952"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): crab/src/cmd/metrics.rs:2739-2759 | crab/src/cmd/metrics.rs:2768-2788 \u2014 both copies are in the same file, so extract the block 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 \u0060crab/src/cmd/metrics.rs:2739\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":"crab/src/cmd/metrics.rs"},"region":{"startLine":2739}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ee6617198bd0a64d7eb3a2deec010fee406e0273d8c81a1d06b7820f37553d7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201321 lines \u00D7 2): crab/src/git/incremental_walk.rs:292-310 | crab/src/git/push.rs:18350-18370 \u2014 before extracting anything, compare \u0060crab/src/git/incremental_walk.rs\u0060 and \u0060crab/src/git/push.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 \u0060crab/src/git/incremental_walk.rs:292\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":"crab/src/git/incremental_walk.rs"},"region":{"startLine":292}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d3a64d874f81046ba4b40f598d3bba7351359aa41519cfc28971766b8125c79"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): crates/crab-http-server/src/peer.rs:1141-1161 | crates/crab-http-server/src/peer.rs:1234-1254 \u2014 both copies are in the same file, so extract the block 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/crab-http-server/src/peer.rs"},"region":{"startLine":1141}}}],"partialFingerprints":{"codehealthFindingId/v1":"35723fd224e6cf1a54eb6310daa097ca6de8e31c15eba0f3a772d1c3d38a2d84"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201321 lines \u00D7 2): crates/crab-remote-git/src/snapshot.rs:117-135 | crates/crab-remote-git/src/snapshot.rs:210-230 \u2014 both copies are in the same file, so extract the block 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/crab-remote-git/src/snapshot.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. 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/crab-remote-git/src/snapshot.rs"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9d540dccb956ca5615ec3e8ee9095481e86bb6d0cee031b564da8a84dcbb269"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20\u201321 lines \u00D7 2): crates/crab-s3-gateway/src/gateway.rs:1379-1398 | crates/crab-s3-gateway/src/gateway.rs:1484-1504 \u2014 both copies are in the same file, so extract the block 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/crab-s3-gateway/src/gateway.rs:1484\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 first that the copies are not typed on the same thing: the declarations holding them bind \u0060req\u0060 to \u0060S3Request\u003CGetObjectInput\u003E\u0060 in one and \u0060S3Request\u003CHeadObjectInput\u003E\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/crab-s3-gateway/src/gateway.rs"},"region":{"startLine":1379}}}],"partialFingerprints":{"codehealthFindingId/v1":"03d11627a77f22acbb746c71c0a7ef1b2f40e2213507903f8f1fa7ef88f7a98b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): crates/crab-staging/src/push_plan.rs:224-244 | crates/crab-staging/src/push_plan.rs:260-280 \u2014 both copies are in the same file, so extract the block 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/crab-staging/src/push_plan.rs"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"87af7cc618ce44f37fb1d4f6f09fe82b4573498e45e1f6dec7d3c8cf3020cfb0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): crates/crab-workflow/src/exp_worktree.rs:1076-1096 | crates/crab-workflow/src/exp_worktree.rs:1119-1139 \u2014 both copies are in the same file, so extract the block 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/crab-workflow/src/exp_worktree.rs:1076\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/crab-workflow/src/exp_worktree.rs"},"region":{"startLine":1076}}}],"partialFingerprints":{"codehealthFindingId/v1":"487dca9bbb7e5f1b397fa96b772884ac817b3a5761d34696b7a24c79dbce0821"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201320 lines \u00D7 3): crab/src/cmd/run.rs:3465-3484 | crates/crab-workflow/src/executor.rs:2327-2341 | crates/crab-workflow/src/executor.rs:2472-2489 \u2014 before extracting anything, compare \u0060crab/src/cmd/run.rs\u0060 and \u0060crates/crab-workflow/src/executor.rs\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 100 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. 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":"crab/src/cmd/run.rs"},"region":{"startLine":3465}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c1ef29b62c15c5583f487c127cac5ce11b4636e04197b1641024f72cd6c0395"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): crab/src/cmd/gc/bucket.rs:1692-1711 | crab/src/cmd/gc/bucket.rs:1763-1782 \u2014 both copies are in the same file, so extract the block 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 \u0060crab/src/cmd/gc/bucket.rs:1692\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":"crab/src/cmd/gc/bucket.rs"},"region":{"startLine":1692}}}],"partialFingerprints":{"codehealthFindingId/v1":"896e8fe7db40fdadf3ef6d4dc9dd7853b15d8c11046213c6410e72163f7329d0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): crab/src/cmd/hydrate.rs:508-527 | crab/src/cmd/hydrate.rs:1259-1278 \u2014 both copies are in the same file, so extract the block 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":"crab/src/cmd/hydrate.rs"},"region":{"startLine":508}}}],"partialFingerprints":{"codehealthFindingId/v1":"90ee41e1d361b3a029d782e38af6ed8866b6edf4c7d36abab17b0fc779b83560"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201320 lines \u00D7 2): crab/src/cmd/lfs/fsck.rs:128-147 | crab/src/lfs/prune.rs:367-385 \u2014 before extracting anything, compare \u0060crab/src/cmd/lfs/fsck.rs\u0060 and \u0060crab/src/lfs/prune.rs\u0060 as WHOLE FILES: this scan already matched 3 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. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crab/src/cmd/lfs/fsck.rs:128\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":"crab/src/cmd/lfs/fsck.rs"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"d130753e18539ba03cea43c1f16c60ec686ee7f635773babef7dff15daf0c35d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): crab/src/cmd/replica.rs:7282-7301 | crab/src/cmd/replica.rs:7317-7336 \u2014 both copies are in the same file, so extract the block 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 \u0060crab/src/cmd/replica.rs:7282\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":"crab/src/cmd/replica.rs"},"region":{"startLine":7282}}}],"partialFingerprints":{"codehealthFindingId/v1":"e33bb6926fd087785378b779cdc3a24ba091c36564abd28c75c411f81c7b14fd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201320 lines \u00D7 2): crab/src/cmd/run.rs:2237-2255 | crab/src/cmd/run.rs:2873-2892 \u2014 both copies are in the same file, so extract the block 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 \u0060crab/src/cmd/run.rs:2237\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":"crab/src/cmd/run.rs"},"region":{"startLine":2237}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9e6dd6563d66c45cee01e207865d31bb5da6e7e63171f3902a59d9655b934f9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): crab/src/core/error.rs:2387-2406 | crab/src/core/error.rs:2930-2949 \u2014 both copies are in the same file, so extract the block 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":"crab/src/core/error.rs"},"region":{"startLine":2387}}}],"partialFingerprints":{"codehealthFindingId/v1":"d38a978e1e1a1d4454da581be2e47647a367f7b565b4117b21d5488747d9a96d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201320 lines \u00D7 2): crab/src/git/progress.rs:1673-1692 | crab/src/git/progress.rs:1722-1738 \u2014 both copies are in the same file, so extract the block 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 \u0060crab/src/git/progress.rs:1673\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":"crab/src/git/progress.rs"},"region":{"startLine":1673}}}],"partialFingerprints":{"codehealthFindingId/v1":"f25cb327c8c0775d79a41729658b002f650353f257427471b61228c58d6c983e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201320 lines \u00D7 2): crab/src/lfs/migrate.rs:1422-1441 | crab/src/lfs/migrate.rs:2130-2147 \u2014 both copies are in the same file, so extract the block 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 \u0060crab/src/lfs/migrate.rs:1422\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 first that the copies are not typed on the same thing: the declarations holding them bind \u0060options\u0060 to \u0060MigrateImportOptions\u003C\u0027_\u003E\u0060 in one and \u0060MigrateExportOptions\u003C\u0027_\u003E\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":"crab/src/lfs/migrate.rs"},"region":{"startLine":1422}}}],"partialFingerprints":{"codehealthFindingId/v1":"f142261acf8d90387101000ecf9c02259ab8afe03d8a0017e313e32eda6674c7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): crab/src/replication/mod.rs:7677-7696 | crab/src/replication/mod.rs:7718-7737 \u2014 both copies are in the same file, so extract the block 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 \u0060crab/src/replication/mod.rs:7677\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":"crab/src/replication/mod.rs"},"region":{"startLine":7677}}}],"partialFingerprints":{"codehealthFindingId/v1":"c75eba093a3ae20d980459a91adbd54e367620c8be967bf0fedc5f93bcc496f5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201320 lines \u00D7 2): crates/crab-coordination/src/write_coordinator.rs:989-1007 | crates/crab-coordination/src/write_coordinator.rs:1476-1495 \u2014 both copies are in the same file, so extract the block 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/crab-coordination/src/write_coordinator.rs:1476\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/crab-coordination/src/write_coordinator.rs"},"region":{"startLine":989}}}],"partialFingerprints":{"codehealthFindingId/v1":"135f250737088866b8fe760de05987d04a22417c5286676fd430c276292e5766"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201320 lines \u00D7 2): crates/crab-git/src/worktree.rs:164-182 | crates/crab-git/src/worktree.rs:205-224 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/crab-git/src/worktree.rs:205\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/crab-git/src/worktree.rs"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed7120a5cec44e6828894d065de46ea6ccd255099d8b00f956b7321628ce73df"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): crates/crab-metadata/src/git_object_locator/reader.rs:476-495 | crates/crab-metadata/src/git_object_locator/writer.rs:816-835 \u2014 before extracting anything, compare \u0060crates/crab-metadata/src/git_object_locator/reader.rs\u0060 and \u0060crates/crab-metadata/src/git_object_locator/writer.rs\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 35 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/crab-metadata/src/git_object_locator/reader.rs:476\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/crab-metadata/src/git_object_locator/reader.rs"},"region":{"startLine":476}}}],"partialFingerprints":{"codehealthFindingId/v1":"6db2b1c99329d58229f5830cea8f9582320046dc8bafa68ac1b6437805347677"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201319 lines \u00D7 6): crab/src/cmd/add.rs:3422-3438 | crab/src/cmd/dehydrate.rs:461-477 | crab/src/cmd/du.rs:241-256 | crab/src/cmd/hydrate.rs:3544-3560 | crab/src/cmd/reset.rs:498-514 | crab/src/cmd/status.rs:785-803 \u2014 before extracting anything, compare \u0060crab/src/cmd/add.rs\u0060 and \u0060crab/src/cmd/dehydrate.rs\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 131 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":"crab/src/cmd/add.rs"},"region":{"startLine":3422}}}],"partialFingerprints":{"codehealthFindingId/v1":"65117cc85d07596e6d803f2409ae1ffefd8c8158be51aa5f455828866b88d8a5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 5): crates/crab-workflow/src/artifact.rs:347-365 | crates/crab-workflow/src/checkpoint.rs:122-140 | crates/crab-workflow/src/dvc_inventory.rs:409-427 | crates/crab-workflow/src/external_hash.rs:115-133 | crates/crab-workflow/src/source.rs:78-96 \u2014 before extracting anything, compare \u0060crates/crab-workflow/src/artifact.rs\u0060 and \u0060crates/crab-workflow/src/checkpoint.rs\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 36 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/crab-workflow/src/artifact.rs:347\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/crab-workflow/src/artifact.rs"},"region":{"startLine":347}}}],"partialFingerprints":{"codehealthFindingId/v1":"4105acc9222136e4cbd2f8c839ca8bf3f051ab6d7341e51a00995edf0b28a528"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201319 lines \u00D7 2): crab/src/cmd/adopt.rs:759-777 | crab/src/cmd/unadopt.rs:359-376 \u2014 before extracting anything, compare \u0060crab/src/cmd/adopt.rs\u0060 and \u0060crab/src/cmd/unadopt.rs\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 108 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 \u0060crab/src/cmd/adopt.rs:759\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":"crab/src/cmd/adopt.rs"},"region":{"startLine":759}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ef63dcdab5891ba652d1e86d628ef6f05e5b4074fbab1466fa3dbaf5b7f80aa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): crab/src/cmd/data.rs:1940-1958 | crates/crab-workflow/src/stage_runtime.rs:167-185 \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":"crab/src/cmd/data.rs"},"region":{"startLine":1940}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1071528283534ae254a67d0539fd30153ddc63cbd663b6bb8b55c0063ef19c0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201319 lines \u00D7 2): crab/src/cmd/gc/mod.rs:890-906 | crab/src/cmd/gc/mod.rs:1181-1199 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/cmd/gc/mod.rs"},"region":{"startLine":890}}}],"partialFingerprints":{"codehealthFindingId/v1":"582a09d2d8b2d13dcf9e7b88d491c445d52fb60f8bbb1f89c09cf048d48f3a24"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): crab/src/cmd/lfs/fetch.rs:256-274 | crab/src/lfs/batch.rs:143-161 \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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060crab/src/lfs/batch.rs:142\u0060 calls \u0060check_cancelled\u0060 and \u0060crab/src/cmd/lfs/fetch.rs:255\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":"crab/src/cmd/lfs/fetch.rs"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a92361696c99fa696b76d4497c8e026e1f4b8105a6adc3186519111f31b2c7d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201319 lines \u00D7 2): crab/src/cmd/metadb.rs:2743-2758 | crates/crab-auth-server/src/receive.rs:1533-1551 \u2014 before extracting anything, compare \u0060crab/src/cmd/metadb.rs\u0060 and \u0060crates/crab-auth-server/src/receive.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 65 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crab/src/cmd/metadb.rs:2743\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":"crab/src/cmd/metadb.rs"},"region":{"startLine":2743}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c64f2ed8c26178d806d6f81e242063ca8aa5ba0592bbd37a13ed0dd40e053ff"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): crab/src/cmd/run.rs:2174-2192 | crab/src/cmd/run.rs:2808-2826 \u2014 both copies are in the same file, so extract the block 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 \u0060crab/src/cmd/run.rs:2174\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":"crab/src/cmd/run.rs"},"region":{"startLine":2174}}}],"partialFingerprints":{"codehealthFindingId/v1":"6755e7ab831b2ca61274bebc63882e91eeaeee966867d5d031ffa81182eabaae"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201319 lines \u00D7 2): crab/src/lfs/status.rs:339-357 | crab/src/lfs/status.rs:482-499 \u2014 both copies are in the same file, so extract the block 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 \u0060crab/src/lfs/status.rs:339\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":"crab/src/lfs/status.rs"},"region":{"startLine":339}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea2753f30dc47d3e391dcd767891f8135d6091b8f5d0ce1a94295c024af27990"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): crab/src/replication/mod.rs:5171-5189 | crab/src/replication/mod.rs:5310-5328 \u2014 both copies are in the same file, so extract the block 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":"crab/src/replication/mod.rs"},"region":{"startLine":5171}}}],"partialFingerprints":{"codehealthFindingId/v1":"18d592477ee58d4d1b8e08e38872eed982d571aea2928273bdc391d107b317d9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): crates/crab-coordination/src/gc_fence.rs:1019-1037 | crates/crab-coordination/src/gc_fence.rs:1075-1093 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/crab-coordination/src/gc_fence.rs:1019\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/crab-coordination/src/gc_fence.rs"},"region":{"startLine":1019}}}],"partialFingerprints":{"codehealthFindingId/v1":"140b8b7fea48cf2097d86aa663a07cbb90435037623ce93cb0f35e2624ea040a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): crates/crab-http-server/src/pulls.rs:507-525 | crates/crab-http-server/src/pulls.rs:633-651 \u2014 both copies are in the same file, so extract the block 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/crab-http-server/src/pulls.rs:507\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/crab-http-server/src/pulls.rs"},"region":{"startLine":507}}}],"partialFingerprints":{"codehealthFindingId/v1":"86b9ced67639e0d11a85298c67dd3b62db13cce081dc447f0dba2945bf5a7f91"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 3): crab/src/cmd/metrics.rs:3532-3549 | crab/src/cmd/params.rs:377-394 | crates/crab-workflow/src/params_runtime.rs:510-527 \u2014 before extracting anything, compare \u0060crab/src/cmd/metrics.rs\u0060 and \u0060crab/src/cmd/params.rs\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 89 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060a\u0060 to \u0060\u0026MetricMap\u0060 in one and \u0060\u0026ParamMap\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":"crab/src/cmd/metrics.rs"},"region":{"startLine":3532}}}],"partialFingerprints":{"codehealthFindingId/v1":"094e70d4a3b50a22e2c7fa367fd8a7e600c212c4d5331eaafb1701936a69c87a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 3): crab/src/cmd/run.rs:796-813 | crab/src/cmd/run.rs:2238-2255 | crab/src/cmd/run.rs:2875-2892 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crab/src/cmd/run.rs:796\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":"crab/src/cmd/run.rs"},"region":{"startLine":796}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f0994a6be92c050ecd92a063e2da31e5623966988f20037ffa34b547228d71f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 3): crab/src/import/versions.rs:798-815 | crab/src/import/versions.rs:1136-1153 | crab/src/import/versions.rs:1416-1433 \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 \u0060crab/src/import/versions.rs:798\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":"crab/src/import/versions.rs"},"region":{"startLine":798}}}],"partialFingerprints":{"codehealthFindingId/v1":"277cb6d31decd5c17a27d27d4f795b254f79bfab475649fd7c2d2ee6793d8150"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): crab/src/cmd/adopt.rs:380-397 | crab/src/cmd/unadopt.rs:232-249 \u2014 before extracting anything, compare \u0060crab/src/cmd/adopt.rs\u0060 and \u0060crab/src/cmd/unadopt.rs\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 108 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 \u0060crab/src/cmd/adopt.rs:380\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":"crab/src/cmd/adopt.rs"},"region":{"startLine":380}}}],"partialFingerprints":{"codehealthFindingId/v1":"172e5f2e4bd25248d13a5809d0edb0bf73832bb8546e7deda9bf6a009ea978a5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): crab/src/cmd/init.rs:889-906 | crates/crab-vfs/src/executable.rs:37-54 \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":"crab/src/cmd/init.rs"},"region":{"startLine":889}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5dcc1bb6584ef66b69d61e0ed685e0a1bd11bc1f651cc0b3ecf17ddbb1e63e3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): crab/src/cmd/lfs/fsck.rs:388-405 | crab/src/cmd/lfs/ls_files.rs:398-415 \u2014 before extracting anything, compare \u0060crab/src/cmd/lfs/fsck.rs\u0060 and \u0060crab/src/cmd/lfs/ls_files.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 65 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 \u0060crab/src/cmd/lfs/fsck.rs:388\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/cmd/lfs/fsck.rs"},"region":{"startLine":388}}}],"partialFingerprints":{"codehealthFindingId/v1":"720271b4bebf7abd07bcfa802cb7d390bfb1c3e2d60c5aa948ac2eccbaa889d0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): crab/src/cmd/metadb.rs:2905-2922 | crates/crab-auth-server/src/receive.rs:1600-1617 \u2014 before extracting anything, compare \u0060crab/src/cmd/metadb.rs\u0060 and \u0060crates/crab-auth-server/src/receive.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 65 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crab/src/cmd/metadb.rs:2905\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":"crab/src/cmd/metadb.rs"},"region":{"startLine":2905}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf2c9b6c49088c251f08bceaf768b798df0cd8b9bb22521c6c6a95d38ab6883e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): crab/src/cmd/metrics.rs:514-531 | crab/src/cmd/metrics.rs:586-603 \u2014 both copies are in the same file, so extract the block 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":"crab/src/cmd/metrics.rs"},"region":{"startLine":514}}}],"partialFingerprints":{"codehealthFindingId/v1":"cad48dbe3e037b44f31f9ce5b65b6b9864116c1808511fee015c77077a7678bb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 2): crab/src/cmd/params.rs:580-605 | crab/src/cmd/params.rs:632-657 \u2014 both copies are in the same file, so extract the block 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 \u0060crab/src/cmd/params.rs:580\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":"crab/src/cmd/params.rs"},"region":{"startLine":580}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3f05fa1dd2d00273bfec0996e3a587cd7388b8d56aa81d0bd7502cc192cddb4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): crab/src/cmd/push.rs:1294-1311 | crab/src/git/remote_helper.rs:1802-1819 \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 \u0060crab/src/cmd/push.rs:1294\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":"crab/src/cmd/push.rs"},"region":{"startLine":1294}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfe27f055bf6199c05b120dcf65e3fb1df027fa48d98fbcb8706dca770bf117c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): crab/src/cmd/setup.rs:293-310 | crab/src/cmd/setup.rs:420-437 \u2014 both copies are in the same file, so extract the block 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 \u0060crab/src/cmd/setup.rs:293\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":"crab/src/cmd/setup.rs"},"region":{"startLine":293}}}],"partialFingerprints":{"codehealthFindingId/v1":"244d08cf509efe6e47603f03666724b6de9e041a9edb2fda6761944cdc07a20d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): crab/src/git/push.rs:1841-1858 | crab/src/git/push.rs:18218-18235 \u2014 both copies are in the same file, so extract the block 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":"crab/src/git/push.rs"},"region":{"startLine":1841}}}],"partialFingerprints":{"codehealthFindingId/v1":"64da51fcf9085895a5b56456c986d441ee192f4693baf4a4f69bf06faa89de6d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): crates/crab-auth-server/src/receive.rs:1283-1300 | crates/crab-auth-server/src/view/objects.rs:299-316 \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/crab-auth-server/src/receive.rs:1283\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/crab-auth-server/src/receive.rs"},"region":{"startLine":1283}}}],"partialFingerprints":{"codehealthFindingId/v1":"9181cbc7f814ce9aa5f22161e53198aac1e889ab6339bd22f7991209498ad614"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): crates/crab-auth-server/src/view/git_workspace.rs:444-461 | crates/crab-auth-server/src/view/git_workspace.rs:470-487 \u2014 both copies are in the same file, so extract the block 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/crab-auth-server/src/view/git_workspace.rs"},"region":{"startLine":444}}}],"partialFingerprints":{"codehealthFindingId/v1":"346f66e77c3f303947ca59aad9bcc3a3373eb92bbe5dd9d6447c90f90116fe84"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201318 lines \u00D7 2): crates/crab-cache-server/src/cache_store.rs:526-543 | crates/crab-cache-server/src/cache_store.rs:560-575 \u2014 both copies are in the same file, so extract the block 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/crab-cache-server/src/cache_store.rs:526\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/crab-cache-server/src/cache_store.rs"},"region":{"startLine":526}}}],"partialFingerprints":{"codehealthFindingId/v1":"e23fd31c61a16451992c556ce72a5db13162b98aee56584ffbc5c98fbf1ca3cf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): crates/crab-http-server/src/cells/repository/operations.rs:91-108 | crates/crab-http-server/src/cells/repository/pulls.rs:490-507 \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/crab-http-server/src/cells/repository/operations.rs"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5f84e3d6a75e697562be6481fbc81dab53a9e52f7d0dbf97c837cd6d9f8223f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): crates/crab-storage/src/store.rs:2434-2451 | crates/crab-storage/src/store.rs:2524-2541 \u2014 both copies are in the same file, so extract the block 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/crab-storage/src/store.rs:2434\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/crab-storage/src/store.rs"},"region":{"startLine":2434}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee92d5345e2c0e3e6125765c30e915e72506b3e66ea1c6be8f6bf75a70f1feea"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 3): crab/src/cmd/dehydrate.rs:1164-1180 | crab/src/cmd/hydrate.rs:2031-2047 | crab/src/cmd/status.rs:1033-1049 \u2014 before extracting anything, compare \u0060crab/src/cmd/dehydrate.rs\u0060 and \u0060crab/src/cmd/hydrate.rs\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 223 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":"crab/src/cmd/dehydrate.rs"},"region":{"startLine":1164}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fa625f1a4d7588cc15a658dcd1d38c1c0d2512f8ea792fb384c6957e6333499"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 3): crab/src/cmd/replica.rs:12663-12679 | crab/src/cmd/replica.rs:12727-12743 | crab/src/cmd/replica.rs:12824-12840 \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 \u0060crab/src/cmd/replica.rs:12663\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 \u0060payload\u0060 to \u0060\u0026DiagnosticsPayload\u0060 in one and \u0060\u0026CertificationPayload\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060crab/src/cmd/replica.rs:12660\u0060 calls \u0060Some\u0060, \u0060as_ref\u0060, \u0060render_coordinator_status\u0060 and \u0060crab/src/cmd/replica.rs:12725\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":"crab/src/cmd/replica.rs"},"region":{"startLine":12663}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ed06cc259f4aee5d92d19013cc9bcfa798c12e75f33d3960eb5d66da41c7b95"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201317 lines \u00D7 2): crab/src/cmd/dehydrate.rs:800-811 | crab/src/lfs/status.rs:420-436 \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":"crab/src/cmd/dehydrate.rs"},"region":{"startLine":800}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f085e3854814fd8e237cda55132fa2df559b08b0b9a2ecb7788beee81179286"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): crab/src/cmd/gc/bucket.rs:634-650 | crab/src/cmd/gc/bucket.rs:854-870 \u2014 both copies are in the same file, so extract the block 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 \u0060crab/src/cmd/gc/bucket.rs:634\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060crab/src/cmd/gc/bucket.rs:651\u0060 calls \u0060Some\u0060 and \u0060crab/src/cmd/gc/bucket.rs:871\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":"crab/src/cmd/gc/bucket.rs"},"region":{"startLine":634}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc76c1789c4658cd3c0bf4d73318549b4c629b51cf2e0723ab9bf9198d61635d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): crab/src/cmd/hydrate.rs:568-584 | crab/src/cmd/hydrate.rs:1297-1313 \u2014 both copies are in the same file, so extract the block 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 \u0060crab/src/cmd/hydrate.rs:568\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":"crab/src/cmd/hydrate.rs"},"region":{"startLine":568}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d42f8c35218aec97858c92787ec1f27b4a5831ab05dd175fa5d88406a6293b8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): crab/src/git/upload_pack_wire.rs:913-929 | crab/src/git/upload_pack_wire.rs:945-961 \u2014 both copies are in the same file, so extract the block 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 \u0060crab/src/git/upload_pack_wire.rs:913\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":"crab/src/git/upload_pack_wire.rs"},"region":{"startLine":913}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea97b47faad86da82538266e7be823ad3920674b9809f6c9180cd460f1c097ee"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201317 lines \u00D7 2): crab/src/lfs/migrate.rs:1574-1587 | crab/src/lfs/migrate.rs:2251-2267 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crab/src/lfs/migrate.rs:2251\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":"crab/src/lfs/migrate.rs"},"region":{"startLine":1574}}}],"partialFingerprints":{"codehealthFindingId/v1":"d30ab9534234ce1eceaccf56a889f099bd47d306127628c093dd7e4480c54e5d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): crates/crab-coordination/src/dynamodb_coordinator.rs:464-480 | crates/crab-coordination/src/dynamodb_coordinator.rs:841-857 \u2014 both copies are in the same file, so extract the block 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/crab-coordination/src/dynamodb_coordinator.rs:464\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/crab-coordination/src/dynamodb_coordinator.rs"},"region":{"startLine":464}}}],"partialFingerprints":{"codehealthFindingId/v1":"acf437af013c246297fd38673c705939240b5b1fbd80711620b623b6b23c80f2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201317 lines \u00D7 2): crates/crab-coordination/src/write_coordinator.rs:1014-1029 | crates/crab-coordination/src/write_coordinator.rs:1499-1515 \u2014 both copies are in the same file, so extract the block 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/crab-coordination/src/write_coordinator.rs:1499\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/crab-coordination/src/write_coordinator.rs"},"region":{"startLine":1014}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2dc41188ed6839bb77ef5593ac8939364c2bd3fc391f72e4238c15279eeec22"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201317 lines \u00D7 2): crates/crab-remote-git/src/pack.rs:1615-1631 | crates/crab-remote-git/src/pack.rs:1869-1884 \u2014 both copies are in the same file, so extract the block 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/crab-remote-git/src/pack.rs:1615\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/crab-remote-git/src/pack.rs"},"region":{"startLine":1615}}}],"partialFingerprints":{"codehealthFindingId/v1":"61573b3f1102576900790d117f944d64f6c27796a74b33f88b0accbdeac838be"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): crates/crab-s3-gateway/src/gateway.rs:1821-1837 | crates/crab-s3-gateway/src/gateway.rs:1862-1878 \u2014 both copies are in the same file, so extract the block 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/crab-s3-gateway/src/gateway.rs"},"region":{"startLine":1821}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7e040d0e839dcb2336aba58986a2b6efd54c8e961431ea8146442019ffe7336"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201317 lines \u00D7 2): crates/crab-sdk/src/local.rs:538-554 | crates/crab-sdk/src/local.rs:692-706 \u2014 both copies are in the same file, so extract the block 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/crab-sdk/src/local.rs:538\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/crab-sdk/src/local.rs:691\u0060 calls \u0060verify_repository\u0060, \u0060exists\u0060 and \u0060crates/crab-sdk/src/local.rs:538\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/crab-sdk/src/local.rs"},"region":{"startLine":538}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed4d51e8a2ab0d12363ea913ae183e514b251963b303ad356378207e765842c9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201317 lines \u00D7 2): crates/crab-staging/src/index.rs:529-545 | crates/crab-staging/src/index.rs:568-578 \u2014 both copies are in the same file, so extract the block 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/crab-staging/src/index.rs:529\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/crab-staging/src/index.rs"},"region":{"startLine":529}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b6e1f84ec058a987896652298c70542af373e2a53eff6034b45661c2687fbfd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): crates/crab-staging/src/index.rs:8402-8418 | crates/crab-staging/src/index.rs:8465-8481 \u2014 both copies are in the same file, so extract the block 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/crab-staging/src/index.rs:8402\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/crab-staging/src/index.rs"},"region":{"startLine":8402}}}],"partialFingerprints":{"codehealthFindingId/v1":"4885975090b6e3ef536390a84f7436e0efaed91b51b61b33aab923664bc0f75b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): crates/crab-vfs/src/daemon.rs:1877-1893 | crates/crab-vfs/src/pipeline.rs:631-647 \u2014 before extracting anything, compare \u0060crates/crab-vfs/src/daemon.rs\u0060 and \u0060crates/crab-vfs/src/pipeline.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 63 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. 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/crab-vfs/src/daemon.rs"},"region":{"startLine":1877}}}],"partialFingerprints":{"codehealthFindingId/v1":"755afca6b0896e727e4077e9d091955dbdfa4e95d2a38cf7413cceab6bcafaaf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): crates/crab-workflow/src/executor.rs:1668-1686 | crates/crab-workflow/src/executor.rs:1728-1746 \u2014 both copies are in the same file, so extract the block 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/crab-workflow/src/executor.rs:1668\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/crab-workflow/src/executor.rs"},"region":{"startLine":1668}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f8fe5d902401bd405acb05e328c3e5004f6988be00ce00dec15b1739e34d253"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201317 lines \u00D7 2): crates/crab-workflow/src/exp_worktree.rs:1630-1646 | crates/crab-workflow/src/exp_worktree.rs:1701-1716 \u2014 both copies are in the same file, so extract the block 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/crab-workflow/src/exp_worktree.rs:1630\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/crab-workflow/src/exp_worktree.rs:1649\u0060 calls \u0060String\u0060, \u0060to_owned\u0060 and \u0060crates/crab-workflow/src/exp_worktree.rs:1718\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/crab-workflow/src/exp_worktree.rs"},"region":{"startLine":1630}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f9cfcd13af3ee70467d4edce79bf07acdf7b287fa0368713ff64c3a9384f198"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201317 lines \u00D7 2): crates/crab-write/src/journal.rs:578-594 | crates/crab-write/src/journal.rs:612-622 \u2014 both copies are in the same file, so extract the block 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/crab-write/src/journal.rs:578\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. 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/crab-write/src/journal.rs"},"region":{"startLine":578}}}],"partialFingerprints":{"codehealthFindingId/v1":"56c2a9445ceba5b47a94fba817a9d3d1504dc39c8968ab288a3c673a3d7c6f89"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201316 lines \u00D7 3): crab/src/cmd/run.rs:3506-3521 | crates/crab-workflow/src/executor.rs:2377-2386 | crates/crab-workflow/src/executor.rs:2556-2565 \u2014 before extracting anything, compare \u0060crab/src/cmd/run.rs\u0060 and \u0060crates/crab-workflow/src/executor.rs\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 100 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. 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":"crab/src/cmd/run.rs"},"region":{"startLine":3506}}}],"partialFingerprints":{"codehealthFindingId/v1":"5795482bb42339972d411597d75a98c01ec486cce5dd4d4cbb12642be770ec4e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 3): crates/crab-s3-gateway/src/gateway.rs:3320-3335 | crates/crab-s3-gateway/src/gateway.rs:4053-4068 | crates/crab-s3-gateway/src/gateway.rs:4094-4109 \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 \u0060input\u0060 to \u0060\u0026PutObjectInput\u0060 in one and \u0060\u0026CopyObjectInput\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/crab-s3-gateway/src/gateway.rs:3336\u0060 calls \u0060is_some\u0060 and \u0060crates/crab-s3-gateway/src/gateway.rs:4069\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/crab-s3-gateway/src/gateway.rs"},"region":{"startLine":3320}}}],"partialFingerprints":{"codehealthFindingId/v1":"dad6ce8e74e5db9b102abec782cdbb4c6822f06283abe3f0cb5b7cd2cbb0d9b2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): crab/src/cmd/add.rs:864-879 | crab/src/git/progress.rs:1895-1910 \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":"crab/src/cmd/add.rs"},"region":{"startLine":864}}}],"partialFingerprints":{"codehealthFindingId/v1":"b846c66f1cfd6f62f8b5723273662b63c8e0ccbd4a4a3ab160a4ea8676854b76"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): crab/src/cmd/exp.rs:5813-5828 | crab/src/cmd/exp.rs:5833-5848 \u2014 both copies are in the same file, so extract the block 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":"crab/src/cmd/exp.rs"},"region":{"startLine":5813}}}],"partialFingerprints":{"codehealthFindingId/v1":"45c887923b8998931fc1aa38f53502810c789e9a3462348c67b1e43d7f5bb283"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): crab/src/cmd/install.rs:395-410 | crab/src/cmd/lfs/install.rs:470-485 \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":"crab/src/cmd/install.rs"},"region":{"startLine":395}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8dc6fa20ec78bc47dbfdd360c2b50bfe3355d163144c83e41ee7e27d29de142"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): crab/src/cmd/metrics.rs:1535-1550 | crab/src/cmd/metrics.rs:3365-3380 \u2014 both copies are in the same file, so extract the block 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":"crab/src/cmd/metrics.rs"},"region":{"startLine":1535}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab9bc0bc66ce141bf40e57c9a84b54c702088427ec3be7d20041ef1dc1983524"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201316 lines \u00D7 2): crab/src/cmd/replica.rs:2941-2955 | crab/src/replication/mod.rs:7601-7616 \u2014 before extracting anything, compare \u0060crab/src/cmd/replica.rs\u0060 and \u0060crab/src/replication/mod.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 47 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crab/src/cmd/replica.rs:2941\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":"crab/src/cmd/replica.rs"},"region":{"startLine":2941}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad793877501fa8119a871f50ab17a4429b609122095a60d9004921bc8d426601"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): crab/src/cost/inventory/report/azure.rs:71-86 | crab/src/cost/inventory/report/gcs.rs:74-89 \u2014 before extracting anything, compare \u0060crab/src/cost/inventory/report/azure.rs\u0060 and \u0060crab/src/cost/inventory/report/gcs.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 56 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crab/src/cost/inventory/report/azure.rs:71\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, \u0060crab/src/cost/inventory/report/azure.rs:67\u0060 calls \u0060get\u0060, \u0060trim_matches\u0060, \u0060to_string\u0060 and \u0060crab/src/cost/inventory/report/gcs.rs:70\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":"crab/src/cost/inventory/report/azure.rs"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd125e4c5aa5b71ad4a77a9f96b7d95d52b53ab6cb40468411b73e2d36c001fc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): crab/src/git/push.rs:5745-5760 | crab/src/git/push.rs:6368-6383 \u2014 both copies are in the same file, so extract the block 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 \u0060crab/src/git/push.rs:5745\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":"crab/src/git/push.rs"},"region":{"startLine":5745}}}],"partialFingerprints":{"codehealthFindingId/v1":"84a0ad617cacfbdf9419fabba5e59f3068d4c094a50d08d9947b7b98d9256e05"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): crab/src/lfs/lock.rs:289-305 | crab/src/lfs/lock.rs:339-355 \u2014 both copies are in the same file, so extract the block 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 \u0060crab/src/lfs/lock.rs:289\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":"crab/src/lfs/lock.rs"},"region":{"startLine":289}}}],"partialFingerprints":{"codehealthFindingId/v1":"47572e01a4bd5d652c6c69a02825d9e3b311b3e6017254c2d9b60fb55f42e090"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): crab/src/replication/mod.rs:8811-8826 | crab/src/replication/mod.rs:8968-8983 \u2014 both copies are in the same file, so extract the block 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 \u0060crab/src/replication/mod.rs:8811\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":"crab/src/replication/mod.rs"},"region":{"startLine":8811}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd96e5066863c1db8335874a4ba871b586abba2565139d07b66657dc1761756d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): crates/crab-git/src/url.rs:220-235 | crates/crab-git/src/url.rs:294-309 \u2014 both copies are in the same file, so extract the block 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/crab-git/src/url.rs"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ec450743b1e544bedf93654ae512393ad7952c9e25a7bd4d2c2245e6d9a7c50"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): crates/crab-http-server/src/auth.rs:1055-1070 | crates/crab-http-server/src/auth.rs:1101-1116 \u2014 both copies are in the same file, so extract the block 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/crab-http-server/src/auth.rs:1055\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/crab-http-server/src/auth.rs"},"region":{"startLine":1055}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1fe69d5284da28a8cf8555fb4a7a82a873aae294d4d893482e3220e1c9faef1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): crates/crab-staging/src/lib.rs:2841-2856 | crates/crab-staging/src/lib.rs:3875-3890 \u2014 both copies are in the same file, so extract the block 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/crab-staging/src/lib.rs"},"region":{"startLine":2841}}}],"partialFingerprints":{"codehealthFindingId/v1":"581657bcbc3ee53d10a669accdcda68d86cfd8ed5056e78715b7d763c8014af6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): crates/crab-storage/src/store.rs:2459-2474 | crates/crab-storage/src/store.rs:2572-2587 \u2014 both copies are in the same file, so extract the block 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/crab-storage/src/store.rs:2459\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/crab-storage/src/store.rs"},"region":{"startLine":2459}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c6b93237948ab54998152ce428154777868bc9c66ec53d52bea64a2114db03d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): crates/crab-vfs/src/overlay.rs:1162-1177 | crates/crab-vfs/src/overlay.rs:1272-1287 \u2014 both copies are in the same file, so extract the block 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/crab-vfs/src/overlay.rs:1162\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/crab-vfs/src/overlay.rs"},"region":{"startLine":1162}}}],"partialFingerprints":{"codehealthFindingId/v1":"1aa9ba25400cc76d4a44093f455332fa8cb17b19606e59d9f3f741d360db9030"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): crates/crab-workflow/src/exp_worktree.rs:1762-1777 | crates/crab-workflow/src/exp_worktree.rs:1824-1839 \u2014 both copies are in the same file, so extract the block 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/crab-workflow/src/exp_worktree.rs:1762\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/crab-workflow/src/exp_worktree.rs"},"region":{"startLine":1762}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f126385ff7f0afe9e76bf3807a53493df66faf45bb069d50841433c3cfdf7d0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): crates/crab-workflow/src/exp_worktree.rs:1876-1891 | crates/crab-workflow/src/exp_worktree.rs:1938-1953 \u2014 both copies are in the same file, so extract the block 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/crab-workflow/src/exp_worktree.rs:1876\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/crab-workflow/src/exp_worktree.rs"},"region":{"startLine":1876}}}],"partialFingerprints":{"codehealthFindingId/v1":"daa734861605965c573d2838990a83dffdad80ca6284eb1742a007c0f3229903"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): crates/crab-workflow/src/params.rs:568-583 | crates/crab-workflow/src/params.rs:595-610 \u2014 both copies are in the same file, so extract the block 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/crab-workflow/src/params.rs:568\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/crab-workflow/src/params.rs"},"region":{"startLine":568}}}],"partialFingerprints":{"codehealthFindingId/v1":"a01d60f3e3f749dba51324f1f20441bb746c0db5703ae4c016cc1d0aaf655856"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201316 lines \u00D7 2): crates/crab-workflow/src/params.rs:877-892 | crates/crab-workflow/src/params.rs:935-945 \u2014 both copies are in the same file, so extract the block 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/crab-workflow/src/params.rs:877\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 \u0060value\u0060 to \u0060\u0026serde_yaml::Value\u0060 in one and \u0060\u0026serde_json::Value\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/crab-workflow/src/params.rs"},"region":{"startLine":877}}}],"partialFingerprints":{"codehealthFindingId/v1":"3553802eb44386022bc676e45b5f1342218d6ee3393f2bb4b992208ce53c7c91"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 5): crab/src/cmd/add.rs:3149-3164 | crab/src/cmd/add.rs:3243-3258 | crab/src/cmd/dehydrate.rs:491-506 | crab/src/cmd/hydrate.rs:3577-3592 | crab/src/cmd/status.rs:816-831 \u2014 before extracting anything, compare \u0060crab/src/cmd/add.rs\u0060 and \u0060crab/src/cmd/dehydrate.rs\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 131 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 \u0060crab/src/cmd/add.rs:3149\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, \u0060crab/src/cmd/dehydrate.rs:489\u0060 calls \u0060check_cancelled\u0060 and \u0060crab/src/cmd/status.rs:815\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":"crab/src/cmd/add.rs"},"region":{"startLine":3149}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3f8c9939fe6c61be9b4d3eb10a36f11103b23c793763d7748b126431df7f250"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201315 lines \u00D7 3): crab/src/cmd/add.rs:1127-1139 | crab/src/cmd/add.rs:1201-1215 | crab/src/cmd/add.rs:1236-1248 \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":"crab/src/cmd/add.rs"},"region":{"startLine":1127}}}],"partialFingerprints":{"codehealthFindingId/v1":"587cefa19e37725ef66a61d620da88deaf3d655ba21ca25ed38377efd88b1b39"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 3): crab/src/cmd/adopt.rs:741-755 | crab/src/cmd/unadopt.rs:341-355 | crab/src/cmd/undo.rs:115-129 \u2014 before extracting anything, compare \u0060crab/src/cmd/adopt.rs\u0060 and \u0060crab/src/cmd/unadopt.rs\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 108 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":"crab/src/cmd/adopt.rs"},"region":{"startLine":741}}}],"partialFingerprints":{"codehealthFindingId/v1":"77803f2fdcc68d3cc34d819a11b9574e51ff1e0b46790521bfb67e8fbd8c67a2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 3): crab/src/cmd/metrics.rs:989-1003 | crab/src/cmd/metrics.rs:1021-1035 | crab/src/cmd/metrics.rs:1059-1073 \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 \u0060crab/src/cmd/metrics.rs:989\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":"crab/src/cmd/metrics.rs"},"region":{"startLine":989}}}],"partialFingerprints":{"codehealthFindingId/v1":"44255444c2a767237b4d5c31c22d33224d4aa8442f0bff99a7a91196534286ae"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 3): crab/src/cmd/replica.rs:2885-2899 | crab/src/replication/mod.rs:7457-7470 | crab/src/replication/mod.rs:7486-7499 \u2014 before extracting anything, compare \u0060crab/src/cmd/replica.rs\u0060 and \u0060crab/src/replication/mod.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 47 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/cmd/replica.rs"},"region":{"startLine":2885}}}],"partialFingerprints":{"codehealthFindingId/v1":"f047a4b7f5b1573879dfd35aa7eebf100f53516b125d6c45ebe129a4229da4c8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 3): crab/src/cmd/run.rs:772-786 | crab/src/cmd/run.rs:2212-2226 | crab/src/cmd/run.rs:2848-2862 \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 \u0060crab/src/cmd/run.rs:772\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":"crab/src/cmd/run.rs"},"region":{"startLine":772}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c66caa17b985d64ce9b89daa7887e420b09edfcf0d29b119753b1921ff83160"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 3): crab/src/git/incremental_walk.rs:104-118 | crates/crab-vfs/src/snapshot.rs:559-573 | crates/crab-workflow/src/params_runtime.rs:374-387 \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":"crab/src/git/incremental_walk.rs"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"15dd4e021b47478df230ca6924faf537daf7551f18256e1338c823f7ee6e3d9d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201315 lines \u00D7 2): crab/src/cmd/exp.rs:6268-6282 | crab/src/cmd/metrics.rs:4167-4177 \u2014 before extracting anything, compare \u0060crab/src/cmd/exp.rs\u0060 and \u0060crab/src/cmd/metrics.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 35 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 \u0060crab/src/cmd/metrics.rs:4167\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":"crab/src/cmd/exp.rs"},"region":{"startLine":6268}}}],"partialFingerprints":{"codehealthFindingId/v1":"44e8e9485e1b3fde000f1892fd8dfe0ac5b0400e02da3d55badbe3f41efcc4b3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201315 lines \u00D7 2): crab/src/cmd/lfs/fsck.rs:364-378 | crab/src/lfs/migrate.rs:2800-2811 \u2014 before extracting anything, compare \u0060crab/src/cmd/lfs/fsck.rs\u0060 and \u0060crab/src/lfs/migrate.rs\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 40 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crab/src/cmd/lfs/fsck.rs:364\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":"crab/src/cmd/lfs/fsck.rs"},"region":{"startLine":364}}}],"partialFingerprints":{"codehealthFindingId/v1":"d11b79f034b86b55240cb1cb006072e8a5b1b44aa5e7e659b7f1b4558bf23f68"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): crab/src/cmd/lfs/fsck.rs:463-477 | crab/src/lfs/prune.rs:951-965 \u2014 before extracting anything, compare \u0060crab/src/cmd/lfs/fsck.rs\u0060 and \u0060crab/src/lfs/prune.rs\u0060 as WHOLE FILES: this scan already matched 3 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. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. 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":"crab/src/cmd/lfs/fsck.rs"},"region":{"startLine":463}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffa41616d8bb22b2bae559f08afeb344927b7108d7a079f9330a20274ad5d057"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): crab/src/cmd/metrics.rs:1272-1286 | crab/src/cmd/metrics.rs:1338-1352 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crab/src/cmd/metrics.rs:1272\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, \u0060crab/src/cmd/metrics.rs:1269\u0060 calls \u0060reject_image_sources_for_vega\u0060 and \u0060crab/src/cmd/metrics.rs:1336\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":"crab/src/cmd/metrics.rs"},"region":{"startLine":1272}}}],"partialFingerprints":{"codehealthFindingId/v1":"95c7e7ca06b921ff15b9b3691ce6e6ea948a3233b5e9f9d8ae90490a365b26cd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201315 lines \u00D7 2): crab/src/cmd/run.rs:3448-3462 | crates/crab-workflow/src/executor.rs:2311-2320 \u2014 before extracting anything, compare \u0060crab/src/cmd/run.rs\u0060 and \u0060crates/crab-workflow/src/executor.rs\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 100 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crab/src/cmd/run.rs:3448\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":"crab/src/cmd/run.rs"},"region":{"startLine":3448}}}],"partialFingerprints":{"codehealthFindingId/v1":"9dc98893c262814a327f9623ae99f3f66daefdd5b401a8317094a6ef5be6caaa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): crab/src/core/error.rs:2619-2633 | crab/src/core/error_catalog.rs:1554-1568 \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 \u0060crab/src/core/error.rs:2619\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":"crab/src/core/error.rs"},"region":{"startLine":2619}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c78d7568d364feed2f0ece81ebf637b2f5d5b2e3df9815bc71e9885d59849e6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): crab/src/git/pack.rs:736-750 | crab/src/git/pack.rs:954-968 \u2014 both copies are in the same file, so extract the block 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":"crab/src/git/pack.rs"},"region":{"startLine":736}}}],"partialFingerprints":{"codehealthFindingId/v1":"79de68b191336937bd8746d989a72c7c855c5080c60c23405785e5f6e73752fc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): crab/src/git/progress.rs:650-664 | crab/src/git/progress.rs:688-702 \u2014 both copies are in the same file, so extract the block 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 \u0060crab/src/git/progress.rs:650\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":"crab/src/git/progress.rs"},"region":{"startLine":650}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b912611ac28219aa8f0b4b8767a8d5ad81bc533bd6124816ef8888b3a6adf3b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): crab/src/git/push.rs:5354-5368 | crab/src/git/push.rs:5383-5397 \u2014 both copies are in the same file, so extract the block 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 \u0060crab/src/git/push.rs:5354\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":"crab/src/git/push.rs"},"region":{"startLine":5354}}}],"partialFingerprints":{"codehealthFindingId/v1":"27d28d01fa4b95941e86659350bc5b4be7dd8fb6cb0e428d5ce90f73a7be228c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): crab/src/git/push_native.rs:719-733 | crab/src/git/push_native.rs:750-764 \u2014 both copies are in the same file, so extract the block 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 \u0060crab/src/git/push_native.rs:719\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":"crab/src/git/push_native.rs"},"region":{"startLine":719}}}],"partialFingerprints":{"codehealthFindingId/v1":"460f21be873b49aba151193f801ca735aad9f93690784f3e6578de7fa5b799c2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201315 lines \u00D7 2): crab/src/git/smudge.rs:179-193 | crab/src/git/smudge.rs:225-237 \u2014 both copies are in the same file, so extract the block 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 \u0060crab/src/git/smudge.rs:179\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":"crab/src/git/smudge.rs"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"8af25f2fd8be8134348056c2664d50227c04e6b715cb0e180768ed5d35dae1a5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): crab/src/metadata/metadb/mod.rs:785-799 | crab/src/metadata/metadb/mod.rs:816-830 \u2014 both copies are in the same file, so extract the block 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 \u0060crab/src/metadata/metadb/mod.rs:785\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":"crab/src/metadata/metadb/mod.rs"},"region":{"startLine":785}}}],"partialFingerprints":{"codehealthFindingId/v1":"520c7124109cdc1207ba9a2d466893ffcdc660cb06b7ce05d695e56d93181d80"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201315 lines \u00D7 2): crates/crab-cache-store/src/lib.rs:584-596 | crates/crab-cache-store/src/lib.rs:605-619 \u2014 both copies are in the same file, so extract the block 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/crab-cache-store/src/lib.rs:584\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/crab-cache-store/src/lib.rs"},"region":{"startLine":584}}}],"partialFingerprints":{"codehealthFindingId/v1":"24b2c9d8caf20e442765506d60265d452607d43991a54bfb4bf9038b92214980"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201315 lines \u00D7 2): crates/crab-coordination/src/push_admission.rs:186-200 | crates/crab-coordination/src/push_admission.rs:211-223 \u2014 both copies are in the same file, so extract the block 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/crab-coordination/src/push_admission.rs:186\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/crab-coordination/src/push_admission.rs"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"0099ff9d3ec0fae6f113b64e0f174bdd318b41bd6e4637652de42910bbfd2ca8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): crates/crab-coordination/src/write_coordinator.rs:1051-1065 | crates/crab-coordination/src/write_coordinator.rs:1526-1540 \u2014 both copies are in the same file, so extract the block 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/crab-coordination/src/write_coordinator.rs:1051\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/crab-coordination/src/write_coordinator.rs"},"region":{"startLine":1051}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a8e216c4e695452f34d9d26132f833ee77f1fde467572e379e37058a76f5124"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201315 lines \u00D7 2): crates/crab-http-server/src/branches.rs:218-232 | crates/crab-http-server/src/contents.rs:300-309 \u2014 before extracting anything, compare \u0060crates/crab-http-server/src/branches.rs\u0060 and \u0060crates/crab-http-server/src/contents.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 47 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/crab-http-server/src/branches.rs:218\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/crab-http-server/src/branches.rs"},"region":{"startLine":218}}}],"partialFingerprints":{"codehealthFindingId/v1":"0da0e32f1ca8103045810f15fb21d1718b0badcc030d2e663e47838048330534"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 2): crates/crab-metadata/src/git_object_locator/reader.rs:553-566 | crates/crab-metadata/src/git_object_locator/reader.rs:608-622 \u2014 both copies are in the same file, so extract the block 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/crab-metadata/src/git_object_locator/reader.rs:553\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/crab-metadata/src/git_object_locator/reader.rs"},"region":{"startLine":553}}}],"partialFingerprints":{"codehealthFindingId/v1":"223326098424dbd22409af02f2582097188712bbb893855a85a07ce4f8b89564"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 2): crates/crab-metadata/src/persistent_chunk_index.rs:272-286 | crates/crab-metadata/src/persistent_chunk_index.rs:319-332 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-metadata/src/persistent_chunk_index.rs"},"region":{"startLine":272}}}],"partialFingerprints":{"codehealthFindingId/v1":"c153283159999006dc08ffc8fc2b236b9daa6edca5fe4a5540bcfc36a4beec4e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): crates/crab-staging/src/lib.rs:2645-2659 | crates/crab-staging/src/lib.rs:4063-4077 \u2014 both copies are in the same file, so extract the block 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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060crates/crab-staging/src/lib.rs:4080\u0060 calls \u0060unresolved_publication_intents\u0060 and \u0060crates/crab-staging/src/lib.rs:2662\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/crab-staging/src/lib.rs"},"region":{"startLine":2645}}}],"partialFingerprints":{"codehealthFindingId/v1":"730869958807f28fa1f0240712b60543efe9a1a20f7fa0dc1022629fde6430fb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): crates/crab-vfs/src/nfs_control.rs:954-968 | crates/crab-vfs/src/nfs_control.rs:983-997 \u2014 both copies are in the same file, so extract the block 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/crab-vfs/src/nfs_control.rs:954\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/crab-vfs/src/nfs_control.rs"},"region":{"startLine":954}}}],"partialFingerprints":{"codehealthFindingId/v1":"e192b48f6fd4c34c1ac7bba5ea02e650ad4add130e2c5edd7c9e6bfdf5b5abf2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): crates/crab-workflow/src/exp_worktree.rs:1268-1282 | crates/crab-workflow/src/params.rs:393-407 \u2014 before extracting anything, compare \u0060crates/crab-workflow/src/exp_worktree.rs\u0060 and \u0060crates/crab-workflow/src/params.rs\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 94 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/crab-workflow/src/exp_worktree.rs"},"region":{"startLine":1268}}}],"partialFingerprints":{"codehealthFindingId/v1":"02cde3252a28365e4473e2fcf4d3568159bd4cf776d4d78597822da7e6b080f1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 2): crates/crab-workflow/src/journal.rs:455-469 | crates/crab-workflow/src/journal.rs:627-640 \u2014 both copies are in the same file, so extract the block 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/crab-workflow/src/journal.rs:455\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/crab-workflow/src/journal.rs"},"region":{"startLine":455}}}],"partialFingerprints":{"codehealthFindingId/v1":"40463d3c267794d9db3e1d4357d1c6dd2cc831af1d86e712c1652d9c64b67e7d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 2): crates/crab-workflow/src/materialize.rs:94-108 | crates/crab-workflow/src/materialize.rs:173-186 \u2014 both copies are in the same file, so extract the block 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/crab-workflow/src/materialize.rs:172\u0060 calls \u0060validate_tree_manifest\u0060 and \u0060crates/crab-workflow/src/materialize.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/crab-workflow/src/materialize.rs"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"a09af9eeb70d9e0300f25bf4f6977449437f5f76f140677668469ee829aa0d6c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23\u201327 lines \u00D7 2): crates/crab-workflow/src/signals.rs:471-497 | crates/crab-workflow/src/signals.rs:566-588 \u2014 both copies are in the same file, so extract the block 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/crab-workflow/src/signals.rs:471\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/crab-workflow/src/signals.rs"},"region":{"startLine":471}}}],"partialFingerprints":{"codehealthFindingId/v1":"5eafcf060fbcbea4ebd73837089bd73f3c75e9c43d44ce8e5b6603690a7d4675"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 8): crab/src/cmd/add.rs:3156-3169 | crab/src/cmd/add.rs:3250-3263 | crab/src/cmd/dehydrate.rs:498-511 | crab/src/cmd/hydrate.rs:3584-3597 | crab/src/cmd/ls_files.rs:109-122 | crab/src/cmd/reset.rs:308-320 | crab/src/cmd/status.rs:393-405 | crab/src/cmd/status.rs:823-836 \u2014 before extracting anything, compare \u0060crab/src/cmd/add.rs\u0060 and \u0060crab/src/cmd/dehydrate.rs\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 131 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 \u0060crab/src/cmd/add.rs:3156\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":"crab/src/cmd/add.rs"},"region":{"startLine":3156}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6e025080a2b2fd2db1a6846b51153d833417b99cd04699e2c1a4cb7ade2f7a4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 5): crab/src/cmd/add.rs:3265-3279 | crab/src/cmd/dehydrate.rs:513-527 | crab/src/cmd/hydrate.rs:3599-3613 | crab/src/cmd/reset.rs:322-335 | crab/src/cmd/status.rs:407-420 \u2014 before extracting anything, compare \u0060crab/src/cmd/add.rs\u0060 and \u0060crab/src/cmd/dehydrate.rs\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 131 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 \u0060crab/src/cmd/add.rs:3265\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":"crab/src/cmd/add.rs"},"region":{"startLine":3265}}}],"partialFingerprints":{"codehealthFindingId/v1":"82dc361bd6d12142b0b55f08e87932b38dc2ebc0082f1474d5c808933dd2ff98"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 3): crab/src/cmd/run.rs:843-855 | crab/src/cmd/run.rs:2272-2285 | crab/src/cmd/run.rs:2911-2923 \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. 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":"crab/src/cmd/run.rs"},"region":{"startLine":843}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd0cfa578f9df3814fc08c48d671c7c0f2e89fc3dbd92e540d8055a171ae5896"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3): crates/crab-lfs/src/lock.rs:302-315 | crates/crab-lfs/src/lock.rs:358-371 | crates/crab-lfs/src/lock.rs:478-491 \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/crab-lfs/src/lock.rs:302\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/crab-lfs/src/lock.rs"},"region":{"startLine":302}}}],"partialFingerprints":{"codehealthFindingId/v1":"848658165a61193e859197b25758679df9b8a0ab9b5e8314ed9af402606ace37"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): crab/src/cmd/config.rs:224-237 | crab/src/cmd/config.rs:464-477 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crab/src/cmd/config.rs:224\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":"crab/src/cmd/config.rs"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab7763c57a46a1c9242942c9e053151178d90b6322de0fb57fea783239ac83da"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): crab/src/cmd/data.rs:1190-1203 | crab/src/cmd/data.rs:1205-1218 \u2014 both copies are in the same file, so extract the block 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 \u0060crab/src/cmd/data.rs:1190\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":"crab/src/cmd/data.rs"},"region":{"startLine":1190}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b2216e156083fb26ce96a89d2e59de29cd95ebff015bacaf7c7a142aec72ee2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 2): crab/src/cmd/doctor.rs:2102-2115 | crates/crab-cache-server/src/onboarding.rs:742-754 \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. 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":"crab/src/cmd/doctor.rs"},"region":{"startLine":2102}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6ea9d7cf462f7826bf44eb5420e3ba4aea1b8d85b3ba617f09083791333f8fb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): crab/src/cmd/gc/journal.rs:441-454 | crab/src/cmd/gc/journal.rs:565-578 \u2014 both copies are in the same file, so extract the block 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 \u0060crab/src/cmd/gc/journal.rs:441\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":"crab/src/cmd/gc/journal.rs"},"region":{"startLine":441}}}],"partialFingerprints":{"codehealthFindingId/v1":"05eff9b8421e9e7d1890b946335dbadeb6c89a02fe3b01e02ef274f78e9776cd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201314 lines \u00D7 2): crab/src/cmd/lfs/dedup.rs:782-793 | crab/src/cmd/lfs/dedup.rs:794-807 \u2014 both copies are in the same file, so extract the block 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 \u0060crab/src/cmd/lfs/dedup.rs:782\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":"crab/src/cmd/lfs/dedup.rs"},"region":{"startLine":782}}}],"partialFingerprints":{"codehealthFindingId/v1":"28d6677c9f3218d424caab21a6a558f708f0a4826df0e491aaf66c230678bbcf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): crab/src/cmd/metadb.rs:2313-2326 | crab/src/cmd/metadb.rs:2617-2630 \u2014 both copies are in the same file, so extract the block 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 \u0060crab/src/cmd/metadb.rs:2313\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":"crab/src/cmd/metadb.rs"},"region":{"startLine":2313}}}],"partialFingerprints":{"codehealthFindingId/v1":"a77f00cc2465fdae6d4573179addf000438f7dc58e22b50ecec58dab2c7f14b6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): crab/src/cmd/migrate.rs:2497-2510 | crab/src/cmd/migrate.rs:2550-2563 \u2014 both copies are in the same file, so extract the block 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 \u0060crab/src/cmd/migrate.rs:2497\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":"crab/src/cmd/migrate.rs"},"region":{"startLine":2497}}}],"partialFingerprints":{"codehealthFindingId/v1":"04d40746c8fdd753c7a84e12c440848f5a573982be7f349e0db3e660604e88f9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 2): crab/src/cmd/repack.rs:560-572 | crab/src/replication/mod.rs:8212-8225 \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 \u0060crab/src/cmd/repack.rs:560\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":"crab/src/cmd/repack.rs"},"region":{"startLine":560}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d08f89165b4f612476afad85340037c44d0a6f2664469b087608aa012e9c3ce"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): crab/src/git/clean.rs:1345-1358 | crab/src/git/clean.rs:1387-1400 \u2014 both copies are in the same file, so extract the block 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 \u0060crab/src/git/clean.rs:1345\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":"crab/src/git/clean.rs"},"region":{"startLine":1345}}}],"partialFingerprints":{"codehealthFindingId/v1":"f089fed04baee5e2d3199a5817d26b019442af1679ca2466e0210b061b80edf3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): crab/src/git/progress.rs:1169-1182 | crab/src/git/progress.rs:1184-1197 \u2014 both copies are in the same file, so extract the block 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":"crab/src/git/progress.rs"},"region":{"startLine":1169}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ba5ffad1090bb19cf6899d6ea86ca36797f715c4eec9e2bd20e03e9bed92e81"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): crab/src/git/push.rs:18326-18339 | crates/crab-git/src/walk.rs:170-183 \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 \u0060crab/src/git/push.rs:18326\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":"crab/src/git/push.rs"},"region":{"startLine":18326}}}],"partialFingerprints":{"codehealthFindingId/v1":"710c627754bff447f4ca6dec3d7c4281842eb8f2072b1f2c392e4b0a5f7ff6aa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201314 lines \u00D7 2): crab/src/lfs/migrate.rs:969-982 | crab/src/lfs/migrate.rs:1100-1110 \u2014 both copies are in the same file, so extract the block 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 \u0060crab/src/lfs/migrate.rs:969\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":"crab/src/lfs/migrate.rs"},"region":{"startLine":969}}}],"partialFingerprints":{"codehealthFindingId/v1":"879b9f03903c550680315b6ac123042075d25874bd85d04ee8122d6e50063122"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): crab/src/lfs/recent.rs:231-244 | crab/src/lfs/recent.rs:260-273 \u2014 both copies are in the same file, so extract the block 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 \u0060crab/src/lfs/recent.rs:231\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":"crab/src/lfs/recent.rs"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"409c4abd410da49273ac00471ec3dab7a381e2b88c2a140aa6dd2afdff691513"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): crab/src/lfs/transfer_agent.rs:428-441 | crab/src/lfs/transfer_agent.rs:509-522 \u2014 both copies are in the same file, so extract the block 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 \u0060crab/src/lfs/transfer_agent.rs:428\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":"crab/src/lfs/transfer_agent.rs"},"region":{"startLine":428}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8e33ddd553b1bd7cb45aac634abba6dfb2ecf475a2593623ce7317284173dc3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): crab/src/read/mod.rs:558-571 | crab/src/read/mod.rs:643-656 \u2014 both copies are in the same file, so extract the block 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":"crab/src/read/mod.rs"},"region":{"startLine":558}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6cb6f1cc32e20bee831180629f45b530613fbc3765f35f5769e1618637d69e9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 2): crab/src/replication/mod.rs:1909-1922 | crab/src/replication/mod.rs:1990-2002 \u2014 both copies are in the same file, so extract the block 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 \u0060crab/src/replication/mod.rs:1909\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":"crab/src/replication/mod.rs"},"region":{"startLine":1909}}}],"partialFingerprints":{"codehealthFindingId/v1":"64a910e4e759d7cdabc2c9f01889710543a04b4c024148316c50c781aeefed0b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): crates/crab-auth-server/src/receive.rs:1238-1251 | crates/crab-auth-server/src/view/objects.rs:224-237 \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/crab-auth-server/src/receive.rs:1238\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/crab-auth-server/src/receive.rs"},"region":{"startLine":1238}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c5dfa4150e11fe45e186aabb814ee47cb8400777ca25aef020b50b8e678faad"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 2): crates/crab-auth-server/src/receive.rs:1837-1849 | crates/crab-write/src/catalog.rs:706-719 \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/crab-auth-server/src/receive.rs"},"region":{"startLine":1837}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e89b0f91b32657ed180b1703dcb7d99eb96f40be9f44aa78169939e49e05d23"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): crates/crab-auth/src/crab_auth_client.rs:167-180 | crates/crab-auth/src/crab_auth_client.rs:248-261 \u2014 both copies are in the same file, so extract the block 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/crab-auth/src/crab_auth_client.rs:167\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/crab-auth/src/crab_auth_client.rs"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6604322848c85389bfc52c3e7222e4180c9e843f2a9fe659a1e4543e6f7a0c9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): crates/crab-cache-server/src/handlers.rs:324-337 | crates/crab-cache-server/src/handlers.rs:419-432 \u2014 both copies are in the same file, so extract the block 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/crab-cache-server/src/handlers.rs:324\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/crab-cache-server/src/handlers.rs"},"region":{"startLine":324}}}],"partialFingerprints":{"codehealthFindingId/v1":"e42db588fc0060be09acb79457c84635c27ac8cd2a25df477f04c07b9cafcfd6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): crates/crab-cache-server/src/handlers.rs:1965-1978 | crates/crab-cache-server/src/handlers.rs:1997-2010 \u2014 both copies are in the same file, so extract the block 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/crab-cache-server/src/handlers.rs"},"region":{"startLine":1965}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4516f919e65d690d679018bdec27ed727316f9cdcf5fa278382948b654bf384"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): crates/crab-cache/src/local_cache.rs:519-532 | crates/crab-cache/src/local_cache.rs:554-567 \u2014 both copies are in the same file, so extract the block 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/crab-cache/src/local_cache.rs"},"region":{"startLine":519}}}],"partialFingerprints":{"codehealthFindingId/v1":"12d5645023fb5aba94fb865b36adb910d8c19fc3c081002416b5c131f268895a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): crates/crab-http-server/src/contents.rs:450-463 | crates/crab-http-server/src/contents.rs:541-554 \u2014 both copies are in the same file, so extract the block 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/crab-http-server/src/contents.rs"},"region":{"startLine":450}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2bde7f72b489abebdcf95f21dd5146b3ff1e646df13f30402fcfafcadcfb87a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): crates/crab-metadata/src/git_object_locator/reader.rs:667-680 | crates/crab-metadata/src/git_object_locator/reader.rs:758-771 \u2014 both copies are in the same file, so extract the block 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/crab-metadata/src/git_object_locator/reader.rs:667\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/crab-metadata/src/git_object_locator/reader.rs"},"region":{"startLine":667}}}],"partialFingerprints":{"codehealthFindingId/v1":"d85b773d00eec36b24bd805e4c26ad59885b0826020892c61d11e5052581875d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 2): crates/crab-metadata/src/pack_origin.rs:152-165 | crates/crab-metadata/src/pack_origin.rs:226-238 \u2014 both copies are in the same file, so extract the block 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/crab-metadata/src/pack_origin.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. 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/crab-metadata/src/pack_origin.rs"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"96219bf8e601583cc73ed991e9e1a62a9a665d077de9ae7779e450538622b398"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 2): crates/crab-remote-git/src/runtime.rs:481-494 | crates/crab-remote-git/src/runtime.rs:602-614 \u2014 both copies are in the same file, so extract the block 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/crab-remote-git/src/runtime.rs:481\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/crab-remote-git/src/runtime.rs"},"region":{"startLine":481}}}],"partialFingerprints":{"codehealthFindingId/v1":"39d1b229be9252398e04415a1f26ef4a444d154b6832842c635730c1a81c8b1d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): crates/crab-staging/src/index.rs:8383-8396 | crates/crab-staging/src/index.rs:8446-8459 \u2014 both copies are in the same file, so extract the block 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/crab-staging/src/index.rs"},"region":{"startLine":8383}}}],"partialFingerprints":{"codehealthFindingId/v1":"56ec6c65c524237ebcb6a123266077861283e10ab3074fb054675bf719a026b7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): crates/crab-staging/src/push_plan.rs:1099-1112 | crates/crab-staging/src/push_plan.rs:1140-1153 \u2014 both copies are in the same file, so extract the block 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/crab-staging/src/push_plan.rs"},"region":{"startLine":1099}}}],"partialFingerprints":{"codehealthFindingId/v1":"b93920dd458903cb71b09bff874cfe151a5ec4adcd6ddc863002a7f11ea53599"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 2): crates/crab-storage/src/head_batch.rs:156-169 | crates/crab-storage/src/head_batch.rs:230-242 \u2014 both copies are in the same file, so extract the block 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/crab-storage/src/head_batch.rs:156\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/crab-storage/src/head_batch.rs"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb65dbe05a40ac04528c52459cd3b6a32c04a809ccd05f60e5415c1e40c5b4ff"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 2): crates/crab-storage/src/store.rs:335-348 | crates/crab-storage/src/store.rs:364-376 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/crab-storage/src/store.rs:335\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/crab-storage/src/store.rs"},"region":{"startLine":335}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d16f0e7496cbd698bb440b3ed6356500ddc58f12fa69109b3413955b6b8d2c2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): crates/crab-vfs/src/daemon.rs:1299-1312 | crates/crab-vfs/src/daemon.rs:1368-1381 \u2014 both copies are in the same file, so extract the block 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/crab-vfs/src/daemon.rs:1299\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/crab-vfs/src/daemon.rs"},"region":{"startLine":1299}}}],"partialFingerprints":{"codehealthFindingId/v1":"65d0e9ea9c6a2244cc72c00ffb87697919264274bd4ce16befe3c49a28945ca1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): crates/crab-vfs/src/overlay.rs:1034-1047 | crates/crab-vfs/src/overlay.rs:1443-1456 \u2014 both copies are in the same file, so extract the block 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/crab-vfs/src/overlay.rs:1441\u0060 calls \u0060set_path_permissions\u0060 and \u0060crates/crab-vfs/src/overlay.rs:1032\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/crab-vfs/src/overlay.rs"},"region":{"startLine":1034}}}],"partialFingerprints":{"codehealthFindingId/v1":"8add4af5b3544f8064b96e0791e75113689ba1b5737f86d03a298de287a6c099"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): crates/crab-workflow/src/artifact.rs:2119-2132 | crates/crab-workflow/src/artifact.rs:2151-2164 \u2014 both copies are in the same file, so extract the block 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/crab-workflow/src/artifact.rs"},"region":{"startLine":2119}}}],"partialFingerprints":{"codehealthFindingId/v1":"9057922d78cf8f8f38c8dbcb0fc0f863b6bfd3f79772d66d067fb45fdc80d206"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): crates/crab-workflow/src/template/context.rs:406-419 | crates/crab-workflow/src/template/context.rs:423-436 \u2014 both copies are in the same file, so extract the block 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/crab-workflow/src/template/context.rs:406\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/crab-workflow/src/template/context.rs"},"region":{"startLine":406}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d91b87a729ff507654f4653abcdad984929fe7a64b8718fd998d54bbfd79fad"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 2): crates/crab-workflow/src/template/foreach.rs:139-152 | crates/crab-workflow/src/template/matrix.rs:178-190 \u2014 before extracting anything, compare \u0060crates/crab-workflow/src/template/foreach.rs\u0060 and \u0060crates/crab-workflow/src/template/matrix.rs\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 106 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. 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/crab-workflow/src/template/foreach.rs"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"b62a8292e5b84e94ddf98a1a77676292da953678c388ffb4b2a6719b73f00c37"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): crates/crab-workflow/src/template/substitute.rs:229-242 | crates/crab-workflow/src/yaml.rs:633-646 \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/crab-workflow/src/template/substitute.rs"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d761f096b31cb05d418bd5a888af67464dbfa58b0affb948fb0c5fec21520cc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 5): crates/crab-staging/src/index.rs:1132-1143 | crates/crab-staging/src/index.rs:4117-4129 | crates/crab-staging/src/index.rs:4180-4191 | crates/crab-staging/src/index.rs:4583-4594 | crates/crab-staging/src/index.rs:5115-5126 \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/crab-staging/src/index.rs:1132\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060crates/crab-staging/src/index.rs:4192\u0060 calls \u0060optional\u0060 and \u0060crates/crab-staging/src/index.rs:5127\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/crab-staging/src/index.rs"},"region":{"startLine":1132}}}],"partialFingerprints":{"codehealthFindingId/v1":"37f3b63ce711954037baf76923960e4dcfeb3793e0e41efcdf637f5731933015"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 4): crab/src/cmd/add.rs:3450-3462 | crab/src/cmd/dehydrate.rs:444-456 | crab/src/cmd/hydrate.rs:3526-3538 | crab/src/cmd/reset.rs:481-493 \u2014 before extracting anything, compare \u0060crab/src/cmd/add.rs\u0060 and \u0060crab/src/cmd/dehydrate.rs\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 131 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 \u0060crab/src/cmd/add.rs:3450\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":"crab/src/cmd/add.rs"},"region":{"startLine":3450}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6c662b573eef0e1dbfb8ae36daa709834e88ac75f3584e07e594e3c0f837c61"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 4): crab/src/cmd/data.rs:1761-1773 | crab/src/cmd/exp.rs:1891-1903 | crab/src/cmd/exp.rs:2305-2317 | crab/src/cmd/exp.rs:2418-2430 \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 \u0060crab/src/cmd/data.rs:1761\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":"crab/src/cmd/data.rs"},"region":{"startLine":1761}}}],"partialFingerprints":{"codehealthFindingId/v1":"fca30496694b679d3d882954e04f79c6adba0fc8f038a648241ab8a6488f10a7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 4): crab/src/cmd/dehydrate.rs:396-408 | crab/src/cmd/hydrate.rs:3478-3490 | crab/src/cmd/reset.rs:433-445 | crab/src/cmd/status.rs:655-667 \u2014 before extracting anything, compare \u0060crab/src/cmd/dehydrate.rs\u0060 and \u0060crab/src/cmd/hydrate.rs\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 223 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":"crab/src/cmd/dehydrate.rs"},"region":{"startLine":396}}}],"partialFingerprints":{"codehealthFindingId/v1":"64f768c376ece39a6398bd338fc562b7be690d78c997273eace80856e00a3c02"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 4): crab/src/git/progress.rs:843-855 | crab/src/git/progress.rs:892-904 | crab/src/git/progress.rs:1238-1250 | crab/src/git/progress.rs:1287-1299 \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 \u0060crab/src/git/progress.rs:843\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":"crab/src/git/progress.rs"},"region":{"startLine":843}}}],"partialFingerprints":{"codehealthFindingId/v1":"778e499f323d75b894699d223221d4047416655d6136ad15994f00f83d58f9fd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201313 lines \u00D7 3): crab/src/cmd/lfs/fsck.rs:362-372 | crab/src/cmd/lfs/ls_files.rs:362-374 | crab/src/lfs/migrate.rs:2798-2806 \u2014 before extracting anything, compare \u0060crab/src/cmd/lfs/fsck.rs\u0060 and \u0060crab/src/cmd/lfs/ls_files.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 65 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 \u0060crab/src/cmd/lfs/fsck.rs:362\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":"crab/src/cmd/lfs/fsck.rs"},"region":{"startLine":362}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6254f4fdf7640ffb6584d91d47f2f8c5a6ef36a1f7c663e8a633f7087346278"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): crab/src/cmd/run.rs:2173-2186 | crab/src/cmd/run.rs:2807-2820 | crab/src/cmd/run.rs:3599-3611 \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 \u0060crab/src/cmd/run.rs:2173\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":"crab/src/cmd/run.rs"},"region":{"startLine":2173}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a4890777bd28b043576f22fc7eac4e79141af2bd9785997c129c65ac0c134b8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): crab/src/core/config.rs:1386-1398 | crab/src/read/mod.rs:774-786 | crates/crab-git/src/discover.rs:72-84 \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. 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 \u0060git_dir\u0060 to \u0060\u0026std::path::Path\u0060 in one and \u0060\u0026Path\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":"crab/src/core/config.rs"},"region":{"startLine":1386}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e272915d92257aadb1b44ea374e87bcab77b99af7b1e784cca7d432fb422d9d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): crab/src/git/progress.rs:336-348 | crab/src/git/progress.rs:392-404 | crab/src/git/progress.rs:441-453 \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 \u0060crab/src/git/progress.rs:336\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":"crab/src/git/progress.rs"},"region":{"startLine":336}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfc8efcdd5c46d08273d4c6c2713bc4674e664bdf35c063c00290bd9a0442b9f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): crab/src/git/push.rs:11294-11306 | crab/src/git/push.rs:11330-11342 | crab/src/git/push.rs:11369-11381 \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 \u0060crab/src/git/push.rs:11294\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":"crab/src/git/push.rs"},"region":{"startLine":11294}}}],"partialFingerprints":{"codehealthFindingId/v1":"95ca5303ea2a6a2e53283b099353c6dcf2dfdff6bdc903ea2fc8a035781a0c76"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): crab/src/lfs/lock.rs:316-328 | crab/src/lfs/lock.rs:362-374 | crab/src/lfs/lock.rs:418-430 \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 \u0060crab/src/lfs/lock.rs:316\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":"crab/src/lfs/lock.rs"},"region":{"startLine":316}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2345aedf7d1eb610608dca9fba19e4a05a049de9e8d9ece2a7a0b23587396b1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): crab/src/replication/mod.rs:5175-5187 | crab/src/replication/mod.rs:5314-5326 | crab/src/replication/mod.rs:5334-5346 \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":"crab/src/replication/mod.rs"},"region":{"startLine":5175}}}],"partialFingerprints":{"codehealthFindingId/v1":"16e294526d9b58afc5dce735af5d14241d813334f354beaebed25ea236dcf2e6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): crates/crab-metadata/src/git_visibility.rs:1925-1937 | crates/crab-metadata/src/git_visibility.rs:2252-2264 | crates/crab-metadata/src/git_visibility.rs:2377-2389 \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/crab-metadata/src/git_visibility.rs:1925\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/crab-metadata/src/git_visibility.rs"},"region":{"startLine":1925}}}],"partialFingerprints":{"codehealthFindingId/v1":"7edb21872238f40697defb704c8e60af4ced392b93b783aa875e35d8f4e4338d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): crates/crab-staging/src/index.rs:2723-2735 | crates/crab-staging/src/index.rs:3225-3237 | crates/crab-staging/src/index.rs:6765-6777 \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/crab-staging/src/index.rs:2723\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/crab-staging/src/index.rs"},"region":{"startLine":2723}}}],"partialFingerprints":{"codehealthFindingId/v1":"67d8082ec0d8adf49c57d34827aee1d8574a6a02e5bc4303e37443414c97eac7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201320 lines \u00D7 2): crab/src/cmd/exp.rs:4081-4098 | crates/crab-workflow/src/exp_worktree.rs:435-454 \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 \u0060crab/src/cmd/exp.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":"crab/src/cmd/exp.rs"},"region":{"startLine":4081}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f6cbda6b55639098cc7aa4db1a63aa9d8ec22ea17e774f186a9cba454812283"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): crab/src/cmd/exp.rs:5618-5630 | crab/src/cmd/exp.rs:5644-5656 \u2014 both copies are in the same file, so extract the block 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 \u0060crab/src/cmd/exp.rs:5618\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":"crab/src/cmd/exp.rs"},"region":{"startLine":5618}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0f4ebf0d525dc698b17b6f647f0c66f68a4d8b9eb6ababde47981fb6bd0b40f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): crab/src/cmd/gc/bucket.rs:1317-1329 | crab/src/cmd/gc/bucket.rs:1336-1348 \u2014 both copies are in the same file, so extract the block 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 \u0060crab/src/cmd/gc/bucket.rs:1317\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":"crab/src/cmd/gc/bucket.rs"},"region":{"startLine":1317}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f67babd834aae0df06c5a6988e499ebae1464ef6f53a444d3e2a63d1ed863db"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 2): crab/src/cmd/gc/bucket.rs:1474-1486 | crab/src/cmd/gc/bucket.rs:1805-1816 \u2014 both copies are in the same file, so extract the block 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 \u0060crab/src/cmd/gc/bucket.rs:1474\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":"crab/src/cmd/gc/bucket.rs"},"region":{"startLine":1474}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff2bfe777644812d69dbd8690fa4b01fff5fa4306a570b1c937a9b0bc74ab63b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 2): crab/src/cmd/gc/mod.rs:2568-2580 | crab/src/cmd/gc/mod.rs:2887-2898 \u2014 both copies are in the same file, so extract the block 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 \u0060crab/src/cmd/gc/mod.rs:2568\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":"crab/src/cmd/gc/mod.rs"},"region":{"startLine":2568}}}],"partialFingerprints":{"codehealthFindingId/v1":"213f8b72c8ad3e31b74a2a0bda0b0788d1c24ac468656aa7627fb4f361067a78"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 2): crab/src/cmd/hydrate.rs:498-510 | crab/src/cmd/hydrate.rs:1027-1038 \u2014 both copies are in the same file, so extract the block 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 \u0060crab/src/cmd/hydrate.rs:498\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":"crab/src/cmd/hydrate.rs"},"region":{"startLine":498}}}],"partialFingerprints":{"codehealthFindingId/v1":"69d51895e628bc87c218a30e9e64bfffaedf1e4bf83021f7cd558d502d774891"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 2): crab/src/cmd/install.rs:226-238 | crab/src/import/assemble.rs:987-998 \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 \u0060crab/src/cmd/install.rs:226\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":"crab/src/cmd/install.rs"},"region":{"startLine":226}}}],"partialFingerprints":{"codehealthFindingId/v1":"9da5020cd24887f1ad9d29be320c4cf68fa08db10ee8628bf5be7d13345ba885"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): crab/src/cmd/lfs/dedup.rs:1288-1300 | crab/src/lfs/track.rs:449-461 \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":"crab/src/cmd/lfs/dedup.rs"},"region":{"startLine":1288}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb877529030f684e7514c165c0554c704ab5606849d30588d1f30d8f495c2fdf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): crab/src/cmd/metadb.rs:3000-3012 | crates/crab-auth-server/src/receive.rs:1749-1761 \u2014 before extracting anything, compare \u0060crab/src/cmd/metadb.rs\u0060 and \u0060crates/crab-auth-server/src/receive.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 65 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crab/src/cmd/metadb.rs:3000\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":"crab/src/cmd/metadb.rs"},"region":{"startLine":3000}}}],"partialFingerprints":{"codehealthFindingId/v1":"22678fe7529fd9c34e1ca4b017163a6db8490eacd5840b6073db99403d0e1d2a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): crab/src/cmd/replica.rs:3523-3535 | crab/src/cmd/replica.rs:3634-3646 \u2014 both copies are in the same file, so extract the block 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 \u0060crab/src/cmd/replica.rs:3523\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":"crab/src/cmd/replica.rs"},"region":{"startLine":3523}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4787a52fd8ce78df206ec277472a70ebd38e9d7fe69c73ce83214df349df404"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): crab/src/cmd/status.rs:898-910 | crab/src/cmd/why.rs:229-241 \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 \u0060crab/src/cmd/status.rs:898\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":"crab/src/cmd/status.rs"},"region":{"startLine":898}}}],"partialFingerprints":{"codehealthFindingId/v1":"00c3c11c76951740b158799220f84fae1729aebb64c57ea304245678e9933586"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): crab/src/cmd/worktree.rs:914-926 | crates/crab-cache-server/src/preflight.rs:710-722 \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":"crab/src/cmd/worktree.rs"},"region":{"startLine":914}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b8f84058b5d3280dca5b52872397ad692f9368cfab58a562a602061dd6a7e97"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): crab/src/core/error.rs:2274-2286 | crab/src/core/error.rs:2679-2691 \u2014 both copies are in the same file, so extract the block 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":"crab/src/core/error.rs"},"region":{"startLine":2274}}}],"partialFingerprints":{"codehealthFindingId/v1":"225cd3da8284f070ce293e63ec6812b4144069860c9a52508d913fbff29af40d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): crab/src/cost/inventory/report/azure.rs:46-58 | crab/src/cost/inventory/report/gcs.rs:50-62 \u2014 before extracting anything, compare \u0060crab/src/cost/inventory/report/azure.rs\u0060 and \u0060crab/src/cost/inventory/report/gcs.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 56 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crab/src/cost/inventory/report/azure.rs:46\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":"crab/src/cost/inventory/report/azure.rs"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b31adb6a0ff728b09db247310d1ae69c55884f7ceb678a80d0d74ee7a1e7f9f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): crab/src/git/progress.rs:420-432 | crab/src/git/progress.rs:436-448 \u2014 both copies are in the same file, so extract the block 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":"crab/src/git/progress.rs"},"region":{"startLine":420}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0c9f34d53d632e5fb030178be56acf4561d9b1f184b3398e24facbfd99dc582"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): crab/src/git/push.rs:10283-10295 | crab/src/git/push.rs:14957-14969 \u2014 both copies are in the same file, so extract the block 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, \u0060crab/src/git/push.rs:14956\u0060 calls \u0060check_cancelled\u0060 and \u0060crab/src/git/push.rs:10282\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":"crab/src/git/push.rs"},"region":{"startLine":10283}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9976a51a5a362d279e746707943989c3c80c53412dd50f9905b0fa990de4bbd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 2): crab/src/git/push.rs:17762-17773 | crab/src/git/push.rs:17836-17848 \u2014 both copies are in the same file, so extract the block 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 \u0060crab/src/git/push.rs:17762\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":"crab/src/git/push.rs"},"region":{"startLine":17762}}}],"partialFingerprints":{"codehealthFindingId/v1":"79124eabc38970edef65385cbe7e3690f5243dfbccf40abf89bd41441e3a51da"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 2): crab/src/lfs/batch.rs:91-103 | crab/src/lfs/publication.rs:100-111 \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 \u0060crab/src/lfs/batch.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. 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":"crab/src/lfs/batch.rs"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a0606e83aba1e9092b81ec775b4f64d6a3b5bb652e65f496c1aad553b3b9bb9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): crab/src/lfs/track.rs:487-499 | crab/src/lfs/track.rs:507-519 \u2014 both copies are in the same file, so extract the block 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 \u0060crab/src/lfs/track.rs:487\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":"crab/src/lfs/track.rs"},"region":{"startLine":487}}}],"partialFingerprints":{"codehealthFindingId/v1":"7432ccf72b36f0795c91ce68c8a1a9312d820ec4ebae7675fc6054a154d4025f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): crab/src/metadata/metadb/stores/chunk_index.rs:548-560 | crates/crab-metadata/src/remote_index.rs:359-371 \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 \u0060crab/src/metadata/metadb/stores/chunk_index.rs:548\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":"crab/src/metadata/metadb/stores/chunk_index.rs"},"region":{"startLine":548}}}],"partialFingerprints":{"codehealthFindingId/v1":"60fa91d3f39ba4470d2facbc2539a82b31b23786c6af1a2ded60c3345979202c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): crates/crab-cache-server/src/bin/crab_cache.rs:708-720 | crates/crab-cache-server/src/bin/crab_cache.rs:730-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/crab-cache-server/src/bin/crab_cache.rs:708\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 \u0060report\u0060 to \u0060\u0026EvidenceReleaseVerification\u0060 in one and \u0060\u0026EvidenceVerificationReport\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/crab-cache-server/src/bin/crab_cache.rs"},"region":{"startLine":708}}}],"partialFingerprints":{"codehealthFindingId/v1":"0cbc6bc2f3ab7bfc03b7994c4fde30dfcac0ff05b7551c5bc1f8ac3d4bcef697"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): crates/crab-cache-store/src/xorb_read.rs:63-75 | crates/crab-cache-store/src/xorb_read.rs:115-127 \u2014 both copies are in the same file, so extract the block 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/crab-cache-store/src/xorb_read.rs:63\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/crab-cache-store/src/xorb_read.rs"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"0dae7aec425ac7b77d634d049c27f0b4042876623e721babba5f5e7b8b923728"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): crates/crab-coordination/src/write_coordinator.rs:885-897 | crates/crab-coordination/src/write_coordinator.rs:1375-1387 \u2014 both copies are in the same file, so extract the block 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/crab-coordination/src/write_coordinator.rs:885\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/crab-coordination/src/write_coordinator.rs"},"region":{"startLine":885}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb27d537b4fe68f1291bbe2ca775c6ee45c4e1a588aa3d5e112b8a25771c1407"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): crates/crab-http-server/src/cells.rs:325-338 | crates/crab-http-server/src/cells.rs:366-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/crab-http-server/src/cells.rs"},"region":{"startLine":325}}}],"partialFingerprints":{"codehealthFindingId/v1":"82cd39af14a96b103e76d7850c08db207874dcbff9d1794e211816d8462f4faf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): crates/crab-http-server/src/main.rs:524-536 | crates/crab-http-server/src/main.rs:546-558 \u2014 both copies are in the same file, so extract the block 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/crab-http-server/src/main.rs:524\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/crab-http-server/src/main.rs"},"region":{"startLine":524}}}],"partialFingerprints":{"codehealthFindingId/v1":"8624cf837dd6ca1e0c7330bb17ce4370c378339c6a5805dfae4cad5822dd7e5d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): crates/crab-http-server/src/receive.rs:215-227 | crates/crab-http-server/src/receive.rs:439-451 \u2014 both copies are in the same file, so extract the block 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/crab-http-server/src/receive.rs:215\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/crab-http-server/src/receive.rs"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8119cb21f380748a1b8d598b9288e81761d4e106d9821381c996714c27bc7d9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): crates/crab-remote-git/src/operation.rs:1084-1096 | crates/crab-remote-git/src/operation.rs:1106-1118 \u2014 both copies are in the same file, so extract the block 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/crab-remote-git/src/operation.rs"},"region":{"startLine":1084}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a85a47c7495e32aeb21fea2f4ddf19965b9618f00becf6ecfb5b5b9940fbd37"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): crates/crab-remote-git/src/pack.rs:895-907 | crates/crab-remote-git/src/pack.rs:1060-1072 \u2014 both copies are in the same file, so extract the block 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/crab-remote-git/src/pack.rs:895\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/crab-remote-git/src/pack.rs:908\u0060 calls \u0060now\u0060, \u0060clone\u0060 and \u0060crates/crab-remote-git/src/pack.rs:1073\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/crab-remote-git/src/pack.rs"},"region":{"startLine":895}}}],"partialFingerprints":{"codehealthFindingId/v1":"02093c85a1e15eade65bb11887db78ed9fcbe3ad793682242f39025425dcfce2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): crates/crab-remote-git/src/pack.rs:1803-1815 | crates/crab-remote-git/src/pack.rs:1942-1954 \u2014 both copies are in the same file, so extract the block 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/crab-remote-git/src/pack.rs:1800\u0060 calls \u0060record_generated_pack_cache\u0060, \u0060Some\u0060, \u0060as_ref\u0060 and \u0060crates/crab-remote-git/src/pack.rs:1941\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/crab-remote-git/src/pack.rs"},"region":{"startLine":1803}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9c8bf681b37d01ee317c5784d983f6b30e376996c7ad041fbe7e23f279219eb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): crates/crab-s3-gateway/src/gateway.rs:1637-1649 | crates/crab-s3-gateway/src/gateway.rs:2150-2162 \u2014 both copies are in the same file, so extract the block 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/crab-s3-gateway/src/gateway.rs:1637\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/crab-s3-gateway/src/gateway.rs"},"region":{"startLine":1637}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb6a74073ea5323120feb942697e0169336a5c5ed25a98a4e1d504e9c307bcec"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 2): crates/crab-s3-gateway/src/gateway.rs:2261-2273 | crates/crab-s3-gateway/src/gateway.rs:2379-2392 \u2014 both copies are in the same file, so extract the block 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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060req\u0060 to \u0060S3Request\u003CUploadPartInput\u003E\u0060 in one and \u0060S3Request\u003CUploadPartCopyInput\u003E\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/crab-s3-gateway/src/gateway.rs"},"region":{"startLine":2261}}}],"partialFingerprints":{"codehealthFindingId/v1":"82737c6299e7368493d703a67e9f1ca133a6e96d1890fcc0c9edbd5a18ea320c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): crates/crab-sdk/src/client/mutation.rs:713-725 | crates/crab-sdk/src/client/mutation/commit.rs:396-408 \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/crab-sdk/src/client/mutation.rs:713\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/crab-sdk/src/client/mutation.rs:726\u0060 calls \u0060clone\u0060 and \u0060crates/crab-sdk/src/client/mutation/commit.rs:409\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/crab-sdk/src/client/mutation.rs"},"region":{"startLine":713}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3026e71410d8b4ec7230a31640a8b379c19cfd722ae3c31b838f53cd4b3714a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): crates/crab-sdk/src/managed.rs:336-348 | crates/crab-sdk/src/managed.rs:366-378 \u2014 both copies are in the same file, so extract the block 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/crab-sdk/src/managed.rs:336\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/crab-sdk/src/managed.rs"},"region":{"startLine":336}}}],"partialFingerprints":{"codehealthFindingId/v1":"2dab2f95006b751bdf8a4dead280da2c92f0eaf1d683a52a649547cfabedfbe6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): crates/crab-vfs/src/snapshot.rs:107-119 | crates/crab-vfs/src/snapshot.rs:173-185 \u2014 both copies are in the same file, so extract the block 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/crab-vfs/src/snapshot.rs"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"50dcefe1c45b5a45cf2e601f0677ddb503d087c8856be7adf873b2eb6614f8fc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): crates/crab-workflow/src/dvc_inventory.rs:1089-1101 | crates/crab-workflow/src/dvc_inventory.rs:1433-1445 \u2014 both copies are in the same file, so extract the block 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/crab-workflow/src/dvc_inventory.rs:1089\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/crab-workflow/src/dvc_inventory.rs"},"region":{"startLine":1089}}}],"partialFingerprints":{"codehealthFindingId/v1":"560b1dd472468817fbc6f9f3b7a8fc4125e3cc23359d1a08b62b5fd2ee927d45"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): crates/crab-workflow/src/executor.rs:1545-1557 | crates/crab-workflow/src/executor.rs:1795-1807 \u2014 both copies are in the same file, so extract the block 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/crab-workflow/src/executor.rs:1545\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/crab-workflow/src/executor.rs"},"region":{"startLine":1545}}}],"partialFingerprints":{"codehealthFindingId/v1":"debbe741cc2bc7b5b8a0db299f586591fb4a15e486b12c6cfa453c62a0951cf8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): crates/crab-workflow/src/hydra.rs:898-910 | crates/crab-workflow/src/hydra.rs:1212-1224 \u2014 both copies are in the same file, so extract the block 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/crab-workflow/src/hydra.rs:898\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/crab-workflow/src/hydra.rs"},"region":{"startLine":898}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d053b8f32ca96bef6e491f8484d33065657e147bfeb292c0cb6117c8dd05d88"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 7): crates/crab-http-server/src/checks.rs:880-891 | crates/crab-http-server/src/issues.rs:716-727 | crates/crab-http-server/src/labels.rs:350-361 | crates/crab-http-server/src/pulls/storage.rs:855-866 | crates/crab-http-server/src/releases/storage.rs:454-465 | crates/crab-http-server/src/repository_settings.rs:269-280 | crates/crab-http-server/src/statuses.rs:439-450 \u2014 before extracting anything, compare \u0060crates/crab-http-server/src/checks.rs\u0060 and \u0060crates/crab-http-server/src/issues.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 46 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/crab-http-server/src/checks.rs"},"region":{"startLine":880}}}],"partialFingerprints":{"codehealthFindingId/v1":"b27fca5eea36bd18370b74a1b925a2beef93bef71e3dc24e3dc16fe8ebd6be6c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 7): crates/crab-vfs/src/publish.rs:1007-1017 | crates/crab-vfs/src/publish.rs:1057-1067 | crates/crab-vfs/src/publish.rs:1244-1255 | crates/crab-vfs/src/publish.rs:1346-1357 | crates/crab-vfs/src/publish.rs:1384-1394 | crates/crab-vfs/src/publish.rs:1597-1608 | crates/crab-vfs/src/publish.rs:1629-1640 \u2014 all 7 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/crab-vfs/src/publish.rs:1007\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/crab-vfs/src/publish.rs:1360\u0060 calls \u0060write_all\u0060 and \u0060crates/crab-vfs/src/publish.rs:1020\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/crab-vfs/src/publish.rs"},"region":{"startLine":1007}}}],"partialFingerprints":{"codehealthFindingId/v1":"6248564135100c8179a6e0e496ef8d00626bfff7651badbaaf3bbfdb88ffc84d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 4): crab/src/cmd/run.rs:3504-3515 | crab/src/cmd/status_workflow.rs:939-950 | crates/crab-workflow/src/executor.rs:2375-2386 | crates/crab-workflow/src/executor.rs:2554-2565 \u2014 before extracting anything, compare \u0060crab/src/cmd/run.rs\u0060 and \u0060crab/src/cmd/status_workflow.rs\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 66 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 \u0060crab/src/cmd/run.rs:3504\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":"crab/src/cmd/run.rs"},"region":{"startLine":3504}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb976d21ab64bbba4255648f08c4de5016a99ebf5856d422dfeb00a49730e3a2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 4): crates/crab-auth/src/aws_oidc.rs:134-145 | crates/crab-auth/src/azure_entra.rs:160-171 | crates/crab-auth/src/crab_auth_client.rs:446-457 | crates/crab-auth/src/gcp_federation.rs:190-201 \u2014 before extracting anything, compare \u0060crates/crab-auth/src/aws_oidc.rs\u0060 and \u0060crates/crab-auth/src/azure_entra.rs\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 88 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/crab-auth/src/aws_oidc.rs:134\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/crab-auth/src/aws_oidc.rs"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f3ca7705414359984fe8e5bc9d0ccc49477c7b05a08e4c03c3b394839ac0cdb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): crab/src/git/progress.rs:320-331 | crab/src/git/progress.rs:376-387 | crab/src/git/progress.rs:425-436 \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 \u0060crab/src/git/progress.rs:320\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":"crab/src/git/progress.rs"},"region":{"startLine":320}}}],"partialFingerprints":{"codehealthFindingId/v1":"2534da3e607aa79e680ad53a8d1f1a15ab0ed526aa5de352f804dc6726a55788"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): crab/src/import/versions.rs:740-751 | crab/src/import/versions.rs:1081-1092 | crab/src/import/versions.rs:1360-1371 \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. 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":"crab/src/import/versions.rs"},"region":{"startLine":740}}}],"partialFingerprints":{"codehealthFindingId/v1":"a26825b86534bff1820a24512e3721e10b3f49e87ed9af325b170bb4b2df12e3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): crates/crab-http-server/src/cells/repository/pull_review_threads.rs:1386-1397 | crates/crab-http-server/src/cells/repository/pulls.rs:1620-1631 | crates/crab-http-server/src/cells/repository/releases.rs:1188-1199 \u2014 before extracting anything, compare \u0060crates/crab-http-server/src/cells/repository/pull_review_threads.rs\u0060 and \u0060crates/crab-http-server/src/cells/repository/pulls.rs\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 50 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/crab-http-server/src/cells/repository/pull_review_threads.rs:1386\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/crab-http-server/src/cells/repository/pull_review_threads.rs"},"region":{"startLine":1386}}}],"partialFingerprints":{"codehealthFindingId/v1":"74eaf5896b7c53297d0599405764c0b2a328753c8e90fe0ff8b97d9909316e63"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): crates/crab-lfs/src/lock.rs:296-307 | crates/crab-lfs/src/lock.rs:352-363 | crates/crab-lfs/src/lock.rs:410-421 \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/crab-lfs/src/lock.rs:296\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/crab-lfs/src/lock.rs"},"region":{"startLine":296}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ec49d5254bba85d6fc1ac06826cc9fa100b28fef7ff5f4c596d2f780fe0d083"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): crates/crab-s3-gateway/src/gateway.rs:804-815 | crates/crab-s3-gateway/src/gateway.rs:865-876 | crates/crab-s3-gateway/src/gateway.rs:935-946 \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/crab-s3-gateway/src/gateway.rs:804\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/crab-s3-gateway/src/gateway.rs"},"region":{"startLine":804}}}],"partialFingerprints":{"codehealthFindingId/v1":"399ac37473fc34fe7c6d1168c9d541150a4cb3d145d0e239cb96d59163bd4806"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 2): crab/scripts/generate_test_file.rs:288-299 | crates/crab-workflow/src/cache.rs:116-126 \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. 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":"crab/scripts/generate_test_file.rs"},"region":{"startLine":288}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6c2e57d38cfc7727be377dd77e01646aef8cd91bd088c56da0b2046915e3fe8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201312 lines \u00D7 2): crab/src/cmd/clone.rs:456-467 | crab/src/cmd/clone.rs:507-515 \u2014 both copies are in the same file, so extract the block 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 \u0060crab/src/cmd/clone.rs:456\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":"crab/src/cmd/clone.rs"},"region":{"startLine":456}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bbb2081e2665cc6329516451ea45f93f1ef77513c503d161421d491f8b10195"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): crab/src/cmd/data.rs:312-323 | crab/src/cmd/data.rs:457-468 \u2014 both copies are in the same file, so extract the block 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 \u0060crab/src/cmd/data.rs:312\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":"crab/src/cmd/data.rs"},"region":{"startLine":312}}}],"partialFingerprints":{"codehealthFindingId/v1":"577e362914581dd85461806f25e02c17616e5273d278ff08dda285026eab853f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): crab/src/cmd/data.rs:1608-1619 | crab/src/cmd/migrate.rs:2647-2658 \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":"crab/src/cmd/data.rs"},"region":{"startLine":1608}}}],"partialFingerprints":{"codehealthFindingId/v1":"944f5ff121c5e0d3fc99cbf1c49165a9024f1d2af3a1fe82bee51d1c99dc1c6a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): crab/src/cmd/du.rs:226-237 | crab/src/cmd/ls_files.rs:85-96 \u2014 before extracting anything, compare \u0060crab/src/cmd/du.rs\u0060 and \u0060crab/src/cmd/ls_files.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 46 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 \u0060crab/src/cmd/du.rs:226\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":"crab/src/cmd/du.rs"},"region":{"startLine":226}}}],"partialFingerprints":{"codehealthFindingId/v1":"228e7736f8351b896f0f34d111059e494d84cf0d32c7d8ac2fb6c7e28c8d04a5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): crab/src/cmd/gc/bucket.rs:1663-1674 | crab/src/cmd/gc/bucket.rs:1727-1738 \u2014 both copies are in the same file, so extract the block 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 \u0060crab/src/cmd/gc/bucket.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":"crab/src/cmd/gc/bucket.rs"},"region":{"startLine":1663}}}],"partialFingerprints":{"codehealthFindingId/v1":"1896fc4561596b0dd994c5a217e84805879c5cdebd0710cd495fe2a8bfd84873"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): crab/src/cmd/gc/mod.rs:1726-1737 | crab/src/cmd/gc/mod.rs:2311-2322 \u2014 both copies are in the same file, so extract the block 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 \u0060crab/src/cmd/gc/mod.rs:1726\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":"crab/src/cmd/gc/mod.rs"},"region":{"startLine":1726}}}],"partialFingerprints":{"codehealthFindingId/v1":"795ab903d22d1a024a3d8567bcd4a1f060b37c2c296016e806bccafbd41ce8ca"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): crab/src/cmd/gc/mod.rs:1740-1751 | crab/src/cmd/gc/mod.rs:2326-2337 \u2014 both copies are in the same file, so extract the block 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 \u0060crab/src/cmd/gc/mod.rs:1740\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":"crab/src/cmd/gc/mod.rs"},"region":{"startLine":1740}}}],"partialFingerprints":{"codehealthFindingId/v1":"986ed8c9111dc0b8fb6d7ff509f8509b722cce6692395abbb411f60c93830dd0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): crab/src/cmd/lfs/ls_files.rs:365-377 | crab/src/lfs/status.rs:549-560 \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 \u0060crab/src/cmd/lfs/ls_files.rs:365\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":"crab/src/cmd/lfs/ls_files.rs"},"region":{"startLine":365}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d4d041274f0503eded0246a63e9d6b4622f3570a979294f1b5d47699f2ca920"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): crab/src/cmd/metadb.rs:1426-1437 | crab/src/cmd/metadb.rs:1488-1499 \u2014 both copies are in the same file, so extract the block 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 \u0060crab/src/cmd/metadb.rs:1426\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":"crab/src/cmd/metadb.rs"},"region":{"startLine":1426}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ce4ce5e5e619cd6f202a85804e2e4382e4c5dbbe64ee39025e2d2b0c8354080"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): crab/src/cmd/metrics.rs:2631-2642 | crab/src/cmd/metrics.rs:2651-2662 \u2014 both copies are in the same file, so extract the block 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 \u0060crab/src/cmd/metrics.rs:2631\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":"crab/src/cmd/metrics.rs"},"region":{"startLine":2631}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9426829f73769ec832d966d5f1307ce3cfc406dbd4ebbcf32da8141a5bcdf45"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 2): crab/src/cmd/metrics.rs:3658-3669 | crab/src/cmd/metrics.rs:3681-3691 \u2014 both copies are in the same file, so extract the block 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 \u0060crab/src/cmd/metrics.rs:3658\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":"crab/src/cmd/metrics.rs"},"region":{"startLine":3658}}}],"partialFingerprints":{"codehealthFindingId/v1":"adbff6175ad68ea06ace5d296f765f33d98277ad99f51a6bb8405327c4973560"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 2): crab/src/cmd/migrate.rs:2525-2536 | crab/src/cmd/migrate.rs:2605-2615 \u2014 both copies are in the same file, so extract the block 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 \u0060crab/src/cmd/migrate.rs:2525\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":"crab/src/cmd/migrate.rs"},"region":{"startLine":2525}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ec911df39cd79277e929081aa23465a7b17c28778ca86cc945698ae0d9ab9cf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): crab/src/cmd/recover.rs:1483-1494 | crab/src/cmd/recover.rs:1595-1606 \u2014 both copies are in the same file, so extract the block 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 \u0060crab/src/cmd/recover.rs:1483\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":"crab/src/cmd/recover.rs"},"region":{"startLine":1483}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f7ee6872c6f22a486d2260ecdf5b468c4564c2d687d7ea231c5a5bfe15c977b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): crab/src/cmd/replica.rs:3790-3801 | crab/src/cmd/replica.rs:3833-3844 \u2014 both copies are in the same file, so extract the block 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 \u0060crab/src/cmd/replica.rs:3790\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, \u0060crab/src/cmd/replica.rs:3830\u0060 calls \u0060Some\u0060, \u0060as_ref\u0060, \u0060parse\u0060 and \u0060crab/src/cmd/replica.rs:3788\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":"crab/src/cmd/replica.rs"},"region":{"startLine":3790}}}],"partialFingerprints":{"codehealthFindingId/v1":"b07fc0d4f343f41d93f279d7c14ad9d16849b45c5183b5005a84c5f5f2d5852e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): crab/src/cmd/replica.rs:6744-6755 | crab/src/cmd/replica.rs:6776-6787 \u2014 both copies are in the same file, so extract the block 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 \u0060crab/src/cmd/replica.rs:6744\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":"crab/src/cmd/replica.rs"},"region":{"startLine":6744}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ac098399a4d202458718c86aa579d48d1dffe1c4819e2e5d77c1ccbf48d4939"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): crab/src/cmd/run.rs:2402-2413 | crab/src/cmd/run.rs:4373-4384 \u2014 both copies are in the same file, so extract the block 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 \u0060crab/src/cmd/run.rs:2402\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":"crab/src/cmd/run.rs"},"region":{"startLine":2402}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae83f691134c5079d739fda862cf473e0896b39fce5917eb063c642d04cb12be"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201312 lines \u00D7 2): crab/src/cmd/workflow_checkpoint.rs:387-398 | crab/src/cmd/workflow_checkpoint.rs:430-437 \u2014 both copies are in the same file, so extract the block 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 \u0060crab/src/cmd/workflow_checkpoint.rs:387\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":"crab/src/cmd/workflow_checkpoint.rs"},"region":{"startLine":387}}}],"partialFingerprints":{"codehealthFindingId/v1":"97fe82853972d2108f08604a30ceb5a77d54a1005e79b320e3e8c7e33a96ac4d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): crab/src/cmd/worktree.rs:1162-1173 | crab/src/cmd/worktree.rs:1339-1350 \u2014 both copies are in the same file, so extract the block 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":"crab/src/cmd/worktree.rs"},"region":{"startLine":1162}}}],"partialFingerprints":{"codehealthFindingId/v1":"09c0f2423a0ca996239437f2cfcb3921744a22d682e8850a95b869ab6e21c340"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): crab/src/core/error.rs:1110-1121 | crates/crab-auth-server/src/error.rs:229-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 \u0060crab/src/core/error.rs:1110\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":"crab/src/core/error.rs"},"region":{"startLine":1110}}}],"partialFingerprints":{"codehealthFindingId/v1":"2af14a37a3abdc8666ffba7ef070efe014ca72793ac8375a41a5541bb9dfbb63"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): crab/src/git/push.rs:8722-8733 | crab/src/git/push.rs:9001-9012 \u2014 both copies are in the same file, so extract the block 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 \u0060crab/src/git/push.rs:8722\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":"crab/src/git/push.rs"},"region":{"startLine":8722}}}],"partialFingerprints":{"codehealthFindingId/v1":"8831337a119f809d4ff2351c38880d94a2cb012f3479b2d1e4454db1d8bd79af"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): crab/src/import/coordinator.rs:1794-1805 | crab/src/import/coordinator.rs:2050-2061 \u2014 both copies are in the same file, so extract the block 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":"crab/src/import/coordinator.rs"},"region":{"startLine":1794}}}],"partialFingerprints":{"codehealthFindingId/v1":"c247d58d1371ddef6cae7506c011b68d1f21257c409a4d0e03701bacb0d137dc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): crab/src/read/mod.rs:852-863 | crab/src/read/mod.rs:911-922 \u2014 both copies are in the same file, so extract the block 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 \u0060crab/src/read/mod.rs:852\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":"crab/src/read/mod.rs"},"region":{"startLine":852}}}],"partialFingerprints":{"codehealthFindingId/v1":"6dbe72113927385ecfab9687de701fb8d675a8cf3c9ba903c0cf066cd04667a5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): crates/crab-cache-server/src/bin/crab_cache.rs:442-453 | crates/crab-cache-server/src/bin/crab_cache.rs:483-494 \u2014 both copies are in the same file, so extract the block 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/crab-cache-server/src/bin/crab_cache.rs:442\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/crab-cache-server/src/bin/crab_cache.rs"},"region":{"startLine":442}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b3821e5f023329667d9a173c1bfac5503e68fd0d214a74fbcbc3ab4d3690869"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): crates/crab-cache/src/active_probe.rs:156-167 | crates/crab-cache/src/active_probe.rs:200-211 \u2014 both copies are in the same file, so extract the block 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/crab-cache/src/active_probe.rs:156\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/crab-cache/src/active_probe.rs"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"08222d86a71ae70e1f48eb71b612c1d011be421b2226b90c6b22a7cded58dfbf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): crates/crab-cache/src/cache_client.rs:391-402 | crates/crab-cache/src/cache_client.rs:485-496 \u2014 both copies are in the same file, so extract the block 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/crab-cache/src/cache_client.rs:391\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/crab-cache/src/cache_client.rs:387\u0060 calls \u0060to_owned\u0060 and \u0060crates/crab-cache/src/cache_client.rs:481\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/crab-cache/src/cache_client.rs"},"region":{"startLine":391}}}],"partialFingerprints":{"codehealthFindingId/v1":"75f6919628a0773221a39ebe7e39a186fdfe8161f3fba2f872227dbc72a57e55"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): crates/crab-cache/src/local_cache/maintenance.rs:411-422 | crates/crab-cache/src/local_cache/maintenance.rs:457-468 \u2014 both copies are in the same file, so extract the block 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/crab-cache/src/local_cache/maintenance.rs:411\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/crab-cache/src/local_cache/maintenance.rs"},"region":{"startLine":411}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5c586f81966af7b89a720a6c5d1170e45266137bc4da285f8197c3b968f5c07"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): crates/crab-cache/src/xet_chunk_cache.rs:515-526 | crates/crab-cache/src/xet_chunk_cache.rs:597-608 \u2014 both copies are in the same file, so extract the block 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 \u0060directory\u0060 to \u0060\u0026std::path::Path\u0060 in one and \u0060\u0026Path\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/crab-cache/src/xet_chunk_cache.rs:609\u0060 calls \u0060to_owned\u0060 and \u0060crates/crab-cache/src/xet_chunk_cache.rs:527\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/crab-cache/src/xet_chunk_cache.rs"},"region":{"startLine":515}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bdf3b17f8aff0e520a30342b0b479546697797eef9de8f6749165c056137cef"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): crates/crab-coordination/src/write_coordinator.rs:742-753 | crates/crab-coordination/src/write_coordinator.rs:1241-1252 \u2014 both copies are in the same file, so extract the block 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/crab-coordination/src/write_coordinator.rs:742\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/crab-coordination/src/write_coordinator.rs"},"region":{"startLine":742}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bf1d1bdaa9f069e4980c0789dafe1270f503c47bf1ecf8dfa7456769a8b113b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): crates/crab-http-server/src/checks.rs:329-340 | crates/crab-http-server/src/checks.rs:348-359 \u2014 both copies are in the same file, so extract the block 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/crab-http-server/src/checks.rs"},"region":{"startLine":329}}}],"partialFingerprints":{"codehealthFindingId/v1":"98b48d53c55c170ab6a6fecf82fe790334c960d9d943ebaeaae23aa656fcc4e0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): crates/crab-http-server/src/checks.rs:477-488 | crates/crab-http-server/src/checks.rs:496-507 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-http-server/src/checks.rs"},"region":{"startLine":477}}}],"partialFingerprints":{"codehealthFindingId/v1":"150ef0a74f1de23115848e0f583049abd8147287a22a3201cd49b32f439cb335"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): crates/crab-http-server/src/issues.rs:67-78 | crates/crab-http-server/src/issues.rs:91-102 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/crab-http-server/src/issues.rs:67\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-http-server/src/issues.rs"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"b404a1aaa58ea3278b8dc906461db39affc228f970e3247628804ff4e2b7744a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): crates/crab-metadata/src/git_object_locator/reader.rs:691-702 | crates/crab-metadata/src/git_object_locator/reader.rs:778-789 \u2014 both copies are in the same file, so extract the block 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/crab-metadata/src/git_object_locator/reader.rs:691\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/crab-metadata/src/git_object_locator/reader.rs"},"region":{"startLine":691}}}],"partialFingerprints":{"codehealthFindingId/v1":"77a0729248928637d0c9ef24118a062d8cd671f4dbbefaa6a8d09cab34f3c644"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 2): crates/crab-metadata/src/git_visibility.rs:1885-1896 | crates/crab-metadata/src/git_visibility.rs:2181-2191 \u2014 both copies are in the same file, so extract the block 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/crab-metadata/src/git_visibility.rs:1885\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/crab-metadata/src/git_visibility.rs"},"region":{"startLine":1885}}}],"partialFingerprints":{"codehealthFindingId/v1":"916175f4c10271c8b51f4aa51580f0c5742bf6646ec63f4d621896971da353a2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): crates/crab-metadata/src/remote_index.rs:302-313 | crates/crab-metadata/src/remote_index.rs:376-387 \u2014 both copies are in the same file, so extract the block 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/crab-metadata/src/remote_index.rs:302\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/crab-metadata/src/remote_index.rs"},"region":{"startLine":302}}}],"partialFingerprints":{"codehealthFindingId/v1":"bba7acd027b47a56a8ecc7de70f16e97b1ac3084b38df92b7806ac3b845b5680"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): crates/crab-remote-git/src/snapshot.rs:105-116 | crates/crab-remote-git/src/snapshot.rs:483-494 \u2014 both copies are in the same file, so extract the block 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/crab-remote-git/src/snapshot.rs:104\u0060 calls \u0060insert\u0060 and \u0060crates/crab-remote-git/src/snapshot.rs:482\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/crab-remote-git/src/snapshot.rs"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb35bc73bb5ce3a3b37a808b766bedb3ca4be3f856d79b8cdec8d8e6144e75bb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): crates/crab-remote-git/src/snapshot.rs:137-148 | crates/crab-remote-git/src/snapshot.rs:233-244 \u2014 both copies are in the same file, so extract the block 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/crab-remote-git/src/snapshot.rs:137\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/crab-remote-git/src/snapshot.rs"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"9099a4dce41dfc367adda6e94376a82a895faeb998e40eb80b30471e30b6bf85"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): crates/crab-remote-git/src/snapshot.rs:499-510 | crates/crab-remote-git/src/snapshot.rs:1884-1895 \u2014 both copies are in the same file, so extract the block 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/crab-remote-git/src/snapshot.rs"},"region":{"startLine":499}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8020c60f466337242e2ae49a803e5574a8cfeefc045dada8bdab67c5a5e8104"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): crates/crab-s3-gateway/src/mutation.rs:1755-1766 | crates/crab-s3-gateway/src/mutation.rs:2057-2068 \u2014 both copies are in the same file, so extract the block 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/crab-s3-gateway/src/mutation.rs"},"region":{"startLine":1755}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb9f773da4e765af9daff02eb06f47582bee1c21e125ac36115b1d11c425cb4e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): crates/crab-sdk/src/client/mutation/native_content.rs:176-187 | crates/crab-sdk/src/client/mutation/native_content.rs:247-258 \u2014 both copies are in the same file, so extract the block 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/crab-sdk/src/client/mutation/native_content.rs:176\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/crab-sdk/src/client/mutation/native_content.rs"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e8a00cb00185aed4732686caa0af33d812f1e6408f66a7bbb6b6026723dbf5c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): crates/crab-sdk/src/local/push/content.rs:50-61 | crates/crab-sdk/src/local/push/content.rs:104-115 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/crab-sdk/src/local/push/content.rs:50\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/crab-sdk/src/local/push/content.rs"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"60a2d45c0084710cc237d13077055916a5d3cbfd00a8b35b77f087043cc53169"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): crates/crab-staging/src/index.rs:7763-7774 | crates/crab-staging/src/index.rs:7815-7826 \u2014 both copies are in the same file, so extract the block 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/crab-staging/src/index.rs:7763\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/crab-staging/src/index.rs:7827\u0060 calls \u0060is_none\u0060 and \u0060crates/crab-staging/src/index.rs:7775\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/crab-staging/src/index.rs"},"region":{"startLine":7763}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd63f86f037783bf22ababae74af933dc4e27da8e49eb6c8ede4ce9cfbe284d8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): crates/crab-storage/src/observation.rs:518-529 | crates/crab-storage/src/observation.rs:541-552 \u2014 both copies are in the same file, so extract the block 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/crab-storage/src/observation.rs:518\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/crab-storage/src/observation.rs"},"region":{"startLine":518}}}],"partialFingerprints":{"codehealthFindingId/v1":"260d7f69ce9c6a09ed7a4d5ebdd34f0caae31888fdb420ad2a93dc8a4162efe4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): crates/crab-vfs/src/engine.rs:1042-1053 | crates/crab-vfs/src/nfs.rs:596-607 \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/crab-vfs/src/engine.rs:1042\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/crab-vfs/src/engine.rs"},"region":{"startLine":1042}}}],"partialFingerprints":{"codehealthFindingId/v1":"5df41f5bb6c5e02094c3b2c7df387ff98f99b2a620a1f3e7779eb95a4f709279"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): crates/crab-vfs/src/fuse.rs:1338-1349 | crates/crab-vfs/src/fuse.rs:1359-1370 \u2014 both copies are in the same file, so extract the block 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/crab-vfs/src/fuse.rs"},"region":{"startLine":1338}}}],"partialFingerprints":{"codehealthFindingId/v1":"d25e20736c993cafed7b97794d46cd57e02eb883cd3b0ae422666c1173213d16"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): crates/crab-workflow/src/cache.rs:226-237 | crates/crab-workflow/src/cache.rs:340-351 \u2014 both copies are in the same file, so extract the block 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/crab-workflow/src/cache.rs:226\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/crab-workflow/src/cache.rs"},"region":{"startLine":226}}}],"partialFingerprints":{"codehealthFindingId/v1":"9685ec231705d7eeec8f33578923c1c677c0fc3928929eeca169f41674854345"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): crates/crab-workflow/src/external_hash.rs:172-185 | crates/crab-workflow/src/external_hash.rs:203-216 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/crab-workflow/src/external_hash.rs:172\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/crab-workflow/src/external_hash.rs"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"15cdeb74b1c899cfe2c93792cc09a1020c4079c7804cf15ad6cc8b52507473fb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): crates/crab-workflow/src/lockfile.rs:567-578 | crates/crab-workflow/src/lockfile.rs:586-597 \u2014 both copies are in the same file, so extract the block 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/crab-workflow/src/lockfile.rs:567\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/crab-workflow/src/lockfile.rs"},"region":{"startLine":567}}}],"partialFingerprints":{"codehealthFindingId/v1":"706b7d858717c9833875d519c55ef272b890f890db38faba2a8492ec6afe60df"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): crates/crab-workflow/src/params.rs:308-319 | crates/crab-workflow/src/params.rs:326-337 \u2014 both copies are in the same file, so extract the block 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/crab-workflow/src/params.rs:308\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060crates/crab-workflow/src/params.rs:304\u0060 calls \u0060is_python_keyword\u0060 and \u0060crates/crab-workflow/src/params.rs:324\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/crab-workflow/src/params.rs"},"region":{"startLine":308}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2e5bb41da521d5d74e2bf1939b6ddc9607915da22ea9b265f23989f3ab66643"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): crates/crab-workflow/src/scheduler.rs:199-210 | crates/crab-workflow/src/scheduler.rs:229-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-workflow/src/scheduler.rs"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"300a031d09701131b9eaa8e8d71683d5233147bf88d1df0795cf984f8b9f58c3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): crates/crab-xet/src/shard_parse.rs:510-521 | crates/crab-xet/src/shard_parse.rs:660-671 \u2014 both copies are in the same file, so extract the block 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/crab-xet/src/shard_parse.rs"},"region":{"startLine":510}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5499f24ddc1830f3e3d1e49c266bf2488784b79ae378775b02ea8a6dadfd2b2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 9): crab/src/cmd/add.rs:3155-3165 | crab/src/cmd/add.rs:3249-3259 | crab/src/cmd/dehydrate.rs:497-507 | crab/src/cmd/du.rs:169-178 | crab/src/cmd/hydrate.rs:3583-3593 | crab/src/cmd/ls_files.rs:108-118 | crab/src/cmd/reset.rs:307-316 | crab/src/cmd/status.rs:392-401 | crab/src/cmd/status.rs:822-832 \u2014 before extracting anything, compare \u0060crab/src/cmd/add.rs\u0060 and \u0060crab/src/cmd/dehydrate.rs\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 131 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 \u0060crab/src/cmd/add.rs:3155\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, \u0060crab/src/cmd/du.rs:167\u0060 calls \u0060Err\u0060, \u0060kind\u0060, \u0060Ok\u0060 and \u0060crab/src/cmd/ls_files.rs:106\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":"crab/src/cmd/add.rs"},"region":{"startLine":3155}}}],"partialFingerprints":{"codehealthFindingId/v1":"683e1f740a2d8af11544f6d0cdb212aa7b949017936c9dc57aeb79cf5dfb12b3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 8): crab/src/git/progress.rs:827-837 | crab/src/git/progress.rs:842-852 | crab/src/git/progress.rs:876-886 | crab/src/git/progress.rs:891-901 | crab/src/git/progress.rs:1222-1232 | crab/src/git/progress.rs:1237-1247 | crab/src/git/progress.rs:1271-1281 | crab/src/git/progress.rs:1286-1296 \u2014 all 8 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 \u0060crab/src/git/progress.rs:827\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":"crab/src/git/progress.rs"},"region":{"startLine":827}}}],"partialFingerprints":{"codehealthFindingId/v1":"049b83c597c7c5f391b2b299c28141deb2f0b2f8927452d14af204d083051160"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 6): crab/src/git/progress.rs:319-329 | crab/src/git/progress.rs:335-345 | crab/src/git/progress.rs:375-385 | crab/src/git/progress.rs:391-401 | crab/src/git/progress.rs:424-434 | crab/src/git/progress.rs:440-450 \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 \u0060crab/src/git/progress.rs:319\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":"crab/src/git/progress.rs"},"region":{"startLine":319}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d9b671dd6e65cf1c56ebd9982a7fffa371d27488c575bb3b92171291180d283"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 4): crab/src/cmd/lfs/fsck.rs:359-368 | crab/src/cmd/lfs/fsck.rs:385-394 | crab/src/cmd/lfs/ls_files.rs:359-369 | crab/src/cmd/lfs/ls_files.rs:395-404 \u2014 before extracting anything, compare \u0060crab/src/cmd/lfs/fsck.rs\u0060 and \u0060crab/src/cmd/lfs/ls_files.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 65 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 \u0060crab/src/cmd/lfs/fsck.rs:359\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":"crab/src/cmd/lfs/fsck.rs"},"region":{"startLine":359}}}],"partialFingerprints":{"codehealthFindingId/v1":"9be61ff7ad9e97d78c3f69bd3eab14f869bb50fd7f3ec87184b6740778f57b11"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 4): crates/crab-auth/src/aws_oidc.rs:297-322 | crates/crab-auth/src/azure_entra.rs:342-367 | crates/crab-auth/src/crab_auth_client.rs:583-608 | crates/crab-auth/src/gcp_federation.rs:335-360 \u2014 before extracting anything, compare \u0060crates/crab-auth/src/aws_oidc.rs\u0060 and \u0060crates/crab-auth/src/azure_entra.rs\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 88 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/crab-auth/src/aws_oidc.rs"},"region":{"startLine":297}}}],"partialFingerprints":{"codehealthFindingId/v1":"e685f6fa8669ddc374b10b7b97deaaad623c4bb3ff0a33b834fa4f0f344a6a0a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): crab/src/cmd/gc/mod.rs:1726-1736 | crab/src/cmd/gc/mod.rs:2311-2321 | crab/src/cmd/history_recovery.rs:737-747 \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":"crab/src/cmd/gc/mod.rs"},"region":{"startLine":1726}}}],"partialFingerprints":{"codehealthFindingId/v1":"8dc7307271351575bd3adfd28e85ccc22551a69ad0f727d3542fb86b788b6df5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): crab/src/core/config_resolver.rs:246-256 | crates/crab-workflow/src/exp_worktree.rs:383-393 | crates/crab-workflow/src/params_runtime.rs:302-312 \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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crab/src/core/config_resolver.rs:246\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/core/config_resolver.rs"},"region":{"startLine":246}}}],"partialFingerprints":{"codehealthFindingId/v1":"33641e620a469041e3ca015b121b2daf7f158ed84cab4dabdd74f896978eeaaa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201311 lines \u00D7 3): crab/src/maintenance.rs:73-83 | crates/crab-auth-server/src/receive/workflow.rs:62-70 | crates/crab-workflow/src/store.rs:62-70 \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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crab/src/maintenance.rs:73\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":"crab/src/maintenance.rs"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee9ed51453f47ee7a67743d6504084d4799665075b234296bc486516c574ce2c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): crates/crab-sdk/src/local/push/git.rs:15-25 | crates/crab-sdk/src/local/push/git.rs:66-76 | crates/crab-sdk/src/local/push/git.rs:134-144 \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/crab-sdk/src/local/push/git.rs:15\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/crab-sdk/src/local/push/git.rs"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"0dcfcce4d7a2257a196cc9390f0446b1ebb56d79c826205bf6e69a13ef919764"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): crates/crab-sdk/src/managed.rs:306-316 | crates/crab-sdk/src/managed.rs:336-346 | crates/crab-sdk/src/managed.rs:366-376 \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/crab-sdk/src/managed.rs:306\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/crab-sdk/src/managed.rs:305\u0060 calls \u0060to_owned\u0060 and \u0060crates/crab-sdk/src/managed.rs:335\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/crab-sdk/src/managed.rs"},"region":{"startLine":306}}}],"partialFingerprints":{"codehealthFindingId/v1":"eaa8f439efe0ff0b42369d03bbf278ad776fe2d7031f81f4d998c98017280f07"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 3): crates/crab-vfs/src/snapshot.rs:863-873 | crates/crab-vfs/src/snapshot.rs:887-896 | crates/crab-vfs/src/snapshot.rs:915-924 \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. 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/crab-vfs/src/snapshot.rs"},"region":{"startLine":863}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5b339c69e91f2ce4608c173afa774642d41e0b41d3c7dc5da77dc7e76c46c9f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 3): crates/crab-workflow/src/exp_worktree.rs:1628-1638 | crates/crab-workflow/src/exp_worktree.rs:1668-1677 | crates/crab-workflow/src/exp_worktree.rs:1699-1708 \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/crab-workflow/src/exp_worktree.rs:1628\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/crab-workflow/src/exp_worktree.rs"},"region":{"startLine":1628}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ac154ac7e6c782b38692951624d8c88e539c80829924f46294c930e794f7a4d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201311 lines \u00D7 3): crates/crab-xet/src/shard_parse.rs:490-500 | crates/crab-xet/src/shard_parse.rs:634-643 | crates/crab-xet/src/shard_parse.rs:774-782 \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/crab-xet/src/shard_parse.rs:490\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. 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/crab-xet/src/shard_parse.rs"},"region":{"startLine":490}}}],"partialFingerprints":{"codehealthFindingId/v1":"df8080866e7e46b013c26bea483fb83762ac30d21c69a342ba7528c8e0599417"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 2): crab/src/cmd/artifacts.rs:581-591 | crab/src/cmd/lfs/locks.rs:631-640 \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 \u0060crab/src/cmd/artifacts.rs:581\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":"crab/src/cmd/artifacts.rs"},"region":{"startLine":581}}}],"partialFingerprints":{"codehealthFindingId/v1":"23ee80816020ad48631670882da9599800aae51c966d6ecffbb431fd8d31e15e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crab/src/cmd/artifacts.rs:687-697 | crab/src/cmd/data.rs:1843-1853 \u2014 before extracting anything, compare \u0060crab/src/cmd/artifacts.rs\u0060 and \u0060crab/src/cmd/data.rs\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 33 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 \u0060crab/src/cmd/artifacts.rs:687\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":"crab/src/cmd/artifacts.rs"},"region":{"startLine":687}}}],"partialFingerprints":{"codehealthFindingId/v1":"237f7df9db6ade1af96b56370c9df05ee1382c2fb9c5918d74fb8d494f1822e4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crab/src/cmd/data.rs:1545-1555 | crab/src/cmd/data.rs:1563-1573 \u2014 both copies are in the same file, so extract the block 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":"crab/src/cmd/data.rs"},"region":{"startLine":1545}}}],"partialFingerprints":{"codehealthFindingId/v1":"f10e96097ef1c8a9aa5c4a4971cc59004e558072503edaa5d69680870b66be9d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crab/src/cmd/exp.rs:6680-6690 | crab/src/cmd/workflow_journal.rs:586-596 \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 \u0060crab/src/cmd/exp.rs:6680\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 \u0060payload\u0060 to \u0060\u0026ExpGcPayload\u0060 in one and \u0060\u0026GcPayload\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":"crab/src/cmd/exp.rs"},"region":{"startLine":6680}}}],"partialFingerprints":{"codehealthFindingId/v1":"f783155a3dea178829d8b564856d247c867bff7976e0767c7177e29ee4f2a394"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201311 lines \u00D7 2): crab/src/cmd/lfs/fsck.rs:311-319 | crab/src/cmd/lfs/ls_files.rs:279-289 \u2014 before extracting anything, compare \u0060crab/src/cmd/lfs/fsck.rs\u0060 and \u0060crab/src/cmd/lfs/ls_files.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 65 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 \u0060crab/src/cmd/lfs/fsck.rs:311\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. 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":"crab/src/cmd/lfs/fsck.rs"},"region":{"startLine":311}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa52d0ab9a3d061ba58fd352b1fbd86c690bccc1fd68bea8c7cc2f695c33471d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crab/src/cmd/lfs/locks.rs:364-374 | crab/src/cmd/lfs/locks.rs:437-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. 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":"crab/src/cmd/lfs/locks.rs"},"region":{"startLine":364}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6eea108e9d919d1969588ae8c709a50c28086c8a4b8a6d7fcbfb1ae484411e3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crab/src/cmd/metrics.rs:1856-1866 | crab/src/cmd/metrics.rs:1909-1919 \u2014 both copies are in the same file, so extract the block 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 \u0060crab/src/cmd/metrics.rs:1856\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":"crab/src/cmd/metrics.rs"},"region":{"startLine":1856}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bcd5880665e3e6ee37a3e77df5c48a8b6c366e4a36977dfc8f933068aaaa755"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crab/src/cmd/metrics.rs:2490-2500 | crates/crab-workflow/src/exp_worktree.rs:1849-1859 \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/crab-workflow/src/exp_worktree.rs:1849\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":"crab/src/cmd/metrics.rs"},"region":{"startLine":2490}}}],"partialFingerprints":{"codehealthFindingId/v1":"e01486e73bde3b88f46aefa7316b9b1527c14e9f1620510bad7c27b5811e7ed7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crab/src/cmd/migrate.rs:1243-1253 | crab/src/cmd/migrate.rs:1764-1774 \u2014 both copies are in the same file, so extract the block 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 \u0060crab/src/cmd/migrate.rs:1243\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":"crab/src/cmd/migrate.rs"},"region":{"startLine":1243}}}],"partialFingerprints":{"codehealthFindingId/v1":"8edcf58e2d9f177d7042c23a036e9e81b9cd675788ff2b10de45a27c3ebe4789"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crab/src/cmd/migrate.rs:2685-2695 | crates/crab-workflow/src/dvc_inventory.rs:2296-2306 \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":"crab/src/cmd/migrate.rs"},"region":{"startLine":2685}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6a8a224cec5b159d0ac630e178bd1be1237dd9d7d72352a0e8b9e5de8e01e9d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crab/src/cmd/mount.rs:993-1003 | crates/crab-vfs/src/nfs_mount.rs:125-135 \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 \u0060crab/src/cmd/mount.rs:993\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":"crab/src/cmd/mount.rs"},"region":{"startLine":993}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9814cbceb76da319f8e562d1793d63778b437a669ec0e91869d4b438b9fce06"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): crab/src/cmd/optimize.rs:320-331 | crab/src/cmd/optimize.rs:369-380 \u2014 both copies are in the same file, so extract the block 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 \u0060crab/src/cmd/optimize.rs:320\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":"crab/src/cmd/optimize.rs"},"region":{"startLine":320}}}],"partialFingerprints":{"codehealthFindingId/v1":"7544eff7240bc7f181232a0bf526251372e1ada2e90605eefcb4eba2eef6349f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crab/src/cmd/recover.rs:2786-2796 | crab/src/cmd/release.rs:1099-1109 \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 \u0060crab/src/cmd/recover.rs:2786\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":"crab/src/cmd/recover.rs"},"region":{"startLine":2786}}}],"partialFingerprints":{"codehealthFindingId/v1":"660498e804a056595c42b03ab22a200726f9514f2664b7cf4c07c64d3f6bd5e8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crab/src/cmd/run.rs:1374-1384 | crab/src/cmd/run.rs:1523-1533 \u2014 both copies are in the same file, so extract the block 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":"crab/src/cmd/run.rs"},"region":{"startLine":1374}}}],"partialFingerprints":{"codehealthFindingId/v1":"75324f1c0664693dd3e87c4d9f2386430ff92457eb33abd85041c4a1bc51f40c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crab/src/cmd/run.rs:3439-3449 | crab/src/cmd/status_workflow.rs:903-913 \u2014 before extracting anything, compare \u0060crab/src/cmd/run.rs\u0060 and \u0060crab/src/cmd/status_workflow.rs\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 66 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 \u0060crab/src/cmd/run.rs:3439\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":"crab/src/cmd/run.rs"},"region":{"startLine":3439}}}],"partialFingerprints":{"codehealthFindingId/v1":"e560b697d69b9c147f2404fea9ad4a14e9a02cf043d8e79c5fd7b63318fd72c0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crab/src/cmd/run.rs:3534-3544 | crab/src/cmd/status_workflow.rs:970-980 \u2014 before extracting anything, compare \u0060crab/src/cmd/run.rs\u0060 and \u0060crab/src/cmd/status_workflow.rs\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 66 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 \u0060p\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":"crab/src/cmd/run.rs"},"region":{"startLine":3534}}}],"partialFingerprints":{"codehealthFindingId/v1":"51dfb7d9f206bc4e400b6d1bcb3566bf5176ee616a7e1c53f367ecb3725deb29"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 2): crab/src/cost/inventory/report/azure.rs:31-40 | crab/src/cost/inventory/report/gcs.rs:36-46 \u2014 before extracting anything, compare \u0060crab/src/cost/inventory/report/azure.rs\u0060 and \u0060crab/src/cost/inventory/report/gcs.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 56 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crab/src/cost/inventory/report/azure.rs:31\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":"crab/src/cost/inventory/report/azure.rs"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"e96617b24056bde832538990cc8447531a5c976bcbbe4ca8e01bde816efcd744"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crab/src/git/incremental_walk.rs:266-276 | crab/src/git/push.rs:18314-18324 \u2014 before extracting anything, compare \u0060crab/src/git/incremental_walk.rs\u0060 and \u0060crab/src/git/push.rs\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 43 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/git/incremental_walk.rs"},"region":{"startLine":266}}}],"partialFingerprints":{"codehealthFindingId/v1":"d214bcd7639e4aa6ecb263ada45d0043eed9283f3f1f15e341afb758714adc4a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 2): crab/src/git/pack.rs:731-740 | crab/src/git/pack.rs:936-946 \u2014 both copies are in the same file, so extract the block 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, \u0060crab/src/git/pack.rs:933\u0060 calls \u0060build_revision_input\u0060 and \u0060crab/src/git/pack.rs:729\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":"crab/src/git/pack.rs"},"region":{"startLine":731}}}],"partialFingerprints":{"codehealthFindingId/v1":"7daa9e328c2cba948264fe0224130ed8f7b456360d3a77de932f54606f2c0280"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crab/src/git/push.rs:12610-12620 | crates/crab-auth-server/src/view/objects.rs:159-169 \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 \u0060crab/src/git/push.rs:12610\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":"crab/src/git/push.rs"},"region":{"startLine":12610}}}],"partialFingerprints":{"codehealthFindingId/v1":"69f5eb43e5511c17cf1b4f996807c9afcf02ec117691427354ef420bf6d6e5a6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crab/src/import/assemble.rs:342-352 | crab/src/import/coordinator.rs:1311-1321 \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 \u0060crab/src/import/assemble.rs:342\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 first that the copies are not typed on the same thing: the declarations holding them bind \u0060into\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":"crab/src/import/assemble.rs"},"region":{"startLine":342}}}],"partialFingerprints":{"codehealthFindingId/v1":"03b0055a58886665eabc53b9ec66966b1b9a23972cdf74378c103502ae7becaf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crab/src/read/mod.rs:346-356 | crab/src/read/mod.rs:383-393 \u2014 both copies are in the same file, so extract the block 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 \u0060crab/src/read/mod.rs:346\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":"crab/src/read/mod.rs"},"region":{"startLine":346}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4951cab0e1b1f9a8bd2ed4e208cb07c130cb444b6bf7824449f4a0ec7a117c5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crab/src/tier/plan.rs:57-67 | crab/src/tier/plan.rs:78-88 \u2014 both copies are in the same file, so extract the block 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 \u0060crab/src/tier/plan.rs:57\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":"crab/src/tier/plan.rs"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"a02ab450a874f08f0c1f4bf0bf12f7474b239fd232bbfc94c171baece5c63cbe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crates/crab-auth-server/src/receive/git_workspace.rs:1143-1153 | crates/crab-auth-server/src/receive/git_workspace.rs:1159-1169 \u2014 both copies are in the same file, so extract the block 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/crab-auth-server/src/receive/git_workspace.rs"},"region":{"startLine":1143}}}],"partialFingerprints":{"codehealthFindingId/v1":"916c72fa35907a59e7e96135a5466e4bedd664d098fef5d2247c1d7eaa4151b2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crates/crab-auth/src/managed/client.rs:1124-1134 | crates/crab-auth/src/managed/client.rs:1143-1153 \u2014 both copies are in the same file, so extract the block 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/crab-auth/src/managed/client.rs:1124\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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060request\u0060 to \u0060\u0026PushPrepareRequest\u0060 in one and \u0060\u0026PushFinalizeRequest\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/crab-auth/src/managed/client.rs"},"region":{"startLine":1124}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcccdc89ba72ce30a53954584512968d50829fece5d8a93ba4d4f6ecae5eabde"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crates/crab-cache-server/src/bin/crab_cache.rs:723-733 | crates/crab-cache-server/src/bin/crab_cache.rs:745-755 \u2014 both copies are in the same file, so extract the block 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/crab-cache-server/src/bin/crab_cache.rs"},"region":{"startLine":723}}}],"partialFingerprints":{"codehealthFindingId/v1":"8135afbb330aacf86ec7000688e09c42bb81498420395d299b7963a5b721fe8f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crates/crab-cache/src/local_cache/maintenance.rs:413-423 | crates/crab-cache/src/xet_chunk_cache.rs:708-718 \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/crab-cache/src/local_cache/maintenance.rs:413\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/crab-cache/src/local_cache/maintenance.rs"},"region":{"startLine":413}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfc194ffd5fa8e01316e4b514e6e74ef450ac3603b2e207ac8c45386df15325a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 2): crates/crab-git/src/walk.rs:147-157 | crates/crab-git/src/walk.rs:262-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/crab-git/src/walk.rs"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a85341cce58e6957f2dd3704b40085cca56c604e898a305e43b58f89abd8c75"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crates/crab-http-server/src/cells.rs:826-836 | crates/crab-http-server/src/cells.rs:1662-1672 \u2014 both copies are in the same file, so extract the block 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/crab-http-server/src/cells.rs:826\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/crab-http-server/src/cells.rs"},"region":{"startLine":826}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b129312ad15475604eff49d6ce91cc5ee7ab398ea98b18e7a56c9c966668210"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crates/crab-http-server/src/cells/repository/pulls.rs:1191-1201 | crates/crab-http-server/src/cells/repository/pulls.rs:1234-1244 \u2014 both copies are in the same file, so extract the block 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/crab-http-server/src/cells/repository/pulls.rs"},"region":{"startLine":1191}}}],"partialFingerprints":{"codehealthFindingId/v1":"390d39f0ed512f625e978a16fda440f513fde573b4dbf03589f6423e14e8a7cd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crates/crab-http-server/src/peer/node_log_client.rs:149-159 | crates/crab-http-server/src/peer/node_log_client.rs:191-201 \u2014 both copies are in the same file, so extract the block 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/crab-http-server/src/peer/node_log_client.rs:149\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/crab-http-server/src/peer/node_log_client.rs"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"289709758c8754faf4f5c4788dee440918e56184bd8e0d18900dbfdd3f51b191"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crates/crab-read/src/term_resolver.rs:124-134 | crates/crab-read/src/term_resolver.rs:271-281 \u2014 both copies are in the same file, so extract the block 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/crab-read/src/term_resolver.rs:124\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/crab-read/src/term_resolver.rs"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7139bb9882592d5477746e69fec644fc7f491eb2dc2c00be5c705f3224343fd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201311 lines \u00D7 2): crates/crab-read/src/upload_pack.rs:1005-1015 | crates/crab-read/src/upload_pack.rs:1410-1418 \u2014 both copies are in the same file, so extract the block 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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060crates/crab-read/src/upload_pack.rs:1407\u0060 calls \u0060ordinals_for_refs\u0060, \u0060iter\u0060, \u0060copied\u0060 and \u0060crates/crab-read/src/upload_pack.rs:1004\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/crab-read/src/upload_pack.rs"},"region":{"startLine":1005}}}],"partialFingerprints":{"codehealthFindingId/v1":"76dac90f75af04e7b50a6474060a6cdf71c11f1a0c2b3e4daf46ae1aba458048"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crates/crab-remote-git/src/operation.rs:440-450 | crates/crab-remote-git/src/operation.rs:525-535 \u2014 both copies are in the same file, so extract the block 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/crab-remote-git/src/operation.rs:440\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/crab-remote-git/src/operation.rs"},"region":{"startLine":440}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0e3c704cdfe8ca39e07b28061972f71c643901bc7728b8444b6410c6298085a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crates/crab-remote-git/src/reader.rs:480-490 | crates/crab-remote-git/src/reader.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/crab-remote-git/src/reader.rs:480\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/crab-remote-git/src/reader.rs"},"region":{"startLine":480}}}],"partialFingerprints":{"codehealthFindingId/v1":"f45c8417232560157f763fc05952ccd3523e2253d1f38db8fdf7ee3d968bb3d2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 2): crates/crab-s3-gateway/src/gateway.rs:1809-1819 | crates/crab-s3-gateway/src/gateway.rs:1851-1860 \u2014 both copies are in the same file, so extract the block 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/crab-s3-gateway/src/gateway.rs:1809\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 first that the copies are not typed on the same thing: the declarations holding them bind \u0060req\u0060 to \u0060S3Request\u003CPutObjectTaggingInput\u003E\u0060 in one and \u0060S3Request\u003CDeleteObjectTaggingInput\u003E\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/crab-s3-gateway/src/gateway.rs"},"region":{"startLine":1809}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c6ed00fd2c9588da5e98ea92fbe3859dba95c382fdca107073e0c7a3ce34da3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crates/crab-s3-gateway/src/gateway.rs:2059-2069 | crates/crab-s3-gateway/src/gateway.rs:2348-2358 \u2014 both copies are in the same file, so extract the block 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 \u0060req\u0060 to \u0060S3Request\u003CCopyObjectInput\u003E\u0060 in one and \u0060S3Request\u003CUploadPartCopyInput\u003E\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/crab-s3-gateway/src/gateway.rs"},"region":{"startLine":2059}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f65f48bfa025d333264a9483412504ab52ac85c52bc8efbe208a1780d74fe7f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crates/crab-s3-gateway/src/gateway.rs:3259-3269 | crates/crab-s3-gateway/src/gateway.rs:3977-3987 \u2014 both copies are in the same file, so extract the block 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/crab-s3-gateway/src/gateway.rs"},"region":{"startLine":3259}}}],"partialFingerprints":{"codehealthFindingId/v1":"2da153435d8e8b15bc085fe077317733ef6ba6985fd3e5adf764997f3e9940b3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crates/crab-s3-gateway/src/gateway.rs:4293-4303 | crates/crab-s3-gateway/src/gateway.rs:4306-4316 \u2014 both copies are in the same file, so extract the block 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 \u0060input\u0060 to \u0060\u0026GetObjectInput\u0060 in one and \u0060\u0026HeadObjectInput\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/crab-s3-gateway/src/gateway.rs"},"region":{"startLine":4293}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5122562bdc9cfa9857cc7e1a95bfa740298f09265dc405d08a7c6b9a53ec4e9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crates/crab-sdk/src/client/mutation.rs:846-856 | crates/crab-sdk/src/client/mutation.rs:864-874 \u2014 both copies are in the same file, so extract the block 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/crab-sdk/src/client/mutation.rs:846\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/crab-sdk/src/client/mutation.rs"},"region":{"startLine":846}}}],"partialFingerprints":{"codehealthFindingId/v1":"1544643c94d05c79878d64183ff74f6ca6c6f1923f325f0b6d119780562f0327"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): crates/crab-staging/src/index.rs:7111-7122 | crates/crab-staging/src/index.rs:7240-7251 \u2014 both copies are in the same file, so extract the block 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/crab-staging/src/index.rs:7111\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/crab-staging/src/index.rs"},"region":{"startLine":7111}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bbe02540e1075b5098bfd2802b9c5024f457967fe666815ea43aa54ec304c7d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crates/crab-staging/src/index.rs:7747-7757 | crates/crab-staging/src/index.rs:7798-7808 \u2014 both copies are in the same file, so extract the block 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/crab-staging/src/index.rs"},"region":{"startLine":7747}}}],"partialFingerprints":{"codehealthFindingId/v1":"761be90724986b6789a475a25b42e0d22c84a45cae116b80d21764ce6e3fc6f6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crates/crab-staging/src/stream.rs:789-799 | crates/crab-staging/src/stream.rs:825-835 \u2014 both copies are in the same file, so extract the block 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/crab-staging/src/stream.rs:825\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/crab-staging/src/stream.rs"},"region":{"startLine":789}}}],"partialFingerprints":{"codehealthFindingId/v1":"7102516bef2a5f1bd9f7b00174c0fbe53c83800cee958637c2033e696aa46b5e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crates/crab-vfs/src/coordinator.rs:672-682 | crates/crab-vfs/src/coordinator.rs:895-905 \u2014 both copies are in the same file, so extract the block 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/crab-vfs/src/coordinator.rs:672\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/crab-vfs/src/coordinator.rs:683\u0060 calls \u0060display\u0060 and \u0060crates/crab-vfs/src/coordinator.rs:906\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/crab-vfs/src/coordinator.rs"},"region":{"startLine":672}}}],"partialFingerprints":{"codehealthFindingId/v1":"33c6bbd61eb4e9f2c3ea71010d24c26d957a2664c27b0f1a0c56f3b4ed08cb80"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crates/crab-vfs/src/daemon.rs:1910-1920 | crates/crab-vfs/src/pipeline.rs:651-661 \u2014 before extracting anything, compare \u0060crates/crab-vfs/src/daemon.rs\u0060 and \u0060crates/crab-vfs/src/pipeline.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 63 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/crab-vfs/src/daemon.rs:1910\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/crab-vfs/src/daemon.rs:1921\u0060 calls \u0060env_remove\u0060 and \u0060crates/crab-vfs/src/pipeline.rs:662\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/crab-vfs/src/daemon.rs"},"region":{"startLine":1910}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5c67a50ff0d5ce0755515b61132d77779a748c24514408304d570895570589f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crates/crab-vfs/src/mount_control.rs:268-278 | crates/crab-vfs/src/mount_control.rs:304-314 \u2014 both copies are in the same file, so extract the block 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/crab-vfs/src/mount_control.rs:268\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/crab-vfs/src/mount_control.rs"},"region":{"startLine":268}}}],"partialFingerprints":{"codehealthFindingId/v1":"7656914c36c9d625ddacdcd81c5a1e21369605600deba74965077f5e78a93101"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crates/crab-vfs/src/publish.rs:1492-1502 | crates/crab-vfs/src/publish.rs:1511-1521 \u2014 both copies are in the same file, so extract the block 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/crab-vfs/src/publish.rs:1492\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/crab-vfs/src/publish.rs"},"region":{"startLine":1492}}}],"partialFingerprints":{"codehealthFindingId/v1":"e477b61941ea6423c0637a5c30b4960add07dd4201d8b1b4538a7b2d43daff82"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 2): crates/crab-workflow/src/artifact.rs:1618-1628 | crates/crab-workflow/src/artifact.rs:1864-1873 \u2014 both copies are in the same file, so extract the block 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/crab-workflow/src/artifact.rs:1618\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. 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/crab-workflow/src/artifact.rs"},"region":{"startLine":1618}}}],"partialFingerprints":{"codehealthFindingId/v1":"41cb0ae45ad5fd07e950784a023f86537323f22ab4cadc04a8baee443c4a2921"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crates/crab-workflow/src/executor.rs:1582-1592 | crates/crab-workflow/src/stage_runtime.rs:585-595 \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":"crates/crab-workflow/src/executor.rs"},"region":{"startLine":1582}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7a80eb982b985434254bda7ec7085d1a2c1e896b2ee6f246d5c8404beb3acad"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crates/crab-workflow/src/executor.rs:1702-1712 | crates/crab-workflow/src/executor.rs:1764-1774 \u2014 both copies are in the same file, so extract the block 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/crab-workflow/src/executor.rs:1763\u0060 calls \u0060is_file\u0060 and \u0060crates/crab-workflow/src/executor.rs:1700\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/crab-workflow/src/executor.rs"},"region":{"startLine":1702}}}],"partialFingerprints":{"codehealthFindingId/v1":"59da41b19e607e7861a198f514f04b5c04fb75b6fad4feb124f8b912788ab966"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crates/crab-xet/src/shard_parse.rs:542-552 | crates/crab-xet/src/shard_parse.rs:578-588 \u2014 both copies are in the same file, so extract the block 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/crab-xet/src/shard_parse.rs"},"region":{"startLine":542}}}],"partialFingerprints":{"codehealthFindingId/v1":"c81013ff535e76140ba184e8033d1daa4a6bb5201dfa9be87fea47464cf65ec3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 11): crab/src/cmd/cache.rs:260-269 | crab/src/cmd/doctor.rs:2526-2535 | crab/src/cmd/du.rs:401-409 | crab/src/cmd/lfs/convert.rs:619-628 | crab/src/cmd/lfs/dedup.rs:1337-1346 | crab/src/cmd/lfs/ls_files.rs:538-547 | crab/src/cmd/ls_files.rs:307-316 | crab/src/cmd/migrate.rs:2981-2990 | crab/src/cmd/mount.rs:4491-4500 | crab/src/lfs/migrate.rs:2900-2909 | crab/src/lfs/prune.rs:998-1007 \u2014 before extracting anything, compare \u0060crab/src/cmd/du.rs\u0060 and \u0060crab/src/cmd/ls_files.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 46 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 \u0060crab/src/cmd/cache.rs:260\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":"crab/src/cmd/cache.rs"},"region":{"startLine":260}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf6bf5bd2417857c07f23c838cb956ae6378d4843d6d138e2aff6afc225bb627"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (3\u201310 lines \u00D7 7): crab/src/cmd/adopt.rs:277-286 | crab/src/cmd/adopt.rs:357-366 | crab/src/cmd/init.rs:745-754 | crab/src/cmd/reset.rs:304-306 | crab/src/cmd/setup.rs:541-550 | crab/src/cmd/status.rs:389-391 | crab/src/cmd/unadopt.rs:209-218 \u2014 before extracting anything, compare \u0060crab/src/cmd/adopt.rs\u0060 and \u0060crab/src/cmd/init.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 75 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 \u0060crab/src/cmd/adopt.rs:277\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060crab/src/cmd/adopt.rs:288\u0060 calls \u0060is_dir\u0060 and \u0060crab/src/cmd/setup.rs:552\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":"crab/src/cmd/adopt.rs"},"region":{"startLine":277}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2e40c0d1969dda366d6e0bcd62688652f3485fe07a597860d03ed2265b28a65"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 5): crab/src/cmd/lfs/fsck.rs:360-370 | crab/src/cmd/lfs/fsck.rs:386-396 | crab/src/cmd/lfs/ls_files.rs:360-371 | crab/src/cmd/lfs/ls_files.rs:396-406 | crab/src/lfs/migrate.rs:2796-2805 \u2014 before extracting anything, compare \u0060crab/src/cmd/lfs/fsck.rs\u0060 and \u0060crab/src/cmd/lfs/ls_files.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 65 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 \u0060crab/src/cmd/lfs/fsck.rs:360\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":"crab/src/cmd/lfs/fsck.rs"},"region":{"startLine":360}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc289ea18456901b6155cf3019f86719090819a507a4824d9662cb9e004d69a4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 5): crab/src/git/progress.rs:830-839 | crab/src/git/progress.rs:879-888 | crab/src/git/progress.rs:1175-1184 | crab/src/git/progress.rs:1225-1234 | crab/src/git/progress.rs:1274-1283 \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 \u0060crab/src/git/progress.rs:830\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":"crab/src/git/progress.rs"},"region":{"startLine":830}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca965ab6db2361516d997e48c296fb9b24efa6f550715cc2c6d3b62bd441da0c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 5): crates/crab-http-server/src/checks.rs:858-867 | crates/crab-http-server/src/issues.rs:688-697 | crates/crab-http-server/src/labels.rs:322-331 | crates/crab-http-server/src/repository_settings.rs:247-256 | crates/crab-http-server/src/statuses.rs:367-376 \u2014 before extracting anything, compare \u0060crates/crab-http-server/src/checks.rs\u0060 and \u0060crates/crab-http-server/src/issues.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 46 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/crab-http-server/src/checks.rs"},"region":{"startLine":858}}}],"partialFingerprints":{"codehealthFindingId/v1":"21b22a94974653ff58a6c0af6061826019c735c5c6a74b6f571a8085e4345016"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 4): crab/src/cmd/gc/bucket.rs:1470-1479 | crab/src/cmd/gc/bucket.rs:1665-1674 | crab/src/cmd/gc/bucket.rs:1729-1738 | crab/src/cmd/gc/bucket.rs:1801-1810 \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 \u0060crab/src/cmd/gc/bucket.rs:1470\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":"crab/src/cmd/gc/bucket.rs"},"region":{"startLine":1470}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a38acf84cfde0a769a2e9261c8189918e212f7f21762f933f91f7847b073c55"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u201310 lines \u00D7 4): crab/src/cmd/lfs/env.rs:96-102 | crab/src/cmd/push.rs:1571-1580 | crab/src/cmd/push.rs:1602-1611 | crab/src/git/protected_push.rs:329-338 \u2014 there are 4 copies across 3 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 \u0060crab/src/cmd/lfs/env.rs:96\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":"crab/src/cmd/lfs/env.rs"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"533f3fc85139c4fbb6f4cd8750a3ed92fbf6d3a1a4ba3c6c2cf7856ad83cf79d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 4): crab/src/cmd/push.rs:1534-1543 | crab/src/cmd/push.rs:1569-1578 | crab/src/cmd/push.rs:1600-1609 | crab/src/git/protected_push.rs:327-336 \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 \u0060crab/src/cmd/push.rs:1534\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":"crab/src/cmd/push.rs"},"region":{"startLine":1534}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fbc96da3080351d47441898fa262cf3ee2dcc9513aa086c1e115e43d5e7a5b2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 4): crates/crab-auth/src/aws_oidc.rs:346-355 | crates/crab-auth/src/azure_entra.rs:380-389 | crates/crab-auth/src/crab_auth_client.rs:621-630 | crates/crab-auth/src/gcp_federation.rs:377-386 \u2014 before extracting anything, compare \u0060crates/crab-auth/src/aws_oidc.rs\u0060 and \u0060crates/crab-auth/src/azure_entra.rs\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 88 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/crab-auth/src/aws_oidc.rs"},"region":{"startLine":346}}}],"partialFingerprints":{"codehealthFindingId/v1":"8983f030dc5a9b23f81ddf2a7f4901cab264f80932c9e844cd9afc5c4e7bea5c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 4): crates/crab-sdk/src/local/edit.rs:386-395 | crates/crab-sdk/src/local/edit.rs:443-452 | crates/crab-sdk/src/local/edit.rs:506-515 | crates/crab-sdk/src/local/edit.rs:831-840 \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/crab-sdk/src/local/edit.rs:386\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/crab-sdk/src/local/edit.rs:505\u0060 calls \u0060validate_revision\u0060 and \u0060crates/crab-sdk/src/local/edit.rs:442\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/crab-sdk/src/local/edit.rs"},"region":{"startLine":386}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fb92edc8ce42caff05dbe078c639279a4cf29e2349682198a1dc98ed5766b73"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 4): crates/crab-staging/src/index.rs:2724-2733 | crates/crab-staging/src/index.rs:3226-3235 | crates/crab-staging/src/index.rs:6542-6551 | crates/crab-staging/src/index.rs:6766-6775 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-staging/src/index.rs"},"region":{"startLine":2724}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fcd7946e22fa9f46058cd0de05ad4f8430d61ae0a98fc32e029cafb2b5e3a3c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201310 lines \u00D7 3): crab/src/cmd/adopt.rs:666-675 | crab/src/cmd/init.rs:680-687 | crab/src/cmd/init.rs:714-721 \u2014 before extracting anything, compare \u0060crab/src/cmd/adopt.rs\u0060 and \u0060crab/src/cmd/init.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 75 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":"crab/src/cmd/adopt.rs"},"region":{"startLine":666}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9222fe54b88b5dad63b7cec0b396751fb6ac26e36aca3481fc50041bf0acc36"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): crab/src/cmd/artifacts.rs:774-784 | crab/src/cmd/data.rs:1806-1816 | crab/src/cmd/migrate.rs:63-73 \u2014 before extracting anything, compare \u0060crab/src/cmd/artifacts.rs\u0060 and \u0060crab/src/cmd/data.rs\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 33 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":"crab/src/cmd/artifacts.rs"},"region":{"startLine":774}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a6ae0a300018956fbfb9c1a60e2210f9a408bde28997fd5d870d43cac84c545"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): crab/src/cmd/push.rs:780-789 | crab/src/cmd/push.rs:815-824 | crab/src/cmd/push.rs:878-887 \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":"crab/src/cmd/push.rs"},"region":{"startLine":780}}}],"partialFingerprints":{"codehealthFindingId/v1":"5250714b6e6129609696397fa95817b20b2295d35c1411394cc18e47b6a86fc3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 3): crab/src/cmd/repack.rs:1333-1341 | crab/src/cost/inventory/live.rs:407-416 | crab/src/git/push.rs:18792-18801 \u2014 before extracting anything, compare \u0060crab/src/cmd/repack.rs\u0060 and \u0060crab/src/git/push.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 36 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/cmd/repack.rs"},"region":{"startLine":1333}}}],"partialFingerprints":{"codehealthFindingId/v1":"5047649903b7926e31de6d2be4ddd10bcec98fff0baa33321de04b83149b343e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201310 lines \u00D7 3): crab/src/cmd/repack.rs:1336-1343 | crab/src/git/push.rs:18796-18805 | crab/src/optimize/xorbs/reconcile.rs:769-776 \u2014 before extracting anything, compare \u0060crab/src/cmd/repack.rs\u0060 and \u0060crab/src/git/push.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 36 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/cmd/repack.rs"},"region":{"startLine":1336}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9d25555a94cc99238cab2ea14848ffb4573f10658639c767e2f9334debd4635"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): crab/src/cmd/run.rs:3436-3445 | crates/crab-workflow/src/executor.rs:2299-2308 | crates/crab-workflow/src/executor.rs:2454-2463 \u2014 before extracting anything, compare \u0060crab/src/cmd/run.rs\u0060 and \u0060crates/crab-workflow/src/executor.rs\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 100 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crab/src/cmd/run.rs:3436\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":"crab/src/cmd/run.rs"},"region":{"startLine":3436}}}],"partialFingerprints":{"codehealthFindingId/v1":"bcb55cba8af833a19930c8a09fa821b450ae434cc6f1bee7a2565758f42a4019"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 3): crab/src/git/push.rs:5752-5760 | crab/src/git/push.rs:6375-6383 | crates/crab-write/src/journal.rs:417-426 \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 \u0060crab/src/git/push.rs:5752\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":"crab/src/git/push.rs"},"region":{"startLine":5752}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f3af8a93a8b002eff7edfb12ecaaa44126930d936f61d36725ca821d72bd7ca"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): crates/crab-auth-server/src/receive.rs:796-806 | crates/crab-xet/src/shard.rs:550-560 | crates/crab-xet/src/shard_parse.rs:174-184 \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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/crab-xet/src/shard.rs:550\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/crab-auth-server/src/receive.rs"},"region":{"startLine":796}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c718b93cc5784b459f60983a4faac12011e42ba91f8a9ca7b8056cacc5b856c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): crates/crab-auth/src/aws_oidc.rs:166-175 | crates/crab-auth/src/azure_entra.rs:192-201 | crates/crab-auth/src/gcp_federation.rs:222-231 \u2014 before extracting anything, compare \u0060crates/crab-auth/src/aws_oidc.rs\u0060 and \u0060crates/crab-auth/src/azure_entra.rs\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 88 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/crab-auth/src/aws_oidc.rs:166\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/crab-auth/src/aws_oidc.rs"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8f6ccabaf7cd758ed569b6bebf2130ff31cfd7dd3a52a2c6d2458c399c6692d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): crates/crab-cache/src/local_cache/maintenance.rs:413-422 | crates/crab-cache/src/local_cache/maintenance.rs:459-468 | crates/crab-cache/src/xet_chunk_cache.rs:708-717 \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/crab-cache/src/local_cache/maintenance.rs:413\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/crab-cache/src/local_cache/maintenance.rs"},"region":{"startLine":413}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a27fe811a4cd4baa876176d7961a43039c79ede853d37a5511592806491152a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): crates/crab-remote-git/src/operation.rs:979-988 | crates/crab-remote-git/src/operation.rs:1087-1096 | crates/crab-remote-git/src/operation.rs:1109-1118 \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/crab-remote-git/src/operation.rs:979\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/crab-remote-git/src/operation.rs"},"region":{"startLine":979}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7b2f843d5e18ad215c71c247eab62e96259512e64f89469ff85bf389e6b9f8a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crab/src/cmd/add.rs:2820-2829 | crab/src/cmd/status_workflow.rs:556-565 \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":"crab/src/cmd/add.rs"},"region":{"startLine":2820}}}],"partialFingerprints":{"codehealthFindingId/v1":"905f7f673581b1d23fc413010ddc1a30e2314ac14a51dbb6d064e11e97ca9d53"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crab/src/cmd/add.rs:2853-2862 | crab/src/cmd/add.rs:2873-2882 \u2014 both copies are in the same file, so extract the block 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 \u0060crab/src/cmd/add.rs:2853\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":"crab/src/cmd/add.rs"},"region":{"startLine":2853}}}],"partialFingerprints":{"codehealthFindingId/v1":"d163a37f02c09ea8e66090f20a7a8cb52371ae9546f8564ae9464bd49135ef0e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crab/src/cmd/artifacts.rs:223-232 | crab/src/cmd/artifacts.rs:512-521 \u2014 both copies are in the same file, so extract the block 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":"crab/src/cmd/artifacts.rs"},"region":{"startLine":223}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3a8e1208b3e5bdc2a0893da3cc1051831d3cd376cce869761d985b0689411ec"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crab/src/cmd/data.rs:1620-1629 | crab/src/cmd/workflow_checkpoint.rs:626-635 \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 \u0060crab/src/cmd/data.rs:1620\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":"crab/src/cmd/data.rs"},"region":{"startLine":1620}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac9d57ab099fc5011b6db03a32fb3d10180d951a3567d7453a5fddca2a447d49"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crab/src/cmd/diff.rs:90-99 | crab/src/cmd/diff.rs:101-110 \u2014 both copies are in the same file, so extract the block 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":"crab/src/cmd/diff.rs"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"db84b183317c140d3bc9291b69650b56c3f2ac4d585b441779c7a458c20aa891"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crab/src/cmd/gc/closure.rs:174-183 | crab/src/cmd/gc/closure.rs:305-314 \u2014 both copies are in the same file, so extract the block 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 \u0060crab/src/cmd/gc/closure.rs:174\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":"crab/src/cmd/gc/closure.rs"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff7c84c8b750471d0e621540dc35b5cfb1577ccdce1eaebf6d85969a4010487b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 2): crab/src/cmd/import.rs:254-263 | crab/src/import/coordinator.rs:129-137 \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 \u0060crab/src/cmd/import.rs:254\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":"crab/src/cmd/import.rs"},"region":{"startLine":254}}}],"partialFingerprints":{"codehealthFindingId/v1":"34409a491157300e33d57d805979e48c93207ca43717ee2c3e204acb7ad5fc2c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crab/src/cmd/lfs/dedup.rs:1116-1126 | crab/src/cmd/lfs/dedup.rs:1161-1171 \u2014 both copies are in the same file, so extract the block 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 \u0060crab/src/cmd/lfs/dedup.rs:1116\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":"crab/src/cmd/lfs/dedup.rs"},"region":{"startLine":1116}}}],"partialFingerprints":{"codehealthFindingId/v1":"851111ca4a7a0efb718fa1b51ca86baad08a5198450ca6813c8d6b451396819b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 2): crab/src/cmd/lfs/ls_files.rs:158-167 | crab/src/lfs/migrate.rs:2610-2618 \u2014 before extracting anything, compare \u0060crab/src/cmd/lfs/ls_files.rs\u0060 and \u0060crab/src/lfs/migrate.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 45 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/cmd/lfs/ls_files.rs"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd37ae8b80ada0be1fcf55e8db1ed42b8cdbd23afe22578fc57883ceffcc51f2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crab/src/cmd/lfs/ls_files.rs:196-205 | crab/src/lfs/prune.rs:654-663 \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 \u0060crab/src/cmd/lfs/ls_files.rs:196\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":"crab/src/cmd/lfs/ls_files.rs"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"a20fee7410eea019ba947e810540481744cbcb3f2295c2486fc777ed7686f99a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 2): crab/src/cmd/metadb.rs:2870-2879 | crates/crab-auth-server/src/receive/git_workspace.rs:435-443 \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 \u0060crab/src/cmd/metadb.rs:2870\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":"crab/src/cmd/metadb.rs"},"region":{"startLine":2870}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8cc9e2c3f1159dff8f397ca28324f0849cdc47ffe33ec6f9ce40b61a9ba5e72"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crab/src/cmd/recover.rs:2948-2957 | crates/crab-staging/src/push_plan.rs:1082-1091 \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 \u0060crab/src/cmd/recover.rs:2948\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":"crab/src/cmd/recover.rs"},"region":{"startLine":2948}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6788928a4da0d73f7b4e4e920273f657330ca0ec868198770fbac840d64c0c1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crab/src/cmd/replica.rs:2240-2249 | crab/src/cmd/replica.rs:2267-2276 \u2014 both copies are in the same file, so extract the block 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 \u0060args\u0060 to \u0060\u0026CoordinatorStatusArgs\u0060 in one and \u0060\u0026CoordinatorRemoveArgs\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":"crab/src/cmd/replica.rs"},"region":{"startLine":2240}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae5a2e8675438029ba5c9f8179940bb71ec1e08c0e494a6ea561b9f7b943f7ab"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crab/src/cmd/run.rs:3487-3496 | crates/crab-workflow/src/executor.rs:2344-2353 \u2014 before extracting anything, compare \u0060crab/src/cmd/run.rs\u0060 and \u0060crates/crab-workflow/src/executor.rs\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 100 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crab/src/cmd/run.rs:3487\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":"crab/src/cmd/run.rs"},"region":{"startLine":3487}}}],"partialFingerprints":{"codehealthFindingId/v1":"f583b723ae0897bce3aa6eee82cbc6f5db0de24d6220d72ec6210e6ff676ad70"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crab/src/core/error.rs:2307-2316 | crab/src/core/error.rs:2720-2729 \u2014 both copies are in the same file, so extract the block 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":"crab/src/core/error.rs"},"region":{"startLine":2307}}}],"partialFingerprints":{"codehealthFindingId/v1":"12196d4458e0c838a7389f2f282e000ea63eb4c1d7834d522c8380f6118e63b1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crab/src/git/filter_process.rs:609-618 | crab/src/git/filter_process.rs:634-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 \u0060crab/src/git/filter_process.rs:609\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":"crab/src/git/filter_process.rs"},"region":{"startLine":609}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcefb2f79fb0e25869c3b418ab39ba951779f97e5e04ac13fac6c338f42e9763"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crab/src/git/push.rs:10373-10382 | crab/src/git/push.rs:10416-10425 \u2014 both copies are in the same file, so extract the block 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 \u0060crab/src/git/push.rs:10373\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":"crab/src/git/push.rs"},"region":{"startLine":10373}}}],"partialFingerprints":{"codehealthFindingId/v1":"899835ed1a7f4b1c6fc15e26f21032ef1a594d09c541a6c5d2e75c288b475051"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crab/src/git/push.rs:13308-13317 | crates/crab-auth-server/src/receive.rs:1561-1570 \u2014 before extracting anything, compare \u0060crab/src/git/push.rs\u0060 and \u0060crates/crab-auth-server/src/receive.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 37 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crab/src/git/push.rs:13308\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":"crab/src/git/push.rs"},"region":{"startLine":13308}}}],"partialFingerprints":{"codehealthFindingId/v1":"d876e65613492fed8f96f9290fe26a2329315356fed859da229d8a91e4f46b16"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201310 lines \u00D7 2): crab/src/import/ingest.rs:748-757 | crab/src/import/ingest.rs:783-790 \u2014 both copies are in the same file, so extract the block 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 \u0060crab/src/import/ingest.rs:748\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":"crab/src/import/ingest.rs"},"region":{"startLine":748}}}],"partialFingerprints":{"codehealthFindingId/v1":"79cda7b07c7ef966e20083ef509d479df91e5cd50b92bc6830da9f35f47f0e05"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crab/src/lfs/batch.rs:182-191 | crab/src/lfs/batch.rs:234-243 \u2014 both copies are in the same file, so extract the block 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 \u0060crab/src/lfs/batch.rs:182\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":"crab/src/lfs/batch.rs"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"c63fb653da23b4663179e9c09a9a0be003abb5308d6c958a9b06ecd65ce1da7b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crab/src/metadata/metadb/stores/chunk_index.rs:372-381 | crab/src/metadata/metadb/stores/chunk_index.rs:471-480 \u2014 both copies are in the same file, so extract the block 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, \u0060crab/src/metadata/metadb/stores/chunk_index.rs:382\u0060 calls \u0060with_capacity\u0060 and \u0060crab/src/metadata/metadb/stores/chunk_index.rs:481\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":"crab/src/metadata/metadb/stores/chunk_index.rs"},"region":{"startLine":372}}}],"partialFingerprints":{"codehealthFindingId/v1":"73ec18e8c7d8df87a5709f4e5080e010b422b5097afcc62188c77c07e704a360"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crab/src/replication/mod.rs:2412-2421 | crab/src/tier/provider/azure.rs:300-309 \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":"crab/src/replication/mod.rs"},"region":{"startLine":2412}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bd469bc1c729924ae701cb44a7fd1591834f43fb71b5be2ba6ef827c55d65c7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/crab-auth-server/src/receive/git_workspace.rs:393-402 | crates/crab-auth-server/src/receive/git_workspace.rs:1055-1064 \u2014 both copies are in the same file, so extract the block 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/crab-auth-server/src/receive/git_workspace.rs"},"region":{"startLine":393}}}],"partialFingerprints":{"codehealthFindingId/v1":"90ceb9aeab4d6a578b864ba09221199dc4242e4d1d248046be922b3df1227d09"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201310 lines \u00D7 2): crates/crab-auth-server/src/receive/session.rs:258-265 | crates/crab-auth-server/src/receive/session.rs:271-280 \u2014 both copies are in the same file, so extract the block 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/crab-auth-server/src/receive/session.rs:258\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/crab-auth-server/src/receive/session.rs"},"region":{"startLine":258}}}],"partialFingerprints":{"codehealthFindingId/v1":"9562b0c8b0703c7f31f1b4681738d072b4fad936a42d5831f2994bd18b03c27b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 2): crates/crab-cache-server/src/cache_store.rs:700-708 | crates/crab-cache-server/src/cache_store.rs:736-745 \u2014 both copies are in the same file, so extract the block 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/crab-cache-server/src/cache_store.rs:700\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/crab-cache-server/src/cache_store.rs"},"region":{"startLine":700}}}],"partialFingerprints":{"codehealthFindingId/v1":"8142b2703a523409116c2c57447bcc3df1983f109f497a88f5c6773e74285eb1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/crab-cache-store/src/lib.rs:471-480 | crates/crab-cache-store/src/lib.rs:560-569 \u2014 both copies are in the same file, so extract the block 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/crab-cache-store/src/lib.rs:471\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/crab-cache-store/src/lib.rs"},"region":{"startLine":471}}}],"partialFingerprints":{"codehealthFindingId/v1":"26911aa813a1aef243c42d9f6f0de724400c8fee1dd8d52676b044ee82ea379d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 2): crates/crab-coordination/src/gc_fence.rs:439-447 | crates/crab-coordination/src/gc_fence.rs:495-504 \u2014 both copies are in the same file, so extract the block 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/crab-coordination/src/gc_fence.rs:439\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/crab-coordination/src/gc_fence.rs"},"region":{"startLine":439}}}],"partialFingerprints":{"codehealthFindingId/v1":"fadc2d892d6aff33d7ed1225aad27c6bb3d83677b9fc968fc1bfe3a2096fdca1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/crab-coordination/src/push_lock.rs:828-837 | crates/crab-coordination/src/push_lock.rs:868-877 \u2014 both copies are in the same file, so extract the block 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/crab-coordination/src/push_lock.rs:868\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/crab-coordination/src/push_lock.rs"},"region":{"startLine":828}}}],"partialFingerprints":{"codehealthFindingId/v1":"d001c952118b507d69062b7f5ba4a74e1af81e07c81834ae8b25f7d3390f49ca"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/crab-coordination/src/spanner_coordinator.rs:488-497 | crates/crab-coordination/src/spanner_coordinator.rs:737-746 \u2014 both copies are in the same file, so extract the block 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/crab-coordination/src/spanner_coordinator.rs"},"region":{"startLine":488}}}],"partialFingerprints":{"codehealthFindingId/v1":"7409f0f31c4a6afbe20abfc8fdbf8f8539dff2249379304d043a90bda189f49f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/crab-http-server/src/auth/git_tokens.rs:159-168 | crates/crab-http-server/src/auth/git_tokens.rs:196-205 \u2014 both copies are in the same file, so extract the block 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/crab-http-server/src/auth/git_tokens.rs:159\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/crab-http-server/src/auth/git_tokens.rs"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0e54395d0939a3f272f393f68ffb625fdadf838fe60a59df56016816ace1d8a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/crab-http-server/src/branches.rs:130-139 | crates/crab-http-server/src/contents.rs:232-241 \u2014 before extracting anything, compare \u0060crates/crab-http-server/src/branches.rs\u0060 and \u0060crates/crab-http-server/src/contents.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 47 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/crab-http-server/src/branches.rs:130\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/crab-http-server/src/branches.rs"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"042f7c24c8e04077e21a67994d18ee95537d3ec5aebf089d23f9a8f80c64af81"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/crab-http-server/src/cells/repository/pull_review_threads.rs:282-291 | crates/crab-http-server/src/pulls/review_thread_storage.rs:358-367 \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/crab-http-server/src/cells/repository/pull_review_threads.rs"},"region":{"startLine":282}}}],"partialFingerprints":{"codehealthFindingId/v1":"366987d9792fb931862f2d99d16c2ddbb6c03dc8af1787d116af81153337fe37"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/crab-http-server/src/cells/repository/pull_review_threads.rs:1073-1082 | crates/crab-http-server/src/cells/repository/pull_review_threads.rs:1088-1097 \u2014 both copies are in the same file, so extract the block 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 \u0060context\u0060 to \u0060\u0026CommandContext\u003C\u0027_, \u0027_\u003E\u0060 in one and \u0060\u0026QueryContext\u003C\u0027_\u003E\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/crab-http-server/src/cells/repository/pull_review_threads.rs"},"region":{"startLine":1073}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ddc33674276119c793ad391b82afdcd33cb0e8463c04fc9e37fe34b3ad36c0c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/crab-http-server/src/cells/repository/pull_review_threads.rs:1180-1189 | crates/crab-http-server/src/cells/repository/pull_review_threads.rs:1195-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. 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 \u0060context\u0060 to \u0060\u0026CommandContext\u003C\u0027_, \u0027_\u003E\u0060 in one and \u0060\u0026QueryContext\u003C\u0027_\u003E\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/crab-http-server/src/cells/repository/pull_review_threads.rs"},"region":{"startLine":1180}}}],"partialFingerprints":{"codehealthFindingId/v1":"4da4c4f441e7b9810c206e81cbfa07fa850ad938c5fee2dff5256a50f236e7a7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/crab-http-server/src/cells/repository/releases.rs:1066-1075 | crates/crab-http-server/src/cells/repository/releases.rs:1081-1090 \u2014 both copies are in the same file, so extract the block 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 \u0060context\u0060 to \u0060\u0026CommandContext\u003C\u0027_, \u0027_\u003E\u0060 in one and \u0060\u0026QueryContext\u003C\u0027_\u003E\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/crab-http-server/src/cells/repository/releases.rs"},"region":{"startLine":1066}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2f6bf4a35528b5118a2dde27a838ae239e61311b7242edb73f26d1f0f752c20"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/crab-http-server/src/metrics.rs:1752-1761 | crates/crab-s3-gateway/src/metrics.rs:771-780 \u2014 before extracting anything, compare \u0060crates/crab-http-server/src/metrics.rs\u0060 and \u0060crates/crab-s3-gateway/src/metrics.rs\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 76 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/crab-http-server/src/metrics.rs:1752\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/crab-http-server/src/metrics.rs"},"region":{"startLine":1752}}}],"partialFingerprints":{"codehealthFindingId/v1":"635163995924fcb3f0c4938066f2b6e1e275064b4bbab9dff3efb4efe049f389"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/crab-http-server/src/projection.rs:186-195 | crates/crab-http-server/src/projection.rs:237-246 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/crab-http-server/src/projection.rs:186\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/crab-http-server/src/projection.rs"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac31b227213b65c18c87258315f2b896b004d350301ea5a762bece012c9efcf2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/crab-http-server/src/server.rs:717-726 | crates/crab-http-server/src/server.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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-http-server/src/server.rs"},"region":{"startLine":717}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd990f990eb0523644ae21f9b68b7caa403c43095bf69a26a534ad6c57451142"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/crab-lfs/src/lock.rs:181-190 | crates/crab-lfs/src/lock.rs:388-397 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-lfs/src/lock.rs"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"26dc6a556aac558e0d0fe571a160da5b5c691e985b1a4b5d3a3dc46f9b911267"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/crab-metadata/src/file_index_lookup.rs:307-316 | crates/crab-metadata/src/file_index_lookup.rs:366-375 \u2014 both copies are in the same file, so extract the block 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/crab-metadata/src/file_index_lookup.rs:307\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/crab-metadata/src/file_index_lookup.rs"},"region":{"startLine":307}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc45d13905d1da608666390ff671c08a0e4a69fe6f7c9ea917c0f6a4187eb0a3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/crab-metadata/src/git_visibility.rs:2204-2213 | crates/crab-metadata/src/git_visibility.rs:2322-2331 \u2014 both copies are in the same file, so extract the block 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/crab-metadata/src/git_visibility.rs"},"region":{"startLine":2204}}}],"partialFingerprints":{"codehealthFindingId/v1":"f52aff7ef0f1ac8ef48bd3178e7bf140ac7613cf1c91963a33c792e7fc4f983b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/crab-metadata/src/ref_registry.rs:516-525 | crates/crab-metadata/src/ref_registry.rs:895-904 \u2014 both copies are in the same file, so extract the block 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/crab-metadata/src/ref_registry.rs:516\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/crab-metadata/src/ref_registry.rs:905\u0060 calls \u0060retain\u0060, \u0060contains\u0060 and \u0060crates/crab-metadata/src/ref_registry.rs:526\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/crab-metadata/src/ref_registry.rs"},"region":{"startLine":516}}}],"partialFingerprints":{"codehealthFindingId/v1":"61d84c5d4948271c10c3cd150282e2a01533c67908d9cd837d4999198e95bc2c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 2): crates/crab-remote-git/src/operation.rs:856-864 | crates/crab-remote-git/src/operation.rs:884-893 \u2014 both copies are in the same file, so extract the block 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/crab-remote-git/src/operation.rs:884\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/crab-remote-git/src/operation.rs"},"region":{"startLine":856}}}],"partialFingerprints":{"codehealthFindingId/v1":"5eccee82a2787e0d4e35e32590e75c9961be46426003dd23cc59a4644f33b7c9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/crab-remote-git/src/operation.rs:1009-1018 | crates/crab-remote-git/src/operation.rs:1039-1048 \u2014 both copies are in the same file, so extract the block 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/crab-remote-git/src/operation.rs"},"region":{"startLine":1009}}}],"partialFingerprints":{"codehealthFindingId/v1":"276d9cb116394164865e184f277d222ddc503ef404148de5b8a8e6a907cedd6e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 2): crates/crab-remote-git/src/pack.rs:1597-1605 | crates/crab-remote-git/src/pack.rs:2062-2071 \u2014 both copies are in the same file, so extract the block 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/crab-remote-git/src/pack.rs:2062\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/crab-remote-git/src/pack.rs"},"region":{"startLine":1597}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc84e18d889a2b8244be0df198916329b738b822d98fa9b40e91897f2aff8264"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 2): crates/crab-remote-git/src/pack.rs:1844-1853 | crates/crab-remote-git/src/pack.rs:1860-1868 \u2014 both copies are in the same file, so extract the block 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/crab-remote-git/src/pack.rs:1844\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/crab-remote-git/src/pack.rs"},"region":{"startLine":1844}}}],"partialFingerprints":{"codehealthFindingId/v1":"02d1bd48c6725f1d052b9c404b32528777161e9d4dbd5a3c403f91cf71e020a9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/crab-remote-git/src/pack.rs:2243-2252 | crates/crab-remote-git/src/reader.rs:1792-1801 \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/crab-remote-git/src/pack.rs:2243\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/crab-remote-git/src/pack.rs"},"region":{"startLine":2243}}}],"partialFingerprints":{"codehealthFindingId/v1":"9888712c6b3eb2a28fae8c568d483811acda5d810e8c2e9827adabc3f7406cd3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/crab-remote-git/src/runtime.rs:751-760 | crates/crab-remote-git/src/runtime.rs:988-997 \u2014 both copies are in the same file, so extract the block 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/crab-remote-git/src/runtime.rs:751\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/crab-remote-git/src/runtime.rs"},"region":{"startLine":751}}}],"partialFingerprints":{"codehealthFindingId/v1":"9225d5ee76c9b8e4d6f4abd459636b0f1bbdd1a846acf838179650e78d21b431"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/crab-remote-git/src/snapshot.rs:1005-1014 | crates/crab-remote-git/src/snapshot.rs:1830-1839 \u2014 both copies are in the same file, so extract the block 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/crab-remote-git/src/snapshot.rs:1005\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/crab-remote-git/src/snapshot.rs"},"region":{"startLine":1005}}}],"partialFingerprints":{"codehealthFindingId/v1":"e91e09a146a4bb055bef86736ae26c0b4a94c29746902fa80e4d7a4d15f56b82"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/crab-s3-gateway/src/multipart.rs:597-606 | crates/crab-s3-gateway/src/multipart.rs:608-617 \u2014 both copies are in the same file, so extract the block 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/crab-s3-gateway/src/multipart.rs:597\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/crab-s3-gateway/src/multipart.rs"},"region":{"startLine":597}}}],"partialFingerprints":{"codehealthFindingId/v1":"18325f0ea3341509729cb3798979f07997f3c00a5cfe80501abdd4ebfb494096"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/crab-sdk/src/client/mutation.rs:989-998 | crates/crab-sdk/src/client/mutation.rs:1058-1067 \u2014 both copies are in the same file, so extract the block 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/crab-sdk/src/client/mutation.rs"},"region":{"startLine":989}}}],"partialFingerprints":{"codehealthFindingId/v1":"da8983644d854be6909b286ff5a216f76ce42109d2f132e7904458c880ee3c55"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crates/crab-staging/src/index.rs:3241-3251 | crates/crab-staging/src/index.rs:6549-6559 \u2014 both copies are in the same file, so extract the block 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/crab-staging/src/index.rs:3241\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/crab-staging/src/index.rs"},"region":{"startLine":3241}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba36e95b2ab85982a3b0a70d6cc24013c219a870321c25ff3bdd5ba223d587dc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/crab-staging/src/lib.rs:1904-1913 | crates/crab-staging/src/lib.rs:1920-1929 \u2014 both copies are in the same file, so extract the block 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/crab-staging/src/lib.rs:1904\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/crab-staging/src/lib.rs"},"region":{"startLine":1904}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0432e366c1fd66c18023032e9119dbd877107f4b9a2ea284be962632b5ef97e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/crab-staging/src/lib.rs:2869-2878 | crates/crab-staging/src/lib.rs:3903-3912 \u2014 both copies are in the same file, so extract the block 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/crab-staging/src/lib.rs"},"region":{"startLine":2869}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6ead98e1cd8cd9bb4e98437daebf6644fd16f7daf596f970450022e27c3bf5b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/crab-storage/src/provider_store.rs:403-412 | crates/crab-storage/src/provider_store.rs:576-585 \u2014 both copies are in the same file, so extract the block 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/crab-storage/src/provider_store.rs:403\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/crab-storage/src/provider_store.rs"},"region":{"startLine":403}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2ee0fab04f1f596579b62f8487bebba898b435ef54ee3d053117b6accf61d25"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/crab-storage/src/store.rs:918-927 | crates/crab-storage/src/store.rs:956-965 \u2014 both copies are in the same file, so extract the block 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/crab-storage/src/store.rs:918\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/crab-storage/src/store.rs"},"region":{"startLine":918}}}],"partialFingerprints":{"codehealthFindingId/v1":"05e034129f12705a5c5ca248c104ce5f4b721c4081e0a36d1cb583926d2a0602"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/crab-vfs/src/fuse.rs:677-686 | crates/crab-vfs/src/fuse.rs:911-920 \u2014 both copies are in the same file, so extract the block 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/crab-vfs/src/fuse.rs:677\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 \u0060reply\u0060 to \u0060ReplyAttr\u0060 in one and \u0060ReplyOpen\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/crab-vfs/src/fuse.rs"},"region":{"startLine":677}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fee19a1712ca3cdc1bd96abb086c0f6778af2a7a1e6981b1064eb62b371c54b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/crab-vfs/src/overlay.rs:264-273 | crates/crab-vfs/src/overlay.rs:295-304 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-vfs/src/overlay.rs"},"region":{"startLine":264}}}],"partialFingerprints":{"codehealthFindingId/v1":"479814857721051e4eacb2c93ad5d240ce17a9f03fc2ae206a66b8e937212d08"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/crab-vfs/src/overlay.rs:1635-1644 | crates/crab-vfs/src/publish.rs:1117-1126 \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/crab-vfs/src/overlay.rs"},"region":{"startLine":1635}}}],"partialFingerprints":{"codehealthFindingId/v1":"43b4daf84cca4515dcc1fefd020ef33c04e2820e59d4de4051d56cf21f5e5d20"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201310 lines \u00D7 2): crates/crab-vfs/src/snapshot.rs:146-155 | crates/crab-vfs/src/snapshot.rs:215-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/crab-vfs/src/snapshot.rs:146\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/crab-vfs/src/snapshot.rs"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5c56ff8619e0193fa51f8dfc8302cbbf1718995ff014904a754d660f295dced"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/crab-workflow/src/exp_worktree.rs:766-775 | crates/crab-workflow/src/hydra.rs:435-444 \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/crab-workflow/src/exp_worktree.rs"},"region":{"startLine":766}}}],"partialFingerprints":{"codehealthFindingId/v1":"9025e6673f95f26de6adc9a01dea2d265ca8d71a4ebf7c5402a747df8a5648ef"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/crab-workflow/src/exp_worktree.rs:1159-1168 | crates/crab-workflow/src/exp_worktree.rs:1178-1187 \u2014 both copies are in the same file, so extract the block 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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060crates/crab-workflow/src/exp_worktree.rs:1155\u0060 calls \u0060is_python_keyword\u0060 and \u0060crates/crab-workflow/src/exp_worktree.rs:1176\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/crab-workflow/src/exp_worktree.rs"},"region":{"startLine":1159}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a252c742d26a50e8532401ef657a308505db01be29812169597104c0b1cb997"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 2): crates/crab-workflow/src/lockfile.rs:605-614 | crates/crab-workflow/src/lockfile.rs:647-655 \u2014 both copies are in the same file, so extract the block 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/crab-workflow/src/lockfile.rs"},"region":{"startLine":605}}}],"partialFingerprints":{"codehealthFindingId/v1":"42f3837a4e161dc120eb1997aa76d1dfa8c577feb86d3d03bc7a5d3c17dffd32"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/crab-workflow/src/lockfile.rs:610-619 | crates/crab-workflow/src/lockfile.rs:635-644 \u2014 both copies are in the same file, so extract the block 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/crab-workflow/src/lockfile.rs:610\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/crab-workflow/src/lockfile.rs"},"region":{"startLine":610}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e4ea8ba9ab0e95c43d5e3174e6fa2d5ff7648eb824ebece4be4b8f203514ef0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/crab-workflow/src/params.rs:217-226 | crates/crab-workflow/src/params.rs:247-256 \u2014 both copies are in the same file, so extract the block 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/crab-workflow/src/params.rs:217\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/crab-workflow/src/params.rs"},"region":{"startLine":217}}}],"partialFingerprints":{"codehealthFindingId/v1":"b66aff0c159ddf076a2feb6fc7074b51153aa77e66e2c04106b24f5a13ddd774"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 6): crab/src/cmd/workflow_checkpoint.rs:792-800 | crates/crab-workflow/src/artifact.rs:346-354 | crates/crab-workflow/src/checkpoint.rs:121-129 | crates/crab-workflow/src/dvc_inventory.rs:408-416 | crates/crab-workflow/src/external_hash.rs:114-122 | crates/crab-workflow/src/source.rs:77-85 \u2014 before extracting anything, compare \u0060crates/crab-workflow/src/artifact.rs\u0060 and \u0060crates/crab-workflow/src/checkpoint.rs\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 36 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 \u0060crab/src/cmd/workflow_checkpoint.rs:792\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":"crab/src/cmd/workflow_checkpoint.rs"},"region":{"startLine":792}}}],"partialFingerprints":{"codehealthFindingId/v1":"99d45eadbe6d633e33d2d8e6718bcb35c3245c954ff7b3b329a751013b38b5a7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 6): crates/crab-http-server/src/checks.rs:833-841 | crates/crab-http-server/src/issues.rs:677-685 | crates/crab-http-server/src/labels.rs:303-311 | crates/crab-http-server/src/pulls/storage.rs:817-825 | crates/crab-http-server/src/releases/storage.rs:416-424 | crates/crab-http-server/src/statuses.rs:342-350 \u2014 before extracting anything, compare \u0060crates/crab-http-server/src/checks.rs\u0060 and \u0060crates/crab-http-server/src/issues.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 46 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/crab-http-server/src/checks.rs"},"region":{"startLine":833}}}],"partialFingerprints":{"codehealthFindingId/v1":"81068b05488b9adfe403cf3f6a7a3b904756a7f44160ffd5c42f0fe7145c6331"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 5): crab/src/cmd/add.rs:3449-3457 | crab/src/cmd/dehydrate.rs:443-451 | crab/src/cmd/hydrate.rs:3525-3533 | crab/src/cmd/reset.rs:480-488 | crab/src/cmd/status.rs:759-767 \u2014 before extracting anything, compare \u0060crab/src/cmd/add.rs\u0060 and \u0060crab/src/cmd/dehydrate.rs\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 131 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 \u0060crab/src/cmd/add.rs:3449\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":"crab/src/cmd/add.rs"},"region":{"startLine":3449}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7362c3199c35d81d1b7a2435e7c48746dc280aa28adfb652f60789b5e1dbf13"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 5): crates/crab-remote-git/src/error.rs:495-503 | crates/crab-sdk/src/content/crab.rs:283-291 | crates/crab-sdk/src/remote_error.rs:139-147 | crates/crab-sdk/src/remote_error.rs:199-207 | crates/crab-storage/src/error.rs:178-186 \u2014 there are 5 copies across 4 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 5 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/crab-remote-git/src/error.rs:495\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 first that the copies are not typed on the same thing: the declarations holding them bind \u0060source\u0060 to \u0060crab_read::ReadError\u0060 in one and \u0060std::io::Error\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/crab-remote-git/src/error.rs"},"region":{"startLine":495}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c41f6ce854d7f43da0bf990e8157416ab7282f7fe16345b7c3d406792f30073"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20139 lines \u00D7 4): crab/src/cmd/fsck_store.rs:342-348 | crab/src/lfs/lock.rs:290-298 | crab/src/lfs/lock.rs:340-348 | crab/src/metadata/refs.rs:87-93 \u2014 there are 4 copies across 3 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 \u0060crab/src/cmd/fsck_store.rs:342\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":"crab/src/cmd/fsck_store.rs"},"region":{"startLine":342}}}],"partialFingerprints":{"codehealthFindingId/v1":"9281bf6ee8d5bbc96ce71c4642e013da5fb18e3a54e08c681c2483ad7e4e5740"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 4): crab/src/cmd/run.rs:3438-3446 | crab/src/cmd/status_workflow.rs:902-910 | crates/crab-workflow/src/executor.rs:2301-2309 | crates/crab-workflow/src/executor.rs:2456-2464 \u2014 before extracting anything, compare \u0060crab/src/cmd/run.rs\u0060 and \u0060crab/src/cmd/status_workflow.rs\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 66 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 \u0060crab/src/cmd/run.rs:3438\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":"crab/src/cmd/run.rs"},"region":{"startLine":3438}}}],"partialFingerprints":{"codehealthFindingId/v1":"49f9981b0ae3359432108fbd12f58478fdab11ca6ef620dfc8f9a5bee590e4d7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 4): crates/crab-workflow/src/exp_worktree.rs:1160-1168 | crates/crab-workflow/src/exp_worktree.rs:1179-1187 | crates/crab-workflow/src/params.rs:309-317 | crates/crab-workflow/src/params.rs:327-335 \u2014 before extracting anything, compare \u0060crates/crab-workflow/src/exp_worktree.rs\u0060 and \u0060crates/crab-workflow/src/params.rs\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 94 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-workflow/src/exp_worktree.rs"},"region":{"startLine":1160}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e9e5a4c989a8b0f4d4a5b95ea7f9bd1e1876d8fdbb85cd6112f2f8a25db08ff"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): crab/src/cmd/artifacts.rs:195-203 | crab/src/cmd/artifacts.rs:223-231 | crab/src/cmd/artifacts.rs:512-520 \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":"crab/src/cmd/artifacts.rs"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"a433c98f1291b227612f95e0eb73a406825845cf6a474e89835aeff1ae0c6832"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (4\u20139 lines \u00D7 4): crab/src/cmd/exp.rs:4258-4266 | crab/src/cmd/exp.rs:4499-4502 | crab/src/cmd/exp.rs:4758-4766 | crab/src/cmd/exp.rs:4851-4859 \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 \u0060crab/src/cmd/exp.rs:4499\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060crab/src/cmd/exp.rs:4267\u0060 calls \u0060should_skip_workspace_snapshot_path\u0060 and \u0060crab/src/cmd/exp.rs:4860\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":"crab/src/cmd/exp.rs"},"region":{"startLine":4258}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2871757183293c6df824c5319d074db9adf40b2eba58f52347a02353da09905"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): crab/src/cmd/lfs/env.rs:85-93 | crab/src/cmd/lock.rs:231-239 | crab/src/cmd/push.rs:1558-1566 \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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crab/src/cmd/lfs/env.rs:85\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":"crab/src/cmd/lfs/env.rs"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"01fbc9ad539c773e79c3312e166ffde10f297119f4c7d97e90df4ada10773c26"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): crab/src/cmd/recover.rs:1944-1952 | crab/src/cmd/recover.rs:2065-2073 | crab/src/cmd/recover.rs:2203-2211 \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 \u0060crab/src/cmd/recover.rs:1944\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":"crab/src/cmd/recover.rs"},"region":{"startLine":1944}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d3784c7ab50081d4af42e67d71b71087fa549a237e11aa6ddac1ec86a11e6a2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): crab/src/cmd/recover.rs:2947-2955 | crates/crab-staging/src/push_plan.rs:1081-1089 | crates/crab-vfs/src/hydration.rs:1445-1453 \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":"crab/src/cmd/recover.rs"},"region":{"startLine":2947}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8dde6dfc14c59ba5588119e728ad88599b13687e2fdfc1f93f56ff7a56d8fb7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): crab/src/cmd/run.rs:691-699 | crab/src/cmd/run.rs:1363-1371 | crab/src/cmd/run.rs:1499-1507 \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":"crab/src/cmd/run.rs"},"region":{"startLine":691}}}],"partialFingerprints":{"codehealthFindingId/v1":"d644f882837f0cd8ee20bca436d396a9af028eaf0a2597b06774daeeba64e5ed"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): crates/crab-vfs/src/coordinator.rs:537-545 | crates/crab-vfs/src/coordinator.rs:589-597 | crates/crab-vfs/src/coordinator.rs:614-622 \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. 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/crab-vfs/src/coordinator.rs:546\u0060 calls \u0060as_ref\u0060, \u0060ok_or_else\u0060, \u0060Internal\u0060 and \u0060crates/crab-vfs/src/coordinator.rs:623\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/crab-vfs/src/coordinator.rs"},"region":{"startLine":537}}}],"partialFingerprints":{"codehealthFindingId/v1":"46e0636e5354f3073a438750699f9a9635db6666e658376bd344c97feedd43f3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): crates/crab-xet/src/shard_parse.rs:261-269 | crates/crab-xet/src/shard_parse.rs:523-532 | crates/crab-xet/src/shard_parse.rs:673-682 \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/crab-xet/src/shard_parse.rs:261\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. 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/crab-xet/src/shard_parse.rs"},"region":{"startLine":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bf6093af2ef0ace333b296eddd8c129fdfd3ba688b3af8548f7ec66d7210b67"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 2): crab/src/cmd/adopt.rs:207-214 | crab/src/cmd/setup.rs:382-390 \u2014 before extracting anything, compare \u0060crab/src/cmd/adopt.rs\u0060 and \u0060crab/src/cmd/setup.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 59 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":"crab/src/cmd/adopt.rs"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"525d03ad13fe2e324bcd1f9a4d7640118f5f3a32da04bca90b06dabfc6550b28"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crab/src/cmd/dehydrate.rs:304-312 | crab/src/cmd/hydrate.rs:3395-3404 \u2014 before extracting anything, compare \u0060crab/src/cmd/dehydrate.rs\u0060 and \u0060crab/src/cmd/hydrate.rs\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 223 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060args\u0060 to \u0060\u0026DehydrateArgs\u0060 in one and \u0060\u0026HydrateArgs\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":"crab/src/cmd/dehydrate.rs"},"region":{"startLine":304}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5795c856841e06cc38a9442372af3d601406b86db7671c7fb31fa558f565a02"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crab/src/cmd/doctor.rs:1260-1268 | crates/crab-cache/src/active_probe.rs:231-239 \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 \u0060crab/src/cmd/doctor.rs:1260\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":"crab/src/cmd/doctor.rs"},"region":{"startLine":1260}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa53f24765d3b02825a724d482c082f3f594b69dc4e85712a07c2c247b939b41"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crab/src/cmd/exp.rs:218-226 | crab/src/cmd/exp.rs:233-241 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060crab/src/cmd/exp.rs:243\u0060 calls \u0060default\u0060 and \u0060crab/src/cmd/exp.rs:228\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":"crab/src/cmd/exp.rs"},"region":{"startLine":218}}}],"partialFingerprints":{"codehealthFindingId/v1":"982eb9c7bbba07d225a50921ef8d1d46b78723089546ec45fda05400e403662e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crab/src/cmd/exp.rs:3936-3944 | crab/src/cmd/exp.rs:4195-4203 \u2014 both copies are in the same file, so extract the block 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 \u0060crab/src/cmd/exp.rs:3936\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":"crab/src/cmd/exp.rs"},"region":{"startLine":3936}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc8c05de1dc7caad7d3742b886b405d385c95322257cea3b5ca54252a9e8a91b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crab/src/cmd/exp_queue.rs:1186-1194 | crab/src/cmd/exp_queue.rs:1253-1261 \u2014 both copies are in the same file, so extract the block 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 \u0060crab/src/cmd/exp_queue.rs:1186\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":"crab/src/cmd/exp_queue.rs"},"region":{"startLine":1186}}}],"partialFingerprints":{"codehealthFindingId/v1":"848a5fed63bd587e3b9a682417764623542df81c3c258dc9a44cac68cb771914"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): crab/src/cmd/freeze.rs:384-396 | crab/src/cmd/stage/add.rs:432-444 \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":"crab/src/cmd/freeze.rs"},"region":{"startLine":384}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f868ada2b002ce278ed61ae459587aa93f1ad6f2236b355d05ee56330900ec2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 2): crab/src/cmd/gc/bucket.rs:1541-1548 | crab/src/cmd/gc/marks.rs:394-402 \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 \u0060crab/src/cmd/gc/bucket.rs:1541\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. 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":"crab/src/cmd/gc/bucket.rs"},"region":{"startLine":1541}}}],"partialFingerprints":{"codehealthFindingId/v1":"50ffa5dbd1bf506c9baa96271180197747323eecf6fbff34b85a101f73cb870f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crab/src/cmd/history_recovery.rs:650-658 | crab/src/maintenance.rs:197-205 \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 \u0060crab/src/cmd/history_recovery.rs:650\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":"crab/src/cmd/history_recovery.rs"},"region":{"startLine":650}}}],"partialFingerprints":{"codehealthFindingId/v1":"e634b25368719ac3a07cb8e22aeee95aa360b0bc2b84b039a879bb86afc434c4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crab/src/cmd/history_recovery.rs:1082-1091 | crab/src/git/push.rs:5075-5084 \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":"crab/src/cmd/history_recovery.rs"},"region":{"startLine":1082}}}],"partialFingerprints":{"codehealthFindingId/v1":"decd82a0a5e81cb33e43be00d0a80d0b6d98ca1d5d1315722d3c2bf3f6d9208a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crab/src/cmd/hydrate.rs:3073-3081 | crab/src/cmd/release.rs:1171-1179 \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 \u0060crab/src/cmd/hydrate.rs:3073\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":"crab/src/cmd/hydrate.rs"},"region":{"startLine":3073}}}],"partialFingerprints":{"codehealthFindingId/v1":"deecf33ed1cf0756eb9bc11daf742ce0f7f7a6d3f1a391eb706335bb4417b571"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crab/src/cmd/lfs/convert.rs:232-240 | crab/src/lfs/prune.rs:121-129 \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 \u0060crab/src/cmd/lfs/convert.rs:232\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. 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":"crab/src/cmd/lfs/convert.rs"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6270a6bc339ef0df8d40e9cece1d23de56d63479ac9c5ab424a719ccab1c2e1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crab/src/cmd/lfs/dedup.rs:179-187 | crab/src/cmd/lfs/dedup.rs:697-705 \u2014 both copies are in the same file, so extract the block 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 \u0060crab/src/cmd/lfs/dedup.rs:179\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":"crab/src/cmd/lfs/dedup.rs"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"b51c21a59275dd64963a08570f2eb84b8f567996fe7707b2df930bbfb5c503bc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crab/src/cmd/lfs/ls_files.rs:178-186 | crab/src/lfs/prune.rs:634-642 \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":"crab/src/cmd/lfs/ls_files.rs"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e1605204583385ea6c296396f111c1fcd2890fdcf0bad0df9e40e9f745a8fff"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crab/src/cmd/metadb.rs:1222-1230 | crab/src/cmd/repack.rs:985-993 \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 \u0060crab/src/cmd/metadb.rs:1222\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":"crab/src/cmd/metadb.rs"},"region":{"startLine":1222}}}],"partialFingerprints":{"codehealthFindingId/v1":"65eb239fb9bde0e0f44627d868b1722f32d0b5208d582ad4416b7ea1fb84fb49"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crab/src/cmd/metadb.rs:2933-2941 | crab/src/cmd/metadb.rs:3016-3024 \u2014 both copies are in the same file, so extract the block 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":"crab/src/cmd/metadb.rs"},"region":{"startLine":2933}}}],"partialFingerprints":{"codehealthFindingId/v1":"36df1d7c600283e3159e6a3eafe4435533713af49e20767a5dcef63927678725"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 2): crab/src/cmd/metrics.rs:1469-1477 | crab/src/cmd/metrics.rs:3339-3346 \u2014 both copies are in the same file, so extract the block 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 \u0060crab/src/cmd/metrics.rs:1469\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":"crab/src/cmd/metrics.rs"},"region":{"startLine":1469}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7e18d2babd642d1f671dda61c134dfa59e5bb428d3075fd9cfd8fd25a636aba"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crab/src/cmd/metrics.rs:3266-3274 | crab/src/cmd/release.rs:1284-1292 \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 \u0060crab/src/cmd/metrics.rs:3266\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":"crab/src/cmd/metrics.rs"},"region":{"startLine":3266}}}],"partialFingerprints":{"codehealthFindingId/v1":"11af02649f949e4a3706104ff04f6ea9ecc6500d72d418b5e90fcac28a8455c2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crab/src/cmd/migrate.rs:2373-2381 | crab/src/git/pack.rs:877-886 \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":"crab/src/cmd/migrate.rs"},"region":{"startLine":2373}}}],"partialFingerprints":{"codehealthFindingId/v1":"44e42adadf78667b075e3b804b8020761614ff913b26454a313cee974cbdbf99"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crab/src/cmd/recover.rs:2776-2784 | crab/src/cmd/release.rs:1089-1097 \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 \u0060crab/src/cmd/recover.rs:2776\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":"crab/src/cmd/recover.rs"},"region":{"startLine":2776}}}],"partialFingerprints":{"codehealthFindingId/v1":"c00274542b5d47cbb4ec35e49e67837fbf53b8ff4f46fcf4a225d69d10fb09f7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crab/src/cmd/replica.rs:4499-4507 | crab/src/cmd/replica.rs:4618-4626 \u2014 both copies are in the same file, so extract the block 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 \u0060payload\u0060 to \u0060\u0026LiveControlPlaneEvidencePayload\u0060 in one and \u0060\u0026LiveSmokeEvidencePayload\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":"crab/src/cmd/replica.rs"},"region":{"startLine":4499}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7610b5edc63fd81a1944b0414466ab8e18f3346d1d84daf19fd127fdf346bdd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crab/src/cmd/stage/list.rs:312-321 | crates/crab-workflow/src/resume.rs:310-319 \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 \u0060crab/src/cmd/stage/list.rs:312\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":"crab/src/cmd/stage/list.rs"},"region":{"startLine":312}}}],"partialFingerprints":{"codehealthFindingId/v1":"88fcca2ddc1105e4fa9da28fc5cb6a594b0696cd9811582d176d5075880ae13f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crab/src/cmd/staging.rs:88-96 | crab/src/cmd/stat.rs:36-44 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060crab/src/cmd/staging.rs:86\u0060 calls \u0060list_inflight\u0060 and \u0060crab/src/cmd/stat.rs:34\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":"crab/src/cmd/staging.rs"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"e80154ccea933f7840ad47660e32a4cfbe8f02eabf193f5e189aaf9216d7bb5e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crab/src/core/error.rs:2719-2727 | crab/src/core/error.rs:3013-3021 \u2014 both copies are in the same file, so extract the block 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, \u0060crab/src/core/error.rs:3022\u0060 calls \u0060GixConfig\u0060 and \u0060crab/src/core/error.rs:2728\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":"crab/src/core/error.rs"},"region":{"startLine":2719}}}],"partialFingerprints":{"codehealthFindingId/v1":"233f8bdef5ad623e171b6e57e9a7cb472c50e981a0e25378ec519188c5d69cd1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crab/src/git/push.rs:8475-8483 | crab/src/git/push.rs:8486-8494 \u2014 both copies are in the same file, so extract the block 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 \u0060crab/src/git/push.rs:8475\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":"crab/src/git/push.rs"},"region":{"startLine":8475}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e95537b482f360690bba06bf29e8322630d56766d59e1d9e611494cd8d66e15"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20139 lines \u00D7 2): crab/src/git/push_native.rs:1066-1072 | crab/src/git/push_native.rs:1352-1360 \u2014 both copies are in the same file, so extract the block 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 \u0060crab/src/git/push_native.rs:1066\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":"crab/src/git/push_native.rs"},"region":{"startLine":1066}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a8425083f6cbbbdac30e680e4d366b7cda097708c3ec3cfbdb4ece4d7a2c7f7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crab/src/git/upload_pack_wire.rs:1557-1565 | crab/src/git/upload_pack_wire.rs:1702-1710 \u2014 both copies are in the same file, so extract the block 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":"crab/src/git/upload_pack_wire.rs"},"region":{"startLine":1557}}}],"partialFingerprints":{"codehealthFindingId/v1":"79edefcfb6ee65900a102f3fce046681b0006b861d64a480bd936d7c3d686966"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 2): crab/src/lfs/migrate.rs:1406-1414 | crab/src/lfs/migrate.rs:1625-1632 \u2014 both copies are in the same file, so extract the block 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":"crab/src/lfs/migrate.rs"},"region":{"startLine":1406}}}],"partialFingerprints":{"codehealthFindingId/v1":"37df14f82d4c47b8dc9c65f9595cd76f26389b0991a5011e67f5210eee456e50"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crab/src/lfs/publication.rs:97-105 | crab/src/lfs/publication.rs:132-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crab/src/lfs/publication.rs:97\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, \u0060crab/src/lfs/publication.rs:141\u0060 calls \u0060object_path\u0060 and \u0060crab/src/lfs/publication.rs:106\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":"crab/src/lfs/publication.rs"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"46199df79f9b7bb22cd347b1e67be55bd0ffecebaed160a997af1bdaceb7301e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crab/src/main.rs:5004-5012 | crab/src/main.rs:5026-5034 \u2014 both copies are in the same file, so extract the block 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 \u0060crab/src/main.rs:5004\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":"crab/src/main.rs"},"region":{"startLine":5004}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b68edae1e12639a104a5bf9b6a07539b21507eef34946a006850a2afd194ed5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crab/src/main.rs:5067-5075 | crab/src/main.rs:5088-5096 \u2014 both copies are in the same file, so extract the block 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 \u0060crab/src/main.rs:5067\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":"crab/src/main.rs"},"region":{"startLine":5067}}}],"partialFingerprints":{"codehealthFindingId/v1":"89e0d570f272146c5958abfe196a17ad1f39d408f82bcb8c8d9a6844a5132e29"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crab/src/replication/mod.rs:1744-1752 | crab/src/replication/mod.rs:1826-1834 \u2014 both copies are in the same file, so extract the block 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 \u0060crab/src/replication/mod.rs:1744\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":"crab/src/replication/mod.rs"},"region":{"startLine":1744}}}],"partialFingerprints":{"codehealthFindingId/v1":"83eed406970f41e73908761bf994fb125d95355d8882252e73f8a0a01fe0a8ce"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crab/src/replication/mod.rs:9310-9318 | crab/src/replication/mod.rs:9335-9343 \u2014 both copies are in the same file, so extract the block 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 \u0060crab/src/replication/mod.rs:9310\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":"crab/src/replication/mod.rs"},"region":{"startLine":9310}}}],"partialFingerprints":{"codehealthFindingId/v1":"040163ab8fac0e3f4f65621a5092e113e360c6048bbd3685d4d09b9694f0aca7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crab/src/storage/retry.rs:329-337 | crates/crab-storage/src/retry.rs:124-132 \u2014 before extracting anything, compare \u0060crab/src/storage/retry.rs\u0060 and \u0060crates/crab-storage/src/retry.rs\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 49 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crab/src/storage/retry.rs:329\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":"crab/src/storage/retry.rs"},"region":{"startLine":329}}}],"partialFingerprints":{"codehealthFindingId/v1":"f334eeb032316929cae7a4ea85ae2c2b2665a039337631b0d9cf9a8a43a93dac"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20139 lines \u00D7 2): crab/src/tier/provider/s3.rs:67-75 | crab/src/tier/provider/s3.rs:555-561 \u2014 both copies are in the same file, so extract the block 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":"crab/src/tier/provider/s3.rs"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"d679cf50de9bce70329758e8504206ea6f01e22cf2e6018e2a06477b310bb1b9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/crab-auth/src/managed/client.rs:1531-1539 | crates/crab-auth/src/managed/client.rs:1551-1559 \u2014 both copies are in the same file, so extract the block 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/crab-auth/src/managed/client.rs:1531\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/crab-auth/src/managed/client.rs"},"region":{"startLine":1531}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2c85bf7da367692b785b04376805497caa46063e205b1755c69f2d476ece939"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/crab-cache-server/src/cache_store.rs:1102-1110 | crates/crab-cache-server/src/cache_store.rs:1293-1301 \u2014 both copies are in the same file, so extract the block 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/crab-cache-server/src/cache_store.rs:1102\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/crab-cache-server/src/cache_store.rs"},"region":{"startLine":1102}}}],"partialFingerprints":{"codehealthFindingId/v1":"884312a0b3dd7c057d19e73f8d9d2c1b8866a020b0186e24891d46e496ed4a85"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/crab-cache-server/src/handlers.rs:318-326 | crates/crab-cache-server/src/handlers.rs:494-502 \u2014 both copies are in the same file, so extract the block 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/crab-cache-server/src/handlers.rs"},"region":{"startLine":318}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb89cfa45b549823ef84a76a60a66d62e04f52f0623949064b4e0916ec04e5dc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20139 lines \u00D7 2): crates/crab-cache-store/src/lib.rs:1519-1525 | crates/crab-cache-store/src/lib.rs:1569-1577 \u2014 both copies are in the same file, so extract the block 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/crab-cache-store/src/lib.rs:1519\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/crab-cache-store/src/lib.rs"},"region":{"startLine":1519}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fc4131f666f79a1ea0a4fc133f6e8c5735eb64e45760b5202e3a7746a6d0273"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/crab-http-server/src/cells.rs:814-822 | crates/crab-http-server/src/cells.rs:1648-1656 \u2014 both copies are in the same file, so extract the block 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/crab-http-server/src/cells.rs:814\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/crab-http-server/src/cells.rs:1657\u0060 calls \u0060shutdown\u0060 and \u0060crates/crab-http-server/src/cells.rs:823\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/crab-http-server/src/cells.rs"},"region":{"startLine":814}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf0a691c1fc84956b4badeb549410a7bb698b34d51ddf112d3bfda87c140ef73"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/crab-http-server/src/cells/repository/operations.rs:250-259 | crates/crab-http-server/src/cells/repository/operations.rs:332-341 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/crab-http-server/src/cells/repository/operations.rs:250\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/crab-http-server/src/cells/repository/operations.rs"},"region":{"startLine":250}}}],"partialFingerprints":{"codehealthFindingId/v1":"90ab89dab71ce41f04269d129d762f3d19c1a668c3c18a2f1ef735c473844c4d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/crab-http-server/src/pulls/storage.rs:832-840 | crates/crab-http-server/src/releases/storage.rs:433-441 \u2014 \u0060crates/crab-http-server/src/pulls/storage.rs\u0060 and \u0060crates/crab-http-server/src/releases/storage.rs\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 6 separate duplicated blocks between them, totalling at least 55 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. 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/crab-http-server/src/pulls/storage.rs"},"region":{"startLine":832}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa7dc5a286f8c67b942e68a98a838f98c2ba6346c185f7ed37b0950f54af9ebe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/crab-metadata/src/git_object_locator/reader.rs:455-463 | crates/crab-metadata/src/git_object_locator/writer.rs:793-801 \u2014 before extracting anything, compare \u0060crates/crab-metadata/src/git_object_locator/reader.rs\u0060 and \u0060crates/crab-metadata/src/git_object_locator/writer.rs\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 35 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/crab-metadata/src/git_object_locator/reader.rs:455\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/crab-metadata/src/git_object_locator/reader.rs"},"region":{"startLine":455}}}],"partialFingerprints":{"codehealthFindingId/v1":"07740d962bf469d8342e6061231d2e821b3d6e752ffa69b1e9702426cd4dd136"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/crab-metadata/src/git_visibility.rs:977-985 | crates/crab-metadata/src/git_visibility.rs:1003-1011 \u2014 both copies are in the same file, so extract the block 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/crab-metadata/src/git_visibility.rs:977\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/crab-metadata/src/git_visibility.rs"},"region":{"startLine":977}}}],"partialFingerprints":{"codehealthFindingId/v1":"db00ad17fa22237e86cce8ff23b257095f8d8f683a214b45a4065c47a7b34c7c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/crab-metadata/src/git_visibility.rs:2022-2030 | crates/crab-metadata/src/git_visibility.rs:2065-2073 \u2014 both copies are in the same file, so extract the block 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/crab-metadata/src/git_visibility.rs:2022\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/crab-metadata/src/git_visibility.rs"},"region":{"startLine":2022}}}],"partialFingerprints":{"codehealthFindingId/v1":"c710836e97513eb1f2e0c28ab5a682bf81cdce8ce16a524f78373c3804d12f81"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/crab-metadata/src/git_visibility.rs:2519-2527 | crates/crab-metadata/src/git_visibility.rs:3058-3066 \u2014 both copies are in the same file, so extract the block 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/crab-metadata/src/git_visibility.rs:2519\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/crab-metadata/src/git_visibility.rs"},"region":{"startLine":2519}}}],"partialFingerprints":{"codehealthFindingId/v1":"97195fb08f2c9bb6dc6b263f1a835a4c980cfac541afdf33a5beb7a5cfb997c0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 2): crates/crab-metadata/src/git_visibility.rs:2669-2676 | crates/crab-metadata/src/git_visibility.rs:3175-3183 \u2014 both copies are in the same file, so extract the block 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/crab-metadata/src/git_visibility.rs:2669\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/crab-metadata/src/git_visibility.rs"},"region":{"startLine":2669}}}],"partialFingerprints":{"codehealthFindingId/v1":"9776b3db50c2e09456e55cd2ef64bd89205bab2894110e8d97c57d6bbec0af4d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20139 lines \u00D7 2): crates/crab-metadata/src/receipts.rs:277-283 | crates/crab-metadata/src/value_codec.rs:54-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/crab-metadata/src/value_codec.rs:54\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/crab-metadata/src/receipts.rs"},"region":{"startLine":277}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ba315865529216f8f816099b879aad342a949e93f89ad4e5ed8c23b79c9d415"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 2): crates/crab-metadata/src/ref_registry.rs:526-534 | crates/crab-metadata/src/ref_registry.rs:906-913 \u2014 both copies are in the same file, so extract the block 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/crab-metadata/src/ref_registry.rs:526\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060crates/crab-metadata/src/ref_registry.rs:905\u0060 calls \u0060retain\u0060, \u0060contains\u0060 and \u0060crates/crab-metadata/src/ref_registry.rs:525\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/crab-metadata/src/ref_registry.rs"},"region":{"startLine":526}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba4b91061ce31b52cc9f183d8368fb34def29ea87c0e5c51627195ace35691a0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/crab-metadata/src/split_commit_graph.rs:106-114 | crates/crab-metadata/src/split_commit_graph.rs:917-925 \u2014 both copies are in the same file, so extract the block 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/crab-metadata/src/split_commit_graph.rs:106\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/crab-metadata/src/split_commit_graph.rs"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"281e0519f9f32f55f20bb30bd18b48cbd3b35c98871605d1140c63655ebfde45"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crates/crab-read/src/term_resolver.rs:111-121 | crates/crab-read/src/term_resolver.rs:256-266 \u2014 both copies are in the same file, so extract the block 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/crab-read/src/term_resolver.rs"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"e96581758ccacf81f12e7806589f788c7f8019171f1be36aa2fc92ff96bd72e8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/crab-remote-git/src/operation.rs:452-460 | crates/crab-remote-git/src/operation.rs:502-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/crab-remote-git/src/operation.rs:452\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/crab-remote-git/src/operation.rs"},"region":{"startLine":452}}}],"partialFingerprints":{"codehealthFindingId/v1":"992b548835687f595ae4b19df9e53767f65a6905eb471f82d9232149501b8c98"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/crab-remote-git/src/pack.rs:871-879 | crates/crab-remote-git/src/pack.rs:1041-1049 \u2014 both copies are in the same file, so extract the block 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/crab-remote-git/src/pack.rs"},"region":{"startLine":871}}}],"partialFingerprints":{"codehealthFindingId/v1":"d66616e3eaee0fe8c58e943ad5e897f4cead91d2c9deda506c64aa9fa08b4d63"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 2): crates/crab-remote-git/src/pack.rs:1575-1582 | crates/crab-remote-git/src/pack.rs:1817-1825 \u2014 both copies are in the same file, so extract the block 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/crab-remote-git/src/pack.rs:1575\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/crab-remote-git/src/pack.rs:1826\u0060 calls \u0060Some\u0060 and \u0060crates/crab-remote-git/src/pack.rs:1583\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/crab-remote-git/src/pack.rs"},"region":{"startLine":1575}}}],"partialFingerprints":{"codehealthFindingId/v1":"2985ca6f3667731fecc907eeaa2c56eb9532652f3da71845c9c86ad6b5d8f044"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 2): crates/crab-remote-git/src/reader.rs:1515-1523 | crates/crab-remote-git/src/reader.rs:1561-1568 \u2014 both copies are in the same file, so extract the block 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/crab-remote-git/src/reader.rs:1515\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/crab-remote-git/src/reader.rs"},"region":{"startLine":1515}}}],"partialFingerprints":{"codehealthFindingId/v1":"88f6bc25a177cb6bda510e02668bfad3a7ca6dd54c4636f0f65121e2e5a65781"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/crab-remote-git/src/snapshot.rs:98-106 | crates/crab-remote-git/src/snapshot.rs:200-208 \u2014 both copies are in the same file, so extract the block 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/crab-remote-git/src/snapshot.rs:98\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/crab-remote-git/src/snapshot.rs"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7c7de3c58614780b3aef9dd2665889a965fa176bb5879d49ca158c28aacf29d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/crab-remote-git/src/snapshot.rs:683-691 | crates/crab-remote-git/src/snapshot.rs:763-771 \u2014 both copies are in the same file, so extract the block 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/crab-remote-git/src/snapshot.rs"},"region":{"startLine":683}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ea00056d7d969a81994c7f2d6ea33ea1e72a58f7f54c2f24dc693a556d3e273"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/crab-s3-gateway/src/gateway.rs:2444-2452 | crates/crab-s3-gateway/src/gateway.rs:2672-2680 \u2014 both copies are in the same file, so extract the block 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/crab-s3-gateway/src/gateway.rs:2444\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 first that the copies are not typed on the same thing: the declarations holding them bind \u0060req\u0060 to \u0060S3Request\u003CCompleteMultipartUploadInput\u003E\u0060 in one and \u0060S3Request\u003CAbortMultipartUploadInput\u003E\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/crab-s3-gateway/src/gateway.rs"},"region":{"startLine":2444}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab09d98aa768b4bf87775319bd0319d7182beacb047adaf523f96febd700d7b4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/crab-s3-gateway/src/gateway.rs:3378-3386 | crates/crab-s3-gateway/src/gateway.rs:3391-3399 \u2014 both copies are in the same file, so extract the block 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 \u0060input\u0060 to \u0060\u0026PutObjectInput\u0060 in one and \u0060\u0026UploadPartInput\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/crab-s3-gateway/src/gateway.rs"},"region":{"startLine":3378}}}],"partialFingerprints":{"codehealthFindingId/v1":"828c18cb5f5fe0e057f58d48f7935b3328c232164fd4b324e9df26111d7e714d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/crab-s3-gateway/src/namespace.rs:121-130 | crates/crab-s3-gateway/src/namespace.rs:147-155 \u2014 both copies are in the same file, so extract the block 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/crab-s3-gateway/src/namespace.rs:121\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/crab-s3-gateway/src/namespace.rs"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"3464f24b287e62a113d11c82c7cdb17578e4c3e6d0a2c8dac3b6e391b2ca2b40"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): crates/crab-staging/src/index.rs:2732-2745 | crates/crab-staging/src/index.rs:6774-6787 \u2014 both copies are in the same file, so extract the block 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/crab-staging/src/index.rs:2732\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/crab-staging/src/index.rs"},"region":{"startLine":2732}}}],"partialFingerprints":{"codehealthFindingId/v1":"137c488549b0afdb4e8b4a90ba47a2dfab8f064a312b4df66507d310cff7c6ed"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/crab-staging/src/index.rs:3301-3309 | crates/crab-staging/src/index.rs:6606-6614 \u2014 both copies are in the same file, so extract the block 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/crab-staging/src/index.rs:3301\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/crab-staging/src/index.rs"},"region":{"startLine":3301}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2f832f594bb706f42ebd7fb2ce80d15db060c481a927d5c4e735c619012a53a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/crab-staging/src/lib.rs:585-593 | crates/crab-staging/src/lib.rs:710-718 \u2014 both copies are in the same file, so extract the block 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/crab-staging/src/lib.rs:585\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/crab-staging/src/lib.rs"},"region":{"startLine":585}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b52f7114c57edf8d9da1476dfe9a0523e8b8fcf32934f2f44f5c78e0a75340b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/crab-staging/src/lib.rs:2825-2834 | crates/crab-staging/src/lib.rs:3859-3868 \u2014 both copies are in the same file, so extract the block 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/crab-staging/src/lib.rs"},"region":{"startLine":2825}}}],"partialFingerprints":{"codehealthFindingId/v1":"80fe1bdb5df1f0a00cf4414131f32f511c5142cbe774de72229ffee1e05251ff"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/crab-vfs/src/nfs_control.rs:1148-1156 | crates/crab-vfs/src/nfs_control.rs:1202-1210 \u2014 both copies are in the same file, so extract the block 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/crab-vfs/src/nfs_control.rs:1148\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/crab-vfs/src/nfs_control.rs"},"region":{"startLine":1148}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c786397464adf608fa5ec4a88114ad89c859cd64015312b26edccff31c2851f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/crab-vfs/src/publish.rs:204-212 | crates/crab-vfs/src/publish.rs:870-878 \u2014 both copies are in the same file, so extract the block 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/crab-vfs/src/publish.rs:204\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/crab-vfs/src/publish.rs"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"b194905476a7267d9883392dfd4c9da5882a88db76792214b1f1215ae28236bb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 2): crates/crab-vfs/src/publish.rs:1825-1833 | crates/crab-vfs/src/publish.rs:1848-1855 \u2014 both copies are in the same file, so extract the block 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/crab-vfs/src/publish.rs:1825\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/crab-vfs/src/publish.rs"},"region":{"startLine":1825}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfcba80566ca332dca08576fba25f3f8d071cdabcd136f4354ed9a3787b30162"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/crab-workflow/src/executor.rs:1230-1238 | crates/crab-workflow/src/executor.rs:1749-1757 \u2014 both copies are in the same file, so extract the block 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/crab-workflow/src/executor.rs:1230\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/crab-workflow/src/executor.rs"},"region":{"startLine":1230}}}],"partialFingerprints":{"codehealthFindingId/v1":"2822407c734b649f3579374cd5d014eed0f06da8459b479fe063e85329061ea4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/crab-workflow/src/params_runtime.rs:829-837 | crates/crab-workflow/src/params_runtime.rs:850-858 \u2014 both copies are in the same file, so extract the block 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/crab-workflow/src/params_runtime.rs"},"region":{"startLine":829}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb41e5027b1e2f2241326fabbf9c1475bd5e424f5116c0f87a462543fc069292"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/crab-workflow/src/stage_runtime.rs:372-380 | crates/crab-workflow/src/stage_runtime.rs:705-713 \u2014 both copies are in the same file, so extract the block 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/crab-workflow/src/stage_runtime.rs:372\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/crab-workflow/src/stage_runtime.rs"},"region":{"startLine":372}}}],"partialFingerprints":{"codehealthFindingId/v1":"46190c101c20ffa5ed289318c655902a4f468647c717714f2f35fea2c1e07320"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/crab-xet/src/shard_parse.rs:620-628 | crates/crab-xet/src/shard_parse.rs:657-665 \u2014 both copies are in the same file, so extract the block 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/crab-xet/src/shard_parse.rs"},"region":{"startLine":620}}}],"partialFingerprints":{"codehealthFindingId/v1":"b43a8128661b7717a731985fe0d0828cb9d4a579d7bb801585b486bf82409189"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 9): crates/crab-sdk/src/local.rs:363-370 | crates/crab-sdk/src/local/edit.rs:390-397 | crates/crab-sdk/src/local/edit.rs:447-454 | crates/crab-sdk/src/local/edit.rs:510-517 | crates/crab-sdk/src/local/edit.rs:550-557 | crates/crab-sdk/src/local/edit.rs:682-689 | crates/crab-sdk/src/local/edit.rs:753-760 | crates/crab-sdk/src/local/edit.rs:835-842 | crates/crab-sdk/src/local/push.rs:346-353 \u2014 there are 9 copies across 3 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 9 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/crab-sdk/src/local.rs:363\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/crab-sdk/src/local/edit.rs:549\u0060 calls \u0060is_trusted\u0060 and \u0060crates/crab-sdk/src/local.rs:362\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/crab-sdk/src/local.rs"},"region":{"startLine":363}}}],"partialFingerprints":{"codehealthFindingId/v1":"f97859192219021d91b54af3ed0adb2ac3e1d58fb58ad76e496b371d17f8dab0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 4): crab/src/cmd/exp.rs:5600-5607 | crab/src/cmd/metrics.rs:3537-3544 | crab/src/cmd/params.rs:382-389 | crates/crab-workflow/src/params_runtime.rs:515-522 \u2014 before extracting anything, compare \u0060crab/src/cmd/exp.rs\u0060 and \u0060crab/src/cmd/metrics.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 35 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 \u0060crab/src/cmd/exp.rs:5600\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":"crab/src/cmd/exp.rs"},"region":{"startLine":5600}}}],"partialFingerprints":{"codehealthFindingId/v1":"2826ecd0e0504d089e58745f24466b47af4002ee011838fc0f71e299e84f43df"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 4): crab/src/cmd/metadb.rs:1774-1781 | crab/src/cmd/repack.rs:1337-1344 | crab/src/git/push.rs:18797-18806 | crab/src/optimize/xorbs/reconcile.rs:770-777 \u2014 before extracting anything, compare \u0060crab/src/cmd/repack.rs\u0060 and \u0060crab/src/git/push.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 36 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crab/src/cmd/metadb.rs:1774\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":"crab/src/cmd/metadb.rs"},"region":{"startLine":1774}}}],"partialFingerprints":{"codehealthFindingId/v1":"5457f4caf9cef04ee05afd5e5452c828ed91bb1cf3b864530a8a3cd0598a51cd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 4): crab/src/cmd/metadb.rs:2872-2879 | crab/src/git/push.rs:13310-13317 | crates/crab-auth-server/src/receive.rs:1563-1570 | crates/crab-auth-server/src/receive/git_workspace.rs:436-443 \u2014 before extracting anything, compare \u0060crab/src/cmd/metadb.rs\u0060 and \u0060crates/crab-auth-server/src/receive.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 65 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/cmd/metadb.rs"},"region":{"startLine":2872}}}],"partialFingerprints":{"codehealthFindingId/v1":"b89d7c996d769c1f3ee20844d420bf23e90fa8fc17cda60d7e77b026d0486812"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 4): crates/crab-cache/src/local_cache.rs:586-593 | crates/crab-cache/src/local_cache.rs:624-631 | crates/crab-cache/src/local_cache.rs:641-648 | crates/crab-cache/src/local_cache.rs:780-787 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-cache/src/local_cache.rs"},"region":{"startLine":586}}}],"partialFingerprints":{"codehealthFindingId/v1":"25c1174cc7ad8f9c44c557edaf827fdc7443a87a37de9819b81ec3097829ab50"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 4): crates/crab-lfs/src/lock.rs:300-307 | crates/crab-lfs/src/lock.rs:356-363 | crates/crab-lfs/src/lock.rs:414-421 | crates/crab-lfs/src/lock.rs:476-483 \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/crab-lfs/src/lock.rs:300\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/crab-lfs/src/lock.rs"},"region":{"startLine":300}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e7f7453d5e0f090bfae925f4852c4f8ba270d8d7cefaaac7b95166e8885def9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): crab/src/auth/mod.rs:370-377 | crates/crab-auth-store/src/lib.rs:95-102 | crates/crab-auth-store/src/lib.rs:208-215 \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 \u0060crab/src/auth/mod.rs:370\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, \u0060crab/src/auth/mod.rs:378\u0060 calls \u0060Some\u0060, \u0060with_storage_scope\u0060 and \u0060crates/crab-auth-store/src/lib.rs:216\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":"crab/src/auth/mod.rs"},"region":{"startLine":370}}}],"partialFingerprints":{"codehealthFindingId/v1":"7abd1c3127bb9ff3951398e94c90b117a3f86ae798ccdfe97dfcf312966807f1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): crab/src/cache/add_remote_candidates.rs:547-554 | crates/crab-staging/src/index.rs:3254-3261 | crates/crab-staging/src/index.rs:6562-6569 \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 \u0060crab/src/cache/add_remote_candidates.rs:547\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":"crab/src/cache/add_remote_candidates.rs"},"region":{"startLine":547}}}],"partialFingerprints":{"codehealthFindingId/v1":"f28091ac9b1243aa1419dcd058504193a1182f4d8220b6afeec06b0e02de99d0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): crab/src/cmd/exp.rs:2383-2390 | crab/src/cmd/migrate.rs:191-198 | crab/src/cmd/workflow_checkpoint.rs:798-805 \u2014 before extracting anything, compare \u0060crab/src/cmd/exp.rs\u0060 and \u0060crab/src/cmd/migrate.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 31 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 \u0060crab/src/cmd/exp.rs:2383\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":"crab/src/cmd/exp.rs"},"region":{"startLine":2383}}}],"partialFingerprints":{"codehealthFindingId/v1":"96c20b419f167d71ad2b28c1ccf8ed5ff600e4feb5861c41d0e601c11cddf249"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): crab/src/cmd/migrate.rs:1595-1602 | crates/crab-cache-server/src/cache_store.rs:1951-1958 | crates/crab-workflow/src/stage_runtime.rs:408-415 \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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crab/src/cmd/migrate.rs:1595\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":"crab/src/cmd/migrate.rs"},"region":{"startLine":1595}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef915610e78c2bb77cfaff4ee782b24834210704a01112937f5ba89c896a7ead"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 3): crab/src/cmd/run.rs:4081-4089 | crab/src/import/coordinator.rs:1110-1118 | crab/src/main.rs:5851-5860 \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":"crab/src/cmd/run.rs"},"region":{"startLine":4081}}}],"partialFingerprints":{"codehealthFindingId/v1":"abeef2754b4a89513ae036b0e74c7b0a2dde6c457383972048132ce3e453bf82"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): crab/src/cmd/stage/list.rs:313-320 | crates/crab-workflow/src/gc.rs:115-122 | crates/crab-workflow/src/resume.rs:311-318 \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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crab/src/cmd/stage/list.rs:313\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":"crab/src/cmd/stage/list.rs"},"region":{"startLine":313}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b328c1557657e18639d4d5b1e4df0b5752e157b63dd333c671c56a2d41857c8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): crab/src/core/error.rs:2307-2314 | crab/src/core/error.rs:2720-2727 | crab/src/core/error.rs:3014-3021 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060crab/src/core/error.rs:3022\u0060 calls \u0060GixConfig\u0060 and \u0060crab/src/core/error.rs:2315\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":"crab/src/core/error.rs"},"region":{"startLine":2307}}}],"partialFingerprints":{"codehealthFindingId/v1":"634761d3e20d6bbeeffb9f4379255883e93e4a52fca254c1db7937ea6e4715e1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): crab/src/git/incremental_walk.rs:156-163 | crab/src/git/incremental_walk.rs:292-300 | crab/src/git/push.rs:18350-18360 \u2014 before extracting anything, compare \u0060crab/src/git/incremental_walk.rs\u0060 and \u0060crab/src/git/push.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 \u0060crab/src/git/incremental_walk.rs:156\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":"crab/src/git/incremental_walk.rs"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"49c3b32c8ddc355e93c680edc340c7acaf7259ba96ac13e7a5b26412469b364d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): crab/src/git/progress.rs:1437-1444 | crab/src/git/progress.rs:1481-1488 | crab/src/git/progress.rs:1547-1554 \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 \u0060crab/src/git/progress.rs:1437\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, \u0060crab/src/git/progress.rs:1489\u0060 calls \u0060format_bytes\u0060 and \u0060crab/src/git/progress.rs:1555\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":"crab/src/git/progress.rs"},"region":{"startLine":1437}}}],"partialFingerprints":{"codehealthFindingId/v1":"5abc47e33961350b3d2ab71e91ed080206849e1392cb89e355cf35cfbef99231"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): crates/crab-auth-server/src/receive/git_workspace.rs:1217-1224 | crates/crab-auth-server/src/view.rs:731-738 | crates/crab-auth/src/managed/transfer.rs:385-392 \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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/crab-auth-server/src/receive/git_workspace.rs:1217\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/crab-auth-server/src/receive/git_workspace.rs"},"region":{"startLine":1217}}}],"partialFingerprints":{"codehealthFindingId/v1":"d74bba2c0f4601b5c390a4306575e79cae51bacabe50c07725bd02cb8b0a0d2f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): crates/crab-git/src/repack.rs:284-291 | crates/crab-git/src/repack.rs:1066-1073 | crates/crab-git/src/repack.rs:1258-1265 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060crates/crab-git/src/repack.rs:1062\u0060 calls \u0060normalize_selected_oids\u0060 and \u0060crates/crab-git/src/repack.rs:1254\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/crab-git/src/repack.rs"},"region":{"startLine":284}}}],"partialFingerprints":{"codehealthFindingId/v1":"a59b1671b5844dd3a8a608024af51038ff9dd7d2752d5da504cc79c6383f44aa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): crates/crab-http-server/src/cells/router.rs:683-690 | crates/crab-http-server/src/projection.rs:190-197 | crates/crab-http-server/src/projection.rs:241-248 \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/crab-http-server/src/cells/router.rs:683\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/crab-http-server/src/cells/router.rs"},"region":{"startLine":683}}}],"partialFingerprints":{"codehealthFindingId/v1":"133efa7af8a3d986b6767ef1e19b9129a66eaa083a5ef8e321a5b4a060f933b9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): crates/crab-sdk/src/client.rs:630-637 | crates/crab-sdk/src/client.rs:764-771 | crates/crab-sdk/src/client.rs:794-801 \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/crab-sdk/src/client.rs:630\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/crab-sdk/src/client.rs"},"region":{"startLine":630}}}],"partialFingerprints":{"codehealthFindingId/v1":"a12ad76e73136a4b096c16da404dd2ebf1b31dfb395ee9368e0ea8575263a792"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5\u20138 lines \u00D7 3): crates/crab-staging/src/index.rs:3167-3171 | crates/crab-staging/src/index.rs:3256-3263 | crates/crab-staging/src/index.rs:6564-6571 \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/crab-staging/src/index.rs:3167\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060crates/crab-staging/src/index.rs:3253\u0060 calls \u0060push\u0060 and \u0060crates/crab-staging/src/index.rs:3165\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/crab-staging/src/index.rs"},"region":{"startLine":3167}}}],"partialFingerprints":{"codehealthFindingId/v1":"8cefde10a1806b5a591eeee12856b3c87f79ae0c3096ebcc3faa8bcfe4413be3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): crates/crab-workflow/src/artifact.rs:297-304 | crates/crab-workflow/src/checkpoint.rs:78-85 | crates/crab-workflow/src/external_hash.rs:66-73 \u2014 before extracting anything, compare \u0060crates/crab-workflow/src/artifact.rs\u0060 and \u0060crates/crab-workflow/src/checkpoint.rs\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 36 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/crab-workflow/src/artifact.rs:297\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/crab-workflow/src/artifact.rs:296\u0060 calls \u0060ensure_parent_not_symlink\u0060 and \u0060crates/crab-workflow/src/checkpoint.rs:77\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/crab-workflow/src/artifact.rs"},"region":{"startLine":297}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4767628e05fa8c2753cdd890318384f6a4aff6cc648e8c2e3740d85b450c7b6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): crates/crab-workflow/src/exp_worktree.rs:1761-1768 | crates/crab-workflow/src/exp_worktree.rs:1795-1802 | crates/crab-workflow/src/exp_worktree.rs:1823-1830 \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/crab-workflow/src/exp_worktree.rs:1761\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/crab-workflow/src/exp_worktree.rs"},"region":{"startLine":1761}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcf59c3fcf0094ae296141c7ca824bc6bd956ab62b5ebb3e6f9764af24f24ed4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): crates/crab-workflow/src/exp_worktree.rs:1875-1882 | crates/crab-workflow/src/exp_worktree.rs:1909-1916 | crates/crab-workflow/src/exp_worktree.rs:1937-1944 \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/crab-workflow/src/exp_worktree.rs:1875\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/crab-workflow/src/exp_worktree.rs"},"region":{"startLine":1875}}}],"partialFingerprints":{"codehealthFindingId/v1":"60ee86f5273cbed79e27a3761c7f7f2399e25b1b90a66a3a18bc89c0c3df551e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crab/src/cmd/auth_status.rs:143-150 | crab/src/cmd/doctor.rs:662-669 \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":"crab/src/cmd/auth_status.rs"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"57a4feb82a596b8d9a04e71a9ccdf0c55a729cce63e6bccd997936b3de0244f9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crab/src/cmd/config.rs:203-210 | crab/src/cmd/config.rs:426-433 \u2014 both copies are in the same file, so extract the block 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 \u0060crab/src/cmd/config.rs:203\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":"crab/src/cmd/config.rs"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b899b13a8cef39010c24801ce05aa7a69355d59aa9e02bd1e5b970d374726fc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): crab/src/cmd/data.rs:369-381 | crab/src/cmd/data.rs:838-850 \u2014 both copies are in the same file, so extract the block 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 \u0060crab/src/cmd/data.rs:369\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":"crab/src/cmd/data.rs"},"region":{"startLine":369}}}],"partialFingerprints":{"codehealthFindingId/v1":"90a4cd06a633ee1583fd0302aff57e8df64755b9a0b5eca3686bdceb51425fec"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crab/src/cmd/dehydrate.rs:1153-1160 | crab/src/cmd/hydrate.rs:1407-1414 \u2014 before extracting anything, compare \u0060crab/src/cmd/dehydrate.rs\u0060 and \u0060crab/src/cmd/hydrate.rs\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 223 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":"crab/src/cmd/dehydrate.rs"},"region":{"startLine":1153}}}],"partialFingerprints":{"codehealthFindingId/v1":"dcf88818e7fe4644a3e6765daf2e7c176f4386a5bc4acf9224f2558d9999efdc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crab/src/cmd/download.rs:411-418 | crab/src/cmd/export.rs:380-387 \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 \u0060crab/src/cmd/download.rs:411\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, \u0060crab/src/cmd/export.rs:390\u0060 calls \u0060clone\u0060 and \u0060crab/src/cmd/download.rs:421\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":"crab/src/cmd/download.rs"},"region":{"startLine":411}}}],"partialFingerprints":{"codehealthFindingId/v1":"4779475309551b1c33a08980156f3334a2ced8b33d6f6ca4f28f3313dba88649"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crab/src/cmd/du.rs:311-318 | crab/src/cmd/du.rs:322-329 \u2014 both copies are in the same file, so extract the block 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":"crab/src/cmd/du.rs"},"region":{"startLine":311}}}],"partialFingerprints":{"codehealthFindingId/v1":"c99840ab7782843f8adde552bb2b01178a4c21a4e5b9bcd9f1c3a91e31aed5b7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crab/src/cmd/exp.rs:5868-5875 | crab/src/cmd/exp.rs:6528-6535 \u2014 both copies are in the same file, so extract the block 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 \u0060payload\u0060 to \u0060\u0026ExpRunPayload\u0060 in one and \u0060\u0026ExpSavePayload\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":"crab/src/cmd/exp.rs"},"region":{"startLine":5868}}}],"partialFingerprints":{"codehealthFindingId/v1":"da05dc5f51d0a347f63d6bfe8e611ae423cab9052a11bfbcd9339dc89b371db4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 2): crab/src/cmd/exp.rs:6051-6057 | crab/src/cmd/exp.rs:6218-6225 \u2014 both copies are in the same file, so extract the block 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":"crab/src/cmd/exp.rs"},"region":{"startLine":6051}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca1dd276b0cc8223221a26d60b20e305e40ad43885963569854893f3f01a5f5c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crab/src/cmd/exp_queue.rs:1378-1385 | crates/crab-workflow/src/exp_worktree.rs:433-440 \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 \u0060crab/src/cmd/exp_queue.rs:1378\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060crates/crab-workflow/src/exp_worktree.rs:442\u0060 calls \u0060display\u0060 and \u0060crab/src/cmd/exp_queue.rs:1387\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":"crab/src/cmd/exp_queue.rs"},"region":{"startLine":1378}}}],"partialFingerprints":{"codehealthFindingId/v1":"590f6fc156a62157e77a8a5339b9ec03cdb2d56b099d6d0898bd0ea0baeb944e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crab/src/cmd/gc/bucket.rs:149-156 | crab/src/cmd/gc/bucket.rs:196-203 \u2014 both copies are in the same file, so extract the block 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 \u0060crab/src/cmd/gc/bucket.rs:149\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":"crab/src/cmd/gc/bucket.rs"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"b32f77ca0811d270b62c658b09630ed16b8b6ce2a9ecf15629e7e2ad04bf7c1e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crab/src/cmd/gc/bucket.rs:1461-1468 | crab/src/cmd/gc/bucket.rs:1792-1799 \u2014 both copies are in the same file, so extract the block 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":"crab/src/cmd/gc/bucket.rs"},"region":{"startLine":1461}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ef68ca8af842247f80de5663ab00c97a23cc879972f3ae80bc840049a0ae7c1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20138 lines \u00D7 2): crab/src/cmd/hydrate.rs:1645-1650 | crab/src/cmd/hydrate.rs:2004-2011 \u2014 both copies are in the same file, so extract the block 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 \u0060crab/src/cmd/hydrate.rs:1645\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":"crab/src/cmd/hydrate.rs"},"region":{"startLine":1645}}}],"partialFingerprints":{"codehealthFindingId/v1":"68fee6ac498c4d8fc5bc672a75853d3594b606f8525944a4fa8624265784ab51"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crab/src/cmd/hydrate.rs:3130-3137 | crab/src/cmd/hydrate.rs:3169-3176 \u2014 both copies are in the same file, so extract the block 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 \u0060crab/src/cmd/hydrate.rs:3130\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":"crab/src/cmd/hydrate.rs"},"region":{"startLine":3130}}}],"partialFingerprints":{"codehealthFindingId/v1":"2be63bddf9ea7284c2f386304ad113575a9aaaf8e52a7bd8a7aaeaedae83e5f9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crab/src/cmd/lfs/dedup.rs:462-469 | crab/src/cmd/lfs/dedup.rs:969-976 \u2014 both copies are in the same file, so extract the block 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 \u0060crab/src/cmd/lfs/dedup.rs:462\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":"crab/src/cmd/lfs/dedup.rs"},"region":{"startLine":462}}}],"partialFingerprints":{"codehealthFindingId/v1":"6751ec0e1d1398c43a6347c68b6d00f269f3dc6441348d600fad4ed8b51711e7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crab/src/cmd/lfs/dedup.rs:948-955 | crab/src/cmd/lfs/dedup.rs:1041-1048 \u2014 both copies are in the same file, so extract the block 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 \u0060crab/src/cmd/lfs/dedup.rs:948\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":"crab/src/cmd/lfs/dedup.rs"},"region":{"startLine":948}}}],"partialFingerprints":{"codehealthFindingId/v1":"0bb1e81c4fc77f4814156f3c913ed2e96350b83df10ff3c78a1791fd0ab5b1bf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 2): crab/src/cmd/lfs/mod.rs:704-710 | crates/crab-vfs/src/publish.rs:1547-1554 \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 \u0060crab/src/cmd/lfs/mod.rs:704\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":"crab/src/cmd/lfs/mod.rs"},"region":{"startLine":704}}}],"partialFingerprints":{"codehealthFindingId/v1":"61f5ae830b4315b1c1819b9e73abb0fd4baadbd8b32d27ac9e1765d36a749fbf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20138 lines \u00D7 2): crab/src/cmd/metadb.rs:2044-2051 | crab/src/cmd/metadb.rs:2091-2096 \u2014 both copies are in the same file, so extract the block 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 \u0060crab/src/cmd/metadb.rs:2044\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":"crab/src/cmd/metadb.rs"},"region":{"startLine":2044}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6f36e1e1f3fae795fef86c14cec6e4bb89c4126fd15a5fd363898837121ffb9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20138 lines \u00D7 2): crab/src/cmd/run.rs:2459-2464 | crab/src/cmd/run.rs:4429-4436 \u2014 both copies are in the same file, so extract the block 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 \u0060crab/src/cmd/run.rs:2459\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":"crab/src/cmd/run.rs"},"region":{"startLine":2459}}}],"partialFingerprints":{"codehealthFindingId/v1":"66b53a7ab4bba1332a2eaed6ed12388c1f879d1d657df4bdf03d3a3e53e58190"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crab/src/core/output/mod.rs:93-100 | crab/src/core/output/mod.rs:114-121 \u2014 both copies are in the same file, so extract the block 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 \u0060crab/src/core/output/mod.rs:93\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":"crab/src/core/output/mod.rs"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6366e014f7fc3239ab7612d87a1f4b215de61fb4d7a1ee018fa379b443897e7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crab/src/git/clean.rs:2331-2338 | crab/src/git/clean.rs:2379-2386 \u2014 both copies are in the same file, so extract the block 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 \u0060crab/src/git/clean.rs:2331\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":"crab/src/git/clean.rs"},"region":{"startLine":2331}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b1f06cf868d5c4bfb81a735e6be5a49f092cca9d1816ab41ab91e70b983b817"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crab/src/git/pack.rs:137-144 | crab/src/git/pack.rs:165-172 \u2014 both copies are in the same file, so extract the block 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 \u0060crab/src/git/pack.rs:137\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":"crab/src/git/pack.rs"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"875be88097af53041aee471e2c98b83e777e1182bea32c396b4a3f1d54c4bb79"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crab/src/git/pack.rs:641-649 | crab/src/git/pack.rs:1574-1581 \u2014 both copies are in the same file, so extract the block 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 \u0060crab/src/git/pack.rs:641\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":"crab/src/git/pack.rs"},"region":{"startLine":641}}}],"partialFingerprints":{"codehealthFindingId/v1":"552ffa5c7b39b7c2f5a4b151481a15742303cc5eb4b3352d4f51939f30bdac69"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crab/src/git/pack.rs:818-825 | crab/src/git/pack.rs:942-949 \u2014 both copies are in the same file, so extract the block 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":"crab/src/git/pack.rs"},"region":{"startLine":818}}}],"partialFingerprints":{"codehealthFindingId/v1":"1573c2684b96d1194b0beff6f62c47035606c2679dc612360e4fe9a5f6aa1ac4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crab/src/git/pack.rs:1569-1576 | crates/crab-git/src/pack.rs:1006-1013 \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":"crab/src/git/pack.rs"},"region":{"startLine":1569}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2f3680b43390c8d8a8e8e3a466ba4e77cde62a3b8926673bca5efba8335a040"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crab/src/git/push.rs:7190-7197 | crab/src/git/remote_helper.rs:2427-2434 \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 \u0060crab/src/git/push.rs:7190\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":"crab/src/git/push.rs"},"region":{"startLine":7190}}}],"partialFingerprints":{"codehealthFindingId/v1":"b99574e506378f8ee93b234f9a54cc5e6fc6f4b9c38715086630ce9cc25aee92"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crab/src/git/push.rs:9647-9654 | crab/src/git/push.rs:12390-12397 \u2014 both copies are in the same file, so extract the block 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":"crab/src/git/push.rs"},"region":{"startLine":9647}}}],"partialFingerprints":{"codehealthFindingId/v1":"47346239143997327099ce3153449a8e720314fc83d95b529b147485c694d344"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crab/src/lfs/transfer_agent.rs:592-599 | crab/src/lfs/transfer_agent.rs:710-717 \u2014 both copies are in the same file, so extract the block 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 \u0060crab/src/lfs/transfer_agent.rs:592\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, \u0060crab/src/lfs/transfer_agent.rs:718\u0060 calls \u0060clone\u0060 and \u0060crab/src/lfs/transfer_agent.rs:600\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":"crab/src/lfs/transfer_agent.rs"},"region":{"startLine":592}}}],"partialFingerprints":{"codehealthFindingId/v1":"b693237d72bebfa47310e32384df0ba32394230c68a428a3f1ee25b608f0517d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crab/src/read/mod.rs:360-367 | crab/src/read/mod.rs:397-404 \u2014 both copies are in the same file, so extract the block 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 \u0060crab/src/read/mod.rs:360\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":"crab/src/read/mod.rs"},"region":{"startLine":360}}}],"partialFingerprints":{"codehealthFindingId/v1":"32c6709160fa3ba8348367645639c4d8424ce0cd165d6543dca19cb0cdcfcea8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crab/src/replication/mod.rs:1115-1122 | crab/src/replication/mod.rs:1271-1278 \u2014 both copies are in the same file, so extract the block 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 \u0060crab/src/replication/mod.rs:1115\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":"crab/src/replication/mod.rs"},"region":{"startLine":1115}}}],"partialFingerprints":{"codehealthFindingId/v1":"5554bb6f75e0cbd2b8d66d853bb4d0a2e68b58d55033d48aaf67207ffee1f200"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crab/src/replication/mod.rs:5265-5272 | crab/src/replication/mod.rs:5290-5297 \u2014 both copies are in the same file, so extract the block 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":"crab/src/replication/mod.rs"},"region":{"startLine":5265}}}],"partialFingerprints":{"codehealthFindingId/v1":"be568350dbef5f167783025e7860f782764e10fb472b8214c133f3521469eb64"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crab/src/replication/mod.rs:8799-8806 | crab/src/replication/mod.rs:8956-8963 \u2014 both copies are in the same file, so extract the block 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 \u0060crab/src/replication/mod.rs:8799\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":"crab/src/replication/mod.rs"},"region":{"startLine":8799}}}],"partialFingerprints":{"codehealthFindingId/v1":"991cff36a90369dcc51fce34032d7cae6fb75648dbc1d876cdc4b24316780941"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crab/src/speculation/driver.rs:86-93 | crab/src/speculation/driver.rs:111-118 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crab/src/speculation/driver.rs:86\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":"crab/src/speculation/driver.rs"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"4928ff464359c8bfecb7ff9ecf13f88141ca96249dde443c156621baa1059f4e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/crab-auth/src/managed/client.rs:1037-1045 | crates/crab-auth/src/managed/client.rs:1063-1071 \u2014 both copies are in the same file, so extract the block 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/crab-auth/src/managed/client.rs:1037\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/crab-auth/src/managed/client.rs"},"region":{"startLine":1037}}}],"partialFingerprints":{"codehealthFindingId/v1":"a835a66941086e2774312caee8316a4fb0d5e53436d0aa67fca012a17fb57547"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/crab-cache-server/src/db.rs:83-90 | crates/crab-vfs/src/snapshot.rs:434-441 \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/crab-cache-server/src/db.rs"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb54bd1211bb8762273c3365bd8181cb2aee7e428daed1e73f6a4131c301befe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/crab-cache-server/src/onboarding.rs:1335-1342 | crates/crab-workflow/src/lockfile.rs:698-705 \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/crab-cache-server/src/onboarding.rs:1335\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/crab-cache-server/src/onboarding.rs"},"region":{"startLine":1335}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5b185b8d01adcca152351c8df510abeab739a7c64fda6f141b6716e0c9573a1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/crab-cache-store/src/lib.rs:451-458 | crates/crab-cache-store/src/lib.rs:538-547 \u2014 both copies are in the same file, so extract the block 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/crab-cache-store/src/lib.rs:451\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/crab-cache-store/src/lib.rs"},"region":{"startLine":451}}}],"partialFingerprints":{"codehealthFindingId/v1":"22a74969083f9d65ef4962206f107364cc4cccd94e22839ce54f8a85d97b16c3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/crab-git/src/repack.rs:333-340 | crates/crab-git/src/repack.rs:1490-1497 \u2014 both copies are in the same file, so extract the block 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/crab-git/src/repack.rs:333\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/crab-git/src/repack.rs"},"region":{"startLine":333}}}],"partialFingerprints":{"codehealthFindingId/v1":"e24544fd89730bb7c5347c9081927a8c945f3dce72a40d68bf52969b65a11343"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/crab-git/src/repack.rs:1290-1299 | crates/crab-git/src/repack.rs:1356-1365 \u2014 both copies are in the same file, so extract the block 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/crab-git/src/repack.rs:1290\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/crab-git/src/repack.rs"},"region":{"startLine":1290}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb9a089ed4ee4e5b8d4ad618d38c487c096b8a0ec69d8c596a4a4e4e6a16a3ef"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/crab-http-server/src/cells/repository/codec.rs:386-393 | crates/crab-http-server/src/cells/repository/codec.rs:626-633 \u2014 both copies are in the same file, so extract the block 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/crab-http-server/src/cells/repository/codec.rs:386\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060crates/crab-http-server/src/cells/repository/codec.rs:384\u0060 calls \u0060read_text\u0060, \u0060to_owned\u0060 and \u0060crates/crab-http-server/src/cells/repository/codec.rs:624\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/crab-http-server/src/cells/repository/codec.rs"},"region":{"startLine":386}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ece1d0a160542d0dff55f70d0b5dd0b3dfe3622c18e0ed10a850fbee5434ce5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/crab-http-server/src/cells/repository/codec.rs:516-523 | crates/crab-http-server/src/cells/repository/codec.rs:566-573 \u2014 both copies are in the same file, so extract the block 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/crab-http-server/src/cells/repository/codec.rs:516\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/crab-http-server/src/cells/repository/codec.rs"},"region":{"startLine":516}}}],"partialFingerprints":{"codehealthFindingId/v1":"0dfdc72f79482045ffdef9845f9cfb801dac87c1aa2198b2aa6c75d5c31461bc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/crab-http-server/src/cells/repository/projection.rs:466-473 | crates/crab-http-server/src/cells/repository/projection.rs:515-522 \u2014 both copies are in the same file, so extract the block 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/crab-http-server/src/cells/repository/projection.rs:466\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/crab-http-server/src/cells/repository/projection.rs"},"region":{"startLine":466}}}],"partialFingerprints":{"codehealthFindingId/v1":"75e2b715a23fa19385bfbd99df1eab181c679a9484034f317b3dd0196730bc30"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/crab-http-server/src/cells/scheduler.rs:774-781 | crates/crab-http-server/src/cells/scheduler.rs:1524-1531 \u2014 both copies are in the same file, so extract the block 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/crab-http-server/src/cells/scheduler.rs:774\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/crab-http-server/src/cells/scheduler.rs"},"region":{"startLine":774}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e46839c58de6537657c999e2781c49f50e2e76ddbf056d00f742684e4af4cf4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/crab-http-server/src/lfs.rs:101-108 | crates/crab-http-server/src/receive.rs:111-118 \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/crab-http-server/src/lfs.rs"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f0db4beca63ef0cfbaef035c11ac3eb83e693e855023ad351d81e2d8db9d368"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/crab-http-server/src/lfs.rs:522-529 | crates/crab-http-server/src/releases.rs:530-537 \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/crab-http-server/src/lfs.rs:522\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/crab-http-server/src/lfs.rs"},"region":{"startLine":522}}}],"partialFingerprints":{"codehealthFindingId/v1":"c60398538f01bead2428c9c46bdce66a058e11a8fac091a0e43fc5a3dec51138"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/crab-http-server/src/peer.rs:583-590 | crates/crab-http-server/src/peer.rs:606-613 \u2014 both copies are in the same file, so extract the block 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/crab-http-server/src/peer.rs"},"region":{"startLine":583}}}],"partialFingerprints":{"codehealthFindingId/v1":"94184f2ca591d0a1074a83fab50f999324e1e0ced7b078c229d10211859a8353"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/crab-http-server/src/receive/publish.rs:619-626 | crates/crab-http-server/src/receive/publish.rs:668-675 \u2014 both copies are in the same file, so extract the block 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/crab-http-server/src/receive/publish.rs"},"region":{"startLine":619}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ba85d7e70c49146a6d7746122df16b9b08fb91a59901400d4b8dd41755254a7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/crab-http-server/src/releases.rs:477-484 | crates/crab-http-server/src/releases.rs:609-616 \u2014 both copies are in the same file, so extract the block 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/crab-http-server/src/releases.rs"},"region":{"startLine":477}}}],"partialFingerprints":{"codehealthFindingId/v1":"244169851d7013809a1b5c414e5b1078da47f83707d3624a1b6d65b3741f3a28"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/crab-remote-git/src/pack.rs:967-974 | crates/crab-remote-git/src/pack.rs:1004-1011 \u2014 both copies are in the same file, so extract the block 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/crab-remote-git/src/pack.rs:967\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/crab-remote-git/src/pack.rs"},"region":{"startLine":967}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa0caf94f1e1725eaf1fe3bba3836f99c280005940792173b0453f29425b8511"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/crab-remote-git/src/pack.rs:1379-1386 | crates/crab-remote-git/src/pack.rs:1485-1492 \u2014 both copies are in the same file, so extract the block 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/crab-remote-git/src/pack.rs"},"region":{"startLine":1379}}}],"partialFingerprints":{"codehealthFindingId/v1":"83f15def503b08ea00338f20f9c36803866491148630794eadfd8e07217b105c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/crab-remote-git/src/pack.rs:2242-2249 | crates/crab-remote-git/src/reader.rs:1673-1680 \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/crab-remote-git/src/pack.rs:2242\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/crab-remote-git/src/pack.rs"},"region":{"startLine":2242}}}],"partialFingerprints":{"codehealthFindingId/v1":"273c32eaef85ff60582050244ac4c24d7f8ebf20cddd5967eaa410b4d15f4d34"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/crab-remote-git/src/snapshot.rs:1206-1213 | crates/crab-remote-git/src/snapshot.rs:1227-1234 \u2014 both copies are in the same file, so extract the block 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/crab-remote-git/src/snapshot.rs"},"region":{"startLine":1206}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f1865f2fdf6560e0be941059b9654bbf1a3c5259df9b78ef653f2f05ab8606e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 2): crates/crab-sdk/src/local/push/git.rs:19-25 | crates/crab-sdk/src/local/push/git.rs:48-55 \u2014 both copies are in the same file, so extract the block 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/crab-sdk/src/local/push/git.rs:19\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/crab-sdk/src/local/push/git.rs"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a8e668aee01b1e1b1d206155dcc3e67b781a55a4ce42764448094134d6212f1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/crab-staging/src/index.rs:4337-4346 | crates/crab-staging/src/index.rs:5457-5464 \u2014 both copies are in the same file, so extract the block 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/crab-staging/src/index.rs:4337\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/crab-staging/src/index.rs"},"region":{"startLine":4337}}}],"partialFingerprints":{"codehealthFindingId/v1":"9131d67c6c36defc260f12ecf5df04a0cc61b3c1b44c4cffe289f2d95153b3f4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/crab-staging/src/lib.rs:1107-1114 | crates/crab-staging/src/lib.rs:4003-4010 \u2014 both copies are in the same file, so extract the block 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/crab-staging/src/lib.rs:1107\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/crab-staging/src/lib.rs"},"region":{"startLine":1107}}}],"partialFingerprints":{"codehealthFindingId/v1":"132a15e359fd832bfb826b0a15fd72feb4b9e4266af665530cb7e820537739dc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/crab-staging/src/lib.rs:2396-2403 | crates/crab-staging/src/lib.rs:3834-3841 \u2014 both copies are in the same file, so extract the block 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/crab-staging/src/lib.rs"},"region":{"startLine":2396}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ab76d6b76be3424b8e548cb2feee5e51d0ced86012f52da65336a4d58d3d812"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/crab-vfs/src/coordinator.rs:1059-1066 | crates/crab-vfs/src/mount.rs:411-418 \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/crab-vfs/src/coordinator.rs:1059\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/crab-vfs/src/coordinator.rs:1068\u0060 calls \u0060ctrl_c\u0060 and \u0060crates/crab-vfs/src/mount.rs:419\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/crab-vfs/src/coordinator.rs"},"region":{"startLine":1059}}}],"partialFingerprints":{"codehealthFindingId/v1":"1696e755c56fce782cea3ec951819a34e755977ccb74461dff1a8b4dea6f680d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/crab-vfs/src/overlay.rs:325-332 | crates/crab-vfs/src/overlay.rs:607-614 \u2014 both copies are in the same file, so extract the block 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/crab-vfs/src/overlay.rs:325\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/crab-vfs/src/overlay.rs"},"region":{"startLine":325}}}],"partialFingerprints":{"codehealthFindingId/v1":"e38e1c997a09644e450cccf95932e6aa38015c7a1ed94aa68e8e01c494a81234"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20138 lines \u00D7 2): crates/crab-workflow/src/artifact.rs:643-648 | crates/crab-workflow/src/artifact.rs:1065-1072 \u2014 both copies are in the same file, so extract the block 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/crab-workflow/src/artifact.rs:643\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. 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/crab-workflow/src/artifact.rs"},"region":{"startLine":643}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f0a35c3d6460a8c1172da592cf31842187e067699eb156e238485771400f6b1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/crab-workflow/src/artifact.rs:1763-1770 | crates/crab-workflow/src/artifact.rs:1782-1789 \u2014 both copies are in the same file, so extract the block 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/crab-workflow/src/artifact.rs"},"region":{"startLine":1763}}}],"partialFingerprints":{"codehealthFindingId/v1":"31570ae359c9fcbc70843753dbbb3c2c3506e8933581d2cf0f4ffbedf24b74f7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/crab-xet/src/shard_parse.rs:242-249 | crates/crab-xet/src/shard_parse.rs:325-332 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/crab-xet/src/shard_parse.rs:242\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060crates/crab-xet/src/shard_parse.rs:333\u0060 calls \u0060with_capacity\u0060, \u0060num_entries\u0060 and \u0060crates/crab-xet/src/shard_parse.rs:250\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/crab-xet/src/shard_parse.rs"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ed7be9c58c3311f55c5e817ff72a4991bf9dc43575a4703ada74be1c5488a48"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 8): crates/crab-staging/src/index.rs:2357-2363 | crates/crab-staging/src/index.rs:2453-2459 | crates/crab-staging/src/index.rs:2630-2636 | crates/crab-staging/src/index.rs:4021-4027 | crates/crab-staging/src/index.rs:7082-7088 | crates/crab-staging/src/index.rs:7283-7289 | crates/crab-staging/src/index.rs:7358-7364 | crates/crab-staging/src/index.rs:7865-7871 \u2014 all 8 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/crab-staging/src/index.rs:2357\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/crab-staging/src/index.rs"},"region":{"startLine":2357}}}],"partialFingerprints":{"codehealthFindingId/v1":"4dc82234e82a610811aaf82a3c5a1c148221dbbfa18383cbb3f448926cc4397e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (3\u20137 lines \u00D7 9): crab/src/cmd/add.rs:3447-3453 | crab/src/cmd/dehydrate.rs:441-447 | crab/src/cmd/du.rs:224-230 | crab/src/cmd/hydrate.rs:3523-3529 | crab/src/cmd/ls_files.rs:83-89 | crab/src/cmd/reset.rs:478-484 | crab/src/cmd/status.rs:757-763 | crab/src/lfs/track.rs:340-343 | crates/crab-workflow/src/hasher.rs:550-552 \u2014 before extracting anything, compare \u0060crab/src/cmd/add.rs\u0060 and \u0060crab/src/cmd/dehydrate.rs\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 131 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 \u0060crab/src/cmd/add.rs:3447\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060crab/src/cmd/add.rs:3447\u0060 calls \u0060Ok\u0060 and \u0060crates/crab-workflow/src/hasher.rs:550\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":"crab/src/cmd/add.rs"},"region":{"startLine":3447}}}],"partialFingerprints":{"codehealthFindingId/v1":"97190c8fbfcd88fa860560f7c58c297788171ac8625abd3926bbf2cca4f713f5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 6): crab/src/git/push.rs:18296-18303 | crab/src/read/mod.rs:942-949 | crates/crab-auth-server/src/receive.rs:1177-1184 | crates/crab-cache-server/src/onboarding.rs:1019-1026 | crates/crab-metadata/src/shallow_closure.rs:579-586 | crates/crab-metadata/src/split_commit_graph.rs:1032-1039 \u2014 before extracting anything, compare \u0060crab/src/git/push.rs\u0060 and \u0060crates/crab-auth-server/src/receive.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 37 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. 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":"crab/src/git/push.rs"},"region":{"startLine":18296}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ce1b9abb89b1b1cfed47cd9e62d48098240bf23a50fac7c02e97d8bf2b290ac"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 5): crates/crab-http-server/src/cells.rs:471-477 | crates/crab-http-server/src/cells.rs:1066-1072 | crates/crab-http-server/src/cells.rs:1272-1278 | crates/crab-http-server/src/cells.rs:1356-1362 | crates/crab-http-server/src/cells.rs:1421-1427 \u2014 all 5 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-http-server/src/cells.rs"},"region":{"startLine":471}}}],"partialFingerprints":{"codehealthFindingId/v1":"f51281baa52fd81d57775e0b39eab9d518f49fc62f8191d21640026446471a9e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 5): crates/crab-http-server/src/cells.rs:831-837 | crates/crab-http-server/src/cells.rs:1667-1673 | crates/crab-http-server/src/cells/router.rs:685-691 | crates/crab-http-server/src/projection.rs:192-198 | crates/crab-http-server/src/projection.rs:243-249 \u2014 there are 5 copies across 3 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 5 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/crab-http-server/src/cells.rs:831\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/crab-http-server/src/cells.rs"},"region":{"startLine":831}}}],"partialFingerprints":{"codehealthFindingId/v1":"bcc4f248372ce0beafc361308651c169d15eec8fe619fdd5d5b51b2a91e44df2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 4): crab/src/git/incremental_walk.rs:103-109 | crates/crab-vfs/src/engine.rs:179-185 | crates/crab-vfs/src/snapshot.rs:558-564 | crates/crab-workflow/src/params_runtime.rs:373-379 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 4 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 4 times. 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":"crab/src/git/incremental_walk.rs"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1710194daa8840399c8d1b05181ca7f046d8b6e98ce3a9e0d457979fd77bac5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 4): crates/crab-http-server/src/cells/repository/checks.rs:685-691 | crates/crab-http-server/src/cells/repository/pull_review_threads.rs:824-830 | crates/crab-http-server/src/cells/repository/pulls.rs:672-678 | crates/crab-http-server/src/cells/repository/releases.rs:842-848 \u2014 before extracting anything, compare \u0060crates/crab-http-server/src/cells/repository/pull_review_threads.rs\u0060 and \u0060crates/crab-http-server/src/cells/repository/pulls.rs\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 50 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/crab-http-server/src/cells/repository/checks.rs:685\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/crab-http-server/src/cells/repository/checks.rs"},"region":{"startLine":685}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8c591f9059045bd1c310a93a95f03d03700314c96c6075d2402a3d05f382661"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): crab/src/cmd/clone.rs:1168-1174 | crab/src/cmd/exp_queue.rs:1185-1191 | crab/src/cmd/exp_queue.rs:1252-1258 \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 \u0060crab/src/cmd/clone.rs:1168\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":"crab/src/cmd/clone.rs"},"region":{"startLine":1168}}}],"partialFingerprints":{"codehealthFindingId/v1":"f055b6eb3c4531c9c234cfa87ec107578980db45287c82191caaf25af3fa49fb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): crab/src/cmd/exp.rs:3939-3945 | crab/src/cmd/exp.rs:4198-4204 | crab/src/cmd/recover.rs:2823-2829 \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 \u0060crab/src/cmd/exp.rs:3939\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":"crab/src/cmd/exp.rs"},"region":{"startLine":3939}}}],"partialFingerprints":{"codehealthFindingId/v1":"886ac87508ea371728ce19f4b2b6ee357b08f7765cfeb6fdb1c7c0f0102e80aa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20137 lines \u00D7 3): crab/src/cmd/exp_queue.rs:1377-1383 | crates/crab-workflow/src/exp_worktree.rs:432-438 | crates/crab-workflow/src/params_runtime.rs:346-351 \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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crab/src/cmd/exp_queue.rs:1377\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":"crab/src/cmd/exp_queue.rs"},"region":{"startLine":1377}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e98f117b326dd2d992839a86dde8d5dc7d53cf472e0ba9689338f618f664182"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20137 lines \u00D7 3): crab/src/cmd/ls_files.rs:106-112 | crates/crab-auth/src/token_cache.rs:223-229 | crates/crab-staging/src/lib.rs:976-981 \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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crab/src/cmd/ls_files.rs:106\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":"crab/src/cmd/ls_files.rs"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"530ae1c431a119ab3254d2f38565b27d83580013794b900e88a6fc5d8c87d5da"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): crab/src/cmd/metrics.rs:1800-1806 | crab/src/cmd/metrics.rs:1855-1861 | crab/src/cmd/metrics.rs:1908-1914 \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":"crab/src/cmd/metrics.rs"},"region":{"startLine":1800}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0693b446efd63f12cb2a937f4ce6b322797d51035e0a3578f49d75f9747b20a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): crab/src/git/connectivity.rs:83-89 | crates/crab-vfs/src/engine.rs:179-185 | crates/crab-vfs/src/snapshot.rs:558-564 \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. 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":"crab/src/git/connectivity.rs"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"434d30a9103b7026d3f9b91d8546b0c6a63dc426dab395de18770fbd46e3206b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): crates/crab-cache-server/src/cache_store.rs:501-507 | crates/crab-cache-server/src/cache_store.rs:526-532 | crates/crab-cache-server/src/cache_store.rs:560-566 \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/crab-cache-server/src/cache_store.rs:501\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/crab-cache-server/src/cache_store.rs"},"region":{"startLine":501}}}],"partialFingerprints":{"codehealthFindingId/v1":"09b34d66314adace1103f2318ea1ad3201e9336e2fe56b9399e1b757db5854d4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): crates/crab-http-server/src/cells.rs:1253-1260 | crates/crab-http-server/src/cells/router.rs:1341-1348 | crates/crab-http-server/src/peer.rs:1786-1793 \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. 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/crab-http-server/src/cells.rs"},"region":{"startLine":1253}}}],"partialFingerprints":{"codehealthFindingId/v1":"61f88b81be15117983768d7b2b8fc0e289652a04e1761894cfb2da61c8bffc46"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): crates/crab-http-server/src/peer.rs:581-587 | crates/crab-http-server/src/peer.rs:604-610 | crates/crab-http-server/src/peer.rs:629-635 \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/crab-http-server/src/peer.rs:581\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/crab-http-server/src/peer.rs"},"region":{"startLine":581}}}],"partialFingerprints":{"codehealthFindingId/v1":"db3b73e31f515169e619cd94f660083dd30cb051507401e3eba3d52604340add"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): crates/crab-staging/src/lib.rs:3171-3177 | crates/crab-staging/src/lib.rs:4213-4219 | crates/crab-staging/src/lib.rs:4230-4236 \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/crab-staging/src/lib.rs"},"region":{"startLine":3171}}}],"partialFingerprints":{"codehealthFindingId/v1":"560177ea21a4a1c1ec1c6f9a51493596691d9319ab831e361000d5a49c5c3ae4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): crates/crab-vfs/src/nfs.rs:999-1005 | crates/crab-vfs/src/nfs.rs:1027-1033 | crates/crab-vfs/src/nfs.rs:1063-1069 \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/crab-vfs/src/nfs.rs"},"region":{"startLine":999}}}],"partialFingerprints":{"codehealthFindingId/v1":"78ac24a5d89b2955168e1bd0fcabb838e4d74b63201fa697ef844d81b74d728d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): crates/crab-write/src/generation.rs:715-722 | crates/crab-write/src/generation.rs:743-750 | crates/crab-write/src/generation.rs:928-935 \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/crab-write/src/generation.rs:715\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/crab-write/src/generation.rs"},"region":{"startLine":715}}}],"partialFingerprints":{"codehealthFindingId/v1":"44e4220601aba0be52175c1e8d527056e8232542e8ed8fde15414c30830bf507"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): crates/crab-xet/src/shard_parse.rs:309-315 | crates/crab-xet/src/shard_parse.rs:482-488 | crates/crab-xet/src/shard_parse.rs:625-631 \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/crab-xet/src/shard_parse.rs:309\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/crab-xet/src/shard_parse.rs"},"region":{"startLine":309}}}],"partialFingerprints":{"codehealthFindingId/v1":"189df9cde368108b5c31d932bee9804b7b2c78ba87721e66b130b35e891a0339"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crab/src/cache/add_remote_candidates.rs:219-225 | crab/src/cache/add_remote_candidates.rs:365-371 \u2014 both copies are in the same file, so extract the block 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":"crab/src/cache/add_remote_candidates.rs"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc3698068ade3854234b92b9ff6bc0bb37b92051391ad28f652aa28c4d453eec"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crab/src/cache/mod.rs:52-58 | crates/crab-cache/src/shard_hints.rs:40-46 \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":"crab/src/cache/mod.rs"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"034bd1323c9056e182f2ad8613d8c169ee36129d3a0c9c5ae126a7008857e970"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crab/src/cmd/clone.rs:1211-1219 | crab/src/cmd/migrate.rs:589-595 \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 \u0060crab/src/cmd/clone.rs:1211\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":"crab/src/cmd/clone.rs"},"region":{"startLine":1211}}}],"partialFingerprints":{"codehealthFindingId/v1":"2115df57423b9e66b9ff7bcbf6a7b62b3e21ae49d28802d35447b419c52004c5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crab/src/cmd/dag.rs:300-306 | crab/src/cmd/dag.rs:312-318 \u2014 both copies are in the same file, so extract the block 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 \u0060crab/src/cmd/dag.rs:300\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, \u0060crab/src/cmd/dag.rs:319\u0060 calls \u0060extend\u0060, \u0060consumers_of\u0060 and \u0060crab/src/cmd/dag.rs:307\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":"crab/src/cmd/dag.rs"},"region":{"startLine":300}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bf32a5f52b6c3288fb38b1917b188953fefa82936e8ecd48617941f9fa11331"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20137 lines \u00D7 2): crab/src/cmd/exp.rs:2686-2691 | crab/src/cmd/exp.rs:3422-3428 \u2014 both copies are in the same file, so extract the block 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 \u0060crab/src/cmd/exp.rs:2686\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, \u0060crab/src/cmd/exp.rs:2693\u0060 calls \u0060iter\u0060, \u0060cloned\u0060, \u0060collect\u0060 and \u0060crab/src/cmd/exp.rs:3431\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":"crab/src/cmd/exp.rs"},"region":{"startLine":2686}}}],"partialFingerprints":{"codehealthFindingId/v1":"72b7a813b61d2d1792f237224c62ca7d155462b9cbe355d5b5750d967f75f7b9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crab/src/cmd/gc/mod.rs:2651-2657 | crab/src/cmd/gc/mod.rs:2970-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 \u0060crab/src/cmd/gc/mod.rs:2651\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":"crab/src/cmd/gc/mod.rs"},"region":{"startLine":2651}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4cad3eba6aab6f6eb3c89f95eae91cb1c7f696a4d289a0021fcf79f19d14abd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crab/src/cmd/hydrate.rs:555-561 | crab/src/cmd/hydrate.rs:1646-1652 \u2014 both copies are in the same file, so extract the block 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 \u0060crab/src/cmd/hydrate.rs:555\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":"crab/src/cmd/hydrate.rs"},"region":{"startLine":555}}}],"partialFingerprints":{"codehealthFindingId/v1":"73783babf19313b98d4e7ad69c538ecabe3b91b1bc5962784d9c0a135b227a1c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crab/src/cmd/init.rs:955-961 | crab/src/cmd/lfs/update.rs:90-96 \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. 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":"crab/src/cmd/init.rs"},"region":{"startLine":955}}}],"partialFingerprints":{"codehealthFindingId/v1":"99ffaf80b311f85369cb1b9336ac6c255630d3c39f73d641bb6f37e58bafe34b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crab/src/cmd/lfs/dedup.rs:181-187 | crab/src/lfs/prune.rs:303-309 \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 \u0060crab/src/cmd/lfs/dedup.rs:181\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":"crab/src/cmd/lfs/dedup.rs"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"64677633a8be44bb0804c02e02979e976d16e624f897abaeb417c830239ca61f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crab/src/cmd/metrics.rs:1870-1876 | crab/src/cmd/metrics.rs:1923-1929 \u2014 both copies are in the same file, so extract the block 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 \u0060crab/src/cmd/metrics.rs:1870\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":"crab/src/cmd/metrics.rs"},"region":{"startLine":1870}}}],"partialFingerprints":{"codehealthFindingId/v1":"33826f9fa9382f12a3c84ed32373162bbac79b086b477356ea08cd7e3944fac6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crab/src/cmd/migrate.rs:1334-1340 | crab/src/cmd/migrate.rs:1388-1394 \u2014 both copies are in the same file, so extract the block 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 \u0060crab/src/cmd/migrate.rs:1334\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":"crab/src/cmd/migrate.rs"},"region":{"startLine":1334}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5884072f3c84f03269a38ee29c6b608b095f42d4a4b267cb294054d0f5c5421"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crab/src/cmd/recover.rs:1507-1514 | crab/src/cmd/recover.rs:1610-1617 \u2014 both copies are in the same file, so extract the block 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 \u0060crab/src/cmd/recover.rs:1507\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":"crab/src/cmd/recover.rs"},"region":{"startLine":1507}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e1a953f69f6786e61f359f7eb132c5f3580c3f31ce3c476bff6cb004f694519"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crab/src/cmd/recover.rs:2824-2830 | crab/src/cmd/recover.rs:2917-2923 \u2014 both copies are in the same file, so extract the block 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 \u0060crab/src/cmd/recover.rs:2824\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":"crab/src/cmd/recover.rs"},"region":{"startLine":2824}}}],"partialFingerprints":{"codehealthFindingId/v1":"efa9f0bd522afd9b13b6b6f85f36153d7ee9747b397594b8a961c4e170ef956b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crab/src/cmd/recover.rs:2915-2921 | crates/crab-vfs/src/publish.rs:1715-1721 \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 \u0060crab/src/cmd/recover.rs:2915\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":"crab/src/cmd/recover.rs"},"region":{"startLine":2915}}}],"partialFingerprints":{"codehealthFindingId/v1":"929f113225fddf6f13a9d441817f4255763f0fbb6f50e26bb130845e67d1784d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crab/src/cmd/reset.rs:86-93 | crab/src/cmd/reset.rs:181-187 \u2014 both copies are in the same file, so extract the block 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 \u0060crab/src/cmd/reset.rs:86\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":"crab/src/cmd/reset.rs"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"972a03c3ff4f713b6e45ddfaaaf6166a82f2b668a12ee44b97682bcaa8c7fa05"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crab/src/cmd/run.rs:2203-2209 | crab/src/cmd/run.rs:2838-2844 \u2014 both copies are in the same file, so extract the block 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":"crab/src/cmd/run.rs"},"region":{"startLine":2203}}}],"partialFingerprints":{"codehealthFindingId/v1":"d039a3f98ed792cc93bc6a79204370154df5d60d7dd2a6f3d02a3744f4dc5100"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crab/src/cmd/run.rs:2362-2368 | crab/src/cmd/run.rs:4447-4453 \u2014 both copies are in the same file, so extract the block 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 \u0060crab/src/cmd/run.rs:2362\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":"crab/src/cmd/run.rs"},"region":{"startLine":2362}}}],"partialFingerprints":{"codehealthFindingId/v1":"560801a583565a86b76b828f396988bfe7e8215c3a1829416470eb97c0756252"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crab/src/cmd/setup.rs:441-447 | crab/src/main.rs:2575-2581 \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 \u0060crab/src/cmd/setup.rs:441\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":"crab/src/cmd/setup.rs"},"region":{"startLine":441}}}],"partialFingerprints":{"codehealthFindingId/v1":"91bf333c5fb13428bdaa5bb423c975d00ff697cc7f88c5c2185dc200b8edebc4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crab/src/cmd/stage/add.rs:184-190 | crab/src/cmd/stage/add.rs:317-323 \u2014 both copies are in the same file, so extract the block 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 \u0060crab/src/cmd/stage/add.rs:184\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":"crab/src/cmd/stage/add.rs"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"6372856efa89dcc3b512665f2db8c1b72b8c2e96acbf853692d238244fee72f4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crab/src/cost/inventory/live.rs:166-172 | crab/src/cost/inventory/live.rs:174-180 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/cost/inventory/live.rs"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c323f3ad1a7c081d4e1a5ecccf6f7871b06c376eee3ba2d0c32269453e0f4cb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crab/src/git/push.rs:145-151 | crab/src/git/push.rs:203-209 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crab/src/git/push.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":"crab/src/git/push.rs"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"aaf64ceed97685452079ea31e56e57b17d3be03e1af6e058d522fc77a2c882c3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crab/src/git/push.rs:1631-1637 | crates/crab-write/src/catalog.rs:94-100 \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":"crab/src/git/push.rs"},"region":{"startLine":1631}}}],"partialFingerprints":{"codehealthFindingId/v1":"31013b281c65096a2afe485a98c1e0593acb40b06d7a5b64606f8c96bcdc1528"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crab/src/git/push.rs:1640-1646 | crates/crab-read/src/upload_pack.rs:1261-1267 \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":"crab/src/git/push.rs"},"region":{"startLine":1640}}}],"partialFingerprints":{"codehealthFindingId/v1":"0cb7c2a7295435260e17d1e68b549931705cc221df4e0be3ac99ca03c1c42cf2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crab/src/git/push.rs:3298-3304 | crab/src/git/push.rs:3310-3316 \u2014 both copies are in the same file, so extract the block 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 \u0060crab/src/git/push.rs:3298\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":"crab/src/git/push.rs"},"region":{"startLine":3298}}}],"partialFingerprints":{"codehealthFindingId/v1":"09578e260b4c7e5792bde2e286adf4c3c47c2fb817cf6fce7dbf1947880bdd51"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crab/src/git/upload_pack_wire.rs:836-842 | crab/src/git/upload_pack_wire.rs:1359-1365 \u2014 both copies are in the same file, so extract the block 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":"crab/src/git/upload_pack_wire.rs"},"region":{"startLine":836}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9287a2f53bac8d424ce368deb55af6ff59fd8b4e19c66ddd51e7b13f5b8cea6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crab/src/import/assemble.rs:206-212 | crab/src/import/assemble.rs:305-314 \u2014 both copies are in the same file, so extract the block 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 \u0060crab/src/import/assemble.rs:206\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":"crab/src/import/assemble.rs"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"dba841044be69ef27020df213d3d1fcdbffe640577d5790c49cfd10940c7f895"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crab/src/import/journal.rs:687-693 | crates/crab-workflow/src/exp_worktree.rs:1600-1606 \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 \u0060crab/src/import/journal.rs:687\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":"crab/src/import/journal.rs"},"region":{"startLine":687}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a39cf6f2baf6411d49c8b7919bfd31082a8653339b2c60546bff06261297f90"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20137 lines \u00D7 2): crab/src/import/versions.rs:1451-1457 | crab/src/storage/head_class.rs:450-455 \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 \u0060crab/src/import/versions.rs:1451\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":"crab/src/import/versions.rs"},"region":{"startLine":1451}}}],"partialFingerprints":{"codehealthFindingId/v1":"065cca5267c54683ed860787d1ac702a20d893beee26ed185514f7a5a89ea0c5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crab/src/lfs/migrate.rs:594-600 | crates/crab-cache-server/src/onboarding.rs:1334-1340 \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 \u0060crab/src/lfs/migrate.rs:594\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/crab-cache-server/src/onboarding.rs:1342\u0060 calls \u0060push_str\u0060, \u0060is_control\u0060 and \u0060crab/src/lfs/migrate.rs:602\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":"crab/src/lfs/migrate.rs"},"region":{"startLine":594}}}],"partialFingerprints":{"codehealthFindingId/v1":"265b586bb9fadcaf836bcbfeff1fd01feeda9ec5f6b6a646b30a64d34e359f83"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crab/src/lfs/status.rs:153-159 | crab/src/lfs/status.rs:168-174 \u2014 both copies are in the same file, so extract the block 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 \u0060crab/src/lfs/status.rs:153\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":"crab/src/lfs/status.rs"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b689ffac5854645d077d4e24a4384e9d95488c851e4a2ec5c3ca13465df95f7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crab/src/main.rs:4915-4921 | crab/src/main.rs:5023-5029 \u2014 both copies are in the same file, so extract the block 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 \u0060crab/src/main.rs:4915\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":"crab/src/main.rs"},"region":{"startLine":4915}}}],"partialFingerprints":{"codehealthFindingId/v1":"4da25187be20a5aa1d425bd707566caf60ea978c315a1a3683702df83f80159d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crab/src/replication/mod.rs:6559-6565 | crab/src/replication/mod.rs:6584-6590 \u2014 both copies are in the same file, so extract the block 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 \u0060crab/src/replication/mod.rs:6559\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":"crab/src/replication/mod.rs"},"region":{"startLine":6559}}}],"partialFingerprints":{"codehealthFindingId/v1":"53d1400aa70221f3925b09ae20a86ef5d12b15f322772a8fda6ae4f8e325277c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crab/src/replication/mod.rs:7282-7288 | crates/crab-auth-server/src/receive.rs:267-273 \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 \u0060crab/src/replication/mod.rs:7282\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":"crab/src/replication/mod.rs"},"region":{"startLine":7282}}}],"partialFingerprints":{"codehealthFindingId/v1":"1cdc51dc2bc2809dfc887ffde9a8a4cc65acba0086827bb1126ccb341e63d8c2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/crab-cache/src/local_cache.rs:864-870 | crates/crab-cache/src/local_cache.rs:1146-1152 \u2014 both copies are in the same file, so extract the block 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/crab-cache/src/local_cache.rs:864\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/crab-cache/src/local_cache.rs"},"region":{"startLine":864}}}],"partialFingerprints":{"codehealthFindingId/v1":"288a0bc1da858401849fc7c1333fea4c6d39d707567eb62ac6b86a8c24ab864f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/crab-cache/src/local_cache.rs:1499-1505 | crates/crab-cache/src/local_cache.rs:1514-1520 \u2014 both copies are in the same file, so extract the block 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/crab-cache/src/local_cache.rs:1499\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/crab-cache/src/local_cache.rs"},"region":{"startLine":1499}}}],"partialFingerprints":{"codehealthFindingId/v1":"d54cc942c85c99bd57577009175c6791e8b2f4900d4f35f28feb1a101e9e2810"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/crab-cache/src/private_fs.rs:412-418 | crates/crab-cache/src/private_fs.rs:425-431 \u2014 both copies are in the same file, so extract the block 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/crab-cache/src/private_fs.rs"},"region":{"startLine":412}}}],"partialFingerprints":{"codehealthFindingId/v1":"43e0997f4d8f63a39cbe14f9569249f7231617fe586b2e8212f7b58d1487c523"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/crab-coordination/src/cosmosdb_coordinator.rs:1115-1121 | crates/crab-coordination/src/spanner_coordinator.rs:1349-1355 \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/crab-coordination/src/cosmosdb_coordinator.rs:1115\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/crab-coordination/src/cosmosdb_coordinator.rs"},"region":{"startLine":1115}}}],"partialFingerprints":{"codehealthFindingId/v1":"f245a4713b135c75b72068310964605cb3cd5b1c5338e0c458c2be387b88c5c1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/crab-coordination/src/push_admission.rs:210-216 | crates/crab-coordination/src/push_admission.rs:240-246 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/crab-coordination/src/push_admission.rs:210\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/crab-coordination/src/push_admission.rs"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"24a7670981d263d0edbc7aacaad4bc74060a0e6ba3ca9126c1d0a01bcf5829d9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/crab-coordination/src/push_lock.rs:840-846 | crates/crab-coordination/src/push_lock.rs:893-899 \u2014 both copies are in the same file, so extract the block 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/crab-coordination/src/push_lock.rs:840\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/crab-coordination/src/push_lock.rs"},"region":{"startLine":840}}}],"partialFingerprints":{"codehealthFindingId/v1":"99a28cfbf833d4f329e805f26fbfe5e7521c78b90a32a9c68b286bc52eb78d7b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/crab-git/src/lfs_pointer.rs:341-348 | crates/crab-types/src/pointer.rs:262-269 \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/crab-git/src/lfs_pointer.rs"},"region":{"startLine":341}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bbbf6206d73b214829531c29aec249acef3d2e612d47bb450dcb2dd03ad193a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/crab-git/src/repack.rs:683-689 | crates/crab-git/src/repack.rs:1467-1473 \u2014 both copies are in the same file, so extract the block 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/crab-git/src/repack.rs:683\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/crab-git/src/repack.rs"},"region":{"startLine":683}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfc26cf02ca1372798a189a4417542d642de75881f0083fe9a4d6bed330be16e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20137 lines \u00D7 2): crates/crab-http-server/src/cells/repository/codec.rs:16-21 | crates/crab-http-server/src/cells/repository/codec.rs:43-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. 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/crab-http-server/src/cells/repository/codec.rs:15\u0060 calls \u0060write_u64\u0060 and \u0060crates/crab-http-server/src/cells/repository/codec.rs:42\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/crab-http-server/src/cells/repository/codec.rs"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ccf1aa583136cb4af35d0529af6bc150c7156159aee5d979c1f823197207943"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/crab-http-server/src/cells/repository/codec.rs:372-378 | crates/crab-http-server/src/cells/repository/codec.rs:613-619 \u2014 both copies are in the same file, so extract the block 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/crab-http-server/src/cells/repository/codec.rs:372\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060crates/crab-http-server/src/cells/repository/codec.rs:370\u0060 calls \u0060write_text\u0060 and \u0060crates/crab-http-server/src/cells/repository/codec.rs:611\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/crab-http-server/src/cells/repository/codec.rs"},"region":{"startLine":372}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7efbf6d1fe87e54eaca7e30f11a9b9b7cbdae480f2e466a61eeb89a958550eb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/crab-http-server/src/cells/repository/pull_review_threads.rs:1302-1308 | crates/crab-http-server/src/cells/repository/pull_review_threads.rs:1311-1317 \u2014 both copies are in the same file, so extract the block 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/crab-http-server/src/cells/repository/pull_review_threads.rs:1302\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/crab-http-server/src/cells/repository/pull_review_threads.rs"},"region":{"startLine":1302}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1de41ddf929d7f14ba2908a25ea63f49c5a225fb14fe2aab0c775d7c8622c7d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/crab-http-server/src/cells/repository/pulls.rs:763-769 | crates/crab-http-server/src/cells/repository/pulls.rs:1502-1508 \u2014 both copies are in the same file, so extract the block 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/crab-http-server/src/cells/repository/pulls.rs"},"region":{"startLine":763}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f46c17c9266266ad4ba50ccbf60f9794a819ff3a5a97d7ede1c412f0e67ab00"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/crab-http-server/src/receive.rs:178-185 | crates/crab-http-server/src/receive.rs:598-605 \u2014 both copies are in the same file, so extract the block 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/crab-http-server/src/receive.rs:178\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/crab-http-server/src/receive.rs"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd9275b5ebc2d2fc64defede7a46357ab223a4b2669cc2953e9afc632f192e7e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/crab-lfs/src/object_store.rs:248-257 | crates/crab-lfs/src/object_store.rs:543-549 \u2014 both copies are in the same file, so extract the block 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/crab-lfs/src/object_store.rs:248\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/crab-lfs/src/object_store.rs"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"418978a5814fb9a3307d1f66a723d695033c189ab3fe36014c2262767b474892"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/crab-metadata/src/git_visibility.rs:2664-2670 | crates/crab-metadata/src/git_visibility.rs:3305-3311 \u2014 both copies are in the same file, so extract the block 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/crab-metadata/src/git_visibility.rs"},"region":{"startLine":2664}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbe0e918d899d930db5c28438666ae11a8854774ac021fd6520d2f1e0900ed50"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/crab-read/src/upload_pack_wire.rs:371-377 | crates/crab-remote-git/src/pack.rs:2953-2959 \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/crab-read/src/upload_pack_wire.rs:371\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/crab-read/src/upload_pack_wire.rs"},"region":{"startLine":371}}}],"partialFingerprints":{"codehealthFindingId/v1":"d244bc17bdb446918d07d0a20e36866f9c35270880d00cc67275497afa80dff4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/crab-remote-git/src/pack.rs:1593-1599 | crates/crab-remote-git/src/pack.rs:1839-1845 \u2014 both copies are in the same file, so extract the block 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/crab-remote-git/src/pack.rs:1593\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/crab-remote-git/src/pack.rs"},"region":{"startLine":1593}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8ddd15c95eff6ec9e6ce5382ca920de523f5fea43a957cf50c22c69e8e8da70"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/crab-remote-git/src/reader.rs:2276-2282 | crates/crab-remote-git/src/reader.rs:2344-2350 \u2014 both copies are in the same file, so extract the block 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/crab-remote-git/src/reader.rs:2276\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/crab-remote-git/src/reader.rs"},"region":{"startLine":2276}}}],"partialFingerprints":{"codehealthFindingId/v1":"39016f2b56192e88bc92de0223090b3dc728f77afad564422f1fbe6b1d817367"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/crab-remote-git/src/snapshot.rs:478-484 | crates/crab-remote-git/src/snapshot.rs:1943-1949 \u2014 both copies are in the same file, so extract the block 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/crab-remote-git/src/snapshot.rs:478\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/crab-remote-git/src/snapshot.rs"},"region":{"startLine":478}}}],"partialFingerprints":{"codehealthFindingId/v1":"1dd38eebb6f2c77264229d4f8800c3556277a4d4db6f6e3d398a7b6a2660a7a2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/crab-sdk/src/local/push/git.rs:26-33 | crates/crab-sdk/src/local/push/git.rs:82-89 \u2014 both copies are in the same file, so extract the block 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/crab-sdk/src/local/push/git.rs"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b719fd99291f943d6695d8aa68687d583c687bbb058f356231f47efb16abab9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/crab-staging/src/add_push_plan.rs:644-651 | crates/crab-staging/src/add_push_plan.rs:1067-1074 \u2014 both copies are in the same file, so extract the block 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/crab-staging/src/add_push_plan.rs"},"region":{"startLine":644}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb55dfc1f1eb7509d8aeeec75f98df513f1a371a753a4dcc8dad46bbb5348ecd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/crab-staging/src/add_push_plan.rs:794-801 | crates/crab-staging/src/add_push_plan.rs:809-816 \u2014 both copies are in the same file, so extract the block 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/crab-staging/src/add_push_plan.rs:794\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/crab-staging/src/add_push_plan.rs"},"region":{"startLine":794}}}],"partialFingerprints":{"codehealthFindingId/v1":"530f96429958cd53cfff9276d2e6352fcaffdaba9fa24663ad1b181e76732be6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/crab-staging/src/index.rs:7061-7067 | crates/crab-staging/src/index.rs:7261-7267 \u2014 both copies are in the same file, so extract the block 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/crab-staging/src/index.rs"},"region":{"startLine":7061}}}],"partialFingerprints":{"codehealthFindingId/v1":"f77d7e8d22ae3e7b0e7937979611d49820bf4c43e1abf12ffc1a499c5a9371e0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/crab-staging/src/lib.rs:942-948 | crates/crab-staging/src/stream.rs:1777-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/crab-staging/src/lib.rs:942\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/crab-staging/src/lib.rs"},"region":{"startLine":942}}}],"partialFingerprints":{"codehealthFindingId/v1":"c77b30cc8695152f14343119b08382388d26ccbbb2b9849366fc0080d7dd77db"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/crab-vfs/src/daemon.rs:1947-1953 | crates/crab-vfs/src/pipeline.rs:691-697 \u2014 before extracting anything, compare \u0060crates/crab-vfs/src/daemon.rs\u0060 and \u0060crates/crab-vfs/src/pipeline.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 63 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-vfs/src/daemon.rs"},"region":{"startLine":1947}}}],"partialFingerprints":{"codehealthFindingId/v1":"023fb95d33a2935c2a6308310b259ecb3c4adcc3ee9a2cc2326b5c7253480650"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): crates/crab-vfs/src/overlay.rs:1070-1089 | crates/crab-vfs/src/overlay.rs:1352-1371 \u2014 both copies are in the same file, so extract the block 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/crab-vfs/src/overlay.rs"},"region":{"startLine":1070}}}],"partialFingerprints":{"codehealthFindingId/v1":"52d4d7b5edb0ecdb9760e86f0dde9d4eaeec2a3da0e545c47c2c8c85a7174d75"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/crab-vfs/src/snapshot.rs:136-142 | crates/crab-vfs/src/snapshot.rs:203-209 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-vfs/src/snapshot.rs"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"287300c6a1a4e3fd074bfac2e75b7698bf81f7b8f6c6095fb4c0b5ad73266127"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/crab-workflow/src/artifact.rs:471-477 | crates/crab-workflow/src/artifact.rs:1049-1055 \u2014 both copies are in the same file, so extract the block 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/crab-workflow/src/artifact.rs:471\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/crab-workflow/src/artifact.rs"},"region":{"startLine":471}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b0bf6ce29dd2f9856bc7d55e14e7569acf5c46341107a2121ce0c1e48983088"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/crab-workflow/src/executor.rs:1180-1186 | crates/crab-workflow/src/executor.rs:1719-1725 \u2014 both copies are in the same file, so extract the block 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/crab-workflow/src/executor.rs:1180\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/crab-workflow/src/executor.rs"},"region":{"startLine":1180}}}],"partialFingerprints":{"codehealthFindingId/v1":"bebd24c1f366f14846c0e0004f14148e832ee8663a9ba29e4b1c046c3fbc8f88"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/crab-workflow/src/executor.rs:1254-1260 | crates/crab-workflow/src/executor.rs:1309-1315 \u2014 both copies are in the same file, so extract the block 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/crab-workflow/src/executor.rs:1254\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/crab-workflow/src/executor.rs"},"region":{"startLine":1254}}}],"partialFingerprints":{"codehealthFindingId/v1":"1cbeef172b0c20c53b2b81f067d793bc0adc45642e70964334634642d9e50a5f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 4): crab/src/auth/mod.rs:369-374 | crates/crab-auth-store/src/lib.rs:94-99 | crates/crab-auth-store/src/lib.rs:207-212 | crates/crab-storage/src/provider_store.rs:488-493 \u2014 there are 4 copies across 3 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 4 sites; resolving a subset leaves the remainder to drift apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/auth/mod.rs"},"region":{"startLine":369}}}],"partialFingerprints":{"codehealthFindingId/v1":"7655b7f5c4f6fa5f88df1373c3ed7ad6d11ba26588f3b7a3613cd6452bb275db"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 4): crab/src/cmd/exp.rs:3940-3945 | crab/src/cmd/exp.rs:4199-4204 | crab/src/cmd/recover.rs:2824-2829 | crab/src/cmd/recover.rs:2917-2922 \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 \u0060crab/src/cmd/exp.rs:3940\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":"crab/src/cmd/exp.rs"},"region":{"startLine":3940}}}],"partialFingerprints":{"codehealthFindingId/v1":"06f42013120d0857dd34097206e26ab8952d25b4ffc2b0f6fb6701261ad35499"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 4): crab/src/speculation/access_db.rs:337-342 | crab/src/speculation/access_db.rs:354-359 | crab/src/speculation/access_db.rs:388-393 | crab/src/speculation/access_db.rs:405-410 \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 \u0060crab/src/speculation/access_db.rs:337\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":"crab/src/speculation/access_db.rs"},"region":{"startLine":337}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0ccc7fd1be0b57cb6f0b6798be71c0bfe3b60b3cffdcb0bce4377e2feba8f76"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): crab/src/cmd/adopt.rs:209-214 | crab/src/cmd/setup.rs:315-320 | crab/src/cmd/setup.rs:385-390 \u2014 before extracting anything, compare \u0060crab/src/cmd/adopt.rs\u0060 and \u0060crab/src/cmd/setup.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 59 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":"crab/src/cmd/adopt.rs"},"region":{"startLine":209}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a4daf484e26fa2f0e921d8386c6b25e5b54ce6937f5d2da628c523637d6be5a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): crab/src/cmd/du.rs:168-173 | crab/src/cmd/ls_files.rs:107-112 | crates/crab-auth/src/token_cache.rs:224-229 \u2014 before extracting anything, compare \u0060crab/src/cmd/du.rs\u0060 and \u0060crab/src/cmd/ls_files.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 46 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 \u0060crab/src/cmd/du.rs:168\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, \u0060crab/src/cmd/du.rs:167\u0060 calls \u0060Err\u0060, \u0060kind\u0060, \u0060Ok\u0060 and \u0060crab/src/cmd/ls_files.rs:106\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":"crab/src/cmd/du.rs"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"070d8db3d0db08fc6fa71cbe4e93afd2d11b541e1b2c612c6c8f8c5d87e1728d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): crab/src/cmd/exp.rs:4079-4084 | crab/src/cmd/recover.rs:2778-2783 | crab/src/cmd/release.rs:1091-1096 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 3 call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crab/src/cmd/exp.rs:4079\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":"crab/src/cmd/exp.rs"},"region":{"startLine":4079}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e4ae706d8a5b978ed800841a6a8d11bc1893ea6bbf0dc5c609eb5ea68781f02"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): crab/src/cmd/exp.rs:4815-4820 | crab/src/cmd/metrics.rs:1541-1546 | crab/src/cmd/metrics.rs:3371-3376 \u2014 before extracting anything, compare \u0060crab/src/cmd/exp.rs\u0060 and \u0060crab/src/cmd/metrics.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 35 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 \u0060crab/src/cmd/exp.rs:4815\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":"crab/src/cmd/exp.rs"},"region":{"startLine":4815}}}],"partialFingerprints":{"codehealthFindingId/v1":"79948b429a71677a65bbaa7089579b06d8ab417c83af1d13fbc34d96bc2c7d4d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): crab/src/cmd/metrics.rs:4091-4096 | crab/src/cmd/params.rs:749-754 | crates/crab-workflow/src/params_runtime.rs:822-829 \u2014 before extracting anything, compare \u0060crab/src/cmd/metrics.rs\u0060 and \u0060crab/src/cmd/params.rs\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 89 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crab/src/cmd/metrics.rs:4091\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":"crab/src/cmd/metrics.rs"},"region":{"startLine":4091}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1f797a0283f67fd6e60abf64213b15d8875fd8b04be1ae2b0fc127eff666b08"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): crab/src/git/incremental_walk.rs:173-178 | crab/src/git/pack_native.rs:118-123 | crab/src/lfs/prune.rs:798-804 \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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crab/src/git/incremental_walk.rs:173\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":"crab/src/git/incremental_walk.rs"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"41f28d1a26b745714ab1185c979f7e8dcd8860662e2335b5bd1f8ce274de1631"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): crab/src/import/assemble.rs:443-448 | crab/src/import/assemble.rs:1063-1068 | crab/src/import/assemble.rs:1079-1084 \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 \u0060crab/src/import/assemble.rs:443\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":"crab/src/import/assemble.rs"},"region":{"startLine":443}}}],"partialFingerprints":{"codehealthFindingId/v1":"796485b2c1f875c9817eecbabfcedaeda39235c9f3ddb4ca605b760d8bfd38f0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): crates/crab-lfs/src/lock.rs:367-372 | crates/crab-lfs/src/lock.rs:427-432 | crates/crab-lfs/src/lock.rs:487-492 \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/crab-lfs/src/lock.rs:367\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/crab-lfs/src/lock.rs"},"region":{"startLine":367}}}],"partialFingerprints":{"codehealthFindingId/v1":"bef13122a0a9803748718176a53f69a65ef34de33b21657200bfcd104c6fc5f4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): crates/crab-remote-git/src/pack.rs:967-972 | crates/crab-remote-git/src/pack.rs:1004-1009 | crates/crab-remote-git/src/pack.rs:1074-1079 \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/crab-remote-git/src/pack.rs"},"region":{"startLine":967}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbad0fd26e84487e38aca5d2c03ebdb0e61f2508bbf3698b23850562976448b9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): crates/crab-staging/src/index.rs:2366-2371 | crates/crab-staging/src/index.rs:7874-7879 | crates/crab-staging/src/index.rs:8248-8253 \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/crab-staging/src/index.rs:2366\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/crab-staging/src/index.rs"},"region":{"startLine":2366}}}],"partialFingerprints":{"codehealthFindingId/v1":"06f3d2b9f0cccb347661ed9e100ad5883179d5b55d5810bb574d1c4b5dc76eb0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): crates/crab-staging/src/index.rs:6813-6818 | crates/crab-staging/src/index.rs:7365-7370 | crates/crab-staging/src/multipart_resume.rs:548-553 \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/crab-staging/src/index.rs:6813\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/crab-staging/src/index.rs"},"region":{"startLine":6813}}}],"partialFingerprints":{"codehealthFindingId/v1":"201da3b1bb2e954445700335f306610fac25dc99fd22b9f7f7ebb31f418be543"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): crates/crab-vfs/src/daemon.rs:1313-1319 | crates/crab-vfs/src/daemon.rs:1333-1338 | crates/crab-vfs/src/daemon.rs:1746-1751 \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/crab-vfs/src/daemon.rs:1313\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/crab-vfs/src/daemon.rs"},"region":{"startLine":1313}}}],"partialFingerprints":{"codehealthFindingId/v1":"f16a9791024e9861ebd848547364ba1910316c78adb8e92e1523a24d44fbd10c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): crates/crab-workflow/src/executor.rs:1179-1184 | crates/crab-workflow/src/executor.rs:1659-1664 | crates/crab-workflow/src/executor.rs:1718-1723 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060crates/crab-workflow/src/executor.rs:1714\u0060 calls \u0060Ok\u0060, \u0060verify_and_hash_plots\u0060 and \u0060crates/crab-workflow/src/executor.rs:1174\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/crab-workflow/src/executor.rs"},"region":{"startLine":1179}}}],"partialFingerprints":{"codehealthFindingId/v1":"deb16444947d8f52b554886ea874d41ea13d036f25005f4071509865a571bc8e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): crates/crab-workflow/src/executor.rs:1221-1226 | crates/crab-workflow/src/executor.rs:1680-1685 | crates/crab-workflow/src/executor.rs:1740-1745 \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/crab-workflow/src/executor.rs:1221\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/crab-workflow/src/executor.rs"},"region":{"startLine":1221}}}],"partialFingerprints":{"codehealthFindingId/v1":"31cf4639dbbeeee366939260b997c65b74826050c2bd005951519e4f0e99a906"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crab/src/cmd/artifacts.rs:447-452 | crab/src/cmd/artifacts.rs:487-492 \u2014 both copies are in the same file, so extract the block 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 \u0060crab/src/cmd/artifacts.rs:447\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":"crab/src/cmd/artifacts.rs"},"region":{"startLine":447}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f1ba6171959feb0bda6994cc407b64ee9fec942c2133000c6989e2ec55494ec"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crab/src/cmd/doctor.rs:1722-1728 | crab/src/cmd/replica.rs:2861-2867 \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":"crab/src/cmd/doctor.rs"},"region":{"startLine":1722}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9619cf9b9e9da2d7a1022f0d1b356a4db8d48e57d8ca13206f6e5f89cc9dbe6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crab/src/cmd/exp.rs:1815-1820 | crab/src/cmd/exp.rs:1885-1890 \u2014 both copies are in the same file, so extract the block 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":"crab/src/cmd/exp.rs"},"region":{"startLine":1815}}}],"partialFingerprints":{"codehealthFindingId/v1":"f93019bf4f0146398901790eda1e1718921f18d628f4fe5939d1a70e63bba2f7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crab/src/cmd/exp.rs:4826-4831 | crab/src/cmd/metrics.rs:1552-1557 \u2014 before extracting anything, compare \u0060crab/src/cmd/exp.rs\u0060 and \u0060crab/src/cmd/metrics.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 35 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 \u0060crab/src/cmd/exp.rs:4826\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":"crab/src/cmd/exp.rs"},"region":{"startLine":4826}}}],"partialFingerprints":{"codehealthFindingId/v1":"177beb142ac8deafd4b6adf179fd0f3eb4b543938b4879fa8363da6cf585eee4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crab/src/cmd/gc/bucket.rs:1075-1080 | crab/src/cmd/gc/mod.rs:1910-1915 \u2014 before extracting anything, compare \u0060crab/src/cmd/gc/bucket.rs\u0060 and \u0060crab/src/cmd/gc/mod.rs\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 31 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":"crab/src/cmd/gc/bucket.rs"},"region":{"startLine":1075}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc729012195024592c5cdad91ad40c3abf50dfa949ed3bee4ca62f67d702bf85"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crab/src/cmd/gc/bucket.rs:1845-1850 | crab/src/cmd/gc/bucket.rs:1902-1907 \u2014 both copies are in the same file, so extract the block 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":"crab/src/cmd/gc/bucket.rs"},"region":{"startLine":1845}}}],"partialFingerprints":{"codehealthFindingId/v1":"6324fb1dc85c2ff68713af62de738d8ee6ab5900560d1509fb9e1e126e00e39e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crab/src/cmd/gc/bucket.rs:2435-2440 | crab/src/cmd/optimize/xorbs.rs:653-658 \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 \u0060crab/src/cmd/gc/bucket.rs:2435\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":"crab/src/cmd/gc/bucket.rs"},"region":{"startLine":2435}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2d688b305ee36867c5c8354d02d0922c742bcb26f283bf3a6d6e25d6be34f58"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crab/src/cmd/hydrate.rs:1906-1911 | crab/src/cmd/hydrate.rs:1934-1939 \u2014 both copies are in the same file, so extract the block 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 \u0060crab/src/cmd/hydrate.rs:1906\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":"crab/src/cmd/hydrate.rs"},"region":{"startLine":1906}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1ffe0aaeb509f1602b56acf2cdfa7931dc9f4f32f90ec08be30783f52f96f2a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crab/src/cmd/metrics.rs:1310-1315 | crab/src/cmd/metrics.rs:1395-1400 \u2014 both copies are in the same file, so extract the block 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 \u0060crab/src/cmd/metrics.rs:1310\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, \u0060crab/src/cmd/metrics.rs:1307\u0060 calls \u0060reject_image_sources_for_vega\u0060 and \u0060crab/src/cmd/metrics.rs:1393\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":"crab/src/cmd/metrics.rs"},"region":{"startLine":1310}}}],"partialFingerprints":{"codehealthFindingId/v1":"71c82f7cb9e7963aba5e0cd26797c1c528345d890d3f898e3a15eaa53f04c2f2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5\u20136 lines \u00D7 2): crab/src/cmd/metrics.rs:3513-3518 | crab/src/cmd/params.rs:359-363 \u2014 before extracting anything, compare \u0060crab/src/cmd/metrics.rs\u0060 and \u0060crab/src/cmd/params.rs\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 89 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crab/src/cmd/metrics.rs:3513\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":"crab/src/cmd/metrics.rs"},"region":{"startLine":3513}}}],"partialFingerprints":{"codehealthFindingId/v1":"88e975c80a8c5a75717d7b1b65597f1c79684b506890657774ea68cfa6981137"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crab/src/cmd/optimize/xorbs.rs:378-384 | crab/src/cmd/optimize/xorbs.rs:628-633 \u2014 both copies are in the same file, so extract the block 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 \u0060crab/src/cmd/optimize/xorbs.rs:378\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":"crab/src/cmd/optimize/xorbs.rs"},"region":{"startLine":378}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5a8ec342267dcf64e8b2b0f179a28bbb6a63c0d7dbcfc9cd9bbcedb6f7099e5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crab/src/cmd/recover.rs:2015-2020 | crab/src/cmd/recover.rs:2272-2277 \u2014 both copies are in the same file, so extract the block 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 \u0060crab/src/cmd/recover.rs:2015\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":"crab/src/cmd/recover.rs"},"region":{"startLine":2015}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a15db2380950330ba1b1b18bccd52e9928761de3aae9bc4d1f5ec0f77d159f8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crab/src/cost/inventory/report/azure.rs:60-65 | crab/src/cost/inventory/report/gcs.rs:64-69 \u2014 before extracting anything, compare \u0060crab/src/cost/inventory/report/azure.rs\u0060 and \u0060crab/src/cost/inventory/report/gcs.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 56 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crab/src/cost/inventory/report/azure.rs:60\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, \u0060crab/src/cost/inventory/report/azure.rs:67\u0060 calls \u0060get\u0060, \u0060trim_matches\u0060, \u0060to_string\u0060 and \u0060crab/src/cost/inventory/report/gcs.rs:72\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":"crab/src/cost/inventory/report/azure.rs"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"69766ee88e33f3e2da2b5b885c9e283f75aeef560778475c2e21ae802a194bf6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crab/src/git/push.rs:7781-7786 | crates/crab-metadata/src/manifests.rs:88-93 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/git/push.rs"},"region":{"startLine":7781}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f229d2042eefab5c919f71bb63f3ddb58809012fd70d8b7cee00685f5768952"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crab/src/git/push.rs:12472-12477 | crab/src/git/push.rs:12481-12486 \u2014 both copies are in the same file, so extract the block 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 \u0060crab/src/git/push.rs:12472\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":"crab/src/git/push.rs"},"region":{"startLine":12472}}}],"partialFingerprints":{"codehealthFindingId/v1":"f20f7c4683ccad5ed03809361ab3301e22ec2efcc47eedafcf37a111274e7fc9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crab/src/git/push.rs:16030-16035 | crab/src/git/push.rs:16070-16075 \u2014 both copies are in the same file, so extract the block 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 \u0060crab/src/git/push.rs:16030\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":"crab/src/git/push.rs"},"region":{"startLine":16030}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b0869aff89f3653f9bea8a6d657c1512cc6854e577be673b7abcae2315db8a3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crab/src/git/remote_helper.rs:465-470 | crab/src/git/remote_helper.rs:472-477 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crab/src/git/remote_helper.rs:465\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":"crab/src/git/remote_helper.rs"},"region":{"startLine":465}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e9320c405df8af72e02c45e835f862a167451ea777c104e12c493e9172565a7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crab/src/lfs/lock.rs:225-230 | crab/src/lfs/lock.rs:258-263 \u2014 both copies are in the same file, so extract the block 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":"crab/src/lfs/lock.rs"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"75b7688f8e230322473900a7cb07b03ee42a1a205afb3f2224763d3f21f2d458"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crab/src/metadata/metadb/stores/chunk_index.rs:349-354 | crab/src/metadata/metadb/stores/chunk_index.rs:450-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 \u0060crab/src/metadata/metadb/stores/chunk_index.rs:349\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":"crab/src/metadata/metadb/stores/chunk_index.rs"},"region":{"startLine":349}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2f8f760810b1f2bccd907e2c91be32a269944430928bde50f0fae4be5e8eb1f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crab/src/metadata/metadb/stores/chunk_index.rs:518-523 | crates/crab-metadata/src/remote_index.rs:333-338 \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 \u0060crab/src/metadata/metadb/stores/chunk_index.rs:518\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":"crab/src/metadata/metadb/stores/chunk_index.rs"},"region":{"startLine":518}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c950788bc6ad4938739e1140de29466031ed31232a49ed4324f9a21a47af40f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crab/src/optimize/xorbs/journal.rs:385-390 | crab/src/optimize/xorbs/journal.rs:532-538 \u2014 both copies are in the same file, so extract the block 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 \u0060crab/src/optimize/xorbs/journal.rs:385\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":"crab/src/optimize/xorbs/journal.rs"},"region":{"startLine":385}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff9741b2dd47a4748960d048154a3d9dbe72ee77d39587f4063228943bcabbe1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crab/src/speculation/access_db.rs:320-325 | crab/src/speculation/access_db.rs:371-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crab/src/speculation/access_db.rs:320\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":"crab/src/speculation/access_db.rs"},"region":{"startLine":320}}}],"partialFingerprints":{"codehealthFindingId/v1":"7aa4f068190988e090fbc4b93adabac35b3dc59f9f4a32ad785d97a82334aabf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crab/src/storage/retry.rs:408-414 | crates/crab-storage/src/retry.rs:172-178 \u2014 before extracting anything, compare \u0060crab/src/storage/retry.rs\u0060 and \u0060crates/crab-storage/src/retry.rs\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 49 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. 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":"crab/src/storage/retry.rs"},"region":{"startLine":408}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2572e949ca535a9bf22a59e9d1f5433f77faebc3d12949ebc34d83a9fb69c04"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/crab-auth-server/src/receive.rs:1447-1452 | crates/crab-write/src/catalog.rs:366-371 \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/crab-auth-server/src/receive.rs:1447\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/crab-auth-server/src/receive.rs"},"region":{"startLine":1447}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb4915f71cc318bbcf0ebf2c36b880f02d353f0ac3aa7e95b4e8bc8d8f20d123"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/crab-cache/src/local_cache.rs:1146-1151 | crates/crab-cache/src/local_cache.rs:1188-1193 \u2014 both copies are in the same file, so extract the block 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/crab-cache/src/local_cache.rs"},"region":{"startLine":1146}}}],"partialFingerprints":{"codehealthFindingId/v1":"b85debdc778b96e05573a34adebf8849ad09160a057c2394b1452930d4524f9f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/crab-coordination/src/gc_fence.rs:969-975 | crates/crab-coordination/src/gc_fence.rs:1065-1071 \u2014 both copies are in the same file, so extract the block 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/crab-coordination/src/gc_fence.rs"},"region":{"startLine":969}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a139eb0c323d824fea71da7091841055dd60fc55baa85dba7790708d3828429"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/crab-git/src/lfs_pointer.rs:321-328 | crates/crab-types/src/pointer.rs:239-246 \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/crab-git/src/lfs_pointer.rs:321\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/crab-git/src/lfs_pointer.rs"},"region":{"startLine":321}}}],"partialFingerprints":{"codehealthFindingId/v1":"e62d3874d5232ab8704c4796e6103a53c41f3cdd4db3d87d98682890c05032d4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/crab-http-server/src/cells/repository.rs:852-857 | crates/crab-http-server/src/cells/repository/projection.rs:1084-1089 \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/crab-http-server/src/cells/repository.rs:852\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/crab-http-server/src/cells/repository.rs"},"region":{"startLine":852}}}],"partialFingerprints":{"codehealthFindingId/v1":"462a73ffa345723926757dec837409166c6ddd63946223d32037b646b93a6f81"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/crab-http-server/src/cells/repository/checks.rs:802-807 | crates/crab-http-server/src/cells/repository/pull_review_threads.rs:1271-1276 \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/crab-http-server/src/cells/repository/checks.rs:802\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/crab-http-server/src/cells/repository/checks.rs"},"region":{"startLine":802}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2a2caa78dc55436c15b9f6345b9bf99c8f17e552605db4c42eac46fd2378da5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/crab-http-server/src/cells/repository/pull_review_threads.rs:742-747 | crates/crab-http-server/src/cells/repository/pull_review_threads.rs:1146-1151 \u2014 both copies are in the same file, so extract the block 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/crab-http-server/src/cells/repository/pull_review_threads.rs:1145\u0060 calls \u0060validate_suggested_text\u0060, \u0060as_deref\u0060 and \u0060crates/crab-http-server/src/cells/repository/pull_review_threads.rs:741\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/crab-http-server/src/cells/repository/pull_review_threads.rs"},"region":{"startLine":742}}}],"partialFingerprints":{"codehealthFindingId/v1":"578eb573d3adc204e60550d57dd2e903206add5519d51c25a93b15d1ac691e29"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/crab-http-server/src/cells/repository/pulls.rs:786-792 | crates/crab-http-server/src/cells/repository/pulls.rs:798-804 \u2014 both copies are in the same file, so extract the block 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 \u0060context\u0060 to \u0060\u0026CommandContext\u003C\u0027_, \u0027_\u003E\u0060 in one and \u0060\u0026QueryContext\u003C\u0027_\u003E\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/crab-http-server/src/cells/repository/pulls.rs"},"region":{"startLine":786}}}],"partialFingerprints":{"codehealthFindingId/v1":"22f5e670135dddab92e6b89364e086d2413454438be97c12ca8869afb17099e6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/crab-http-server/src/cells/repository/pulls.rs:1516-1522 | crates/crab-http-server/src/cells/repository/pulls.rs:1529-1535 \u2014 both copies are in the same file, so extract the block 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/crab-http-server/src/cells/repository/pulls.rs:1529\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 \u0060context\u0060 to \u0060\u0026CommandContext\u003C\u0027_, \u0027_\u003E\u0060 in one and \u0060\u0026QueryContext\u003C\u0027_\u003E\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060crates/crab-http-server/src/cells/repository/pulls.rs:1527\u0060 calls \u0060validate_number\u0060 and \u0060crates/crab-http-server/src/cells/repository/pulls.rs:1515\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/crab-http-server/src/cells/repository/pulls.rs"},"region":{"startLine":1516}}}],"partialFingerprints":{"codehealthFindingId/v1":"eac07fe0723ebe79ea0fce3d2ebbac188b5463fb6331e7272603abb73f08fbf6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/crab-http-server/src/cells/repository/pulls.rs:1551-1557 | crates/crab-http-server/src/cells/repository/pulls.rs:1564-1570 \u2014 both copies are in the same file, so extract the block 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/crab-http-server/src/cells/repository/pulls.rs:1564\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 \u0060context\u0060 to \u0060\u0026CommandContext\u003C\u0027_, \u0027_\u003E\u0060 in one and \u0060\u0026QueryContext\u003C\u0027_\u003E\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060crates/crab-http-server/src/cells/repository/pulls.rs:1562\u0060 calls \u0060validate_number\u0060 and \u0060crates/crab-http-server/src/cells/repository/pulls.rs:1550\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/crab-http-server/src/cells/repository/pulls.rs"},"region":{"startLine":1551}}}],"partialFingerprints":{"codehealthFindingId/v1":"8dba557b191157161db5dcbc36529bccdd2326857272d595958cab6f2fb8f1ae"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/crab-http-server/src/peer/client.rs:308-313 | crates/crab-http-server/src/peer/client.rs:321-326 \u2014 both copies are in the same file, so extract the block 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/crab-http-server/src/peer/client.rs:308\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/crab-http-server/src/peer/client.rs"},"region":{"startLine":308}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9c42b15e718d58358a70676a27b17be931c931a18a6944e3cdce257854ed00c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/crab-http-server/src/pulls/storage.rs:728-733 | crates/crab-http-server/src/pulls/storage.rs:745-750 \u2014 both copies are in the same file, so extract the block 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/crab-http-server/src/pulls/storage.rs:728\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/crab-http-server/src/pulls/storage.rs"},"region":{"startLine":728}}}],"partialFingerprints":{"codehealthFindingId/v1":"7059844901113198064607209de3b0d8c88c986a9787eb1fc24e456aa8a8d938"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/crab-metadata/src/git_object_locator/reader.rs:640-645 | crates/crab-metadata/src/git_object_locator/reader.rs:732-737 \u2014 both copies are in the same file, so extract the block 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/crab-metadata/src/git_object_locator/reader.rs:640\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/crab-metadata/src/git_object_locator/reader.rs:739\u0060 calls \u0060try_from\u0060, \u0060unwrap_or\u0060 and \u0060crates/crab-metadata/src/git_object_locator/reader.rs:646\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/crab-metadata/src/git_object_locator/reader.rs"},"region":{"startLine":640}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd95d757e598e040bcda79f2b9c99d2c950520a702f8f770811ffabc5937429e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/crab-metadata/src/git_visibility.rs:2559-2566 | crates/crab-metadata/src/git_visibility.rs:2590-2597 \u2014 both copies are in the same file, so extract the block 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/crab-metadata/src/git_visibility.rs"},"region":{"startLine":2559}}}],"partialFingerprints":{"codehealthFindingId/v1":"f99e211e1a3558f25b9cf15946d353027483151fc27eaad10109ea1f65ad3e95"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/crab-metadata/src/key_codec.rs:120-125 | crates/crab-metadata/src/key_codec.rs:191-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/crab-metadata/src/key_codec.rs:120\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/crab-metadata/src/key_codec.rs"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"4342a0c42e8b642233daf40752b2affe66210b4437d0411c93be532f554e740b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/crab-metadata/src/manifest_store.rs:741-746 | crates/crab-metadata/src/segmented_store.rs:278-283 \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/crab-metadata/src/manifest_store.rs:741\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/crab-metadata/src/manifest_store.rs"},"region":{"startLine":741}}}],"partialFingerprints":{"codehealthFindingId/v1":"168addc6ef74d2f8326f5abfb1500cf4ca575c9a9708a634812af0c790bd517f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/crab-remote-git/src/snapshot.rs:91-96 | crates/crab-remote-git/src/snapshot.rs:193-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/crab-remote-git/src/snapshot.rs:91\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/crab-remote-git/src/snapshot.rs"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ee14fc62a854a4122af0414d416656278814990d359bf9520c16dcfc7721fa7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/crab-s3-gateway/src/gateway.rs:2935-2940 | crates/crab-s3-gateway/src/gateway.rs:4260-4265 \u2014 both copies are in the same file, so extract the block 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 \u0060req\u0060 to \u0060S3Request\u003CListObjectsV2Input\u003E\u0060 in one and \u0060\u0026S3Request\u003CListObjectsV2Input\u003E\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/crab-s3-gateway/src/gateway.rs"},"region":{"startLine":2935}}}],"partialFingerprints":{"codehealthFindingId/v1":"5122d20f363e107a53c493962bb53516d3502f14ed565d6545272ceaf8883546"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/crab-sdk/src/client.rs:624-629 | crates/crab-sdk/src/client.rs:665-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/crab-sdk/src/client.rs"},"region":{"startLine":624}}}],"partialFingerprints":{"codehealthFindingId/v1":"97b785f15f47c2366219a4ac5bf72bfbe08088eaea4d29b2633f7e91f568d163"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/crab-staging/src/index.rs:2709-2714 | crates/crab-staging/src/index.rs:6751-6756 \u2014 both copies are in the same file, so extract the block 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/crab-staging/src/index.rs:2709\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/crab-staging/src/index.rs"},"region":{"startLine":2709}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b0411978c775f0f482336806707f2aa98b2b6f13759f69392fa7993d2bb749e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/crab-staging/src/index.rs:4393-4398 | crates/crab-staging/src/index.rs:8243-8248 \u2014 both copies are in the same file, so extract the block 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/crab-staging/src/index.rs:4393\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/crab-staging/src/index.rs"},"region":{"startLine":4393}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a3189815c8202564d7d4ace1aff3a174a18aa6a916cbad19a68a1e7f368ac81"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/crab-vfs/src/mount.rs:115-120 | crates/crab-vfs/src/mount.rs:148-153 \u2014 both copies are in the same file, so extract the block 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/crab-vfs/src/mount.rs:115\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/crab-vfs/src/mount.rs"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d59d53c1a354a135055a17af08e448ba7084dc3e258999d5f5f777b21170e5a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/crab-vfs/src/mount_runtime.rs:100-105 | crates/crab-vfs/src/refresh.rs:848-853 \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/crab-vfs/src/mount_runtime.rs:100\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/crab-vfs/src/mount_runtime.rs"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"f82516003aa01afc136e9a79a9690be2bd66c564093b78712300578b43555905"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/crab-vfs/src/mount_runtime.rs:109-114 | crates/crab-vfs/src/mount_runtime.rs:161-166 \u2014 both copies are in the same file, so extract the block 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/crab-vfs/src/mount_runtime.rs"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"36529c1f9849d603245208a70bc7400b87ad8cb5694b65501daa23f09640e01a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/crab-vfs/src/nfs_control.rs:1139-1144 | crates/crab-vfs/src/nfs_control.rs:1188-1193 \u2014 both copies are in the same file, so extract the block 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/crab-vfs/src/nfs_control.rs:1139\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/crab-vfs/src/nfs_control.rs"},"region":{"startLine":1139}}}],"partialFingerprints":{"codehealthFindingId/v1":"0daaf0434468fb4ebbdabccbdd69102b10a0e15c5610baa9847f787f835bbabe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/crab-workflow/src/params_runtime.rs:565-570 | crates/crab-workflow/src/params_runtime.rs:578-583 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/crab-workflow/src/params_runtime.rs:565\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/crab-workflow/src/params_runtime.rs"},"region":{"startLine":565}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0cbb95db58fba2bf515c0e5d03909c02b5665202773aee71ed36cb3d4891199"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/crab-workflow/src/template/foreach.rs:349-356 | crates/crab-workflow/src/template/matrix.rs:335-342 \u2014 before extracting anything, compare \u0060crates/crab-workflow/src/template/foreach.rs\u0060 and \u0060crates/crab-workflow/src/template/matrix.rs\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 106 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. 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/crab-workflow/src/template/foreach.rs"},"region":{"startLine":349}}}],"partialFingerprints":{"codehealthFindingId/v1":"37889ea1c4ce6814bad1ab6d34a25844f5119a797781b09a347290806970aa7d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 12): crab/src/cmd/add.rs:3453-3457 | crab/src/cmd/adopt.rs:210-214 | crab/src/cmd/adopt.rs:671-675 | crab/src/cmd/dehydrate.rs:447-451 | crab/src/cmd/hydrate.rs:3529-3533 | crab/src/cmd/init.rs:683-687 | crab/src/cmd/init.rs:717-721 | crab/src/cmd/reset.rs:484-488 | crab/src/cmd/setup.rs:316-320 | crab/src/cmd/setup.rs:386-390 | crab/src/cmd/setup.rs:441-445 | crab/src/main.rs:2575-2579 \u2014 before extracting anything, compare \u0060crab/src/cmd/add.rs\u0060 and \u0060crab/src/cmd/dehydrate.rs\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 131 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 \u0060crab/src/cmd/add.rs:3453\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":"crab/src/cmd/add.rs"},"region":{"startLine":3453}}}],"partialFingerprints":{"codehealthFindingId/v1":"32d66f7bdef8db6e8fc9c15203e3b35d585f8470003a782d75499af4ae80988e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 11): crab/src/cmd/compact.rs:116-120 | crab/src/cmd/gc/bucket.rs:283-287 | crab/src/cmd/gc/bucket.rs:320-324 | crab/src/cmd/gc/bucket.rs:2499-2503 | crab/src/cmd/history_recovery.rs:430-434 | crab/src/cmd/history_recovery.rs:456-460 | crab/src/cmd/metadb.rs:2260-2264 | crab/src/cmd/recover.rs:2517-2521 | crates/crab-auth-server/src/receive/workflow.rs:247-251 | crates/crab-workflow/src/artifact.rs:935-939 | crates/crab-workflow/src/cache.rs:765-769 \u2014 there are 11 copies across 8 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 11 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crab/src/cmd/compact.rs:116\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":"crab/src/cmd/compact.rs"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2841cf1a492c2e75ee53c11d434fc40e6a1ee8b8da3bad13589bbf762ff7672"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 5): crab/src/cmd/gc/bucket.rs:904-909 | crab/src/cmd/gc/bucket.rs:2438-2443 | crab/src/cmd/optimize/xorbs.rs:656-661 | crab/src/replication/mod.rs:8105-8110 | crates/crab-workflow/src/artifact.rs:556-561 \u2014 there are 5 copies across 4 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 5 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crab/src/cmd/gc/bucket.rs:904\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":"crab/src/cmd/gc/bucket.rs"},"region":{"startLine":904}}}],"partialFingerprints":{"codehealthFindingId/v1":"64e689f3f6681679482b1ce5a4024d5a3bd51f63827de79502a61ae8578b8890"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 4): crab/src/cache/add_remote_candidates.rs:548-554 | crates/crab-staging/src/index.rs:3166-3170 | crates/crab-staging/src/index.rs:3255-3261 | crates/crab-staging/src/index.rs:6563-6569 \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 \u0060crab/src/cache/add_remote_candidates.rs:548\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060crates/crab-staging/src/index.rs:3253\u0060 calls \u0060push\u0060 and \u0060crates/crab-staging/src/index.rs:3165\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":"crab/src/cache/add_remote_candidates.rs"},"region":{"startLine":548}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea414889ec13e09ee9b66128db6e3f58253009d18db5fb10e97588c3796d16c3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (4\u20135 lines \u00D7 6): crab/src/cmd/metadb.rs:1788-1792 | crab/src/cmd/repack.rs:1347-1352 | crab/src/git/push.rs:18812-18816 | crab/src/optimize/xorbs/reconcile.rs:780-785 | crates/crab-coordination/src/cosmosdb_coordinator.rs:1495-1498 | crates/crab-types/src/time.rs:74-77 \u2014 before extracting anything, compare \u0060crab/src/cmd/repack.rs\u0060 and \u0060crab/src/git/push.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 36 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. 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":"crab/src/cmd/metadb.rs"},"region":{"startLine":1788}}}],"partialFingerprints":{"codehealthFindingId/v1":"35f1da92899613eacb21e39542c9298dce8f244ff76eab093ef5f2d70c9030c8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 4): crates/crab-staging/src/index.rs:2735-2741 | crates/crab-staging/src/index.rs:3162-3168 | crates/crab-staging/src/index.rs:3249-3255 | crates/crab-staging/src/index.rs:6777-6783 \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/crab-staging/src/index.rs:2735\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/crab-staging/src/index.rs:3256\u0060 calls \u0060push\u0060 and \u0060crates/crab-staging/src/index.rs:2742\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/crab-staging/src/index.rs"},"region":{"startLine":2735}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1489142db102a15988b92ed29e9769d6999ebc8be8ad2ae015938e02c66b8a3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 4): crates/crab-staging/src/index.rs:7750-7754 | crates/crab-staging/src/index.rs:7801-7805 | crates/crab-staging/src/index.rs:8388-8392 | crates/crab-staging/src/index.rs:8451-8455 \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/crab-staging/src/index.rs:7750\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/crab-staging/src/index.rs"},"region":{"startLine":7750}}}],"partialFingerprints":{"codehealthFindingId/v1":"15ee51fd5a7ff8fce9ae91e5667cfae9b7065d8f3f0eae5ce3bc71ea0f5225b3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (3\u20135 lines \u00D7 4): crab/src/cmd/exp_queue.rs:904-908 | crab/src/cmd/exp_queue.rs:1022-1026 | crab/src/cmd/lfs/convert.rs:516-518 | crab/src/git/pack.rs:1914-1918 \u2014 there are 4 copies across 3 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 \u0060crab/src/cmd/exp_queue.rs:904\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":"crab/src/cmd/exp_queue.rs"},"region":{"startLine":904}}}],"partialFingerprints":{"codehealthFindingId/v1":"b885f09b4c174db342e9ee530765971ff383b53c11d2c8bbffb12390f88a125f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): crab/src/cmd/recover.rs:2965-2969 | crab/src/cmd/status_workflow.rs:829-834 | crab/src/lfs/prune.rs:449-453 \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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crab/src/cmd/recover.rs:2965\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":"crab/src/cmd/recover.rs"},"region":{"startLine":2965}}}],"partialFingerprints":{"codehealthFindingId/v1":"4332b75d9e6f242e6b9001365a5c6baa2677b30153c2b247d207cc630a770b4b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): crates/crab-cache-server/src/cache_store.rs:1355-1362 | crates/crab-cache-server/src/cache_store.rs:1474-1481 | crates/crab-cache-server/src/cache_store.rs:1585-1592 \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/crab-cache-server/src/cache_store.rs"},"region":{"startLine":1355}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d6293406e3ccff81962150d89b589251a65f59d3085e018baee69449e6ea600"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): crates/crab-http-server/src/branches.rs:274-279 | crates/crab-http-server/src/branches.rs:308-313 | crates/crab-http-server/src/contents.rs:420-425 \u2014 before extracting anything, compare \u0060crates/crab-http-server/src/branches.rs\u0060 and \u0060crates/crab-http-server/src/contents.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 47 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060input\u0060 to \u0060std::result::Result\u003CJson\u003CCreateInput\u003E\u0060 in one and \u0060std::result::Result\u003CJson\u003CDeleteInput\u003E\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/crab-http-server/src/branches.rs"},"region":{"startLine":274}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0abd8d265f402848fd3793e7912620e281fe7fc70a63ece041dc06465d898de"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): crates/crab-http-server/src/cells/repository/pull_review_threads.rs:1378-1382 | crates/crab-http-server/src/cells/repository/pulls.rs:1613-1617 | crates/crab-http-server/src/cells/repository/releases.rs:1181-1185 \u2014 before extracting anything, compare \u0060crates/crab-http-server/src/cells/repository/pull_review_threads.rs\u0060 and \u0060crates/crab-http-server/src/cells/repository/pulls.rs\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 50 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/crab-http-server/src/cells/repository/pull_review_threads.rs:1378\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/crab-http-server/src/cells/repository/pull_review_threads.rs"},"region":{"startLine":1378}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf1f8f05acab973ad08c24b03f731c539198804255dcf500698aad4f5c3155f2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): crates/crab-remote-git/src/pack.rs:652-658 | crates/crab-remote-git/src/pack.rs:898-904 | crates/crab-remote-git/src/pack.rs:1063-1069 \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/crab-remote-git/src/pack.rs"},"region":{"startLine":652}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ad1e4b5776c640b3387e2d2c0c6c143c66c8d35b20d8447a4c3a76ec74bf35f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): crates/crab-staging/src/index.rs:4025-4029 | crates/crab-staging/src/index.rs:6810-6814 | crates/crab-staging/src/index.rs:7362-7366 \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/crab-staging/src/index.rs:4025\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/crab-staging/src/index.rs"},"region":{"startLine":4025}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c11c773188cabf38249cbdac62d02e814605461ce33e4b3f9932d76b76f1c46"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): crates/crab-staging/src/lib.rs:3171-3177 | crates/crab-staging/src/lib.rs:3320-3324 | crates/crab-staging/src/lib.rs:4213-4219 \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/crab-staging/src/lib.rs"},"region":{"startLine":3171}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f324e568c6fd157d8ada2bae1614a1c3a1d94ab587fac1178b7b22be7069208"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): crates/crab-vfs/src/daemon.rs:938-942 | crates/crab-vfs/src/mount_runtime.rs:100-104 | crates/crab-vfs/src/refresh.rs:848-852 \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/crab-vfs/src/daemon.rs"},"region":{"startLine":938}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cb51b705b078e1b93f0cc0ba99e850404565a77478d97f57a3207f11e0ecdbf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): crates/crab-vfs/src/overlay.rs:573-577 | crates/crab-vfs/src/overlay.rs:606-610 | crates/crab-vfs/src/overlay.rs:751-756 \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/crab-vfs/src/overlay.rs:573\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/crab-vfs/src/overlay.rs"},"region":{"startLine":573}}}],"partialFingerprints":{"codehealthFindingId/v1":"fae157b708d9f4eb1cb45698cb47e0a04218437ea45c50ece7299a97948ddb4b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crab/src/cmd/diff.rs:177-181 | crab/src/cmd/diff_driver.rs:141-146 \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":"crab/src/cmd/diff.rs"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"b02972030954f933888319cae33d51da706e9978c9ef6cbef8a1cab6bf1e49f5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crab/src/cmd/exp.rs:4244-4248 | crab/src/cmd/exp.rs:4283-4287 \u2014 both copies are in the same file, so extract the block 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 \u0060crab/src/cmd/exp.rs:4244\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":"crab/src/cmd/exp.rs"},"region":{"startLine":4244}}}],"partialFingerprints":{"codehealthFindingId/v1":"351b0acfae42e6f7b3d04ef3c3ea2f9d63aa9c5f795b07e5e2cea6d6b9fe6b48"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crab/src/cmd/exp.rs:4998-5002 | crab/src/cmd/exp.rs:5004-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/cmd/exp.rs"},"region":{"startLine":4998}}}],"partialFingerprints":{"codehealthFindingId/v1":"381656d8e411f146b8e8195a9cf323ead86fe5c7bd1f9cf965d0031c450f0086"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crab/src/cmd/gc/bucket.rs:1062-1072 | crab/src/cmd/gc/mod.rs:1897-1907 \u2014 before extracting anything, compare \u0060crab/src/cmd/gc/bucket.rs\u0060 and \u0060crab/src/cmd/gc/mod.rs\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 31 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":"crab/src/cmd/gc/bucket.rs"},"region":{"startLine":1062}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f2fda86ab90ff38f8401f71c6c89dca67408436907469bad39503dd9adfb8dd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crab/src/cmd/gc/journal.rs:277-284 | crab/src/cmd/gc/journal.rs:688-695 \u2014 both copies are in the same file, so extract the block 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, \u0060crab/src/cmd/gc/journal.rs:290\u0060 calls \u0060persist_state\u0060 and \u0060crab/src/cmd/gc/journal.rs:696\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":"crab/src/cmd/gc/journal.rs"},"region":{"startLine":277}}}],"partialFingerprints":{"codehealthFindingId/v1":"81506f1acbb28f5efce41d07a1bdd44ee04f4bd8e21341e182cc868ed25f6b73"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crab/src/cmd/lfs/convert.rs:373-377 | crab/src/cmd/lfs/merge_driver.rs:172-176 \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":"crab/src/cmd/lfs/convert.rs"},"region":{"startLine":373}}}],"partialFingerprints":{"codehealthFindingId/v1":"32e0f3ea4d4ced3556ed532756b4e37be880c43634118521cd06cc0256e37488"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crab/src/cmd/metrics.rs:2695-2699 | crab/src/cmd/metrics.rs:2720-2724 \u2014 both copies are in the same file, so extract the block 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":"crab/src/cmd/metrics.rs"},"region":{"startLine":2695}}}],"partialFingerprints":{"codehealthFindingId/v1":"0db1c729f7360b9c7932ed3f1806efa47d7a5126170e5b7c5db6f2e22aa6ee9a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crab/src/cmd/metrics.rs:3582-3586 | crab/src/cmd/params.rs:417-421 \u2014 before extracting anything, compare \u0060crab/src/cmd/metrics.rs\u0060 and \u0060crab/src/cmd/params.rs\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 89 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crab/src/cmd/metrics.rs:3582\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 \u0060map\u0060 to \u0060\u0026BTreeMap\u003CMetricKey, (Scalar, Scalar)\u003E\u0060 in one and \u0060\u0026BTreeMap\u003CParamKey, (Scalar, Scalar)\u003E\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":"crab/src/cmd/metrics.rs"},"region":{"startLine":3582}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab5886eec87c04d3e385705564a3ed0df8ccd28eac5787ee57ed59c2edc97943"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crab/src/cmd/run.rs:3010-3016 | crab/src/cmd/run.rs:4667-4673 \u2014 both copies are in the same file, so extract the block 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":"crab/src/cmd/run.rs"},"region":{"startLine":3010}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8928277deedb35747f3197b6050737a2e1f2acb1a65623008576d366c1476b4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crab/src/core/error.rs:994-999 | crates/crab-cache/src/error.rs:179-184 \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 \u0060crab/src/core/error.rs:994\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":"crab/src/core/error.rs"},"region":{"startLine":994}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca0e9f9ce04e15f87fdbc779a79537f3581c251195c56ab0d279ec1ddf7eb331"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crab/src/git/push.rs:5045-5049 | crates/crab-staging/src/push_plan.rs:1158-1163 \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 \u0060crab/src/git/push.rs:5045\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":"crab/src/git/push.rs"},"region":{"startLine":5045}}}],"partialFingerprints":{"codehealthFindingId/v1":"f127296ad99d602c79723837c87823b0cba44a5a8ead0bef2819e5b70bfa0203"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crab/src/git/push.rs:7185-7189 | crab/src/git/push.rs:17454-17458 \u2014 both copies are in the same file, so extract the block 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":"crab/src/git/push.rs"},"region":{"startLine":7185}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d0a5c9136a3d8ded92b84247ef47a9a7f38cc278ff60388a204c70e20fed47b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crab/src/git/push.rs:11993-11997 | crab/src/git/push.rs:12052-12058 \u2014 both copies are in the same file, so extract the block 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 \u0060crab/src/git/push.rs:11993\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":"crab/src/git/push.rs"},"region":{"startLine":11993}}}],"partialFingerprints":{"codehealthFindingId/v1":"3189a426b58dff7e892f24d0a5ed45951f55c7cceecbd6ac29fdf6e4f6ff2ada"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crab/src/git/push.rs:13046-13050 | crab/src/git/push.rs:13076-13080 \u2014 both copies are in the same file, so extract the block 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":"crab/src/git/push.rs"},"region":{"startLine":13046}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b213fb7474b3c4a7f0480044b8d1561910620a41ead9034ec842eaacdad425d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crab/src/git/push.rs:18095-18105 | crates/crab-auth-server/src/receive.rs:1127-1137 \u2014 before extracting anything, compare \u0060crab/src/git/push.rs\u0060 and \u0060crates/crab-auth-server/src/receive.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 37 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/git/push.rs"},"region":{"startLine":18095}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b80c5513ad83fc15958e91fdf0ef3d0f0133b95d294b8a4f2c8f2d5e37d9aab"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crab/src/lfs/config.rs:306-310 | crates/crab-remote/src/local.rs:582-586 \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 \u0060crab/src/lfs/config.rs:306\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":"crab/src/lfs/config.rs"},"region":{"startLine":306}}}],"partialFingerprints":{"codehealthFindingId/v1":"34ff1f571b9dcde3a1ee64ee4bc6a37dd01450953dd048094a9d04562160bc64"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/crab-auth/src/token_cache.rs:205-209 | crates/crab-workflow/src/exp_queue.rs:194-198 \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/crab-auth/src/token_cache.rs:205\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/crab-auth/src/token_cache.rs"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"27b852f26b38f972f2fc6bd4534bbaa68f33597739acdf13c17cd22363b9bade"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/crab-cache-server/src/cache_store.rs:1479-1483 | crates/crab-cache-server/src/cache_store.rs:1590-1594 \u2014 both copies are in the same file, so extract the block 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/crab-cache-server/src/cache_store.rs:1479\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/crab-cache-server/src/cache_store.rs"},"region":{"startLine":1479}}}],"partialFingerprints":{"codehealthFindingId/v1":"23e5ccc675d7645e08b7a2fb61da0c955ef3b0499379d1a668751191f7af219e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/crab-cache/src/local_cache.rs:1657-1661 | crates/crab-cache/src/local_cache.rs:1669-1673 \u2014 both copies are in the same file, so extract the block 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/crab-cache/src/local_cache.rs:1657\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/crab-cache/src/local_cache.rs"},"region":{"startLine":1657}}}],"partialFingerprints":{"codehealthFindingId/v1":"27e5b3cfb1c3e7f23e5d6e3ec0f1d2e78cfb62baed973efc1ac30f09bde8b61c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/crab-coordination/src/push_lock.rs:1122-1126 | crates/crab-coordination/src/push_lock.rs:1147-1151 \u2014 both copies are in the same file, so extract the block 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/crab-coordination/src/push_lock.rs:1122\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/crab-coordination/src/push_lock.rs"},"region":{"startLine":1122}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b6d2f9e673b7bd5930e8982e45a0d19d512b2945e3356b480d2d77ccd8b6dbe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/crab-coordination/src/push_lock.rs:1132-1137 | crates/crab-coordination/src/push_lock.rs:1157-1162 \u2014 both copies are in the same file, so extract the block 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/crab-coordination/src/push_lock.rs:1132\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/crab-coordination/src/push_lock.rs"},"region":{"startLine":1132}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b004213d6afba95e8496fbd37e7716159d13d5a0fb83aadb6ebea2dffb69e85"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/crab-git/src/repack.rs:342-349 | crates/crab-git/src/repack.rs:1499-1506 \u2014 both copies are in the same file, so extract the block 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/crab-git/src/repack.rs:342\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/crab-git/src/repack.rs"},"region":{"startLine":342}}}],"partialFingerprints":{"codehealthFindingId/v1":"163ef6d7ab347be3a6eaf3c7e5f019d431bb7a7d4e7c06bcb1127a3c2ae038e1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/crab-http-server/src/labels.rs:232-236 | crates/crab-http-server/src/labels.rs:271-275 \u2014 both copies are in the same file, so extract the block 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 \u0060input\u0060 to \u0060std::result::Result\u003CJson\u003CLabelEdit\u003E\u0060 in one and \u0060std::result::Result\u003CJson\u003CLabelDelete\u003E\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/crab-http-server/src/labels.rs"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"203812eb4f4c8193fde9acd8202acf0da339fbd988c5fee128a59851e9727319"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/crab-metadata/src/commit_graph.rs:238-245 | crates/crab-metadata/src/commit_graph.rs:294-301 \u2014 both copies are in the same file, so extract the block 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/crab-metadata/src/commit_graph.rs"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"c238bd6e2ef12af547b09a474616032019a46c5b43b8299a96c8798bc2aaf20e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/crab-metadata/src/file_index_lookup.rs:465-469 | crates/crab-remote-git/src/reader.rs:435-440 \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/crab-metadata/src/file_index_lookup.rs:465\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/crab-metadata/src/file_index_lookup.rs"},"region":{"startLine":465}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5a1d28930574739af801fdd4acc7530482f684e2dcdabd9aebf88c88b5a0f52"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/crab-metadata/src/git_visibility.rs:938-942 | crates/crab-metadata/src/git_visibility.rs:1752-1758 \u2014 both copies are in the same file, so extract the block 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/crab-metadata/src/git_visibility.rs:938\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/crab-metadata/src/git_visibility.rs"},"region":{"startLine":938}}}],"partialFingerprints":{"codehealthFindingId/v1":"779293a9c891916feeb7355abadaadd1b22eac8a90b9f253b64675aec7472b01"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): crates/crab-metadata/src/path_state/storage.rs:99-103 | crates/crab-metadata/src/shallow_closure.rs:349-353 | crates/crab-metadata/src/split_commit_graph.rs:793-797 \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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/crab-metadata/src/path_state/storage.rs:99\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/crab-metadata/src/path_state/storage.rs"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8eade76573334eb3f47986d6f8a88709a1d16da5456c8c0de166319eaf37a42"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/crab-s3-gateway/src/gateway.rs:1346-1350 | crates/crab-s3-gateway/src/gateway.rs:1361-1365 \u2014 both copies are in the same file, so extract the block 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 \u0060req\u0060 to \u0060S3Request\u003CGetBucketLocationInput\u003E\u0060 in one and \u0060S3Request\u003CGetBucketVersioningInput\u003E\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/crab-s3-gateway/src/gateway.rs"},"region":{"startLine":1346}}}],"partialFingerprints":{"codehealthFindingId/v1":"daa7d43afd0a87d2ab40fdeaf69e6cf4bc8075f46f4547bda868c0f6ac593bf5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/crab-s3-gateway/src/gateway.rs:3438-3442 | crates/crab-s3-gateway/src/gateway.rs:3521-3525 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-s3-gateway/src/gateway.rs"},"region":{"startLine":3438}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c80fa631610c670db0ded8c8eb2b424faff4730d8c611c135673ff4d9a20f8b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/crab-s3-gateway/src/multipart.rs:347-351 | crates/crab-s3-gateway/src/multipart.rs:360-364 \u2014 both copies are in the same file, so extract the block 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/crab-s3-gateway/src/multipart.rs"},"region":{"startLine":347}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b986cc028e9f82d2c1896b22fd01cf9fa1599e0052096167d49def2d1a2ce9a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/crab-s3-gateway/src/server.rs:145-149 | crates/crab-s3-gateway/src/server.rs:169-173 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/crab-s3-gateway/src/server.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/crab-s3-gateway/src/server.rs"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5f5c7fe7381cdb8685c69736ccd917fa4f5fb0ef7c056cb398d9147531c7b79"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/crab-sdk/src/local/edit.rs:616-620 | crates/crab-sdk/src/local/edit.rs:716-720 \u2014 both copies are in the same file, so extract the block 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/crab-sdk/src/local/edit.rs:616\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/crab-sdk/src/local/edit.rs:622\u0060 calls \u0060Some\u0060 and \u0060crates/crab-sdk/src/local/edit.rs:722\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/crab-sdk/src/local/edit.rs"},"region":{"startLine":616}}}],"partialFingerprints":{"codehealthFindingId/v1":"6420de6bd76d29d0ba47761f12750b11478ab755366179929337fd6545e70e71"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (2\u20135 lines \u00D7 3): crates/crab-staging/src/index.rs:3286-3290 | crates/crab-staging/src/index.rs:6485-6486 | crates/crab-staging/src/index.rs:6591-6595 \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/crab-staging/src/index.rs:3286\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/crab-staging/src/index.rs"},"region":{"startLine":3286}}}],"partialFingerprints":{"codehealthFindingId/v1":"d53c85e6c0f2c6d648afc29a23f1cdf3cab5c8211b2e2f90f1bb37ebffe56884"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (4\u20135 lines \u00D7 3): crates/crab-staging/src/index.rs:3292-3296 | crates/crab-staging/src/index.rs:6597-6601 | crates/crab-staging/src/index.rs:6991-6994 \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/crab-staging/src/index.rs:3292\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/crab-staging/src/index.rs"},"region":{"startLine":3292}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce23ec90098c29bac6e60e1e1272fa3d945c8ef86c62c78c3cb84acfd69c895c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/crab-staging/src/index.rs:6123-6128 | crates/crab-staging/src/index.rs:7440-7445 \u2014 both copies are in the same file, so extract the block 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/crab-staging/src/index.rs:7440\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/crab-staging/src/index.rs"},"region":{"startLine":6123}}}],"partialFingerprints":{"codehealthFindingId/v1":"59fbc1f66136530cac175b75aa3c19d9a9f3203355e1e4f4ca7ec49738855ccc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/crab-staging/src/index.rs:6480-6484 | crates/crab-staging/src/index.rs:6586-6590 \u2014 both copies are in the same file, so extract the block 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/crab-staging/src/index.rs:6480\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/crab-staging/src/index.rs"},"region":{"startLine":6480}}}],"partialFingerprints":{"codehealthFindingId/v1":"c596063a9ad8c040e7855074821f89b7277bd7e1e9d38836e4a90ca5d6eb2d36"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/crab-staging/src/lib.rs:1097-1101 | crates/crab-staging/src/lib.rs:3993-3997 \u2014 both copies are in the same file, so extract the block 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/crab-staging/src/lib.rs:1097\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/crab-staging/src/lib.rs"},"region":{"startLine":1097}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fe30ce9a5976685b4bf09acf11340f9ffa73ca3aaf154e996bf81201d195e48"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/crab-staging/src/lib.rs:3348-3352 | crates/crab-staging/src/lib.rs:4230-4236 \u2014 both copies are in the same file, so extract the block 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/crab-staging/src/lib.rs"},"region":{"startLine":3348}}}],"partialFingerprints":{"codehealthFindingId/v1":"23449021b542625ed87c8655c7754916009d53982a1a52a87570feb22131c2d2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/crab-staging/src/lib.rs:3348-3352 | crates/crab-staging/src/lib.rs:3585-3589 \u2014 both copies are in the same file, so extract the block 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/crab-staging/src/lib.rs"},"region":{"startLine":3348}}}],"partialFingerprints":{"codehealthFindingId/v1":"df2673db12623c2f2b5e80ac3c4dc2636ccf23cd03ff4b8218fd65a4a03aadfe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/crab-staging/src/shard_replay.rs:92-96 | crates/crab-staging/src/shard_replay.rs:125-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/crab-staging/src/shard_replay.rs:92\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/crab-staging/src/shard_replay.rs"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"c93cb801fc897c76b166c8d1d42ef9506e3f8c679af785c3dddef85e29153283"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 2): crates/crab-vfs/src/overlay.rs:685-695 | crates/crab-vfs/src/overlay.rs:712-721 \u2014 both copies are in the same file, so extract the block 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/crab-vfs/src/overlay.rs:685\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/crab-vfs/src/overlay.rs"},"region":{"startLine":685}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d3a08d3944ec6dc55e2c138a768f59dcd35ca2dc84ffa05ed301fa3cff42a92"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/crab-vfs/src/publish.rs:310-314 | crates/crab-vfs/src/publish.rs:522-527 \u2014 both copies are in the same file, so extract the block 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/crab-vfs/src/publish.rs:310\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/crab-vfs/src/publish.rs"},"region":{"startLine":310}}}],"partialFingerprints":{"codehealthFindingId/v1":"b573d9ef9c011fd38012b750fc28418d07325a383946606f9435a2ce1347039a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/crab-workflow/src/executor.rs:1298-1302 | crates/crab-workflow/src/executor.rs:1781-1785 \u2014 both copies are in the same file, so extract the block 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/crab-workflow/src/executor.rs:1298\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/crab-workflow/src/executor.rs"},"region":{"startLine":1298}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b8a07783f4869d1e6228a1369311c576bd72ea1f6df277ba5d74459f311a0f2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): crab/src/audit.rs:241-252 | crab/src/replication/mod.rs:9511-9522 \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":"crab/src/audit.rs"},"region":{"startLine":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"6bade14ec8b3d1924e20dcbb48b07c2c9937078c401266000e5c37edfc0a3e07"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crab/src/cache/add_remote_candidates.rs:665-670 | crab/src/cache/hydrated_pointer.rs:442-447 \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":"crab/src/cache/add_remote_candidates.rs"},"region":{"startLine":665}}}],"partialFingerprints":{"codehealthFindingId/v1":"aaf61f26e3464296a98946f05b4867c2ffc0558f3051892b90c887918a3cd62e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crab/src/cmd/clone.rs:81-88 | crab/src/cmd/fetch.rs:60-67 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060stream\u0060 to \u0060Option\u003C\u0026std::sync::Mutex\u003CJsonlStream\u003CStdout\u003E\u003E\u003E\u0060 in one and \u0060Option\u003C\u0026Mutex\u003CJsonlStream\u003CStdout\u003E\u003E\u003E\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":"crab/src/cmd/clone.rs"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7782628d79deb7652bc597f7ba0308ef4b1f678dd5e3f30f3c9ff13eaca3bb7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crab/src/cmd/dag.rs:233-242 | crab/src/cmd/status_workflow.rs:364-373 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060args\u0060 to \u0060\u0026DagArgs\u0060 in one and \u0060\u0026StatusArgs\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":"crab/src/cmd/dag.rs"},"region":{"startLine":233}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac1a88e8ef63f82a8fe47fc3cbb7e6d153a35d22212acc5cdb20a326d55a5e46"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crab/src/cmd/data.rs:983-990 | crates/crab-workflow/src/stage_runtime.rs:715-721 \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":"crab/src/cmd/data.rs"},"region":{"startLine":983}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a9fa6e6d25c1f6d5768abd701d80ba9751e16c939dfd849ea5a5e0afd3928c8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crab/src/cmd/data.rs:1794-1802 | crab/src/cmd/exp.rs:2338-2346 \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":"crab/src/cmd/data.rs"},"region":{"startLine":1794}}}],"partialFingerprints":{"codehealthFindingId/v1":"9dd6ea8508cc05ad8db77b7a1b1bcc264889d9d17b51aa7e8ff3bd028240640a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 6): crab/src/cmd/dehydrate.rs:410-419 | crab/src/cmd/hydrate.rs:3492-3501 | crab/src/cmd/lfs/checkout.rs:507-516 | crab/src/cmd/reset.rs:447-456 | crab/src/cmd/status.rs:669-684 | crab/src/lfs/status.rs:101-110 \u2014 before extracting anything, compare \u0060crab/src/cmd/dehydrate.rs\u0060 and \u0060crab/src/cmd/hydrate.rs\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 223 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":"crab/src/cmd/dehydrate.rs"},"region":{"startLine":410}}}],"partialFingerprints":{"codehealthFindingId/v1":"5913a5971738975f204b16ef1b1960b3e4df611909585861e95cf1bf265e2035"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): crab/src/cmd/dehydrate.rs:421-432 | crab/src/cmd/hydrate.rs:3503-3514 | crab/src/cmd/reset.rs:458-469 \u2014 before extracting anything, compare \u0060crab/src/cmd/dehydrate.rs\u0060 and \u0060crab/src/cmd/hydrate.rs\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 223 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":"crab/src/cmd/dehydrate.rs"},"region":{"startLine":421}}}],"partialFingerprints":{"codehealthFindingId/v1":"6def232fa63e9f1cc9497c0ad5c401c8413c1f706144417027ff645c5259110d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crab/src/cmd/dehydrate.rs:1183-1190 | crab/src/cmd/hydrate.rs:2050-2057 \u2014 before extracting anything, compare \u0060crab/src/cmd/dehydrate.rs\u0060 and \u0060crab/src/cmd/hydrate.rs\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 223 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":"crab/src/cmd/dehydrate.rs"},"region":{"startLine":1183}}}],"partialFingerprints":{"codehealthFindingId/v1":"16a23ce2132a10587847d401946342fa15d2df58e39a3f963c8d4c9cb1b2d262"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crab/src/cmd/diff.rs:310-314 | crab/src/cmd/diff_driver.rs:256-260 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/cmd/diff.rs"},"region":{"startLine":310}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ebd459b470fd0ed231633c8dd31443bcfbfdbc3d79384917a5482bcb6c7b977"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crab/src/cmd/exp.rs:3625-3631 | crab/src/cmd/export.rs:345-351 \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":"crab/src/cmd/exp.rs"},"region":{"startLine":3625}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc7c3729c744082333033dcf54b54f5ae3deb4a46c1bdb06f6f1cbd587c9e2b7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): crab/src/cmd/exp.rs:4066-4073 | crab/src/cmd/run.rs:4097-4104 | crates/crab-workflow/src/executor.rs:246-253 \u2014 before extracting anything, compare \u0060crab/src/cmd/run.rs\u0060 and \u0060crates/crab-workflow/src/executor.rs\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 100 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/cmd/exp.rs"},"region":{"startLine":4066}}}],"partialFingerprints":{"codehealthFindingId/v1":"739c775547bf380bd88ead7c97bf9572818c27b28b3682a1237e8263232c74bc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crab/src/cmd/import.rs:397-404 | crab/src/import/coordinator.rs:1124-1131 \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":"crab/src/cmd/import.rs"},"region":{"startLine":397}}}],"partialFingerprints":{"codehealthFindingId/v1":"4da73456f7030533fa5554fdb67acddbfd4103ad34bdd58300861d092b283e39"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crab/src/cmd/init.rs:620-627 | crates/crab-git/src/worktree.rs:500-507 \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":"crab/src/cmd/init.rs"},"region":{"startLine":620}}}],"partialFingerprints":{"codehealthFindingId/v1":"9407abe38fae5d06dd9b6f55a72ec063a42030ec0eab72aeb4254e31f24703b7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crab/src/cmd/lfs/checkout.rs:518-527 | crab/src/lfs/status.rs:112-121 \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":"crab/src/cmd/lfs/checkout.rs"},"region":{"startLine":518}}}],"partialFingerprints":{"codehealthFindingId/v1":"2932317aab3feb84b30048ffba5980e8931d9d013c2afa5206075cc13e23ed44"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crab/src/cmd/lfs/dedup.rs:844-849 | crates/crab-http-server/src/catalog.rs:204-209 \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":"crab/src/cmd/lfs/dedup.rs"},"region":{"startLine":844}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7ef4b344e29c9a16753bdefcf2a5c8e62a38b8708c611cc92273a805576f969"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crab/src/cmd/lfs/fetch.rs:357-364 | crab/src/lfs/cache.rs:132-139 \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":"crab/src/cmd/lfs/fetch.rs"},"region":{"startLine":357}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc887cc6a6f484fdb3dc878ffc060b69eb05ed9a46524ef6157e7aff6f6482e3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): crab/src/cmd/lfs/fsck.rs:443-448 | crab/src/lfs/prune.rs:934-939 | crab/src/lfs/prune.rs:942-947 \u2014 before extracting anything, compare \u0060crab/src/cmd/lfs/fsck.rs\u0060 and \u0060crab/src/lfs/prune.rs\u0060 as WHOLE FILES: this scan already matched 3 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. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/cmd/lfs/fsck.rs"},"region":{"startLine":443}}}],"partialFingerprints":{"codehealthFindingId/v1":"985f24b2b783d9156220cf64f80ec0bd6426a7186fd4fccf538099482318fbd6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): crab/src/cmd/lfs/progress.rs:77-89 | crab/src/git/progress.rs:214-226 \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":"crab/src/cmd/lfs/progress.rs"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b3e24baaed4e8e627ce6386f1282ca71b22a2dda1aaa8e908a3e173750f8969"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crab/src/cmd/lfs/push.rs:460-467 | crab/src/lfs/transfer_agent.rs:909-916 \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":"crab/src/cmd/lfs/push.rs"},"region":{"startLine":460}}}],"partialFingerprints":{"codehealthFindingId/v1":"19abcdf77996f4eb8d4b2d33dcbefcfbee79f45ffdc96f4cc0c5c4b228369124"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): crab/src/cmd/metrics.rs:3404-3412 | crab/src/cmd/params.rs:305-313 | crates/crab-workflow/src/params_runtime.rs:157-165 \u2014 before extracting anything, compare \u0060crab/src/cmd/metrics.rs\u0060 and \u0060crab/src/cmd/params.rs\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 89 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/cmd/metrics.rs"},"region":{"startLine":3404}}}],"partialFingerprints":{"codehealthFindingId/v1":"d357d88f85e4d17978d67f109b0f680c9f0e92160100069dee6435b9171d40bd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crab/src/cmd/mount.rs:4758-4766 | crates/crab-vfs/src/nfs_control.rs:1452-1460 \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":"crab/src/cmd/mount.rs"},"region":{"startLine":4758}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf241089613d93f252e6b17fabf80a91712c55c55e64651a22bba5699eb1a552"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crab/src/cmd/replica.rs:2874-2879 | crab/src/replication/mod.rs:9491-9496 \u2014 before extracting anything, compare \u0060crab/src/cmd/replica.rs\u0060 and \u0060crab/src/replication/mod.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 47 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/cmd/replica.rs"},"region":{"startLine":2874}}}],"partialFingerprints":{"codehealthFindingId/v1":"2010fb2efea501e6ba9f42e78f14e5de89a03343190f26b2808ca559b8e88de4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crab/src/cmd/run.rs:2573-2580 | crab/src/cmd/status_workflow.rs:353-360 \u2014 before extracting anything, compare \u0060crab/src/cmd/run.rs\u0060 and \u0060crab/src/cmd/status_workflow.rs\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 66 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":"crab/src/cmd/run.rs"},"region":{"startLine":2573}}}],"partialFingerprints":{"codehealthFindingId/v1":"396deaa1e78be2059297ad48b6fbad2a7e6cf2ebd4a784b468d5ccd4feaf3bf5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crab/src/cmd/run.rs:4754-4761 | crab/src/cmd/status_workflow.rs:1325-1332 \u2014 before extracting anything, compare \u0060crab/src/cmd/run.rs\u0060 and \u0060crab/src/cmd/status_workflow.rs\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 66 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":"crab/src/cmd/run.rs"},"region":{"startLine":4754}}}],"partialFingerprints":{"codehealthFindingId/v1":"b97f14d0e41ecf405e118e07b8de79f8c1095f2a84186460af3d8d965f78c002"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crab/src/coordination/heartbeat.rs:97-104 | crates/crab-coordination/src/gc_fence.rs:758-763 \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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060crab/src/coordination/heartbeat.rs:111\u0060 calls \u0060cancel\u0060 and \u0060crates/crab-coordination/src/gc_fence.rs:764\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":"crab/src/coordination/heartbeat.rs"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"cca9190187f539eb0a7751ddf44d4715d1d19f858a3c03923ca7f9e3dd6b68ca"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crab/src/coordination/heartbeat.rs:117-126 | crates/crab-coordination/src/gc_fence.rs:767-772 \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":"crab/src/coordination/heartbeat.rs"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d685eafc64f1f5cf0d64ea059e5e0d0b4acf4a91a2b3ae9f2d81d4b82c024c3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crab/src/core/config.rs:788-795 | crates/crab-types/src/replication.rs:55-62 \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":"crab/src/core/config.rs"},"region":{"startLine":788}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c81a779db58173fae7ec97bf99a0624d4dd22db4a953ee8f56dca106aa87b8e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crab/src/core/remote_layout.rs:13-19 | crab/src/metadata/manifest.rs:18-24 \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 \u0060crab/src/core/remote_layout.rs:13\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":"crab/src/core/remote_layout.rs"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"c269409deb1915bf8b688e2369c8403a557776d63ae883c976dfdfe4e9e84903"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 4): crab/src/git/clean.rs:2677-2683 | crab/src/git/delta_reconstruct.rs:217-223 | crab/src/git/smudge.rs:767-773 | crates/crab-vfs/src/hydration.rs:1503-1509 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 4 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 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/git/clean.rs"},"region":{"startLine":2677}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c23b5e9d8f6d2fcd5e3395f9626f8b27e9a517b591b3aad253a501cf23a6d7c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crab/src/git/pack.rs:1055-1062 | crates/crab-auth-server/src/view/git_workspace.rs:383-389 \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":"crab/src/git/pack.rs"},"region":{"startLine":1055}}}],"partialFingerprints":{"codehealthFindingId/v1":"c725ea545b41f13c9261fc043651bc4f350f3669c8a9d19f0ba86d55d22146ad"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crab/src/git/remote_helper.rs:2987-2991 | crates/crab-git/src/worktree.rs:533-537 \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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060left\u0060 to \u0060\u0026std::path::Path\u0060 in one and \u0060\u0026Path\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":"crab/src/git/remote_helper.rs"},"region":{"startLine":2987}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e6e3d87d16c7ea1f606b110dd840a26697cde105ce1617bd1f9048ec3073662"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crab/src/import/assemble.rs:587-594 | crab/src/import/summary.rs:222-229 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/import/assemble.rs"},"region":{"startLine":587}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5dd4063b1088a95427afc4e11b8cc768c1fb4c5d9d4fcd08f4c360b698bb5f4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crab/src/import/coordinator.rs:1915-1920 | crab/src/import/journal.rs:1323-1328 \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":"crab/src/import/coordinator.rs"},"region":{"startLine":1915}}}],"partialFingerprints":{"codehealthFindingId/v1":"18c866c82b61ee5b0e70aeb1d1617a207d31e5a507ecae2b803a7058c4e39d5c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 4): crab/src/lfs/lifecycle.rs:282-289 | crates/crab-http-server/src/git_import.rs:1064-1071 | crates/crab-read/src/upload_pack.rs:247-254 | crates/crab-vfs/src/nfs.rs:1887-1894 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 4 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 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/lfs/lifecycle.rs"},"region":{"startLine":282}}}],"partialFingerprints":{"codehealthFindingId/v1":"8785bdc316ef084cc2b4acb8013bc1a339121e48bc662b82f25a8d18eed3bba3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crab/src/metadata/metadb/stores/mod.rs:43-50 | crates/crab-metadata/src/key_codec.rs:247-256 \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":"crab/src/metadata/metadb/stores/mod.rs"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"73c34c01a4422fa4b85c901ab5650d7f44698f6db24759786cd1a18d89f5c2ce"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crab/src/replication/mod.rs:134-142 | crates/crab-coordination/src/write_coordinator.rs:263-271 \u2014 before extracting anything, compare \u0060crab/src/replication/mod.rs\u0060 and \u0060crates/crab-coordination/src/write_coordinator.rs\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 32 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/replication/mod.rs"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a37ff06bf93b3e24e159bb519ce59dbabbfa52b0ad4cf7fc60b54c122c8d22c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crab/src/replication/mod.rs:3872-3878 | crates/crab-coordination/src/spanner_coordinator.rs:1337-1343 \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":"crab/src/replication/mod.rs"},"region":{"startLine":3872}}}],"partialFingerprints":{"codehealthFindingId/v1":"aae400fda839d5065d2817369f301742400c2ac834e72b9f1775b4e9cf5de83c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crab/src/storage/retry.rs:421-428 | crab/src/tier/restore.rs:290-297 \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":"crab/src/storage/retry.rs"},"region":{"startLine":421}}}],"partialFingerprints":{"codehealthFindingId/v1":"24aa5a440cf3eb653abe8aa4fc4a3d3c2600a4a2f3c46fe8c4d517ba0aa7fe3f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): crab/src/tier/provider/azure.rs:480-486 | crab/src/tier/provider/gcs.rs:455-461 | crab/src/tier/provider/s3.rs:910-917 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 3 call sites, so a change lands once. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060crab/src/tier/provider/gcs.rs:466\u0060 calls \u0060is_gcs_not_found\u0060, \u0060Response\u0060 and \u0060crab/src/tier/provider/azure.rs:489\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":"crab/src/tier/provider/azure.rs"},"region":{"startLine":480}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2ba019473b669ac9eee0fa98302561f1122cd45bede3c7b28a4be2cd73c5445"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/crab-auth-server/src/receive/workflow.rs:82-89 | crates/crab-workflow/src/store.rs:95-102 \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/crab-auth-server/src/receive/workflow.rs"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"2937beb0178047960eede6c4d054ef37954706fe4d8f8ef9d7c2147ca7225a2a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 4): crates/crab-auth/src/aws_oidc.rs:58-69 | crates/crab-auth/src/azure_entra.rs:89-100 | crates/crab-auth/src/crab_auth_client.rs:129-140 | crates/crab-auth/src/gcp_federation.rs:90-101 \u2014 before extracting anything, compare \u0060crates/crab-auth/src/aws_oidc.rs\u0060 and \u0060crates/crab-auth/src/azure_entra.rs\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 88 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 \u0060cached\u0060 to \u0060Option\u003C\u0026CachedAwsCreds\u003E\u0060 in one and \u0060Option\u003C\u0026CachedAzureCreds\u003E\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/crab-auth/src/aws_oidc.rs"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"0dd2ee60c09ae8bf36d90767ebd8062b297b654dc8dfe6f2134ee3835e2899c5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 4): crates/crab-auth/src/aws_oidc.rs:216-221 | crates/crab-auth/src/azure_entra.rs:246-251 | crates/crab-auth/src/crab_auth_client.rs:540-545 | crates/crab-auth/src/gcp_federation.rs:272-277 \u2014 before extracting anything, compare \u0060crates/crab-auth/src/aws_oidc.rs\u0060 and \u0060crates/crab-auth/src/azure_entra.rs\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 88 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/crab-auth/src/aws_oidc.rs"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"672a1485b9744c45be52630986cc9f718df86ee0e6a6b59514ecf5f4cfeebb54"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 4): crates/crab-auth/src/aws_oidc.rs:232-237 | crates/crab-auth/src/azure_entra.rs:262-267 | crates/crab-auth/src/crab_auth_client.rs:556-561 | crates/crab-auth/src/gcp_federation.rs:288-293 \u2014 before extracting anything, compare \u0060crates/crab-auth/src/aws_oidc.rs\u0060 and \u0060crates/crab-auth/src/azure_entra.rs\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 88 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/crab-auth/src/aws_oidc.rs:232\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/crab-auth/src/aws_oidc.rs"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8a02b4681dbfd947a9b4d0211167d7470c8ed1b6c7f26b5f33f80c767921a0f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/crab-auth/src/credentials.rs:104-109 | crates/crab-storage/src/provider_store.rs:78-83 \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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060f\u0060 to \u0060\u0026mut fmt::Formatter\u003C\u0027_\u003E\u0060 in one and \u0060\u0026mut std::fmt::Formatter\u003C\u0027_\u003E\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/crab-auth/src/credentials.rs"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"2663eea652c9d30695fdd505b22148dd1bb32fc3d651b6a2e481242b4ad78247"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/crab-cache-server/src/handlers.rs:1067-1073 | crates/crab-cache-server/src/preflight.rs:663-669 \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/crab-cache-server/src/handlers.rs"},"region":{"startLine":1067}}}],"partialFingerprints":{"codehealthFindingId/v1":"30230bb4689cf9d0da1f19ea40aea77a68e885714bc8719baf8b88ff18ea8bf6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/crab-cache/src/active_probe.rs:19-26 | crates/crab-cache/src/service.rs:127-134 \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/crab-cache/src/active_probe.rs"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"713da048bec43d599086cf8f6f6057148f5c463120475bf1cc09557f71134d74"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): crates/crab-cache/src/catalog.rs:1012-1024 | crates/crab-cache/src/shard_hints.rs:494-506 \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/crab-cache/src/catalog.rs"},"region":{"startLine":1012}}}],"partialFingerprints":{"codehealthFindingId/v1":"53c2fa2b4dac2f4f942458d67c659666866fb53f611cb33db4e206dc492f3915"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/crab-cache/src/private_fs/platform/scan.rs:21-31 | crates/crab-cache/src/private_fs/windows.rs:265-273 \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/crab-cache/src/private_fs/platform/scan.rs:21\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/crab-cache/src/private_fs/platform/scan.rs"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d520d198215be7978212429213804d91034eb81ff498a9c86bfb01b31718742"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): crates/crab-coordination/src/cosmosdb_coordinator.rs:820-824 | crates/crab-coordination/src/dynamodb_coordinator.rs:1088-1092 | crates/crab-coordination/src/spanner_coordinator.rs:1223-1227 \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/crab-coordination/src/cosmosdb_coordinator.rs"},"region":{"startLine":820}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5666841b1cd8a0d0baee633f64acb564ae6a2a2484c1e99fe022b485155218c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/crab-coordination/src/cosmosdb_coordinator.rs:826-834 | crates/crab-coordination/src/spanner_coordinator.rs:1233-1241 \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/crab-coordination/src/cosmosdb_coordinator.rs"},"region":{"startLine":826}}}],"partialFingerprints":{"codehealthFindingId/v1":"33fc3b6aa8e5353fef4fcf69f7895da826c46748e30f1e27c5bac86c92cdefbc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/crab-git/src/lfs_pointer.rs:330-336 | crates/crab-http-server/src/peer.rs:1437-1443 \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/crab-git/src/lfs_pointer.rs"},"region":{"startLine":330}}}],"partialFingerprints":{"codehealthFindingId/v1":"78747a4f808e1e66b486a41bd1296a4f59ffbd7e944dbf0b9e12e89fbf2ef2e8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/crab-git/src/pack.rs:636-643 | crates/crab-sdk/src/store_options.rs:144-151 \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/crab-git/src/pack.rs"},"region":{"startLine":636}}}],"partialFingerprints":{"codehealthFindingId/v1":"18cbc14dd953cf9adbcda0db4c06be9959989674b486c7be2cb146328d0e4392"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/crab-http-server/src/cells.rs:1342-1348 | crates/crab-workflow/src/stage_cache_entry.rs:461-467 \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/crab-http-server/src/cells.rs"},"region":{"startLine":1342}}}],"partialFingerprints":{"codehealthFindingId/v1":"2814ebace20cdb37c7e1caed6e7f1f51184022a47acfd51fd8cc7fc95cb074a3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/crab-http-server/src/cells/repository/checks_codec.rs:326-332 | crates/crab-http-server/src/cells/repository/codec.rs:793-799 \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/crab-http-server/src/cells/repository/checks_codec.rs"},"region":{"startLine":326}}}],"partialFingerprints":{"codehealthFindingId/v1":"80f57eda96fe45f54a38083fdff472263c0ca663959cb1e1ac5a51ee37b8073f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): crates/crab-http-server/src/cells/repository/pull_review_threads.rs:1242-1248 | crates/crab-http-server/src/cells/repository/pulls.rs:845-851 | crates/crab-http-server/src/cells/repository/releases.rs:1138-1144 \u2014 before extracting anything, compare \u0060crates/crab-http-server/src/cells/repository/pull_review_threads.rs\u0060 and \u0060crates/crab-http-server/src/cells/repository/pulls.rs\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 50 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/crab-http-server/src/cells/repository/pull_review_threads.rs"},"region":{"startLine":1242}}}],"partialFingerprints":{"codehealthFindingId/v1":"23fac9da3f90730ce83f2d2ed2aee303d7c9d6b7fe6d9ccb6e20a2a2472ad453"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 4): crates/crab-http-server/src/checks.rs:843-849 | crates/crab-http-server/src/issues.rs:128-134 | crates/crab-http-server/src/labels.rs:313-319 | crates/crab-http-server/src/statuses.rs:352-358 \u2014 before extracting anything, compare \u0060crates/crab-http-server/src/checks.rs\u0060 and \u0060crates/crab-http-server/src/issues.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 46 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/crab-http-server/src/checks.rs"},"region":{"startLine":843}}}],"partialFingerprints":{"codehealthFindingId/v1":"8531459e7b425db8155e8541d363ad9705784d8004dc265a25bee8ec17ab3aa8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): crates/crab-http-server/src/checks.rs:851-855 | crates/crab-http-server/src/labels.rs:333-337 | crates/crab-http-server/src/statuses.rs:360-364 \u2014 before extracting anything, compare \u0060crates/crab-http-server/src/checks.rs\u0060 and \u0060crates/crab-http-server/src/labels.rs\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 51 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/crab-http-server/src/checks.rs"},"region":{"startLine":851}}}],"partialFingerprints":{"codehealthFindingId/v1":"a31a86f8e1521eb12f709e595858c033768322418edf9847f5d730774a6a7281"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/crab-http-server/src/config.rs:136-140 | crates/crab-s3-gateway/src/config.rs:107-111 \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/crab-http-server/src/config.rs"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"d60585faaa7b39b209208a24099c18ec83a263b30c725eaa52009d9e3350e14a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): crates/crab-http-server/src/git.rs:64-70 | crates/crab-http-server/src/lfs.rs:90-96 | crates/crab-http-server/src/receive.rs:100-106 \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/crab-http-server/src/git.rs"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"682b31b12eea10ec3bbe40af57561c04e737f3a44316c12c3588bc8341583f64"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/crab-http-server/src/lfs.rs:81-86 | crates/crab-http-server/src/receive.rs:122-127 \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/crab-http-server/src/lfs.rs"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"d010ecc3fc3d376cf0d70a62d40f0f72235506f5b0b01667e772512722c597c8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crates/crab-http-server/src/metrics.rs:923-933 | crates/crab-s3-gateway/src/metrics.rs:209-219 \u2014 before extracting anything, compare \u0060crates/crab-http-server/src/metrics.rs\u0060 and \u0060crates/crab-s3-gateway/src/metrics.rs\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 76 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-http-server/src/metrics.rs"},"region":{"startLine":923}}}],"partialFingerprints":{"codehealthFindingId/v1":"013cbcb1ca0cc21cc6198e2cb1d909ef17de306005b018d11c5dc022b63e019c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/crab-http-server/src/metrics.rs:1699-1708 | crates/crab-s3-gateway/src/metrics.rs:718-727 \u2014 before extracting anything, compare \u0060crates/crab-http-server/src/metrics.rs\u0060 and \u0060crates/crab-s3-gateway/src/metrics.rs\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 76 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-http-server/src/metrics.rs"},"region":{"startLine":1699}}}],"partialFingerprints":{"codehealthFindingId/v1":"f16fdba06bccc976a113c1a1abb1eec26e80b5bb35b2ea0c0349c4cdc3a77dd3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/crab-http-server/src/metrics.rs:1712-1718 | crates/crab-s3-gateway/src/metrics.rs:731-737 \u2014 before extracting anything, compare \u0060crates/crab-http-server/src/metrics.rs\u0060 and \u0060crates/crab-s3-gateway/src/metrics.rs\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 76 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-http-server/src/metrics.rs"},"region":{"startLine":1712}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b7c8be388c7d0037e6916c31521d26e6935e85df9af88595d5b5b6f75125cc8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/crab-http-server/src/metrics.rs:1727-1735 | crates/crab-s3-gateway/src/metrics.rs:746-754 \u2014 before extracting anything, compare \u0060crates/crab-http-server/src/metrics.rs\u0060 and \u0060crates/crab-s3-gateway/src/metrics.rs\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 76 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-http-server/src/metrics.rs"},"region":{"startLine":1727}}}],"partialFingerprints":{"codehealthFindingId/v1":"7733c1e3d803ff49fe65d7677204124ec5ffb19b22932f4dd7089c4d72ba6941"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/crab-http-server/src/metrics.rs:2291-2299 | crates/crab-s3-gateway/src/metrics.rs:1008-1016 \u2014 before extracting anything, compare \u0060crates/crab-http-server/src/metrics.rs\u0060 and \u0060crates/crab-s3-gateway/src/metrics.rs\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 76 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-http-server/src/metrics.rs"},"region":{"startLine":2291}}}],"partialFingerprints":{"codehealthFindingId/v1":"4791a64420997a0c0b3fcb01195111be9f885d4b4a8df35a98bfaaf7129303bd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/crab-http-server/src/metrics.rs:2301-2310 | crates/crab-s3-gateway/src/metrics.rs:1031-1040 \u2014 before extracting anything, compare \u0060crates/crab-http-server/src/metrics.rs\u0060 and \u0060crates/crab-s3-gateway/src/metrics.rs\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 76 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-http-server/src/metrics.rs"},"region":{"startLine":2301}}}],"partialFingerprints":{"codehealthFindingId/v1":"69b4dd81b63f2667c87de577ada294206f35293375c9047c0acd3da3a9e0a857"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/crab-http-server/src/metrics.rs:2312-2321 | crates/crab-s3-gateway/src/metrics.rs:1042-1051 \u2014 before extracting anything, compare \u0060crates/crab-http-server/src/metrics.rs\u0060 and \u0060crates/crab-s3-gateway/src/metrics.rs\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 76 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-http-server/src/metrics.rs"},"region":{"startLine":2312}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b990a2cd2ceb74b0244f40936f40ec98b428aae954691a27455632963255166"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/crab-http-server/src/pulls/storage.rs:700-706 | crates/crab-http-server/src/releases/storage.rs:394-400 \u2014 \u0060crates/crab-http-server/src/pulls/storage.rs\u0060 and \u0060crates/crab-http-server/src/releases/storage.rs\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 6 separate duplicated blocks between them, totalling at least 55 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-http-server/src/pulls/storage.rs"},"region":{"startLine":700}}}],"partialFingerprints":{"codehealthFindingId/v1":"587135ee0e3d0ccbc8a08dca58d368ab4a857f58e7c8700b99339de9abe47f95"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/crab-metadata/src/file_index_lookup.rs:64-70 | crates/crab-metadata/src/remote_index.rs:540-546 \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/crab-metadata/src/file_index_lookup.rs"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"7efa8fac083e4ed619e61134e9442bdeaa2c40f937ce60064ba1c0a553a8a62f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/crab-metadata/src/shallow_closure.rs:629-636 | crates/crab-metadata/src/split_commit_graph.rs:888-895 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060path\u0060 to \u0060\u0026str\u0060 in one and \u0060\u0026object_store::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/crab-metadata/src/shallow_closure.rs"},"region":{"startLine":629}}}],"partialFingerprints":{"codehealthFindingId/v1":"a787becf8fe80a6afe6191d568e86df79cbab22819a82c1e73033507528d9d78"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/crab-s3-gateway/src/attributes.rs:166-172 | crates/crab-s3-gateway/src/gateway.rs:3491-3497 \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/crab-s3-gateway/src/attributes.rs"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4a08b4eeb2960acebf6a4706a70b67efb2c5ba77c80fd6a23be278783a7ab49"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/crab-workflow/src/artifact.rs:2032-2036 | crates/crab-workflow/src/dvc_inventory.rs:2597-2601 \u2014 before extracting anything, compare \u0060crates/crab-workflow/src/artifact.rs\u0060 and \u0060crates/crab-workflow/src/dvc_inventory.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 39 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/crab-workflow/src/artifact.rs"},"region":{"startLine":2032}}}],"partialFingerprints":{"codehealthFindingId/v1":"a458b45854181aa178c88d3a764f0cfac6503e95bc33f49cbdfb4fea86de1507"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): crates/crab-workflow/src/checkpoint.rs:312-317 | crates/crab-workflow/src/dvc_inventory.rs:2269-2274 | crates/crab-workflow/src/external_hash.rs:231-236 \u2014 before extracting anything, compare \u0060crates/crab-workflow/src/checkpoint.rs\u0060 and \u0060crates/crab-workflow/src/dvc_inventory.rs\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 34 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/crab-workflow/src/checkpoint.rs"},"region":{"startLine":312}}}],"partialFingerprints":{"codehealthFindingId/v1":"772e8b5ea387701a42aabb1ded4a3ec7b3dc84030a36c80ab4d197406f975a8b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/crab-workflow/src/exp_worktree.rs:1284-1292 | crates/crab-workflow/src/params.rs:409-417 \u2014 before extracting anything, compare \u0060crates/crab-workflow/src/exp_worktree.rs\u0060 and \u0060crates/crab-workflow/src/params.rs\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 94 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/crab-workflow/src/exp_worktree.rs"},"region":{"startLine":1284}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbe365f450808e0386256a5bab22a9a3f8f139a410fcc792350433bd07973940"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/crab-workflow/src/template/foreach.rs:241-249 | crates/crab-workflow/src/template/matrix.rs:263-271 \u2014 before extracting anything, compare \u0060crates/crab-workflow/src/template/foreach.rs\u0060 and \u0060crates/crab-workflow/src/template/matrix.rs\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 106 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/crab-workflow/src/template/foreach.rs:241\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/crab-workflow/src/template/foreach.rs"},"region":{"startLine":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6faca5820047ab24f7cead413b4b135569303fd55a0609b3ac6cf26e118da4b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crab/src/cmd/adopt.rs:344-348 | crab/src/cmd/unadopt.rs:196-200 \u2014 before extracting anything, compare \u0060crab/src/cmd/adopt.rs\u0060 and \u0060crab/src/cmd/unadopt.rs\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 108 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 \u0060crab/src/cmd/adopt.rs:344\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/cmd/adopt.rs"},"region":{"startLine":344}}}],"partialFingerprints":{"codehealthFindingId/v1":"29dee0635cdcd26148ffffe7b3a147ae785829a220312696418d5a2dc5b1569c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crab/src/cmd/stage/list.rs:301-309 | crates/crab-workflow/src/discover.rs:373-383 \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":"crab/src/cmd/stage/list.rs"},"region":{"startLine":301}}}],"partialFingerprints":{"codehealthFindingId/v1":"8df0d975b4e3558fea1e5bf28376e6db0f72ef544f106331160172edce4d3a0a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): crab/src/cost/inventory/live.rs:237-243 | crab/src/tier/plan.rs:106-112 | crab/src/tier/plan.rs:115-121 \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":"crab/src/cost/inventory/live.rs"},"region":{"startLine":237}}}],"partialFingerprints":{"codehealthFindingId/v1":"380667a3882d9604b2b3f9a8f0192b398bb42403a1fc98ad4f07ecdb5e779d59"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crab/src/replication/mod.rs:2126-2136 | crates/crab-coordination/src/write_coordinator.rs:512-522 \u2014 before extracting anything, compare \u0060crab/src/replication/mod.rs\u0060 and \u0060crates/crab-coordination/src/write_coordinator.rs\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 32 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060check\u0060 to \u0060\u0026ControlPlaneCheck\u0060 in one and \u0060\u0026CoordinatorControlPlaneCheck\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":"crab/src/replication/mod.rs"},"region":{"startLine":2126}}}],"partialFingerprints":{"codehealthFindingId/v1":"559455ac03b32015db9a8f14946de5aa9534e68bf8f14d0327d46c39ffeb4ad3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/crab-cache-store/src/xorb_read.rs:528-533 | crates/crab-s3-gateway/src/repository.rs:242-247 \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/crab-cache-store/src/xorb_read.rs"},"region":{"startLine":528}}}],"partialFingerprints":{"codehealthFindingId/v1":"5335e2aabff99af2475eadcf9e98c1d19590a5b3224d822bb23a72a4a4a03eae"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/crab-coordination/src/cosmosdb_coordinator.rs:847-851 | crates/crab-coordination/src/spanner_coordinator.rs:1254-1258 \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/crab-coordination/src/cosmosdb_coordinator.rs:847\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/crab-coordination/src/cosmosdb_coordinator.rs"},"region":{"startLine":847}}}],"partialFingerprints":{"codehealthFindingId/v1":"56d46584823a241c8c3f9dd380920518972a14cd187c6f14801a63bef8e4d371"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/crab-http-server/src/assignees.rs:46-52 | crates/crab-http-server/src/labels.rs:142-148 \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/crab-http-server/src/assignees.rs"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"4dcddcaa1b5d1112f721390eeb37db0ea780b0fea0c78ae4f469e90ad9bc82a0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/crab-http-server/src/cells/repository/codec.rs:725-731 | crates/crab-http-server/src/cells/repository/settings_codec.rs:81-87 \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/crab-http-server/src/cells/repository/settings_codec.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/crab-http-server/src/cells/repository/codec.rs"},"region":{"startLine":725}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6f9f8e9717f8e9014cd4d0901cb9d865ef07919ef3ec4708d1500725a403de5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crates/crab-http-server/src/issues.rs:104-114 | crates/crab-http-server/src/pulls.rs:279-289 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060comment\u0060 to \u0060\u0026CommentRecord\u0060 in one and \u0060\u0026PullComment\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/crab-http-server/src/issues.rs"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdf2b076dd9de928bcce71b5adf46b14c0dff062b54d2335b7f9ef2954664330"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/crab-http-server/src/pulls/storage.rs:160-169 | crates/crab-http-server/src/releases/storage.rs:70-79 \u2014 \u0060crates/crab-http-server/src/pulls/storage.rs\u0060 and \u0060crates/crab-http-server/src/releases/storage.rs\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 6 separate duplicated blocks between them, totalling at least 55 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/crab-http-server/src/pulls/storage.rs:160\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/crab-http-server/src/pulls/storage.rs"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"0343ed1700ff563caa7313507b8c6c69e3b4ecef4892271da63abfb8f6754c95"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/crab-read/src/hydrator.rs:624-632 | crates/crab-read/src/hydrator/buffer.rs:71-79 \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/crab-read/src/hydrator.rs"},"region":{"startLine":624}}}],"partialFingerprints":{"codehealthFindingId/v1":"1afb85fc3b422174b697d199c30df95858a50b1165a12b466f0d682da7131d80"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): crates/crab-workflow/src/exp_worktree.rs:1220-1233 | crates/crab-workflow/src/params.rs:368-381 \u2014 before extracting anything, compare \u0060crates/crab-workflow/src/exp_worktree.rs\u0060 and \u0060crates/crab-workflow/src/params.rs\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 94 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/crab-workflow/src/exp_worktree.rs"},"region":{"startLine":1220}}}],"partialFingerprints":{"codehealthFindingId/v1":"5105aec292f483e6a370756508e4d513877c6ece4b22a52905d2e7426d52ec3c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/crab-workflow/src/exp_worktree.rs:1235-1242 | crates/crab-workflow/src/params.rs:383-390 \u2014 before extracting anything, compare \u0060crates/crab-workflow/src/exp_worktree.rs\u0060 and \u0060crates/crab-workflow/src/params.rs\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 94 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/crab-workflow/src/exp_worktree.rs"},"region":{"startLine":1235}}}],"partialFingerprints":{"codehealthFindingId/v1":"aabfa30950edc063bd1ed87ad50a0229b497cc2288e0d5a6c34293095a76c22f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): crates/crab-staging/src/index.rs:2298-2317 | crates/crab-staging/src/index.rs:2547-2566 \u2014 both copies are in the same file, so extract the block 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/crab-staging/src/index.rs:2298\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/crab-staging/src/index.rs"},"region":{"startLine":2298}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2ebac0556a952153b0ec60fee419399fe5f7e052e61e59b88e07cc821adfacf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): crates/crab-staging/src/lib.rs:3183-3200 | crates/crab-staging/src/lib.rs:4242-4260 \u2014 both copies are in the same file, so extract the block 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/crab-staging/src/lib.rs:3183\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/crab-staging/src/lib.rs"},"region":{"startLine":3183}}}],"partialFingerprints":{"codehealthFindingId/v1":"02173ff1a9578aee07c5366f960c8116c00c3cbe2e91962582346b14bd770789"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): crates/crab-staging/src/index.rs:8363-8380 | crates/crab-staging/src/index.rs:8426-8443 \u2014 both copies are in the same file, so extract the block 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/crab-staging/src/index.rs:8363\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/crab-staging/src/index.rs"},"region":{"startLine":8363}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fa201ea1924fef46589fffdda30f8c2980fbd4dbc445738430776ea58bc74f8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (42\u201343 lines \u00D7 3): crab/src/cmd/doctor.rs:1317-1358 | crab/src/cmd/doctor.rs:1396-1438 | crab/src/cmd/doctor.rs:1471-1512 \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 \u0060crab/src/cmd/doctor.rs:1396\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":"crab/src/cmd/doctor.rs"},"region":{"startLine":1317}}}],"partialFingerprints":{"codehealthFindingId/v1":"83da1ca7c07927accf4791ce5c6faf08cb850e1481ba9647bb87aa97de8d36d2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): crab/src/lfs/track.rs:489-504 | crab/src/lfs/track.rs:529-544 \u2014 both copies are in the same file, so extract the block 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 \u0060crab/src/lfs/track.rs:489\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":"crab/src/lfs/track.rs"},"region":{"startLine":489}}}],"partialFingerprints":{"codehealthFindingId/v1":"bedfc2ef1444b7938897e03c5b23fb000a0110f7479296e00a6e34d73cc106a7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3): crab/src/storage/head_class.rs:149-164 | crab/src/storage/head_class.rs:169-184 | crab/src/storage/head_class.rs:268-281 \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 \u0060crab/src/storage/head_class.rs:149\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":"crab/src/storage/head_class.rs"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"967215d04228165d294d250247b5bec41ae0ff28d0eb60280c10ead80ecd6e2c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 3): crab/src/git/push.rs:5354-5368 | crab/src/git/push.rs:5383-5397 | crab/src/git/push.rs:5419-5434 \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 \u0060crab/src/git/push.rs:5354\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":"crab/src/git/push.rs"},"region":{"startLine":5354}}}],"partialFingerprints":{"codehealthFindingId/v1":"12d2746fedd2d77c544041e2b8e3952dd280f33bba9f1af92d20c16bf30d77d6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/crab-staging/src/index.rs:4005-4019 | crates/crab-staging/src/index.rs:6300-6305 \u2014 both copies are in the same file, so extract the block 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/crab-staging/src/index.rs:4005\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/crab-staging/src/index.rs:6308\u0060 calls \u0060iter\u0060 and \u0060crates/crab-staging/src/index.rs:4022\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/crab-staging/src/index.rs"},"region":{"startLine":4005}}}],"partialFingerprints":{"codehealthFindingId/v1":"d82a3d02385b6b0fdbebf3118e41d04d66870a39b18760f84bc20a088988319b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): crab/src/main.rs:3538-3552 | crab/src/main.rs:3599-3613 \u2014 both copies are in the same file, so extract the block 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 \u0060crab/src/main.rs:3538\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":"crab/src/main.rs"},"region":{"startLine":3538}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d40f6dcf16675df63aa9afb770357c8dde2f3f1bdb7dbfb16bb2b2f44edd008"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): crab/src/git/push.rs:16951-16965 | crab/src/git/push.rs:17036-17050 \u2014 both copies are in the same file, so extract the block 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 \u0060crab/src/git/push.rs:16951\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, \u0060crab/src/git/push.rs:17035\u0060 calls \u0060is_some\u0060 and \u0060crab/src/git/push.rs:16950\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":"crab/src/git/push.rs"},"region":{"startLine":16951}}}],"partialFingerprints":{"codehealthFindingId/v1":"711ba74ff0c7230cae35878e367822ac1bf1aba2ddb4bb23aaf26cad4d17216c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): crab/src/storage/head_class.rs:354-368 | crab/src/storage/head_class.rs:371-385 \u2014 both copies are in the same file, so extract the block 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":"crab/src/storage/head_class.rs"},"region":{"startLine":354}}}],"partialFingerprints":{"codehealthFindingId/v1":"94798ea4e177d54b922c634e2421c9a21051f22cd31dacfde50516f1cb44f359"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3): crates/crab-staging/src/index.rs:1447-1460 | crates/crab-staging/src/index.rs:1476-1489 | crates/crab-staging/src/index.rs:1508-1521 \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/crab-staging/src/index.rs:1447\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/crab-staging/src/index.rs"},"region":{"startLine":1447}}}],"partialFingerprints":{"codehealthFindingId/v1":"b965dde6d442f5dc8b85530a89de454cc8e5e4a1fd4fefa25f9d4c73e2f632cd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crab/src/cmd/gc/bucket.rs:248-257 | crab/src/cmd/gc/mod.rs:439-452 \u2014 before extracting anything, compare \u0060crab/src/cmd/gc/bucket.rs\u0060 and \u0060crab/src/cmd/gc/mod.rs\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 31 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 \u0060args\u0060 to \u0060\u0026BucketGcArgs\u0060 in one and \u0060\u0026GcArgs\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":"crab/src/cmd/gc/bucket.rs"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1d181377ea5f6c0b03e5fe0994367cfc818fe642954bbe538f55eafcab8fc99"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/crab-staging/src/index.rs:8723-8732 | crates/crab-staging/src/index.rs:8746-8759 \u2014 both copies are in the same file, so extract the block 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/crab-staging/src/index.rs:8723\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/crab-staging/src/index.rs"},"region":{"startLine":8723}}}],"partialFingerprints":{"codehealthFindingId/v1":"f74c57057719bf4ec77e26b5300a72c2b2de3b080385c204d90e98931a75413d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): crates/crab-cache-server/src/chunk_index.rs:113-125 | crates/crab-metadata/src/persistent_chunk_index.rs:315-328 \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/crab-cache-server/src/chunk_index.rs:113\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 \u0060entries\u0060 to \u0060\u0026[ShardIndexEntry]\u0060 in one and \u0060\u0026[]\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/crab-cache-server/src/chunk_index.rs"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"69e287549a8a62defc7028c8add8f1075fa7b531bf4e2bbedbd5965441fedfb8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): crates/crab-metadata/src/path_state/storage.rs:262-275 | crates/crab-metadata/src/split_commit_graph.rs:856-869 \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/crab-metadata/src/path_state/storage.rs:262\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 \u0060write\u0060 to \u0060\u0026PathStateWrite\u0060 in one and \u0060\u0026CommitGraphWrite\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/crab-metadata/src/path_state/storage.rs"},"region":{"startLine":262}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6581e4396c03649399b584dd6b489f036b693a7cd61ed112437ce7c154dc445"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): crab/src/main.rs:4344-4357 | crab/src/main.rs:4373-4386 \u2014 both copies are in the same file, so extract the block 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 \u0060crab/src/main.rs:4344\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, \u0060crab/src/main.rs:4343\u0060 calls \u0060from_flags\u0060 and \u0060crab/src/main.rs:4372\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":"crab/src/main.rs"},"region":{"startLine":4344}}}],"partialFingerprints":{"codehealthFindingId/v1":"196516e7cdb8a853164f20d997b5f5d9f5a44cb957a934c2cfa8d391deeab8bf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crab/src/git/filter_process.rs:1499-1508 | crab/src/git/filter_process.rs:1621-1634 \u2014 both copies are in the same file, so extract the block 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 \u0060crab/src/git/filter_process.rs:1499\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":"crab/src/git/filter_process.rs"},"region":{"startLine":1499}}}],"partialFingerprints":{"codehealthFindingId/v1":"64d7b7543b7ec4760c471a3afa80179aa64fed3fcd60cce76d9dc06dd2b987f9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): crab/src/replication/mod.rs:881-894 | crab/src/replication/mod.rs:962-975 \u2014 both copies are in the same file, so extract the block 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 \u0060crab/src/replication/mod.rs:881\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":"crab/src/replication/mod.rs"},"region":{"startLine":881}}}],"partialFingerprints":{"codehealthFindingId/v1":"724e33be0156e56c57493274e30088c9a543d2c11b6c456ff3d3affa385712cf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): crates/crab-workflow/src/lockfile.rs:282-300 | crates/crab-workflow/src/lockfile.rs:315-333 \u2014 both copies are in the same file, so extract the block 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/crab-workflow/src/lockfile.rs:282\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/crab-workflow/src/lockfile.rs"},"region":{"startLine":282}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fa178108d4e493d1ca8fdf04cb728780eac578db9b766b22d9b636ef515471a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/crab-staging/src/index.rs:7733-7745 | crates/crab-staging/src/index.rs:7853-7862 \u2014 both copies are in the same file, so extract the block 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/crab-staging/src/index.rs:7733\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/crab-staging/src/index.rs"},"region":{"startLine":7733}}}],"partialFingerprints":{"codehealthFindingId/v1":"5dadefe55b9d3d41463d67b8ead311aee68baeb73c76f42a3aa0d5e00b2f0b86"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): crab/src/cmd/exp.rs:3570-3582 | crab/src/cmd/exp.rs:5181-5193 \u2014 both copies are in the same file, so extract the block 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":"crab/src/cmd/exp.rs"},"region":{"startLine":3570}}}],"partialFingerprints":{"codehealthFindingId/v1":"963a3c7436c45c4c3d8371fc625e9ae3a0f1072bb9ec8e60d7207aa4ede39c6d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): crates/crab-auth-server/src/receive/workflow.rs:361-373 | crates/crab-auth-server/src/view.rs:515-527 \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/crab-auth-server/src/receive/workflow.rs:361\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/crab-auth-server/src/receive/workflow.rs"},"region":{"startLine":361}}}],"partialFingerprints":{"codehealthFindingId/v1":"9dda60b9b0a107e9180f8caa01b8c12bbbc1b4fe0d8ffae83686de1c0673e61b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): crab/src/cmd/lock.rs:42-54 | crab/src/cmd/lock.rs:108-120 \u2014 both copies are in the same file, so extract the block 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 \u0060crab/src/cmd/lock.rs:42\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":"crab/src/cmd/lock.rs"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"878d0ecc0016f7cedcbca3fbd07ef4c479f520a252ecf2d2a06ea673efeeaee4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): crates/crab-staging/src/index.rs:2748-2757 | crates/crab-staging/src/index.rs:3265-3277 | crates/crab-staging/src/index.rs:6790-6801 \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/crab-staging/src/index.rs:2748\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/crab-staging/src/index.rs"},"region":{"startLine":2748}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4d0c1787f547f8b69bf8b7c648fbe6e9c42a22a60c6a41fbef5eaac760bf31d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): crates/crab-auth-server/src/receive/workflow.rs:418-430 | crates/crab-auth-server/src/view.rs:542-554 \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/crab-auth-server/src/receive/workflow.rs:418\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/crab-auth-server/src/receive/workflow.rs"},"region":{"startLine":418}}}],"partialFingerprints":{"codehealthFindingId/v1":"8cfe1fdd5edbb8789937f5b8804a5f8175a512ecaaceaf6d502c3ac08b50841a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/crab-staging/src/index.rs:3208-3220 | crates/crab-staging/src/index.rs:6524-6532 \u2014 both copies are in the same file, so extract the block 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/crab-staging/src/index.rs:3208\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/crab-staging/src/index.rs"},"region":{"startLine":3208}}}],"partialFingerprints":{"codehealthFindingId/v1":"d15cc2811a9d212b50ee701c6770b9ec4744b540cea8507b36ceee1a5300ae8a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): crates/crab-coordination/src/write_coordinator.rs:380-392 | crates/crab-coordination/src/write_coordinator.rs:460-472 \u2014 both copies are in the same file, so extract the block 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/crab-coordination/src/write_coordinator.rs:380\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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-coordination/src/write_coordinator.rs"},"region":{"startLine":380}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff68fe461cfaa9673cf1951705b73b81643854f88c1ebe54f7ad0cc43c154fed"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): crates/crab-auth/src/managed/client.rs:264-274 | crates/crab-auth/src/managed/client.rs:377-389 | crates/crab-auth/src/managed/client.rs:927-937 \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/crab-auth/src/managed/client.rs:264\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/crab-auth/src/managed/client.rs"},"region":{"startLine":264}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb318c140ffdc1715d57d141dd983a59acbc22975cd1510f6efb9f1ddb9aba9c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): crates/crab-cache-server/src/cache_store.rs:645-653 | crates/crab-cache-server/src/cache_store.rs:704-712 | crates/crab-cache-server/src/cache_store.rs:740-752 \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/crab-cache-server/src/cache_store.rs:645\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: \u0060crates/crab-cache-server/src/cache_store.rs:645\u0060 is reached only past a guard at line 630 that tests \u0060key.object_type\u0060 and leaves the function early, and \u0060crates/crab-cache-server/src/cache_store.rs:704\u0060 reads \u0060key.object_type\u0060 with no such check. What separates these copies is not which lines they run but which PRECONDITION they enforce, so one of them is operating on state the other one refuses. Decide which is intended BEFORE unifying them \u2014 extract the shared part and whichever copy is missing the check keeps running unchecked, and if the guard is the correct behaviour then that hole is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-cache-server/src/cache_store.rs"},"region":{"startLine":645}}}],"partialFingerprints":{"codehealthFindingId/v1":"2928ec99593094e396886a32639afb8094e1fde579ff7db6c9d00e8a19ba8294"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): crab/src/replication/mod.rs:550-562 | crab/src/replication/mod.rs:615-627 \u2014 both copies are in the same file, so extract the block 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 \u0060crab/src/replication/mod.rs:550\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":"crab/src/replication/mod.rs"},"region":{"startLine":550}}}],"partialFingerprints":{"codehealthFindingId/v1":"308687c5c264d781204fc194a9bd1032990f8e3e13caa3d5ef4c30e5357a8169"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): crab/src/git/progress.rs:307-315 | crab/src/git/progress.rs:360-371 | crab/src/git/progress.rs:412-420 \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 \u0060crab/src/git/progress.rs:307\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":"crab/src/git/progress.rs"},"region":{"startLine":307}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d1a79c352314c2c642958e494962dff98d8aaed8c92ecd3b03cd2ed24ef5e31"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crab/src/cmd/replica.rs:7124-7135 | crab/src/cmd/replica.rs:7170-7180 \u2014 both copies are in the same file, so extract the block 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 \u0060crab/src/cmd/replica.rs:7124\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":"crab/src/cmd/replica.rs"},"region":{"startLine":7124}}}],"partialFingerprints":{"codehealthFindingId/v1":"858be4fa224cba1b38ff6a54894cb823a990c24944c0f5dba583a3a7cc5f5ec8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): crab/src/replication/mod.rs:1054-1065 | crab/src/replication/mod.rs:1099-1110 \u2014 both copies are in the same file, so extract the block 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":"crab/src/replication/mod.rs"},"region":{"startLine":1054}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a87a73b29d3b1ef7266cbcf593d1104cec09e505dfa2ed9a669535aff664d54"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): crab/src/cmd/login.rs:130-141 | crab/src/main.rs:5878-5889 \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":"crab/src/cmd/login.rs"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"9468733557e48450f9c013b23c2da43bc9db0c45359f7810203c3f055a58c806"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): crates/crab-coordination/src/write_coordinator.rs:377-388 | crates/crab-coordination/src/write_coordinator.rs:457-468 | crates/crab-coordination/src/write_coordinator.rs:485-496 \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/crab-coordination/src/write_coordinator.rs"},"region":{"startLine":377}}}],"partialFingerprints":{"codehealthFindingId/v1":"eebcb2552d4b3869c92fedc547b57fc4642328e779f86d89a69f8b4f111b45ee"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): crab/src/cost/inventory/report/azure.rs:87-98 | crab/src/cost/inventory/report/s3.rs:107-118 \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 \u0060crab/src/cost/inventory/report/azure.rs:87\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":"crab/src/cost/inventory/report/azure.rs"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"182e1973a989ef6f42e0ccb09dd2483190d0d862774523aec708a53e399790f4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): crab/src/replication/mod.rs:2073-2084 | crab/src/replication/mod.rs:2100-2111 \u2014 both copies are in the same file, so extract the block 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":"crab/src/replication/mod.rs"},"region":{"startLine":2073}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3e17c9c2084d93062ee0beab08f190e3b5948413fdd3a3e6b1fb691fe9a43f3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): crab/src/replication/mod.rs:1768-1779 | crab/src/replication/mod.rs:1850-1861 \u2014 both copies are in the same file, so extract the block 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 \u0060crab/src/replication/mod.rs:1768\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":"crab/src/replication/mod.rs"},"region":{"startLine":1768}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f1fb5f26ccba46a51a47c1fa4c2bbacaa7d2ffbb0762c0f23c2a68ad3676500"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): crab/src/replication/mod.rs:7413-7424 | crates/crab-coordination/src/write_coordinator.rs:380-391 | crates/crab-coordination/src/write_coordinator.rs:460-471 \u2014 before extracting anything, compare \u0060crab/src/replication/mod.rs\u0060 and \u0060crates/crab-coordination/src/write_coordinator.rs\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 32 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crab/src/replication/mod.rs:7413\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":"crab/src/replication/mod.rs"},"region":{"startLine":7413}}}],"partialFingerprints":{"codehealthFindingId/v1":"40f51bd87cba61ef48699fca367f603895627c8ba5de57e1b40dfbab95e7041a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): crates/crab-sdk/src/local/push.rs:469-480 | crates/crab-sdk/src/local/push.rs:548-559 \u2014 both copies are in the same file, so extract the block 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/crab-sdk/src/local/push.rs"},"region":{"startLine":469}}}],"partialFingerprints":{"codehealthFindingId/v1":"11add000731766709f441c5dff0e693f3ab5e00c11070641a08c728dd040136a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): crates/crab-staging/src/index.rs:4707-4718 | crates/crab-staging/src/index.rs:4739-4750 \u2014 both copies are in the same file, so extract the block 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/crab-staging/src/index.rs:4707\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/crab-staging/src/index.rs"},"region":{"startLine":4707}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe2ee580eedd9eaffc51fd7046cd11ffa272af6d1b59a59dedbd178a57f662ca"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): crab/src/git/progress.rs:813-824 | crab/src/git/progress.rs:862-873 \u2014 both copies are in the same file, so extract the block 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 \u0060crab/src/git/progress.rs:813\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":"crab/src/git/progress.rs"},"region":{"startLine":813}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e0e49f451e180d5a396592cd5e7698038f7a10ab323f2e64a20f46a3029c057"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crab/src/cmd/gc/marks.rs:347-358 | crab/src/cmd/gc/marks.rs:433-441 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crab/src/cmd/gc/marks.rs:347\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":"crab/src/cmd/gc/marks.rs"},"region":{"startLine":347}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ca2acbd97f9d0b887d2081210a2380b59349657174ed8e48d4f421565768d0e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): crab/src/tier/provider/azure.rs:79-90 | crab/src/tier/provider/gcs.rs:70-81 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crab/src/tier/provider/azure.rs:79\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":"crab/src/tier/provider/azure.rs"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"27063660a2feed670f073a88c0daef5f1c37164b94fb4bbe2c36a0bf8d5feb73"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): crates/crab-sdk/src/local/edit.rs:1260-1271 | crates/crab-sdk/src/local/fetch.rs:629-640 \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/crab-sdk/src/local/edit.rs:1260\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/crab-sdk/src/local/edit.rs"},"region":{"startLine":1260}}}],"partialFingerprints":{"codehealthFindingId/v1":"d33ca6e77ff6ebca357ae6cdefeb8936781089037baecf6408aad3a4ce0ef955"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/crab-vfs/src/coordinator.rs:668-677 | crates/crab-vfs/src/coordinator.rs:702-713 \u2014 both copies are in the same file, so extract the block 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/crab-vfs/src/coordinator.rs"},"region":{"startLine":668}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3995de0fab7eee5f9a1026e74e1ba897170f4d462c27c85edbfa127841f9f87"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crab/src/git/push.rs:13565-13576 | crab/src/git/push.rs:13751-13759 \u2014 both copies are in the same file, so extract the block 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 \u0060crab/src/git/push.rs:13565\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":"crab/src/git/push.rs"},"region":{"startLine":13565}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d1464d8846ed5f3cd1ef0f7b8b037da429ad7459ac1942db4a15c815909a043"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crab/src/replication/mod.rs:4120-4130 | crab/src/replication/mod.rs:4148-4158 \u2014 both copies are in the same file, so extract the block 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 \u0060crab/src/replication/mod.rs:4120\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":"crab/src/replication/mod.rs"},"region":{"startLine":4120}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfeef22a031a2fc73fc7fa318685fae087c55fd3c42cfc837db7ac8dfb424c27"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crab/src/lfs/transfer_agent.rs:389-399 | crab/src/lfs/transfer_agent.rs:464-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 \u0060crab/src/lfs/transfer_agent.rs:389\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":"crab/src/lfs/transfer_agent.rs"},"region":{"startLine":389}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b93a21e34935abaf74a0937810e332105901f60c9607fad25ca1ed772d1b2dd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crab/src/cache/add_remote_candidates.rs:320-330 | crab/src/cache/add_remote_candidates.rs:471-479 \u2014 both copies are in the same file, so extract the block 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 \u0060crab/src/cache/add_remote_candidates.rs:320\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":"crab/src/cache/add_remote_candidates.rs"},"region":{"startLine":320}}}],"partialFingerprints":{"codehealthFindingId/v1":"21b47f9347090bc3ce6e98d05d141e026d2e39cb2a2d17f7650271a4e70a50cd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): crab/src/cmd/replica.rs:4432-4442 | crab/src/cmd/replica.rs:4449-4459 | crab/src/cmd/replica.rs:4466-4476 \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 \u0060crab/src/cmd/replica.rs:4432\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":"crab/src/cmd/replica.rs"},"region":{"startLine":4432}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5c5cf5e64c6328cb484adbb086c7de95c12a71c0bd5c600f1209fd8cbb31857"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): crab/src/cmd/recover.rs:2023-2041 | crab/src/cmd/recover.rs:2280-2298 \u2014 both copies are in the same file, so extract the block 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 \u0060crab/src/cmd/recover.rs:2023\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060crab/src/cmd/recover.rs:2299\u0060 calls \u0060verify_pack_body\u0060, \u0060verified_pack_metadata\u0060, \u0060validate_pack_metadata_object_count\u0060 and \u0060crab/src/cmd/recover.rs:2042\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":"crab/src/cmd/recover.rs"},"region":{"startLine":2023}}}],"partialFingerprints":{"codehealthFindingId/v1":"541ed2cd145721bbb313a89ba44b1b51980654128b5d7d0fd4416e2d3d8a86b6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/crab-cache-server/src/cache_store.rs:1522-1528 | crates/crab-cache-server/src/cache_store.rs:1548-1558 \u2014 both copies are in the same file, so extract the block 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/crab-cache-server/src/cache_store.rs:1522\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/crab-cache-server/src/cache_store.rs"},"region":{"startLine":1522}}}],"partialFingerprints":{"codehealthFindingId/v1":"380b90124b7e6f248cb7350243fca3839e61da893185078fa864e149e6911e66"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crab/src/cmd/clone.rs:297-307 | crab/src/cmd/clone.rs:439-449 \u2014 both copies are in the same file, so extract the block 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":"crab/src/cmd/clone.rs"},"region":{"startLine":297}}}],"partialFingerprints":{"codehealthFindingId/v1":"881c7ea77a40d9ff5cc7cf10fd445e0735f8b7777bca5b914ab66a38226b4d38"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crab/src/cmd/artifacts.rs:700-710 | crab/src/cmd/data.rs:1856-1866 \u2014 before extracting anything, compare \u0060crab/src/cmd/artifacts.rs\u0060 and \u0060crab/src/cmd/data.rs\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 33 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 \u0060crab/src/cmd/artifacts.rs:700\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":"crab/src/cmd/artifacts.rs"},"region":{"startLine":700}}}],"partialFingerprints":{"codehealthFindingId/v1":"35ea1028fac7a679d14020033d4e9b5059e4b3f334c4533ed322d9ec178621c1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crab/src/cmd/migrate.rs:2913-2923 | crates/crab-workflow/src/atomic.rs:26-36 \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 \u0060crab/src/cmd/migrate.rs:2913\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":"crab/src/cmd/migrate.rs"},"region":{"startLine":2913}}}],"partialFingerprints":{"codehealthFindingId/v1":"2000263ca1fa75df3d2d9e012a26eb09689e5e54f7ab7bc1382b09318104cee5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crab/src/cmd/dag.rs:180-187 | crab/src/cmd/status_workflow.rs:275-285 \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 \u0060crab/src/cmd/dag.rs:180\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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060args\u0060 to \u0060\u0026DagArgs\u0060 in one and \u0060\u0026StatusArgs\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":"crab/src/cmd/dag.rs"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"403a720e0351fe6b8f41e06904f77abae2a18a759a2c9d1d8d000584c30e1442"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crab/src/git/push.rs:10303-10313 | crab/src/git/push.rs:14973-14983 \u2014 both copies are in the same file, so extract the block 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 \u0060crab/src/git/push.rs:10303\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":"crab/src/git/push.rs"},"region":{"startLine":10303}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ea2ae02f890e3e98216020997fc64eaf3058378c68ebb96eb4fd2d96718c2dc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crab/src/cost/recommendations.rs:175-185 | crab/src/cost/recommendations.rs:227-236 \u2014 both copies are in the same file, so extract the block 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 \u0060crab/src/cost/recommendations.rs:175\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":"crab/src/cost/recommendations.rs"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"f571bf2faba16754a6a4a6fd11ce4b5a03c9a785c16b9be961dcbafc04779d1e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crab/src/cmd/login.rs:231-241 | crab/src/cmd/login.rs:253-263 \u2014 both copies are in the same file, so extract the block 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 \u0060crab/src/cmd/login.rs:231\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":"crab/src/cmd/login.rs"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"0413178e6ba506a0241cb04c93a07c9caf1c25b80d082702549e78011ea7d74c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crates/crab-auth-server/src/receive/git_workspace.rs:492-502 | crates/crab-auth-server/src/view.rs:617-627 \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/crab-auth-server/src/receive/git_workspace.rs:492\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/crab-auth-server/src/receive/git_workspace.rs"},"region":{"startLine":492}}}],"partialFingerprints":{"codehealthFindingId/v1":"985fb22f9631384710563e2f4af61948731958a98ea7cf9caaad384a23a6c132"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crates/crab-http-server/src/receive.rs:223-233 | crates/crab-http-server/src/receive.rs:643-653 \u2014 both copies are in the same file, so extract the block 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/crab-http-server/src/receive.rs:223\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/crab-http-server/src/receive.rs"},"region":{"startLine":223}}}],"partialFingerprints":{"codehealthFindingId/v1":"11b7f02f07f51a2a3c7026ef6b1201e89b0e22571c8f57bc85243bef10eb536f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/crab-http-server/src/cells/repository/pull_review_threads.rs:295-305 | crates/crab-http-server/src/cells/repository/pulls.rs:910-914 \u2014 before extracting anything, compare \u0060crates/crab-http-server/src/cells/repository/pull_review_threads.rs\u0060 and \u0060crates/crab-http-server/src/cells/repository/pulls.rs\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 50 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/crab-http-server/src/cells/repository/pull_review_threads.rs:295\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/crab-http-server/src/cells/repository/pull_review_threads.rs"},"region":{"startLine":295}}}],"partialFingerprints":{"codehealthFindingId/v1":"ecd96c6586adfd05953b8743708de8308b26efc2ad6e928d503c82cb5f428ff2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crates/crab-vfs/src/overlay.rs:863-873 | crates/crab-vfs/src/overlay.rs:1315-1325 \u2014 both copies are in the same file, so extract the block 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/crab-vfs/src/overlay.rs"},"region":{"startLine":863}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9bdf65493dcd5fa5b60aa33144d1f23d84eea6a4a6327969fedf7fee9b41049"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): crab/src/cache/add_remote_candidates.rs:318-328 | crab/src/cache/add_remote_candidates.rs:456-464 | crab/src/cache/add_remote_candidates.rs:469-477 \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 \u0060crab/src/cache/add_remote_candidates.rs:318\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, \u0060crab/src/cache/add_remote_candidates.rs:317\u0060 calls \u0060is_empty\u0060 and \u0060crab/src/cache/add_remote_candidates.rs:455\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":"crab/src/cache/add_remote_candidates.rs"},"region":{"startLine":318}}}],"partialFingerprints":{"codehealthFindingId/v1":"48943fac36ce8c8433a719b8fc4378ac754f8fac4b7ac21b648dd22e9c735260"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crab/src/git/push.rs:1736-1746 | crab/src/git/push.rs:1918-1928 \u2014 both copies are in the same file, so extract the block 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 \u0060crab/src/git/push.rs:1736\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":"crab/src/git/push.rs"},"region":{"startLine":1736}}}],"partialFingerprints":{"codehealthFindingId/v1":"2da73e9125a332135ef12b39a04cc69a63ff8ab7c3b781cf681c6f4e140b5740"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crab/src/engine/dedup.rs:124-134 | crab/src/engine/dedup.rs:201-211 \u2014 both copies are in the same file, so extract the block 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 \u0060crab/src/engine/dedup.rs:124\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":"crab/src/engine/dedup.rs"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"734e83bb2de35d1cedef7e9cb9c7862cdefacee75cae5e7516d354562d90bc12"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crab/src/cmd/add.rs:1374-1384 | crab/src/cmd/add.rs:1398-1408 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crab/src/cmd/add.rs:1374\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":"crab/src/cmd/add.rs"},"region":{"startLine":1374}}}],"partialFingerprints":{"codehealthFindingId/v1":"f56e1e2ed3b9a18a69cd9e928f771f90181293f5b29a38faa06ea598303f5241"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): crab/src/replication/mod.rs:4118-4128 | crab/src/replication/mod.rs:4146-4156 | crab/src/replication/mod.rs:4180-4190 \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 \u0060crab/src/replication/mod.rs:4118\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":"crab/src/replication/mod.rs"},"region":{"startLine":4118}}}],"partialFingerprints":{"codehealthFindingId/v1":"46c5117a8129f70b100a7762048d2226ab4f50bf88e9d7d0cf28d51f2001f9fc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crab/src/cmd/adopt.rs:727-737 | crab/src/cmd/unadopt.rs:323-333 \u2014 before extracting anything, compare \u0060crab/src/cmd/adopt.rs\u0060 and \u0060crab/src/cmd/unadopt.rs\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 108 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 \u0060crab/src/cmd/adopt.rs:727\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":"crab/src/cmd/adopt.rs"},"region":{"startLine":727}}}],"partialFingerprints":{"codehealthFindingId/v1":"220677c191cdd620ce8f5e69d16ff6d4bf04ffab3092684c982573e647c5c434"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crab/src/cmd/doctor.rs:1365-1375 | crab/src/cmd/doctor.rs:1445-1455 \u2014 both copies are in the same file, so extract the block 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 \u0060crab/src/cmd/doctor.rs:1365\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":"crab/src/cmd/doctor.rs"},"region":{"startLine":1365}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1f627e72346e3a0d317528f7d70271446b75402be88925f0f546eea1eabdfe0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crab/src/replication/mod.rs:2442-2452 | crab/src/replication/mod.rs:2568-2578 \u2014 both copies are in the same file, so extract the block 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 \u0060crab/src/replication/mod.rs:2442\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":"crab/src/replication/mod.rs"},"region":{"startLine":2442}}}],"partialFingerprints":{"codehealthFindingId/v1":"97b6b203abe05cd7a4610e0ad192abc2d81710434acd7559ea360baf4274d143"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/crab-http-server/src/cells.rs:1867-1876 | crates/crab-http-server/src/peer.rs:443-449 \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/crab-http-server/src/cells.rs:1867\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/crab-http-server/src/cells.rs"},"region":{"startLine":1867}}}],"partialFingerprints":{"codehealthFindingId/v1":"98d389798218ec0fab8d2354c40864ebb083b69338d59c59d8d63dc9a7e7bd59"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/crab-vfs/src/publish.rs:1034-1042 | crates/crab-vfs/src/publish.rs:1264-1273 \u2014 both copies are in the same file, so extract the block 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/crab-vfs/src/publish.rs"},"region":{"startLine":1034}}}],"partialFingerprints":{"codehealthFindingId/v1":"427eadfc9983c0342effb411c37c9dcd4a88032b1943e2d705dc6eeda3c75ce9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/crab-staging/src/index.rs:7788-7795 | crates/crab-staging/src/index.rs:7854-7863 \u2014 both copies are in the same file, so extract the block 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/crab-staging/src/index.rs:7788\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/crab-staging/src/index.rs"},"region":{"startLine":7788}}}],"partialFingerprints":{"codehealthFindingId/v1":"eaeb5904328538c29e1ee07ade705604914c47ed066834677a2a78291122655e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 6): crab/src/cmd/replica.rs:2886-2895 | crab/src/cmd/replica.rs:2936-2944 | crab/src/replication/mod.rs:7458-7466 | crab/src/replication/mod.rs:7487-7495 | crab/src/replication/mod.rs:7567-7575 | crab/src/replication/mod.rs:7596-7604 \u2014 before extracting anything, compare \u0060crab/src/cmd/replica.rs\u0060 and \u0060crab/src/replication/mod.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 47 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crab/src/cmd/replica.rs:2886\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":"crab/src/cmd/replica.rs"},"region":{"startLine":2886}}}],"partialFingerprints":{"codehealthFindingId/v1":"2533584e4e75e4bb4f55f35b52a4e1ec3c4a44ba5668abb49625e9464d80157f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crab/src/cmd/lfs/fetch.rs:76-85 | crab/src/cmd/lfs/fetch.rs:107-116 \u2014 both copies are in the same file, so extract the block 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 \u0060crab/src/cmd/lfs/fetch.rs:76\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":"crab/src/cmd/lfs/fetch.rs"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"42ce2949f1c6d8cc8de5f0efe5b48f7ddc9b59b578ec3d55da3ed7a6283a1fef"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/crab-http-server/src/cells/repository.rs:368-377 | crates/crab-http-server/src/cells/repository/operations.rs:416-425 \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/crab-http-server/src/cells/repository.rs:368\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/crab-http-server/src/cells/repository.rs"},"region":{"startLine":368}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec8896141ecfb22d11332c4c270028622d169a6236a40659cc6af062896ae550"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crab/src/replication/mod.rs:7096-7105 | crab/src/replication/mod.rs:7608-7617 \u2014 both copies are in the same file, so extract the block 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":"crab/src/replication/mod.rs"},"region":{"startLine":7096}}}],"partialFingerprints":{"codehealthFindingId/v1":"65b75aa79cd0ee3e2006b7586e2b66ba9eb33f5b82c5a340e9cec97c88f1116d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): crates/crab-staging/src/lib.rs:656-677 | crates/crab-staging/src/lib.rs:776-797 \u2014 both copies are in the same file, so extract the block 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/crab-staging/src/lib.rs:656\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/crab-staging/src/lib.rs"},"region":{"startLine":656}}}],"partialFingerprints":{"codehealthFindingId/v1":"eaf898d61c062e5c6c736dbe66b92c394e58ec13daaa32522f64c3c29a909b30"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201317 lines \u00D7 3): crates/crab-staging/src/index.rs:2344-2360 | crates/crab-staging/src/index.rs:2410-2423 | crates/crab-staging/src/index.rs:2445-2456 \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/crab-staging/src/index.rs:2344\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/crab-staging/src/index.rs:2340\u0060 calls \u0060keys\u0060, \u0060copied\u0060 and \u0060crates/crab-staging/src/index.rs:2407\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/crab-staging/src/index.rs"},"region":{"startLine":2344}}}],"partialFingerprints":{"codehealthFindingId/v1":"0cf67a1d5a8b95f44881e2e99ea050d2eaa2dbc183a40b1be323f5077e6b6b3a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/crab-auth/src/managed/client.rs:437-446 | crates/crab-auth/src/managed/client.rs:517-526 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/crab-auth/src/managed/client.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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-auth/src/managed/client.rs"},"region":{"startLine":437}}}],"partialFingerprints":{"codehealthFindingId/v1":"b29c65ed15930f9eded3c6652b3261586e857af468b76232c71b1dce2864e3e5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crab/src/cmd/gc/bucket.rs:724-731 | crab/src/cmd/gc/bucket.rs:750-759 \u2014 both copies are in the same file, so extract the block 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 \u0060crab/src/cmd/gc/bucket.rs:750\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":"crab/src/cmd/gc/bucket.rs"},"region":{"startLine":724}}}],"partialFingerprints":{"codehealthFindingId/v1":"bcd2cd92a5e3176a0fa5424bbf4b0677206f5097ec21ee25559ce7e85d1326c1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/crab-http-server/src/cells/repository.rs:412-420 | crates/crab-http-server/src/cells/repository/operations.rs:468-477 \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/crab-http-server/src/cells/repository.rs:412\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/crab-http-server/src/cells/repository.rs"},"region":{"startLine":412}}}],"partialFingerprints":{"codehealthFindingId/v1":"60c3883e18d358eed413047f98b4c440982bc4cf73dffa79e869ff70fae98c96"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 4): crates/crab-staging/src/index.rs:2899-2908 | crates/crab-staging/src/index.rs:2923-2930 | crates/crab-staging/src/index.rs:5272-5279 | crates/crab-staging/src/index.rs:5364-5371 \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/crab-staging/src/index.rs:2899\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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-staging/src/index.rs"},"region":{"startLine":2899}}}],"partialFingerprints":{"codehealthFindingId/v1":"78e70972c962e3358bab5a971c589def7f9c15eb363af16317c1fa40e69a5f56"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crab/src/cmd/config.rs:549-558 | crab/src/cmd/config.rs:562-571 \u2014 both copies are in the same file, so extract the block 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 \u0060crab/src/cmd/config.rs:549\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":"crab/src/cmd/config.rs"},"region":{"startLine":549}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6033213cec1026cf50a19d60c7481a38dd46067a363a35915c422a87bd957fe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/crab-staging/src/index.rs:2460-2467 | crates/crab-staging/src/index.rs:2638-2647 \u2014 both copies are in the same file, so extract the block 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/crab-staging/src/index.rs:2460\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/crab-staging/src/index.rs"},"region":{"startLine":2460}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ad86c7d4207ac70f926834e32d40ed9213ba3cf9fe882a0b0257117cd21e2a5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/crab-vfs/src/publish.rs:467-476 | crates/crab-vfs/src/publish.rs:483-492 \u2014 both copies are in the same file, so extract the block 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/crab-vfs/src/publish.rs:467\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-vfs/src/publish.rs"},"region":{"startLine":467}}}],"partialFingerprints":{"codehealthFindingId/v1":"40022537e9db325d05115316b420aea2cde84972deeeed09ac0fe43235612367"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): crab/src/cost/inventory/report/azure.rs:52-61 | crab/src/cost/inventory/report/gcs.rs:56-65 | crab/src/cost/inventory/report/s3.rs:62-71 \u2014 before extracting anything, compare \u0060crab/src/cost/inventory/report/azure.rs\u0060 and \u0060crab/src/cost/inventory/report/gcs.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 56 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also 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":"crab/src/cost/inventory/report/azure.rs"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca9177a86faa6a65fc543c059d048476c9ab0ae0a12eae594b27dd46e5ec07c4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): crates/crab-metadata/src/git_visibility.rs:2512-2521 | crates/crab-metadata/src/git_visibility.rs:3051-3060 | crates/crab-metadata/src/git_visibility.rs:3120-3129 \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/crab-metadata/src/git_visibility.rs"},"region":{"startLine":2512}}}],"partialFingerprints":{"codehealthFindingId/v1":"77762a19274581f0bbf3397a6ed09cc0697ad77e76b161bfdfddb9df97e08b71"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): crates/crab-staging/src/index.rs:7071-7080 | crates/crab-staging/src/index.rs:7270-7279 | crates/crab-staging/src/index.rs:7346-7354 \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/crab-staging/src/index.rs:7071\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/crab-staging/src/index.rs"},"region":{"startLine":7071}}}],"partialFingerprints":{"codehealthFindingId/v1":"63115ff96102bad8bf85fcabdebf2eaf49bb79ae34f3dd4c5398b6119375fdf3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): crab/src/cmd/add.rs:1298-1307 | crab/src/cmd/add.rs:1373-1382 | crab/src/cmd/add.rs:1397-1406 \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":"crab/src/cmd/add.rs"},"region":{"startLine":1298}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0fdc03b480f20122fd453f7d24aac99aa70928ec506d5a3ce1fa7dbb9adec93"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crab/src/import/ingest.rs:1123-1132 | crab/src/lfs/migrate.rs:752-761 \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 \u0060crab/src/import/ingest.rs:1123\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":"crab/src/import/ingest.rs"},"region":{"startLine":1123}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a5d9ef93c826964255c10c88b29905af63493ca1cec32b63c2e794421728ded"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): crates/crab-xet/src/shard_parse.rs:347-356 | crates/crab-xet/src/shard_parse.rs:523-532 | crates/crab-xet/src/shard_parse.rs:673-681 \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/crab-xet/src/shard_parse.rs:347\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/crab-xet/src/shard_parse.rs"},"region":{"startLine":347}}}],"partialFingerprints":{"codehealthFindingId/v1":"4db2cc741b56cd7805391a81f2a2793d631a52ddcc4c094d08c8c664c582fbee"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): crates/crab-remote-git/src/operation.rs:324-333 | crates/crab-remote-git/src/operation.rs:440-449 | crates/crab-remote-git/src/operation.rs:525-534 \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/crab-remote-git/src/operation.rs:324\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/crab-remote-git/src/operation.rs"},"region":{"startLine":324}}}],"partialFingerprints":{"codehealthFindingId/v1":"cda0471cb3e4231fe8905134b1cb40147fb8f94cc69533af169f98169486234b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/crab-vfs/src/ipc_client.rs:429-438 | crates/crab-vfs/src/ipc_client.rs:457-466 \u2014 both copies are in the same file, so extract the block 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/crab-vfs/src/ipc_client.rs:429\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/crab-vfs/src/ipc_client.rs"},"region":{"startLine":429}}}],"partialFingerprints":{"codehealthFindingId/v1":"9775d7c9e01aad4ed492dc4b9c5111393db607582bbe87620ec0a7041f2ce868"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crab/src/cmd/metrics.rs:501-510 | crab/src/cmd/metrics.rs:573-582 \u2014 both copies are in the same file, so extract the block 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 \u0060crab/src/cmd/metrics.rs:501\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":"crab/src/cmd/metrics.rs"},"region":{"startLine":501}}}],"partialFingerprints":{"codehealthFindingId/v1":"faece1ea16bc1a1ac8b1d8bba87bd136d62ab5cf52a8d74529aae6883de44e67"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 5): crates/crab-workflow/src/lockfile.rs:950-958 | crates/crab-workflow/src/lockfile.rs:969-978 | crates/crab-workflow/src/lockfile.rs:995-1003 | crates/crab-workflow/src/lockfile.rs:1022-1030 | crates/crab-workflow/src/lockfile.rs:1072-1080 \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/crab-workflow/src/lockfile.rs:950\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/crab-workflow/src/lockfile.rs"},"region":{"startLine":950}}}],"partialFingerprints":{"codehealthFindingId/v1":"faa85bb18f131c93ebd1feeaed65744b91039d3cba65a88c6fb674c010e5cf2b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/crab-vfs/src/nfs_control.rs:1048-1057 | crates/crab-vfs/src/nfs_control.rs:1082-1091 \u2014 both copies are in the same file, so extract the block 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/crab-vfs/src/nfs_control.rs:1048\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/crab-vfs/src/nfs_control.rs"},"region":{"startLine":1048}}}],"partialFingerprints":{"codehealthFindingId/v1":"59345150aa817a4922878a1e030ed5c2c8e5cb798c15ca7ba27d1bb43d56267d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/crab-staging/src/index.rs:4514-4523 | crates/crab-staging/src/index.rs:7291-7300 \u2014 both copies are in the same file, so extract the block 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/crab-staging/src/index.rs:4514\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/crab-staging/src/index.rs"},"region":{"startLine":4514}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2d85140439794feb6c19ae4a29bc489d2dba8d21b2618d659b5505283ea9567"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crab/src/cmd/exp.rs:3593-3602 | crab/src/cmd/exp.rs:5203-5212 \u2014 both copies are in the same file, so extract the block 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 \u0060crab/src/cmd/exp.rs:3593\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":"crab/src/cmd/exp.rs"},"region":{"startLine":3593}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b51033db50daf98ab9fc16a42b8c44ae7b7ee8e06b7e0befebcf376baeb9296"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/crab-cache/src/active_probe.rs:125-134 | crates/crab-cache/src/active_probe.rs:261-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/crab-cache/src/active_probe.rs:125\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/crab-cache/src/active_probe.rs"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"4706aa55533e7f0314607770d761c49f519709464b0925a1ac39d3ef1d84cd7d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/crab-sdk/src/local.rs:780-789 | crates/crab-sdk/src/local.rs:998-1007 \u2014 both copies are in the same file, so extract the block 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/crab-sdk/src/local.rs"},"region":{"startLine":780}}}],"partialFingerprints":{"codehealthFindingId/v1":"42ae9ee63af2fdf6fe2c173e6d107eb99273c02b4ffa7379e35cd6cd795041bc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 6): crab/src/cmd/replica.rs:4390-4398 | crab/src/cmd/replica.rs:4404-4412 | crab/src/cmd/replica.rs:4418-4426 | crab/src/cmd/replica.rs:4434-4443 | crab/src/cmd/replica.rs:4451-4460 | crab/src/cmd/replica.rs:4468-4477 \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 \u0060crab/src/cmd/replica.rs:4390\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":"crab/src/cmd/replica.rs"},"region":{"startLine":4390}}}],"partialFingerprints":{"codehealthFindingId/v1":"29666164940fd84914af488812861c5cb747fe7ba9d1527d323a0d6acbabe8c3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crab/src/cmd/clone.rs:1118-1125 | crab/src/cmd/clone.rs:1140-1149 \u2014 both copies are in the same file, so extract the block 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 \u0060crab/src/cmd/clone.rs:1118\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":"crab/src/cmd/clone.rs"},"region":{"startLine":1118}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4505fc4afba9670c6eaeb66530056baa82d9067ce1902c33c341c1f79649962"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crab/src/lfs/migrate.rs:348-355 | crab/src/lfs/migrate.rs:363-372 \u2014 both copies are in the same file, so extract the block 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 \u0060crab/src/lfs/migrate.rs:348\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":"crab/src/lfs/migrate.rs"},"region":{"startLine":348}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb9175f8226b623ded241d702d18e86bb9c6a3c1605a82fe99ed600eeffb6992"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crab/src/auth/oidc.rs:455-464 | crab/src/auth/oidc.rs:472-481 \u2014 both copies are in the same file, so extract the block 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 \u0060crab/src/auth/oidc.rs:455\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":"crab/src/auth/oidc.rs"},"region":{"startLine":455}}}],"partialFingerprints":{"codehealthFindingId/v1":"31e36be8655bfd5bbea8d8b106f7588d20788789d7112b714fbc1b03e42c17ee"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/crab-sdk/src/local/fetch.rs:537-546 | crates/crab-sdk/src/local/push/git.rs:241-250 \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/crab-sdk/src/local/fetch.rs:537\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/crab-sdk/src/local/fetch.rs"},"region":{"startLine":537}}}],"partialFingerprints":{"codehealthFindingId/v1":"928c79fd544a0c95a419e890eb0b55302a73f6ff0086dad6ae9e09c69a300141"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crab/src/lfs/migrate.rs:145-154 | crab/src/lfs/migrate.rs:2572-2581 \u2014 both copies are in the same file, so extract the block 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 \u0060crab/src/lfs/migrate.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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/lfs/migrate.rs"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"628a8e7dbb2ff72513735c32b50603e31b44a1a9828b415841915e652253c8b3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/crab-cache-server/src/evidence.rs:1535-1544 | crates/crab-cache-server/src/evidence.rs:1700-1709 \u2014 both copies are in the same file, so extract the block 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/crab-cache-server/src/evidence.rs:1535\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/crab-cache-server/src/evidence.rs"},"region":{"startLine":1535}}}],"partialFingerprints":{"codehealthFindingId/v1":"05555687499b7cecec4b00b327a7d20aa8ab39a316e8ecf091f908bb6b1240f7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crab/src/cmd/gc/mod.rs:2508-2514 | crab/src/cmd/gc/mod.rs:2558-2567 \u2014 both copies are in the same file, so extract the block 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":"crab/src/cmd/gc/mod.rs"},"region":{"startLine":2508}}}],"partialFingerprints":{"codehealthFindingId/v1":"256a151971106d23233d663fbe3f8b70e502bf7f3d8a930f97e0b6000e1c6957"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crab/src/hydrate/batch.rs:411-419 | crates/crab-read/src/term_resolver.rs:783-791 \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 \u0060crab/src/hydrate/batch.rs:411\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":"crab/src/hydrate/batch.rs"},"region":{"startLine":411}}}],"partialFingerprints":{"codehealthFindingId/v1":"9151bd24e1c0f3807f7ee314e3ebd9affe7a3855280c67d7ed061db1a7ee3ea7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/crab-http-server/src/cells/repository/pulls.rs:557-565 | crates/crab-http-server/src/cells/repository/releases.rs:741-749 \u2014 before extracting anything, compare \u0060crates/crab-http-server/src/cells/repository/pulls.rs\u0060 and \u0060crates/crab-http-server/src/cells/repository/releases.rs\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 51 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/crab-http-server/src/cells/repository/pulls.rs"},"region":{"startLine":557}}}],"partialFingerprints":{"codehealthFindingId/v1":"52eda93728bda4ad3657af08f3aee574cb64aaadc98de427b93aaf542f048e48"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crab/src/cmd/lfs/checkout.rs:349-357 | crab/src/lfs/extension.rs:69-77 \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 \u0060crab/src/cmd/lfs/checkout.rs:349\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":"crab/src/cmd/lfs/checkout.rs"},"region":{"startLine":349}}}],"partialFingerprints":{"codehealthFindingId/v1":"968d5859295c99f273c8042176b675fa2da47dc3dbdddde7407f32ca71dacc08"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): crates/crab-http-server/src/branches.rs:191-206 | crates/crab-http-server/src/contents.rs:246-261 \u2014 before extracting anything, compare \u0060crates/crab-http-server/src/branches.rs\u0060 and \u0060crates/crab-http-server/src/contents.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 47 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/crab-http-server/src/branches.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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-http-server/src/branches.rs"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"b22def4b2b832f479319700341872c8dee1fe613c99439d4b9abbfe52d3ca475"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crab/src/auth/oidc.rs:154-162 | crab/src/auth/oidc.rs:502-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 \u0060crab/src/auth/oidc.rs:154\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":"crab/src/auth/oidc.rs"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a72bc1df5a8a4dc4916c8168acc942abd3afa23fb28e18c6bcfd6a4087b0209"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/crab-staging/src/index.rs:507-515 | crates/crab-staging/src/index.rs:558-565 \u2014 both copies are in the same file, so extract the block 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/crab-staging/src/index.rs"},"region":{"startLine":507}}}],"partialFingerprints":{"codehealthFindingId/v1":"55317bdd8bfb6a0317890fb30a025bd93ba222f418672362ce9e239a2a627491"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 4): crab/src/cmd/push.rs:497-505 | crab/src/cmd/push.rs:780-788 | crab/src/cmd/push.rs:815-823 | crab/src/cmd/push.rs:878-886 \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 \u0060crab/src/cmd/push.rs:497\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":"crab/src/cmd/push.rs"},"region":{"startLine":497}}}],"partialFingerprints":{"codehealthFindingId/v1":"0258a627ca155ca217a0db78b2fcf795799b35357fd76dc25e73b5e4958d780b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): crab/src/main.rs:4021-4029 | crab/src/main.rs:4144-4152 | crab/src/main.rs:5824-5832 \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 \u0060crab/src/main.rs:4021\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":"crab/src/main.rs"},"region":{"startLine":4021}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e03f1e74f7e30bbce29631355c506c0a07731ebf3224aeb07ac0b8e509f7ba2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 5): crates/crab-staging/src/index.rs:2963-2969 | crates/crab-staging/src/index.rs:3439-3447 | crates/crab-staging/src/index.rs:3768-3776 | crates/crab-staging/src/index.rs:4769-4777 | crates/crab-staging/src/index.rs:4908-4916 \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/crab-staging/src/index.rs:2963\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/crab-staging/src/index.rs"},"region":{"startLine":2963}}}],"partialFingerprints":{"codehealthFindingId/v1":"49affb97ed4d426bea96b6b9eda1755c072651ce71adebc8125bfb8d501d6c01"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/crab-auth/src/credential_response.rs:231-239 | crates/crab-auth/src/managed/transfer.rs:388-396 \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/crab-auth/src/credential_response.rs:231\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/crab-auth/src/credential_response.rs"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e3527fe57a9f90f670fbb77ad91580657acf80867f254004640a38a0123f538"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crab/src/import/versions.rs:896-904 | crab/src/import/versions.rs:938-946 \u2014 both copies are in the same file, so extract the block 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 \u0060crab/src/import/versions.rs:896\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":"crab/src/import/versions.rs"},"region":{"startLine":896}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ebd31a87fb2b37b1e3ed2691812de712da84e8ca19667eebc54ef9503e18788"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crab/src/lfs/migrate.rs:661-669 | crab/src/lfs/migrate.rs:1660-1668 \u2014 both copies are in the same file, so extract the block 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 \u0060crab/src/lfs/migrate.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":"crab/src/lfs/migrate.rs"},"region":{"startLine":661}}}],"partialFingerprints":{"codehealthFindingId/v1":"09749cc375bd84efbe789f2590a50986683ddcefd908ea555553cf34f7527730"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): crates/crab-staging/src/index.rs:1795-1803 | crates/crab-staging/src/index.rs:8732-8737 | crates/crab-staging/src/index.rs:8758-8766 \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/crab-staging/src/index.rs:1795\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/crab-staging/src/index.rs"},"region":{"startLine":1795}}}],"partialFingerprints":{"codehealthFindingId/v1":"34748aa5b06ce0f2ba33ded622cebaed1ddfc47c2c99dded40399c639405007c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/crab-s3-gateway/src/server.rs:127-135 | crates/crab-s3-gateway/src/server.rs:154-162 \u2014 both copies are in the same file, so extract the block 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/crab-s3-gateway/src/server.rs:127\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/crab-s3-gateway/src/server.rs"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"791f7d0298368e4ccf808d9cb859a19ce323acc6395a011783435f71a9d2446a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): crab/src/cmd/hydrate.rs:2946-2954 | crab/src/cmd/hydrate.rs:2979-2987 | crab/src/cmd/hydrate.rs:3005-3013 \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 \u0060crab/src/cmd/hydrate.rs:2946\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":"crab/src/cmd/hydrate.rs"},"region":{"startLine":2946}}}],"partialFingerprints":{"codehealthFindingId/v1":"751baad702cfb9e6c0c1aff161a9cb35556d335890ff52d8205455b1426cc7d8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/crab-http-server/src/cells/repository.rs:1314-1322 | crates/crab-http-server/src/cells/repository/pull_review_threads.rs:1230-1238 \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. 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/crab-http-server/src/cells/repository.rs"},"region":{"startLine":1314}}}],"partialFingerprints":{"codehealthFindingId/v1":"1970e1a262b4d777640bd83151b7648e709a5a2f7ae6143e6702735d7c6dc6b0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 7): crab/src/cmd/replica.rs:4390-4398 | crab/src/cmd/replica.rs:4404-4412 | crab/src/cmd/replica.rs:4418-4426 | crab/src/cmd/replica.rs:4435-4443 | crab/src/cmd/replica.rs:4452-4460 | crab/src/cmd/replica.rs:4469-4477 | crab/src/cmd/replica.rs:4483-4491 \u2014 all 7 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crab/src/cmd/replica.rs:4390\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":"crab/src/cmd/replica.rs"},"region":{"startLine":4390}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fc77d579a04203978f5361d0d296b76e9a7779337480a77e7b8de13928bfa86"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crab/src/git/push.rs:5687-5693 | crab/src/git/push.rs:5701-5709 \u2014 both copies are in the same file, so extract the block 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 \u0060crab/src/git/push.rs:5687\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":"crab/src/git/push.rs"},"region":{"startLine":5687}}}],"partialFingerprints":{"codehealthFindingId/v1":"f86409e6ca0d847b8249119950263b8cb1378d73f20eb1ec521136b5da274a83"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): crates/crab-http-server/src/cells/repository/checks.rs:411-419 | crates/crab-http-server/src/cells/repository/checks.rs:438-446 | crates/crab-http-server/src/cells/repository/releases.rs:741-749 \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/crab-http-server/src/cells/repository/checks.rs"},"region":{"startLine":411}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfef6c2cae0fc4e0725d7a8c4ba6d2b907d3f4227bed9812069e3bf8febe044d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/crab-staging/src/index.rs:2668-2676 | crates/crab-staging/src/index.rs:6704-6712 \u2014 both copies are in the same file, so extract the block 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/crab-staging/src/index.rs:2668\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/crab-staging/src/index.rs"},"region":{"startLine":2668}}}],"partialFingerprints":{"codehealthFindingId/v1":"41a9bd62162b0ab4132b4b15838b85b0cf0424d00623e6b70286c608f43f7225"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/crab-metadata/src/manifests.rs:297-305 | crates/crab-metadata/src/manifests.rs:332-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/crab-metadata/src/manifests.rs:297\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/crab-metadata/src/manifests.rs"},"region":{"startLine":297}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d46c88ed92d9623b7fc563b05d628b4b889bce0fd35b409f8896d9e331e4ad1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crab/src/git/pack.rs:483-491 | crab/src/git/pack.rs:564-572 \u2014 both copies are in the same file, so extract the block 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 \u0060crab/src/git/pack.rs:483\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":"crab/src/git/pack.rs"},"region":{"startLine":483}}}],"partialFingerprints":{"codehealthFindingId/v1":"c49d39cccadea60c1390a23aee9bdb1469491b944f3e8ed9d1e5b5ae81f5428c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/crab-workflow/src/template/foreach.rs:264-272 | crates/crab-workflow/src/template/matrix.rs:281-289 \u2014 before extracting anything, compare \u0060crates/crab-workflow/src/template/foreach.rs\u0060 and \u0060crates/crab-workflow/src/template/matrix.rs\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 106 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/crab-workflow/src/template/foreach.rs:264\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/crab-workflow/src/template/foreach.rs"},"region":{"startLine":264}}}],"partialFingerprints":{"codehealthFindingId/v1":"2396c0cd1f8cacb836b4bd1386a2b534aa7f20cf4af596ed00e7b4b3a4bba83a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/crab-workflow/src/template/foreach.rs:281-289 | crates/crab-workflow/src/template/matrix.rs:298-306 \u2014 before extracting anything, compare \u0060crates/crab-workflow/src/template/foreach.rs\u0060 and \u0060crates/crab-workflow/src/template/matrix.rs\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 106 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/crab-workflow/src/template/foreach.rs:281\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/crab-workflow/src/template/foreach.rs"},"region":{"startLine":281}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd3451a3be00d66c6fdcbe175a092fb5381d5f1f0d83c136bbf4f1c41448b779"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/crab-staging/src/index.rs:2425-2433 | crates/crab-staging/src/index.rs:6313-6318 \u2014 both copies are in the same file, so extract the block 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/crab-staging/src/index.rs:2425\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/crab-staging/src/index.rs"},"region":{"startLine":2425}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e1eb0a7181fee73dcbb45dffe2fc6a30328dde7d8f9dc031bd54f0443c67a09"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): crates/crab-staging/src/index.rs:1098-1104 | crates/crab-staging/src/index.rs:5034-5040 | crates/crab-staging/src/index.rs:7182-7190 \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/crab-staging/src/index.rs:1098\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/crab-staging/src/index.rs"},"region":{"startLine":1098}}}],"partialFingerprints":{"codehealthFindingId/v1":"306f3142b4f8750e22e28715fbea234f05a4aec92563ec5b1c6160dfa73963cc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): crates/crab-staging/src/index.rs:1095-1101 | crates/crab-staging/src/index.rs:5029-5037 | crates/crab-staging/src/index.rs:6012-6020 \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/crab-staging/src/index.rs:1095\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/crab-staging/src/index.rs"},"region":{"startLine":1095}}}],"partialFingerprints":{"codehealthFindingId/v1":"e513be0a4e8118e669204a1a86f3626e1fb7d8f4639eecbdf406b47b3e9e1101"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): crab/src/cmd/replica.rs:1821-1828 | crab/src/cmd/replica.rs:2884-2892 | crab/src/cmd/replica.rs:2934-2941 \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":"crab/src/cmd/replica.rs"},"region":{"startLine":1821}}}],"partialFingerprints":{"codehealthFindingId/v1":"a35fc0344e10747361a7760ba6c99ce79f95bf66bebb534d02cddc68d139d0b0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): crab/src/cmd/migrate.rs:1582-1590 | crab/src/cmd/migrate.rs:2422-2430 | crab/src/cmd/migrate.rs:2462-2470 \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 \u0060crab/src/cmd/migrate.rs:1582\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":"crab/src/cmd/migrate.rs"},"region":{"startLine":1582}}}],"partialFingerprints":{"codehealthFindingId/v1":"192f977d08ba23043e03fb3350c97993314a58a7c23b1001d60a0dc475d1ed15"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/crab-staging/src/index.rs:1400-1407 | crates/crab-staging/src/index.rs:7695-7703 \u2014 both copies are in the same file, so extract the block 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/crab-staging/src/index.rs:1400\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/crab-staging/src/index.rs"},"region":{"startLine":1400}}}],"partialFingerprints":{"codehealthFindingId/v1":"f611dba725874022a36db54a47ca7b3118b4af1a1328f880186de97296c649dd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): crates/crab-http-server/src/pulls.rs:302-310 | crates/crab-http-server/src/pulls/reviews.rs:88-96 | crates/crab-http-server/src/releases.rs:141-149 \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/crab-http-server/src/pulls.rs"},"region":{"startLine":302}}}],"partialFingerprints":{"codehealthFindingId/v1":"c01c5bec50b2f6b94419100b2b7c56e483435d85fbad61f25222b46ddd64f2ba"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 4): crates/crab-staging/src/index.rs:2752-2757 | crates/crab-staging/src/index.rs:3269-3277 | crates/crab-staging/src/index.rs:6468-6476 | crates/crab-staging/src/index.rs:6794-6801 \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. 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/crab-staging/src/index.rs"},"region":{"startLine":2752}}}],"partialFingerprints":{"codehealthFindingId/v1":"dcc3267d042a4021f68ef3f6940c84b891b290b3132de1bf8d0fa9e099e183ac"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crab/src/cmd/exp.rs:1936-1944 | crab/src/cmd/migrate.rs:1457-1463 \u2014 before extracting anything, compare \u0060crab/src/cmd/exp.rs\u0060 and \u0060crab/src/cmd/migrate.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 31 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 \u0060crab/src/cmd/exp.rs:1936\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, \u0060crab/src/cmd/exp.rs:1945\u0060 calls \u0060ensure_checkpoint_parent_not_symlink\u0060 and \u0060crab/src/cmd/migrate.rs:1464\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":"crab/src/cmd/exp.rs"},"region":{"startLine":1936}}}],"partialFingerprints":{"codehealthFindingId/v1":"c50d381cd5cf43a1d3c96835e63b18370070c16b195183b646627726debc2b0c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/crab-lfs/src/object_store.rs:252-260 | crates/crab-lfs/src/object_store.rs:687-695 \u2014 both copies are in the same file, so extract the block 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/crab-lfs/src/object_store.rs:252\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/crab-lfs/src/object_store.rs"},"region":{"startLine":252}}}],"partialFingerprints":{"codehealthFindingId/v1":"30f715bd24b85c8f1a2e7fd5003915ddbcd5535451613889dc8469d787554710"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crab/src/cmd/adopt.rs:606-613 | crab/src/cmd/unadopt.rs:89-97 \u2014 before extracting anything, compare \u0060crab/src/cmd/adopt.rs\u0060 and \u0060crab/src/cmd/unadopt.rs\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 108 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":"crab/src/cmd/adopt.rs"},"region":{"startLine":606}}}],"partialFingerprints":{"codehealthFindingId/v1":"837b8a591f6f34a19083fa86d167d8a2ce597375f262e29fb5c642baf72fc7dc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/crab-vfs/src/clone_cache.rs:218-225 | crates/crab-vfs/src/clone_cache.rs:267-274 \u2014 both copies are in the same file, so extract the block 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/crab-vfs/src/clone_cache.rs:218\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/crab-vfs/src/clone_cache.rs"},"region":{"startLine":218}}}],"partialFingerprints":{"codehealthFindingId/v1":"443d44b23531a22965495f382d9d45616fada6ce7ca8a4c46d9c372ce0d31d05"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/crab-sdk/src/client/mutation/native_content.rs:154-161 | crates/crab-sdk/src/local/push/content.rs:54-61 \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/crab-sdk/src/client/mutation/native_content.rs:154\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/crab-sdk/src/client/mutation/native_content.rs"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0cee6a22894d02c7b2e557e48b2cb4704db94c597c0db7a88664254b9ba8e4c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/crab-vfs/src/ipc_client.rs:500-507 | crates/crab-vfs/src/ipc_client.rs:520-527 \u2014 both copies are in the same file, so extract the block 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/crab-vfs/src/ipc_client.rs:500\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/crab-vfs/src/ipc_client.rs"},"region":{"startLine":500}}}],"partialFingerprints":{"codehealthFindingId/v1":"0cc8a2133fdc9c54cabd79d82919dda2f8959430d32e4e84e06bbfc3eefaee81"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crab/src/cmd/lfs/checkout.rs:281-288 | crab/src/cmd/lfs/checkout.rs:303-310 \u2014 both copies are in the same file, so extract the block 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":"crab/src/cmd/lfs/checkout.rs"},"region":{"startLine":281}}}],"partialFingerprints":{"codehealthFindingId/v1":"0df282e47f0cebedb8ec3d8116a5a7d485243b9813bb9e9525ec80dd7c970b9e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/crab-vfs/src/daemon.rs:486-493 | crates/crab-vfs/src/daemon.rs:501-508 \u2014 both copies are in the same file, so extract the block 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/crab-vfs/src/daemon.rs:486\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/crab-vfs/src/daemon.rs"},"region":{"startLine":486}}}],"partialFingerprints":{"codehealthFindingId/v1":"22620302c2336cc2ecdf4f3af68050b1c99cbd498c08cd3d27b732955652228e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crab/src/cmd/recover.rs:1524-1531 | crab/src/cmd/recover.rs:1601-1608 \u2014 both copies are in the same file, so extract the block 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 \u0060crab/src/cmd/recover.rs:1524\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, \u0060crab/src/cmd/recover.rs:1522\u0060 calls \u0060get\u0060 and \u0060crab/src/cmd/recover.rs:1599\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":"crab/src/cmd/recover.rs"},"region":{"startLine":1524}}}],"partialFingerprints":{"codehealthFindingId/v1":"860dce4615280f372beb243a6b6761af407a5c1b26e2b893c922e57231eb4199"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/crab-http-server/src/git_objects.rs:14-21 | crates/crab-s3-gateway/src/mutation.rs:3039-3046 \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/crab-http-server/src/git_objects.rs:14\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/crab-http-server/src/git_objects.rs"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fd4b0d25a9f62f122c7eea48f3be949e728e25028e33085d5095c43065b3e8c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/crab-staging/src/index.rs:3076-3083 | crates/crab-staging/src/index.rs:3370-3377 \u2014 both copies are in the same file, so extract the block 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/crab-staging/src/index.rs:3076\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/crab-staging/src/index.rs"},"region":{"startLine":3076}}}],"partialFingerprints":{"codehealthFindingId/v1":"16456ea3c6c058c5c66888e92aa87ccefa4ef88a4cd6c176adc31bd08661e762"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/crab-http-server/src/cells/repository/operations.rs:179-186 | crates/crab-http-server/src/cells/repository/operations.rs:554-561 \u2014 both copies are in the same file, so extract the block 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/crab-http-server/src/cells/repository/operations.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/crab-http-server/src/cells/repository/operations.rs"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"917e47fa922b0755bce51a1e1647ac9ddae9cbfac0341701aaaa1ecc17e1401b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/crab-staging/src/index.rs:8814-8819 | crates/crab-staging/src/index.rs:8823-8830 \u2014 both copies are in the same file, so extract the block 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/crab-staging/src/index.rs:8814\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060crates/crab-staging/src/index.rs:8821\u0060 calls \u0060nonnegative_count\u0060 and \u0060crates/crab-staging/src/index.rs:8813\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/crab-staging/src/index.rs"},"region":{"startLine":8814}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd18cc8662fb65a4083df048e637da9c5a1dd441e40daea9d408142395dbb577"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/crab-staging/src/index.rs:5814-5821 | crates/crab-staging/src/index.rs:6119-6124 \u2014 both copies are in the same file, so extract the block 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/crab-staging/src/index.rs:5814\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/crab-staging/src/index.rs"},"region":{"startLine":5814}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ad97f11dae6ac1ada78659d7dae24a3f290610b878c5419679e91dd5d9b1531"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/crab-vfs/src/daemon.rs:318-325 | crates/crab-vfs/src/overlay.rs:118-125 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060conn\u0060 to \u0060\u0026rusqlite::Connection\u0060 in one and \u0060\u0026Connection\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/crab-vfs/src/daemon.rs"},"region":{"startLine":318}}}],"partialFingerprints":{"codehealthFindingId/v1":"9561ad31ba80bf5295ef236798a6e29daabfecdc9ed7af0030d3633bce804cdc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/crab-http-server/src/auth.rs:579-586 | crates/crab-http-server/src/auth/git_tokens.rs:54-61 \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/crab-http-server/src/auth.rs:579\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/crab-http-server/src/auth.rs"},"region":{"startLine":579}}}],"partialFingerprints":{"codehealthFindingId/v1":"09da26adcd93e4429f20af613d55c80077183eea9cf8c20f1eadb903a01d561c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 5): crab/src/cmd/hydrate.rs:2949-2956 | crab/src/cmd/hydrate.rs:2982-2989 | crab/src/cmd/hydrate.rs:3008-3015 | crab/src/cmd/hydrate.rs:3139-3146 | crab/src/cmd/hydrate.rs:3187-3194 \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 \u0060crab/src/cmd/hydrate.rs:2949\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":"crab/src/cmd/hydrate.rs"},"region":{"startLine":2949}}}],"partialFingerprints":{"codehealthFindingId/v1":"883e4f479672da80cb0fba419b295a222b7acc6d0cd837ee247ab8c1422cb5c0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/crab-http-server/src/cells/repository/pull_review_threads.rs:1398-1405 | crates/crab-http-server/src/cells/repository/pulls.rs:1632-1639 \u2014 before extracting anything, compare \u0060crates/crab-http-server/src/cells/repository/pull_review_threads.rs\u0060 and \u0060crates/crab-http-server/src/cells/repository/pulls.rs\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 50 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/crab-http-server/src/cells/repository/pull_review_threads.rs:1398\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/crab-http-server/src/cells/repository/pull_review_threads.rs"},"region":{"startLine":1398}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1144b5a6a613803c4ec1a70e75ce21ceead61338e53a3f512dd59f2feca3262"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crab/src/cmd/gc/bucket.rs:1678-1685 | crab/src/cmd/gc/bucket.rs:1743-1750 \u2014 both copies are in the same file, so extract the block 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 \u0060crab/src/cmd/gc/bucket.rs:1678\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":"crab/src/cmd/gc/bucket.rs"},"region":{"startLine":1678}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f7669293241502875efbfb7ff0694046fbd659243af0151fa6ab1cfc73b8438"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crab/src/cmd/status.rs:280-287 | crab/src/cmd/status.rs:289-296 \u2014 both copies are in the same file, so extract the block 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 \u0060crab/src/cmd/status.rs:280\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":"crab/src/cmd/status.rs"},"region":{"startLine":280}}}],"partialFingerprints":{"codehealthFindingId/v1":"399683469272e28a453b622683f92839e8084842261e718725c1d44dea8cebc0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/crab-s3-gateway/src/multipart.rs:1098-1103 | crates/crab-s3-gateway/src/multipart.rs:1195-1202 \u2014 both copies are in the same file, so extract the block 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/crab-s3-gateway/src/multipart.rs:1098\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060crates/crab-s3-gateway/src/multipart.rs:1095\u0060 calls \u0060Some\u0060 and \u0060crates/crab-s3-gateway/src/multipart.rs:1193\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/crab-s3-gateway/src/multipart.rs"},"region":{"startLine":1098}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f9e3e9aa6309ba8d70629f78fdddd0a5690e0c14262b74f0ddced1de28cfad5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/crab-workflow/src/artifact.rs:2143-2148 | crates/crab-workflow/src/source.rs:177-184 \u2014 before extracting anything, compare \u0060crates/crab-workflow/src/artifact.rs\u0060 and \u0060crates/crab-workflow/src/source.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 44 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/crab-workflow/src/artifact.rs:2143\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. 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/crab-workflow/src/artifact.rs"},"region":{"startLine":2143}}}],"partialFingerprints":{"codehealthFindingId/v1":"b82c78fcf58f1bd5f25347529c6dbd492655b662abadaa615b8338604a3bbd95"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): crates/crab-staging/src/index.rs:2289-2296 | crates/crab-staging/src/index.rs:3076-3083 | crates/crab-staging/src/index.rs:3370-3377 \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/crab-staging/src/index.rs:2289\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/crab-staging/src/index.rs"},"region":{"startLine":2289}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a89861591dc6327fcd4db578a194aa4f469a735f93b4f1b10b9c84b30bf882b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crab/src/cmd/migrate.rs:1530-1537 | crab/src/cmd/migrate.rs:2375-2382 \u2014 both copies are in the same file, so extract the block 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 \u0060crab/src/cmd/migrate.rs:1530\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":"crab/src/cmd/migrate.rs"},"region":{"startLine":1530}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ef1c8466ce116ba2070b1f10c1db8a5754b95c97c431a74b29bf3dc0ac05d9e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): crab/src/cmd/lfs/dedup.rs:444-451 | crab/src/cmd/lfs/dedup.rs:949-956 | crab/src/cmd/lfs/dedup.rs:1042-1049 \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 \u0060crab/src/cmd/lfs/dedup.rs:444\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":"crab/src/cmd/lfs/dedup.rs"},"region":{"startLine":444}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2fbaf84979ffa5eba97e9c3c711c1c8ee60b12e4d11bc5376a603a95809339f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/crab-staging/src/index.rs:3750-3757 | crates/crab-staging/src/index.rs:3873-3880 \u2014 both copies are in the same file, so extract the block 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/crab-staging/src/index.rs:3750\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/crab-staging/src/index.rs"},"region":{"startLine":3750}}}],"partialFingerprints":{"codehealthFindingId/v1":"356651c7c70c5196e59904b53874aa235fab672fee29c0a5239db10b37261cbf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/crab-vfs/src/coordinator.rs:769-776 | crates/crab-vfs/src/coordinator.rs:783-790 \u2014 both copies are in the same file, so extract the block 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/crab-vfs/src/coordinator.rs:769\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/crab-vfs/src/coordinator.rs"},"region":{"startLine":769}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca1155e947d30c8cce4b1486faf10bc7cffa0f26c889c9b1eecc31aa5d8a3783"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crab/src/cmd/freeze.rs:198-205 | crab/src/cmd/freeze.rs:215-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 \u0060crab/src/cmd/freeze.rs:198\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":"crab/src/cmd/freeze.rs"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6b8ab18f441013b63f5e82083d18015feb34e3236488fbfb2376ec75c201106"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): crab/src/cmd/managed_admin.rs:437-444 | crab/src/cmd/managed_admin.rs:455-462 | crab/src/cmd/managed_admin.rs:473-480 \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 \u0060crab/src/cmd/managed_admin.rs:437\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":"crab/src/cmd/managed_admin.rs"},"region":{"startLine":437}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5d1e01bdbfd337d766467f903607af910a2def2d0f0ec82d747bb039f4b8be1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crab/src/cmd/compact.rs:481-487 | crab/src/cmd/compact.rs:506-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crab/src/cmd/compact.rs:481\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":"crab/src/cmd/compact.rs"},"region":{"startLine":481}}}],"partialFingerprints":{"codehealthFindingId/v1":"110e3991f04f45dccd3d00738b7ccb7e1ea5428880d0fb54b17e4eff0cba9dcf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/crab-vfs/src/signal_handler.rs:72-79 | crates/crab-vfs/src/signal_handler.rs:87-94 \u2014 both copies are in the same file, so extract the block 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/crab-vfs/src/signal_handler.rs:72\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/crab-vfs/src/signal_handler.rs"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b4933d3c0f0818fe3812124f5f20990bf66cd8122937e6b3bad2ea46b9bccc0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): crab/src/cmd/lfs/dedup.rs:415-422 | crab/src/cmd/lfs/dedup.rs:919-926 | crab/src/cmd/lfs/dedup.rs:1009-1016 \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 \u0060crab/src/cmd/lfs/dedup.rs:415\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":"crab/src/cmd/lfs/dedup.rs"},"region":{"startLine":415}}}],"partialFingerprints":{"codehealthFindingId/v1":"e74831fb296c2212bf945e7b388bd1128c7782ae29070c1dedfbca76e4282577"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/crab-metadata/src/receipts.rs:63-70 | crates/crab-metadata/src/receipts.rs:77-84 \u2014 both copies are in the same file, so extract the block 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/crab-metadata/src/receipts.rs"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"890f8637e8c72cb14e77a2e1bbf3e86d29eaa56013f4c57eaf1792d7549656e0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crab/src/main.rs:5930-5937 | crab/src/main.rs:5944-5951 \u2014 both copies are in the same file, so extract the block 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 \u0060crab/src/main.rs:5930\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":"crab/src/main.rs"},"region":{"startLine":5930}}}],"partialFingerprints":{"codehealthFindingId/v1":"25f10425dc7a7b01cd24a046514d9c91c2448181e4cb063fb14d03f81d1b7628"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/crab-vfs/src/mount_runtime.rs:211-218 | crates/crab-vfs/src/mount_runtime.rs:251-258 \u2014 both copies are in the same file, so extract the block 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/crab-vfs/src/mount_runtime.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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-vfs/src/mount_runtime.rs"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"99a2d1a3192cd833d61d9074e979b863236a2ca15a9e723340ace2ded749c2ce"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/crab-workflow/src/artifact.rs:331-338 | crates/crab-workflow/src/source.rs:62-69 \u2014 before extracting anything, compare \u0060crates/crab-workflow/src/artifact.rs\u0060 and \u0060crates/crab-workflow/src/source.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 44 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/crab-workflow/src/artifact.rs"},"region":{"startLine":331}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b8994c8cf247a32b0650d52684669f29c8554c3791b8f872bb5f3f6cdd79233"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 4): crab/src/cmd/managed_admin.rs:421-427 | crab/src/cmd/managed_admin.rs:438-445 | crab/src/cmd/managed_admin.rs:456-463 | crab/src/cmd/managed_admin.rs:474-481 \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 \u0060crab/src/cmd/managed_admin.rs:421\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, \u0060crab/src/cmd/managed_admin.rs:421\u0060 calls \u0060revision_etag\u0060 and \u0060crab/src/cmd/managed_admin.rs:438\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":"crab/src/cmd/managed_admin.rs"},"region":{"startLine":421}}}],"partialFingerprints":{"codehealthFindingId/v1":"202a09b01b864a799e4802ab017477e86039beddab1c2e9180240e103ff59c56"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 4): crates/crab-staging/src/index.rs:2969-2973 | crates/crab-staging/src/index.rs:3892-3899 | crates/crab-staging/src/index.rs:6020-6027 | crates/crab-staging/src/index.rs:6904-6911 \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/crab-staging/src/index.rs:2969\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/crab-staging/src/index.rs"},"region":{"startLine":2969}}}],"partialFingerprints":{"codehealthFindingId/v1":"2794201a4392ac2a9501a4f5bcab3f8484bcb3701493e21e61c749061a4ef286"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/crab-staging/src/index.rs:7465-7472 | crates/crab-staging/src/index.rs:7565-7572 \u2014 both copies are in the same file, so extract the block 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/crab-staging/src/index.rs:7465\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/crab-staging/src/index.rs"},"region":{"startLine":7465}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3f556eb3dc65982362179f77709f2686d2d2a0b3aab7bb8bddf23704760421e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/crab-http-server/src/pulls/review_threads.rs:58-65 | crates/crab-http-server/src/pulls/review_threads.rs:582-589 \u2014 both copies are in the same file, so extract the block 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/crab-http-server/src/pulls/review_threads.rs"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"53fe03231fc04b0fd7aed4c3d89c3786cc08224d5931a2131f55295a0ffa8fbc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crab/src/cmd/lfs/dedup.rs:1128-1135 | crab/src/cmd/lfs/dedup.rs:1173-1180 \u2014 both copies are in the same file, so extract the block 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 \u0060crab/src/cmd/lfs/dedup.rs:1128\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":"crab/src/cmd/lfs/dedup.rs"},"region":{"startLine":1128}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0c2b424b306bf6fe4ffb676ca085c6538311b562eaafb4e89540c7be18e74f9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/crab-sdk/src/local/edit.rs:1089-1096 | crates/crab-sdk/src/local/fetch/recovery.rs:47-54 \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/crab-sdk/src/local/edit.rs:1089\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 first that the copies are not typed on the same thing: the declarations holding them bind \u0060intent\u0060 to \u0060\u0026IntegrationIntent\u0060 in one and \u0060\u0026FetchIntent\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/crab-sdk/src/local/edit.rs"},"region":{"startLine":1089}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f9b9987fb6c859364c7570141abf78bb8389525ffc6f9c43b3419d33da6e929"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/crab-workflow/src/params.rs:946-953 | crates/crab-workflow/src/params.rs:982-989 \u2014 both copies are in the same file, so extract the block 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/crab-workflow/src/params.rs:946\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 \u0060\u0026serde_json::Value\u0060 in one and \u0060\u0026toml::Value\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/crab-workflow/src/params.rs"},"region":{"startLine":946}}}],"partialFingerprints":{"codehealthFindingId/v1":"81c66ace8f89036d4bf1913aaead9fcc441f53a45c7e10818480dca23f440f7f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): crab/src/cmd/exp_queue.rs:1362-1369 | crab/src/cmd/freeze.rs:389-396 | crab/src/cmd/stage/add.rs:437-444 \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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crab/src/cmd/exp_queue.rs:1362\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060crab/src/cmd/exp_queue.rs:1359\u0060 calls \u0060create_dir_all\u0060, \u0060map_err\u0060 and \u0060crab/src/cmd/freeze.rs:386\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":"crab/src/cmd/exp_queue.rs"},"region":{"startLine":1362}}}],"partialFingerprints":{"codehealthFindingId/v1":"dce2cfb142b44ef0182fca9342d57f8b3467b1252f4fc3b2a3bb424897f26f11"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/crab-auth-server/src/view/git_workspace.rs:429-436 | crates/crab-auth-server/src/view/git_workspace.rs:480-487 \u2014 both copies are in the same file, so extract the block 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/crab-auth-server/src/view/git_workspace.rs"},"region":{"startLine":429}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c427bfb295aade12fc79581686ed89f80b3ff4f20cec2d245f21d0f1feddf97"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 4): crab/src/cmd/dehydrate.rs:1164-1171 | crab/src/cmd/hydrate.rs:2031-2038 | crab/src/cmd/status.rs:1033-1040 | crab/src/cost/report.rs:93-100 \u2014 before extracting anything, compare \u0060crab/src/cmd/dehydrate.rs\u0060 and \u0060crab/src/cmd/hydrate.rs\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 223 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 \u0060crab/src/cmd/dehydrate.rs:1164\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":"crab/src/cmd/dehydrate.rs"},"region":{"startLine":1164}}}],"partialFingerprints":{"codehealthFindingId/v1":"b35a949816104e0756127823bce12f63e19f2def47112595d9b457ae141991f7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crab/src/git/filter_process.rs:1429-1434 | crab/src/git/filter_process.rs:1537-1544 \u2014 both copies are in the same file, so extract the block 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 \u0060crab/src/git/filter_process.rs:1429\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":"crab/src/git/filter_process.rs"},"region":{"startLine":1429}}}],"partialFingerprints":{"codehealthFindingId/v1":"8962cf6815a0c8f086655a205c67666910edfa160c358c9e9d7c2612c948a8e4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/crab-read/src/selection.rs:331-338 | crates/crab-read/src/selection.rs:361-368 \u2014 both copies are in the same file, so extract the block 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/crab-read/src/selection.rs:331\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/crab-read/src/selection.rs"},"region":{"startLine":331}}}],"partialFingerprints":{"codehealthFindingId/v1":"be9290028faa1f5d2ab65ba7a853237a4bc296334cf87f2046462b45de98fda0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): crates/crab-http-server/src/cells/repository.rs:887-894 | crates/crab-http-server/src/cells/repository/projection.rs:1137-1144 | crates/crab-http-server/src/cells/repository/releases.rs:1147-1154 \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. 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/crab-http-server/src/cells/repository.rs"},"region":{"startLine":887}}}],"partialFingerprints":{"codehealthFindingId/v1":"7588c581d10f0253ff0e5ec54e98044fc60c442a9f5935275c9a2584f0112943"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crab/src/main.rs:4478-4485 | crab/src/main.rs:4512-4519 \u2014 both copies are in the same file, so extract the block 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":"crab/src/main.rs"},"region":{"startLine":4478}}}],"partialFingerprints":{"codehealthFindingId/v1":"980ee3352e57abf1b843f7f704aef7b3e93c767c27e1caaa9dd862c8c5a680c8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/crab-http-server/src/labels.rs:189-196 | crates/crab-http-server/src/labels.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/crab-http-server/src/labels.rs:189\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 first that the copies are not typed on the same thing: the declarations holding them bind \u0060input\u0060 to \u0060std::result::Result\u003CJson\u003CNewLabel\u003E\u0060 in one and \u0060std::result::Result\u003CJson\u003CLabelEdit\u003E\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/crab-http-server/src/labels.rs"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"a581a7ad795cc77e5ed1ce2d992cedb84b16d9bbe489f996850edf2305ce09dd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/crab-staging/src/index.rs:2077-2082 | crates/crab-staging/src/index.rs:4039-4046 \u2014 both copies are in the same file, so extract the block 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/crab-staging/src/index.rs:2077\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/crab-staging/src/index.rs"},"region":{"startLine":2077}}}],"partialFingerprints":{"codehealthFindingId/v1":"8011dd5a24dcb85e62af4f9e3d89e0b2be5a5d70f09c9c68b41ace908874e867"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/crab-s3-gateway/src/multipart.rs:1455-1462 | crates/crab-s3-gateway/src/multipart.rs:1486-1493 \u2014 both copies are in the same file, so extract the block 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/crab-s3-gateway/src/multipart.rs"},"region":{"startLine":1455}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7c5a4980baa819f4d9387506176f56f51b3e4c2afbff29cfcc7dac570facd18"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crab/src/cmd/lfs/dedup.rs:431-435 | crab/src/import/assemble.rs:967-974 \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 \u0060crab/src/cmd/lfs/dedup.rs:431\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. 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":"crab/src/cmd/lfs/dedup.rs"},"region":{"startLine":431}}}],"partialFingerprints":{"codehealthFindingId/v1":"92732d3bef23f274c8dbedf4afca635a4a35a8a0f5959dbea8cf50f270164847"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/crab-http-server/src/cells/repository/projection.rs:426-433 | crates/crab-http-server/src/cells/repository/projection.rs:497-504 \u2014 both copies are in the same file, so extract the block 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/crab-http-server/src/cells/repository/projection.rs:426\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/crab-http-server/src/cells/repository/projection.rs"},"region":{"startLine":426}}}],"partialFingerprints":{"codehealthFindingId/v1":"788391ee69efe932b2c8c974063ab4eddf5da8a32402e19a0be464f865e00051"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crab/src/cmd/exp.rs:2645-2652 | crab/src/cmd/exp.rs:3369-3376 \u2014 both copies are in the same file, so extract the block 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 \u0060crab/src/cmd/exp.rs:2645\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":"crab/src/cmd/exp.rs"},"region":{"startLine":2645}}}],"partialFingerprints":{"codehealthFindingId/v1":"00235b350ba4343218493743db6d3354769bb740019881956256e664dec7829d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 4): crab/src/cmd/recover.rs:2011-2017 | crab/src/cmd/recover.rs:2125-2131 | crab/src/cmd/recover.rs:2268-2274 | crab/src/cmd/recover.rs:2677-2683 \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. 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":"crab/src/cmd/recover.rs"},"region":{"startLine":2011}}}],"partialFingerprints":{"codehealthFindingId/v1":"946a196d3604526c4711cab27b7ac83c7ea9ac27e3465a1778794b0e84582c4c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/crab-cache/src/local_cache.rs:1304-1310 | crates/crab-cache/src/local_cache.rs:1400-1406 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/crab-cache/src/local_cache.rs:1304\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/crab-cache/src/local_cache.rs"},"region":{"startLine":1304}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d707e4ac6699a07a7c395b9bcf99b6efc25d2bf0cb083bbcc0f6eccac3cccd1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 4): crab/src/read/mod.rs:560-564 | crab/src/read/mod.rs:645-649 | crates/crab-vfs/src/snapshot.rs:574-579 | crates/crab-workflow/src/params_runtime.rs:388-394 \u2014 there are 4 copies across 3 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 \u0060crab/src/read/mod.rs:560\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":"crab/src/read/mod.rs"},"region":{"startLine":560}}}],"partialFingerprints":{"codehealthFindingId/v1":"49ef4774ab61cf9ad1492c107b41179f870ce356902068a163633897bec0a12c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5\u20136 lines \u00D7 3): crab/src/cmd/run.rs:3493-3499 | crab/src/cmd/status_workflow.rs:930-935 | crates/crab-workflow/src/stage_runtime.rs:451-455 \u2014 before extracting anything, compare \u0060crab/src/cmd/run.rs\u0060 and \u0060crab/src/cmd/status_workflow.rs\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 66 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 \u0060crab/src/cmd/run.rs:3493\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":"crab/src/cmd/run.rs"},"region":{"startLine":3493}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6e143e3483903c313c2851174fbd2c795ec48701fbe8a7f745367f7fe42c040"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/crab-auth/src/azure_entra.rs:321-327 | crates/crab-auth/src/gcp_federation.rs:314-320 \u2014 before extracting anything, compare \u0060crates/crab-auth/src/azure_entra.rs\u0060 and \u0060crates/crab-auth/src/gcp_federation.rs\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 95 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/crab-auth/src/azure_entra.rs:321\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/crab-auth/src/azure_entra.rs"},"region":{"startLine":321}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc06b836c22af24401259e06c4af270853508bfed4ab025f3ef0a5b29e769bdf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crab/src/cmd/gc/bucket.rs:694-699 | crab/src/cmd/gc/bucket.rs:779-785 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/cmd/gc/bucket.rs"},"region":{"startLine":694}}}],"partialFingerprints":{"codehealthFindingId/v1":"c37b2fdd89aa9679fad7bc13e8f9a1744002dec17597ac5ce6c875986e5e967b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crab/src/cmd/exp.rs:2005-2011 | crab/src/cmd/migrate.rs:1401-1407 \u2014 before extracting anything, compare \u0060crab/src/cmd/exp.rs\u0060 and \u0060crab/src/cmd/migrate.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 31 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 \u0060crab/src/cmd/exp.rs:2005\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":"crab/src/cmd/exp.rs"},"region":{"startLine":2005}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3ebac8d31f4daa546220c1f8c46420c7d2176d44f63dda8f16bfbfe3875c672"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/crab-vfs/src/publish.rs:1257-1263 | crates/crab-vfs/src/publish.rs:1396-1401 \u2014 both copies are in the same file, so extract the block 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/crab-vfs/src/publish.rs:1257\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 \u0060paths\u0060 to \u0060\u0026[String]\u0060 in one and \u0060\u0026std::collections::BTreeSet\u003CString\u003E\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/crab-vfs/src/publish.rs"},"region":{"startLine":1257}}}],"partialFingerprints":{"codehealthFindingId/v1":"01a2451ffbd74ec070836f6d72e71f1c55920161f0ec5c58e974efbbb51825e7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): crates/crab-staging/src/index.rs:3278-3283 | crates/crab-staging/src/index.rs:6476-6482 | crates/crab-staging/src/index.rs:6583-6588 \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/crab-staging/src/index.rs"},"region":{"startLine":3278}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e1cce75b4e2e16c255f1890c18a7a90e24be5d56adb28038c2a09402c89be0f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): crab/src/cmd/mount.rs:3936-3942 | crates/crab-vfs/src/ipc_client.rs:293-299 | crates/crab-vfs/src/mounts_registry.rs:63-69 \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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crab/src/cmd/mount.rs:3936\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":"crab/src/cmd/mount.rs"},"region":{"startLine":3936}}}],"partialFingerprints":{"codehealthFindingId/v1":"8724e9d8f9074fe0ad488b90dfe3f14ee8d7c8d29b1d2c05698bf8fda18c2eb4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): crab/src/cmd/exp.rs:2907-2913 | crab/src/cmd/exp.rs:5815-5821 | crab/src/cmd/exp.rs:5835-5841 \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 \u0060crab/src/cmd/exp.rs:2907\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":"crab/src/cmd/exp.rs"},"region":{"startLine":2907}}}],"partialFingerprints":{"codehealthFindingId/v1":"a81c6ddae5c1e4b1f7238626f73b9521d9048e74a16612d98ab3604cac0f4531"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crab/src/import/ingest.rs:840-846 | crates/crab-staging/src/stream.rs:1463-1469 \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 \u0060crab/src/import/ingest.rs:840\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":"crab/src/import/ingest.rs"},"region":{"startLine":840}}}],"partialFingerprints":{"codehealthFindingId/v1":"713df1bd59765eb46c7c15a1b37e4f3a394d529649d223ded5b6f742c63fe4c0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/crab-http-server/src/cells/repository/operations.rs:527-533 | crates/crab-http-server/src/cells/repository/operations.rs:609-615 \u2014 both copies are in the same file, so extract the block 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/crab-http-server/src/cells/repository/operations.rs:527\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/crab-http-server/src/cells/repository/operations.rs:526\u0060 calls \u0060validate_label_fields\u0060, \u0060as_deref\u0060 and \u0060crates/crab-http-server/src/cells/repository/operations.rs:608\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/crab-http-server/src/cells/repository/operations.rs"},"region":{"startLine":527}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9ee83fb3d60747f83fbe0206178bbe366c89a4752e611ef853a165728954300"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crab/src/cmd/init.rs:602-607 | crab/src/import/assemble.rs:423-429 \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 \u0060crab/src/cmd/init.rs:602\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":"crab/src/cmd/init.rs"},"region":{"startLine":602}}}],"partialFingerprints":{"codehealthFindingId/v1":"620ab005d932c5a2da118052429caeea9cda7f6677add86089e8cb5b8b1b4119"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/crab-http-server/src/issues.rs:572-578 | crates/crab-http-server/src/issues.rs:639-645 \u2014 both copies are in the same file, so extract the block 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/crab-http-server/src/issues.rs:572\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 \u0060input\u0060 to \u0060std::result::Result\u003CJson\u003CNewComment\u003E\u0060 in one and \u0060std::result::Result\u003CJson\u003CCommentEdit\u003E\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/crab-http-server/src/issues.rs"},"region":{"startLine":572}}}],"partialFingerprints":{"codehealthFindingId/v1":"efcfdc49362279dd2147882f63c165774a14790131b019076dcf3c402343f859"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crab/src/cmd/lfs/dedup.rs:929-935 | crab/src/cmd/lfs/dedup.rs:1019-1025 \u2014 both copies are in the same file, so extract the block 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 \u0060crab/src/cmd/lfs/dedup.rs:929\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":"crab/src/cmd/lfs/dedup.rs"},"region":{"startLine":929}}}],"partialFingerprints":{"codehealthFindingId/v1":"28b1e48e1583e98cbda909ee0586812db4d502d598576821c0b574e2ff562837"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crab/src/cmd/init.rs:977-983 | crab/src/cmd/init.rs:1064-1070 \u2014 both copies are in the same file, so extract the block 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":"crab/src/cmd/init.rs"},"region":{"startLine":977}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9e7b0187f89cfe58b4a85223b8154494751a17c39e6fc9816e78fb3a1e65e21"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): crates/crab-workflow/src/params.rs:895-901 | crates/crab-workflow/src/params.rs:948-954 | crates/crab-workflow/src/params.rs:984-990 \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/crab-workflow/src/params.rs:895\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 first that the copies are not typed on the same thing: the declarations holding them bind \u0060value\u0060 to \u0060\u0026serde_yaml::Value\u0060 in one and \u0060\u0026serde_json::Value\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/crab-workflow/src/params.rs"},"region":{"startLine":895}}}],"partialFingerprints":{"codehealthFindingId/v1":"7655ab683c278f03de2ac8d0478afbe328adfb417cb9e24505e4e14fac1c64ae"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crab/src/cmd/exp.rs:2866-2872 | crab/src/cmd/exp.rs:3163-3169 \u2014 both copies are in the same file, so extract the block 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 \u0060crab/src/cmd/exp.rs:2866\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":"crab/src/cmd/exp.rs"},"region":{"startLine":2866}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4f12a478a1439622fdfb5d0fc137f0267139aada3a5a7fa2467af7972675f59"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/crab-vfs/src/fuse.rs:1215-1221 | crates/crab-vfs/src/fuse.rs:1266-1272 \u2014 both copies are in the same file, so extract the block 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/crab-vfs/src/fuse.rs:1215\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/crab-vfs/src/fuse.rs"},"region":{"startLine":1215}}}],"partialFingerprints":{"codehealthFindingId/v1":"5deab50f03b66df89ebfd79fa56d7eafc789a30b3917848b827f9ff21d50b02c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crab/src/cmd/metadb.rs:2268-2277 | crab/src/cmd/recover.rs:2655-2664 \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 \u0060crab/src/cmd/metadb.rs:2268\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":"crab/src/cmd/metadb.rs"},"region":{"startLine":2268}}}],"partialFingerprints":{"codehealthFindingId/v1":"b41093f253a4d870f9d4df8e5dd1b8deccc7d2a9052dc1c1f023a4f312faea95"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crab/src/cmd/metrics.rs:2250-2256 | crab/src/cmd/metrics.rs:2271-2277 \u2014 both copies are in the same file, so extract the block 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 \u0060crab/src/cmd/metrics.rs:2250\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":"crab/src/cmd/metrics.rs"},"region":{"startLine":2250}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ca32302023b3aad4e67092ffd3cfdfcac40661dd5e37de2b83978b97f1e7b35"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crab/src/git/push.rs:13839-13845 | crab/src/git/push.rs:13955-13960 \u2014 both copies are in the same file, so extract the block 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 \u0060crab/src/git/push.rs:13839\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":"crab/src/git/push.rs"},"region":{"startLine":13839}}}],"partialFingerprints":{"codehealthFindingId/v1":"090bc24bdc5429bcc1d957b2c200b15178a53e6abe3c81185f5d53562b6663d8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crab/src/cmd/exp.rs:2656-2661 | crab/src/cmd/exp.rs:3380-3386 \u2014 both copies are in the same file, so extract the block 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 \u0060crab/src/cmd/exp.rs:2656\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. 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":"crab/src/cmd/exp.rs"},"region":{"startLine":2656}}}],"partialFingerprints":{"codehealthFindingId/v1":"15561f62f09f09d4463149b4b4546c3bfbf799c4c8d1951107761fdb3a5a2582"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crab/src/cmd/migrate.rs:625-631 | crab/src/cmd/migrate.rs:1462-1468 \u2014 both copies are in the same file, so extract the block 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 \u0060crab/src/cmd/migrate.rs:625\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":"crab/src/cmd/migrate.rs"},"region":{"startLine":625}}}],"partialFingerprints":{"codehealthFindingId/v1":"c763074f936d90bb31857ef333b5345cdbd28cc25096af059e808d1218c34a5c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crab/src/cmd/init.rs:1074-1079 | crab/src/cmd/init.rs:1081-1087 \u2014 both copies are in the same file, so extract the block 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 \u0060crab/src/cmd/init.rs:1081\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":"crab/src/cmd/init.rs"},"region":{"startLine":1074}}}],"partialFingerprints":{"codehealthFindingId/v1":"24e54c6730e3d0d4c2590184053ad4fce864799060cfdf7e4a6212dce8425e6b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 4): crab/src/cmd/gc/bucket.rs:1461-1467 | crab/src/cmd/gc/bucket.rs:1655-1661 | crab/src/cmd/gc/bucket.rs:1719-1725 | crab/src/cmd/gc/bucket.rs:1792-1798 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/cmd/gc/bucket.rs"},"region":{"startLine":1461}}}],"partialFingerprints":{"codehealthFindingId/v1":"c155a0a4a9b63b3cbb88080f4608a2b89d8726642e21c570c8218eed99be793d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): crab/src/cmd/exp.rs:2881-2887 | crab/src/cmd/exp.rs:4092-4098 | crates/crab-workflow/src/exp_worktree.rs:448-454 \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 \u0060crab/src/cmd/exp.rs:2881\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":"crab/src/cmd/exp.rs"},"region":{"startLine":2881}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca3beae9c66ce30e5c73acbf6c759727eb6da9e0512a0737f0a77af411639b04"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crab/src/cmd/replica.rs:12493-12499 | crab/src/cmd/replica.rs:12990-12996 \u2014 both copies are in the same file, so extract the block 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 \u0060crab/src/cmd/replica.rs:12493\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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060payload\u0060 to \u0060\u0026RepairPayload\u0060 in one and \u0060\u0026StatusPayload\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":"crab/src/cmd/replica.rs"},"region":{"startLine":12493}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3c3b7428e8297afef1c44c3f793444c33c2c5e97a79ffd4926ebb9e5bff78d4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 4): crab/src/cmd/exp.rs:2004-2010 | crab/src/cmd/migrate.rs:1320-1326 | crab/src/cmd/migrate.rs:2663-2669 | crab/src/cmd/workflow_checkpoint.rs:615-621 \u2014 before extracting anything, compare \u0060crab/src/cmd/exp.rs\u0060 and \u0060crab/src/cmd/migrate.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 31 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/cmd/exp.rs"},"region":{"startLine":2004}}}],"partialFingerprints":{"codehealthFindingId/v1":"65c897497d8d587227aabd13ef839779e958d4bc310327450932b5e45665bd20"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): crab/src/cmd/gc/bucket.rs:1512-1518 | crab/src/cmd/gc/bucket.rs:1655-1661 | crab/src/cmd/gc/bucket.rs:1719-1725 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060crab/src/cmd/gc/bucket.rs:1511\u0060 calls \u0060global_content_prefix\u0060 and \u0060crab/src/cmd/gc/bucket.rs:1654\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":"crab/src/cmd/gc/bucket.rs"},"region":{"startLine":1512}}}],"partialFingerprints":{"codehealthFindingId/v1":"315c4c8a0268f8c5bfafc05e6120099eee717aab6f331033b1717214d388c7c9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crab/src/cmd/lfs/mod.rs:712-718 | crates/crab-vfs/src/publish.rs:1556-1562 \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 \u0060crab/src/cmd/lfs/mod.rs:712\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":"crab/src/cmd/lfs/mod.rs"},"region":{"startLine":712}}}],"partialFingerprints":{"codehealthFindingId/v1":"4569bc919ac47cd39c3ff48148c5a3b6302118519900ea29f672fe48ddeda535"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crab/src/cmd/migrate.rs:1541-1547 | crab/src/cmd/migrate.rs:2386-2392 \u2014 both copies are in the same file, so extract the block 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":"crab/src/cmd/migrate.rs"},"region":{"startLine":1541}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb982140a9efd53c9a88c76f5928bb1a4aee3f596df88ab0a908a75cc2c1a94c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/crab-vfs/src/snapshot.rs:874-880 | crates/crab-vfs/src/snapshot.rs:897-903 \u2014 both copies are in the same file, so extract the block 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/crab-vfs/src/snapshot.rs"},"region":{"startLine":874}}}],"partialFingerprints":{"codehealthFindingId/v1":"02ba2af805d873b92095ed4d7779b655eef5e80ef45a881a5ee1d2e7436b538d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crab/src/cmd/replica.rs:5004-5010 | crab/src/cmd/replica.rs:6155-6160 \u2014 both copies are in the same file, so extract the block 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 \u0060crab/src/cmd/replica.rs:5004\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":"crab/src/cmd/replica.rs"},"region":{"startLine":5004}}}],"partialFingerprints":{"codehealthFindingId/v1":"885f3efe2ecfc693fd78da195d706ae02909ad7897394866f9dbb7bb8b7492db"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crab/src/metadata/metadb/stores/file_index.rs:118-124 | crab/src/metadata/metadb/stores/file_index.rs:212-218 \u2014 both copies are in the same file, so extract the block 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 \u0060crab/src/metadata/metadb/stores/file_index.rs:118\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":"crab/src/metadata/metadb/stores/file_index.rs"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a0110788bef8775e7301278a5d6fc80b7a951304fee027b5c1ea00490b16995"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 4): crates/crab-http-server/src/cells/repository.rs:358-363 | crates/crab-http-server/src/cells/repository/checks.rs:146-151 | crates/crab-http-server/src/cells/repository/checks.rs:247-252 | crates/crab-http-server/src/cells/repository/operations.rs:406-411 \u2014 there are 4 copies across 3 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/crab-http-server/src/cells/repository.rs:358\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/crab-http-server/src/cells/repository.rs"},"region":{"startLine":358}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d758b4d405a5a2602601bf15a40cc1af1ae09d5a2c998831fe57910768b85fa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/crab-metadata/src/git_visibility.rs:3608-3613 | crates/crab-metadata/src/git_visibility.rs:3618-3623 \u2014 both copies are in the same file, so extract the block 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/crab-metadata/src/git_visibility.rs:3608\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/crab-metadata/src/git_visibility.rs"},"region":{"startLine":3608}}}],"partialFingerprints":{"codehealthFindingId/v1":"f21a724c809601e57ee0757887e3a3586e9c0b30f9cc8b5bbf481a0322018642"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crab/src/cmd/workflow_checkpoint.rs:252-257 | crab/src/cmd/workflow_checkpoint.rs:821-826 \u2014 both copies are in the same file, so extract the block 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":"crab/src/cmd/workflow_checkpoint.rs"},"region":{"startLine":252}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0bc06613648a7e724341480af95740d626fb12fac80b448b965bcd197041e7a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 6): crab/src/import/assemble.rs:407-412 | crab/src/import/assemble.rs:444-449 | crab/src/import/assemble.rs:830-835 | crab/src/import/assemble.rs:846-851 | crab/src/import/assemble.rs:1064-1069 | crab/src/import/assemble.rs:1080-1085 \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 \u0060crab/src/import/assemble.rs:407\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060crab/src/import/assemble.rs:405\u0060 calls \u0060arg\u0060 and \u0060crab/src/import/assemble.rs:828\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":"crab/src/import/assemble.rs"},"region":{"startLine":407}}}],"partialFingerprints":{"codehealthFindingId/v1":"8aaf43b5a2e5f2cb42b6f1b3c31fcbeba7382b390aedc5c05c161442faee72e2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crab/src/cmd/metrics.rs:2270-2275 | crab/src/cmd/metrics.rs:2282-2287 \u2014 both copies are in the same file, so extract the block 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 \u0060crab/src/cmd/metrics.rs:2270\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":"crab/src/cmd/metrics.rs"},"region":{"startLine":2270}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b365e66fb6852c083c1bc99fb007ac564b87a88c1aaedab26ad9d209c6e790d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/crab-workflow/src/artifact.rs:339-344 | crates/crab-workflow/src/dvc_inventory.rs:401-406 \u2014 before extracting anything, compare \u0060crates/crab-workflow/src/artifact.rs\u0060 and \u0060crates/crab-workflow/src/dvc_inventory.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 39 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/crab-workflow/src/artifact.rs:339\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/crab-workflow/src/artifact.rs"},"region":{"startLine":339}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa5fffa3fa65a1d978ca473161b0d6a01c4678e4262814176f828893081b14f1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crab/src/cmd/exp.rs:2637-2642 | crab/src/cmd/exp.rs:3361-3366 \u2014 both copies are in the same file, so extract the block 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 \u0060crab/src/cmd/exp.rs:2637\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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/cmd/exp.rs"},"region":{"startLine":2637}}}],"partialFingerprints":{"codehealthFindingId/v1":"538f145f1520858492f86cabf3d2d9549a423778421917949882a6f024b82c28"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 2): crab/src/cache/add_validation.rs:80-86 | crates/crab-staging/src/index.rs:6297-6304 \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 \u0060crab/src/cache/add_validation.rs:80\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":"crab/src/cache/add_validation.rs"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"1419c39686fa5db967c87e8efbe475cfc22a322a840bffd3ff3d164e2abe5cdb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crab/src/git/pack.rs:130-135 | crab/src/git/pack.rs:158-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crab/src/git/pack.rs:130\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":"crab/src/git/pack.rs"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3d7e3e94a0aa3689b9b54429bd7099d955967954f574dd8f79b3a31df50f35c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 5): crab/src/cmd/exp_queue.rs:1378-1383 | crates/crab-workflow/src/exp_worktree.rs:433-438 | crates/crab-workflow/src/exp_worktree.rs:498-503 | crates/crab-workflow/src/exp_worktree.rs:525-530 | crates/crab-workflow/src/params_runtime.rs:347-351 \u2014 there are 5 copies across 3 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 5 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crab/src/cmd/exp_queue.rs:1378\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":"crab/src/cmd/exp_queue.rs"},"region":{"startLine":1378}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad2406f04d5b75289a3343d82e80314462219e50adc94df3bf1450a88fd8bc43"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crab/src/replication/mod.rs:4820-4825 | crab/src/replication/mod.rs:4932-4937 \u2014 both copies are in the same file, so extract the block 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 \u0060tags\u0060 to \u0060\u0026[aws_sdk_s3control::types::S3Tag]\u0060 in one and \u0060\u0026[aws_sdk_iam::types::Tag]\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":"crab/src/replication/mod.rs"},"region":{"startLine":4820}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f6d90aeab534b5a795b6f602cc602f2b287cc6ac7ab5f9e654c0f56111dc636"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/crab-workflow/src/dvc_inventory.rs:565-570 | crates/crab-workflow/src/dvc_inventory.rs:579-584 \u2014 both copies are in the same file, so extract the block 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/crab-workflow/src/dvc_inventory.rs:565\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/crab-workflow/src/dvc_inventory.rs"},"region":{"startLine":565}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2932f0d905d64d06d158ddaf04b66c218021381739fc51cff6166d7f1e8cbd4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crab/src/git/push.rs:7101-7106 | crab/src/git/push.rs:13965-13970 \u2014 both copies are in the same file, so extract the block 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":"crab/src/git/push.rs"},"region":{"startLine":7101}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fe07ae37e9fcb1dd9f5b7d1fe2b5b4aaf679a1e54f655cb94f65dcc982fcbd0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/crab-git/src/walk.rs:361-366 | crates/crab-git/src/walk.rs:380-385 \u2014 both copies are in the same file, so extract the block 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/crab-git/src/walk.rs:361\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/crab-git/src/walk.rs"},"region":{"startLine":361}}}],"partialFingerprints":{"codehealthFindingId/v1":"61a116adbe2ca65ce02c58e7bc92b770109cef6ef7bfb5bfd2fdbc89a186698b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crab/src/cmd/lfs/fsck.rs:344-349 | crab/src/cmd/lfs/locks.rs:224-228 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crab/src/cmd/lfs/fsck.rs:344\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note 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":"crab/src/cmd/lfs/fsck.rs"},"region":{"startLine":344}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1f51a3d8e8cdc1c222b0fc0ddcb2430e55ca2bbae3223c2b959105cfebd8d52"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/crab-http-server/src/cells/repository/pulls.rs:745-750 | crates/crab-http-server/src/cells/repository/releases.rs:940-945 \u2014 before extracting anything, compare \u0060crates/crab-http-server/src/cells/repository/pulls.rs\u0060 and \u0060crates/crab-http-server/src/cells/repository/releases.rs\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 51 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/crab-http-server/src/cells/repository/pulls.rs:745\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/crab-http-server/src/cells/repository/pulls.rs"},"region":{"startLine":745}}}],"partialFingerprints":{"codehealthFindingId/v1":"26af0e1f910b176800d64aadbc42324e40f8d7e409d34e43316d2c8d6a5bca36"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crab/src/cmd/init.rs:497-502 | crab/src/cmd/init.rs:512-517 \u2014 both copies are in the same file, so extract the block 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 \u0060crab/src/cmd/init.rs:497\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":"crab/src/cmd/init.rs"},"region":{"startLine":497}}}],"partialFingerprints":{"codehealthFindingId/v1":"b38ba14695f9de1d17a54bdd7e2e0ce0a60c202a2b895979149577ae09b4f237"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/crab-vfs/src/daemon.rs:1267-1272 | crates/crab-vfs/src/daemon.rs:1435-1440 \u2014 both copies are in the same file, so extract the block 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/crab-vfs/src/daemon.rs"},"region":{"startLine":1267}}}],"partialFingerprints":{"codehealthFindingId/v1":"17fe39d433d5ab6e96ac0b3b5f91c86d0812226d0309fb678942762817ffa365"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/crab-workflow/src/lockfile.rs:1004-1009 | crates/crab-workflow/src/lockfile.rs:1081-1086 \u2014 both copies are in the same file, so extract the block 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/crab-workflow/src/lockfile.rs:1004\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/crab-workflow/src/lockfile.rs:1011\u0060 calls \u0060get_u64\u0060 and \u0060crates/crab-workflow/src/lockfile.rs:1088\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/crab-workflow/src/lockfile.rs"},"region":{"startLine":1004}}}],"partialFingerprints":{"codehealthFindingId/v1":"319012818ee40e7997fbafa2a4b454f846d7fd7dd6f5515ab6712fc3621eec27"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crab/src/lfs/transfer_agent.rs:891-896 | crates/crab-types/src/pointer.rs:235-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 \u0060crab/src/lfs/transfer_agent.rs:891\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":"crab/src/lfs/transfer_agent.rs"},"region":{"startLine":891}}}],"partialFingerprints":{"codehealthFindingId/v1":"df31139a9ad616534231440a5a60c0c1c425af05ffa12530d94a85674ed3af6d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crab/src/cmd/data.rs:386-391 | crab/src/cmd/data.rs:882-887 \u2014 both copies are in the same file, so extract the block 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 \u0060crab/src/cmd/data.rs:386\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":"crab/src/cmd/data.rs"},"region":{"startLine":386}}}],"partialFingerprints":{"codehealthFindingId/v1":"09c02b06ab825a2c67b9ee3d64bad84b8f98f2014b46be68fb78f83cf8561df6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crab/src/cmd/metrics.rs:4052-4056 | crates/crab-workflow/src/params_runtime.rs:736-741 \u2014 before extracting anything, compare \u0060crab/src/cmd/metrics.rs\u0060 and \u0060crates/crab-workflow/src/params_runtime.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 49 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crab/src/cmd/metrics.rs:4052\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":"crab/src/cmd/metrics.rs"},"region":{"startLine":4052}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f08f0648bb03a7af882ee249f414ea596e2af7c15278779b9c322bad7952715"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crab/src/cmd/init.rs:1000-1005 | crab/src/cmd/init.rs:1012-1017 \u2014 both copies are in the same file, so extract the block 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":"crab/src/cmd/init.rs"},"region":{"startLine":1000}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3d3582e883fefe1c7b7b5b6ba80bacce2319de8fdf57f5f89567f3b37a6dbf7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/crab-remote-git/src/pack.rs:1510-1515 | crates/crab-remote-git/src/pack.rs:1531-1536 \u2014 both copies are in the same file, so extract the block 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/crab-remote-git/src/pack.rs:1516\u0060 calls \u0060update\u0060, \u0060from\u0060, \u0060selected_object_digest\u0060 and \u0060crates/crab-remote-git/src/pack.rs:1537\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/crab-remote-git/src/pack.rs"},"region":{"startLine":1510}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d5c7ddb259b732c8c61814b50153e8b5478696e69a3f843735806f81e5c759f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crab/src/cmd/recover.rs:2993-2998 | crab/src/cmd/recover.rs:3001-3006 \u2014 both copies are in the same file, so extract the block 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":"crab/src/cmd/recover.rs"},"region":{"startLine":2993}}}],"partialFingerprints":{"codehealthFindingId/v1":"e868c244cbb62ea889c7fae7b6d1bc4857d439ebc5ebb7f842d0a8f9b71e8fc2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crab/src/cmd/replica.rs:1795-1800 | crab/src/cmd/replica.rs:1936-1941 \u2014 both copies are in the same file, so extract the block 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":"crab/src/cmd/replica.rs"},"region":{"startLine":1795}}}],"partialFingerprints":{"codehealthFindingId/v1":"7afe3d08d8c056f0a7dfc0d7af54656f8ed8f42ef296cd2b92d779524631b4c6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crab/src/lfs/migrate.rs:990-994 | crab/src/lfs/migrate.rs:1111-1116 \u2014 both copies are in the same file, so extract the block 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 \u0060crab/src/lfs/migrate.rs:1111\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":"crab/src/lfs/migrate.rs"},"region":{"startLine":990}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d0a624700010e98e287d142feb08be3c3b90f1d10bc734d70b3b6b660378d57"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/crab-http-server/src/cells/repository.rs:801-805 | crates/crab-http-server/src/cells/repository/checks.rs:755-759 \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/crab-http-server/src/cells/repository.rs"},"region":{"startLine":801}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b3b585dfbe4e7ac6389b0842561bb178c4be028025e6562533488b3684a6980"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/crab-vfs/src/engine.rs:1694-1698 | crates/crab-vfs/src/engine.rs:1715-1719 \u2014 both copies are in the same file, so extract the block 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/crab-vfs/src/engine.rs:1694\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/crab-vfs/src/engine.rs"},"region":{"startLine":1694}}}],"partialFingerprints":{"codehealthFindingId/v1":"7107eba8ab761de0907dfc54c911f1dfa0dd83fe41742f13c58177a3ec0ec1a8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 4): crab/src/git/push.rs:9208-9212 | crab/src/git/push.rs:17130-17134 | crab/src/git/push.rs:17455-17459 | crab/src/git/push.rs:17516-17520 \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 \u0060crab/src/git/push.rs:9208\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":"crab/src/git/push.rs"},"region":{"startLine":9208}}}],"partialFingerprints":{"codehealthFindingId/v1":"03e70a6f8c0f8a55604bc8924def6a85f223ddcbc3da2d575d5d0f951070262f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/crab-http-server/src/cells/repository/operations.rs:238-245 | crates/crab-http-server/src/cells/repository/operations.rs:319-326 \u2014 both copies are in the same file, so extract the block 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/crab-http-server/src/cells/repository/operations.rs:238\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/crab-http-server/src/cells/repository/operations.rs"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"5156f77e677227d69844b2cc98f15efbce4502df6c3b70e4ad9e7fe0cf93af15"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/crab-vfs/src/engine.rs:1603-1607 | crates/crab-vfs/src/engine.rs:1637-1641 \u2014 both copies are in the same file, so extract the block 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/crab-vfs/src/engine.rs"},"region":{"startLine":1603}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f02a37a3d62730822257e14a4a6fb74d0da5a645a14284b7cd1867cebefdb99"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crab/src/optimize/xorbs/executor.rs:442-446 | crab/src/optimize/xorbs/reconcile.rs:182-186 \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 \u0060crab/src/optimize/xorbs/executor.rs:442\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":"crab/src/optimize/xorbs/executor.rs"},"region":{"startLine":442}}}],"partialFingerprints":{"codehealthFindingId/v1":"55cf3dbc588d25b9af7d926481026cb9ff7d55ed3f84f3e459e2cf55b0714efb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crab/src/cmd/install.rs:424-428 | crab/src/cmd/install.rs:431-435 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/cmd/install.rs"},"region":{"startLine":424}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ddf0c8607863b32993e488f52ffcdff1b36f93da06bd9ce4f266ab04efb5686"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/crab-http-server/src/cells/repository/pulls.rs:1366-1370 | crates/crab-http-server/src/cells/repository/pulls.rs:1391-1395 \u2014 both copies are in the same file, so extract the block 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/crab-http-server/src/cells/repository/pulls.rs:1366\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/crab-http-server/src/cells/repository/pulls.rs"},"region":{"startLine":1366}}}],"partialFingerprints":{"codehealthFindingId/v1":"1381ca3ff08fb8ed1960451887732463d43a39129086bfd28811971dd5791e0a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/crab-http-server/src/cells/repository/pulls.rs:381-385 | crates/crab-http-server/src/cells/repository/releases.rs:221-225 \u2014 before extracting anything, compare \u0060crates/crab-http-server/src/cells/repository/pulls.rs\u0060 and \u0060crates/crab-http-server/src/cells/repository/releases.rs\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 51 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/crab-http-server/src/cells/repository/pulls.rs:381\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/crab-http-server/src/cells/repository/pulls.rs"},"region":{"startLine":381}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ef6d36d0e86b8401a2f56077ddf0b6a279924c244ed21522fb765e290db7ea5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 4): crates/crab-http-server/src/cells/repository/checks.rs:802-806 | crates/crab-http-server/src/cells/repository/projection.rs:1125-1129 | crates/crab-http-server/src/cells/repository/pull_review_threads.rs:1271-1275 | crates/crab-http-server/src/cells/repository/releases.rs:1157-1161 \u2014 before extracting anything, compare \u0060crates/crab-http-server/src/cells/repository/pull_review_threads.rs\u0060 and \u0060crates/crab-http-server/src/cells/repository/releases.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 36 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/crab-http-server/src/cells/repository/checks.rs:802\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/crab-http-server/src/cells/repository/checks.rs"},"region":{"startLine":802}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d7063b5a83c31f9fa0e9533114bb30c37d7b87e5225f71c13bab062f6ef78be"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/crab-workflow/src/yaml.rs:925-929 | crates/crab-workflow/src/yaml.rs:952-956 \u2014 both copies are in the same file, so extract the block 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/crab-workflow/src/yaml.rs:925\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/crab-workflow/src/yaml.rs"},"region":{"startLine":925}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce9c13b03b9e4167b2d463a7c04bfa49cf0b24661cd877d31e172ffde3913946"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crab/src/cmd/migrate.rs:177-181 | crab/src/cmd/migrate.rs:623-627 \u2014 both copies are in the same file, so extract the block 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, \u0060crab/src/cmd/migrate.rs:182\u0060 calls \u0060to_vec\u0060, \u0060map_err\u0060, \u0060Internal\u0060 and \u0060crab/src/cmd/migrate.rs:628\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":"crab/src/cmd/migrate.rs"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa475048cc08d74d525b23c20ca8fcb75e65806f834f37c397e3545ec7540eee"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): crates/crab-staging/src/index.rs:1669-1673 | crates/crab-staging/src/index.rs:6124-6128 | crates/crab-staging/src/index.rs:7441-7445 \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/crab-staging/src/index.rs:1669\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/crab-staging/src/index.rs"},"region":{"startLine":1669}}}],"partialFingerprints":{"codehealthFindingId/v1":"30b255b462b57e7ea57d00683eca57c27729ac8f9f29eaa0c0fa497ef0204c16"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crab/src/cache/add_remote_candidates.rs:81-85 | crab/src/cache/hydrated_pointer.rs:416-420 \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":"crab/src/cache/add_remote_candidates.rs"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d36a6a5f19a25950337ca7765455e620caf28b32b47e7cba1a52cdaa9226563"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/crab-vfs/src/engine.rs:1564-1568 | crates/crab-vfs/src/engine.rs:1620-1624 \u2014 both copies are in the same file, so extract the block 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/crab-vfs/src/engine.rs"},"region":{"startLine":1564}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ebf7ac13dbd769cc35c839c4d1c839329f8a2efcaebb272cbe0c726450df97d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/crab-metadata/src/path_state/codec.rs:52-56 | crates/crab-metadata/src/split_commit_graph.rs:722-726 \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/crab-metadata/src/path_state/codec.rs:52\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/crab-metadata/src/path_state/codec.rs"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"92353f16210db01d7d9d0e5f90da237546fb4187a36620e54f7aad232462fd73"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crab/src/cmd/lfs/store_setup.rs:337-341 | crab/src/cmd/lfs/store_setup.rs:348-352 \u2014 both copies are in the same file, so extract the block 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":"crab/src/cmd/lfs/store_setup.rs"},"region":{"startLine":337}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b2cbf0e1d202d3b62b723145e7017eafb7269f091fc0afded42f631984818e5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crab/src/cache/add_validation.rs:247-255 | crab/src/cache/hydrated_pointer.rs:261-269 \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":"crab/src/cache/add_validation.rs"},"region":{"startLine":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"60b28c6404b00d5b8770903083250d0ad1759bd2dd293b22d3c974f95ea43908"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crab/src/cmd/adopt.rs:419-423 | crab/src/cmd/adopt.rs:487-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/cmd/adopt.rs"},"region":{"startLine":419}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b7717eb5e0a0f618253741284bbe294bfb5ce715d3c00d19671dab3445de8e0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crab/src/cmd/cache.rs:157-161 | crab/src/cmd/cache.rs:162-166 \u2014 both copies are in the same file, so extract the block 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":"crab/src/cmd/cache.rs"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d1029a0cd15fc96f64127e2e2bfdee504e9d729d5f5e088f0c3f0f94b77c71b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crab/src/cmd/diff.rs:220-224 | crab/src/cmd/diff.rs:236-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 \u0060crab/src/cmd/diff.rs:220\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":"crab/src/cmd/diff.rs"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcca311b4aa9f661acbfadfa6ac3485e4ae366e8cd0ed93e201dc313f8fbe655"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crab/src/cmd/fsck_store.rs:443-447 | crab/src/cmd/fsck_store.rs:591-595 \u2014 both copies are in the same file, so extract the block 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":"crab/src/cmd/fsck_store.rs"},"region":{"startLine":443}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3e3f3f481dd5270f74cc2ef4dd2a4213e2502f6d0de616f78cd3b778b54394a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): crab/src/cmd/gc/journal.rs:609-613 | crab/src/cmd/gc/journal.rs:622-626 | crab/src/cmd/gc/journal.rs:645-649 \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 \u0060crab/src/cmd/gc/journal.rs:609\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":"crab/src/cmd/gc/journal.rs"},"region":{"startLine":609}}}],"partialFingerprints":{"codehealthFindingId/v1":"d085f983faa775bfc6660b9079b353c1a42bef77b90ef42bf93b230f792e8a4b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crab/src/cmd/gc/mod.rs:851-856 | crab/src/cmd/replica.rs:3989-3994 \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 \u0060crab/src/cmd/gc/mod.rs:851\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":"crab/src/cmd/gc/mod.rs"},"region":{"startLine":851}}}],"partialFingerprints":{"codehealthFindingId/v1":"c79453708921dee399105a96c641875087a50f13ecfa0c7d9cf94670a8416c19"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crab/src/cmd/gc/mod.rs:2092-2096 | crab/src/cmd/gc/mod.rs:2154-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/cmd/gc/mod.rs"},"region":{"startLine":2092}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1733a09e8d31a895902c09ca46e95dea452c4422b8bbb20f1437473430e6ac4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crab/src/cmd/gc/mod.rs:2489-2493 | crab/src/cmd/gc/mod.rs:2532-2536 \u2014 both copies are in the same file, so extract the block 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 \u0060crab/src/cmd/gc/mod.rs:2489\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":"crab/src/cmd/gc/mod.rs"},"region":{"startLine":2489}}}],"partialFingerprints":{"codehealthFindingId/v1":"82765987b39ef26f0923b78901ee8d7a2c9a9de8cba6cba9e51ce666ae073e94"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crab/src/cmd/metadb.rs:2789-2795 | crates/crab-auth-server/src/receive.rs:1618-1624 \u2014 before extracting anything, compare \u0060crab/src/cmd/metadb.rs\u0060 and \u0060crates/crab-auth-server/src/receive.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 65 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/cmd/metadb.rs"},"region":{"startLine":2789}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce9d99e4b7acce06fc6e2e9f09e708aa7a2937b028fa7eab1bb650a5138f09dc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crab/src/cmd/metrics.rs:157-161 | crab/src/cmd/params.rs:91-95 \u2014 before extracting anything, compare \u0060crab/src/cmd/metrics.rs\u0060 and \u0060crab/src/cmd/params.rs\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 89 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crab/src/cmd/metrics.rs:157\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":"crab/src/cmd/metrics.rs"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f841970f0c15fd017c48338d61820adb16416ebf6300f4fe0c884b9316e141e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crab/src/cmd/metrics.rs:1215-1219 | crab/src/cmd/metrics.rs:1234-1238 \u2014 both copies are in the same file, so extract the block 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 \u0060crab/src/cmd/metrics.rs:1215\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, \u0060crab/src/cmd/metrics.rs:1214\u0060 calls \u0060reject_image_sources_for_vega\u0060 and \u0060crab/src/cmd/metrics.rs:1233\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":"crab/src/cmd/metrics.rs"},"region":{"startLine":1215}}}],"partialFingerprints":{"codehealthFindingId/v1":"942b3e406246607d6877019b25173efe061c3ec5a9903b2d7426c60c2adadc2b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crab/src/cmd/mount.rs:3820-3824 | crab/src/cmd/mount.rs:4090-4094 \u2014 both copies are in the same file, so extract the block 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":"crab/src/cmd/mount.rs"},"region":{"startLine":3820}}}],"partialFingerprints":{"codehealthFindingId/v1":"78714c3f38ce89ce3250d87111f4340de68c330eea10f0d9e71c078255b84876"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crab/src/cmd/replica.rs:2791-2795 | crates/crab-workflow/src/cache.rs:1033-1037 \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":"crab/src/cmd/replica.rs"},"region":{"startLine":2791}}}],"partialFingerprints":{"codehealthFindingId/v1":"69fc765debeaeadf341c78836de834b66a254f6e358b00bb9bcb1c5f81a274e0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 5): crab/src/import/coordinator.rs:1090-1095 | crates/crab-auth/src/aws_oidc.rs:325-330 | crates/crab-auth/src/azure_entra.rs:370-375 | crates/crab-auth/src/crab_auth_client.rs:611-616 | crates/crab-auth/src/gcp_federation.rs:363-368 \u2014 before extracting anything, compare \u0060crates/crab-auth/src/aws_oidc.rs\u0060 and \u0060crates/crab-auth/src/azure_entra.rs\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 88 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":"crab/src/import/coordinator.rs"},"region":{"startLine":1090}}}],"partialFingerprints":{"codehealthFindingId/v1":"4cc31f9443c38e57787b4bd58e2604e1d173d6269c51705006d2f5de70ce8eb3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crab/src/lfs/track.rs:191-195 | crab/src/lfs/track.rs:312-316 \u2014 both copies are in the same file, so extract the block 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":"crab/src/lfs/track.rs"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5144d462b39385b86a163ba86b7d0a82e760002212685d8b2a1521ea6b6bb1f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crab/src/metadata/metadb/stores/chunk_index.rs:506-510 | crates/crab-metadata/src/remote_index.rs:323-327 \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 \u0060crab/src/metadata/metadb/stores/chunk_index.rs:506\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":"crab/src/metadata/metadb/stores/chunk_index.rs"},"region":{"startLine":506}}}],"partialFingerprints":{"codehealthFindingId/v1":"bee4ee5fde7ea8e6440a781c84093ecf167669d7831ccb638f0b6c98adcf0168"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/crab-auth-server/src/receive/git_workspace.rs:119-123 | crates/crab-auth-server/src/receive/git_workspace.rs:147-151 \u2014 both copies are in the same file, so extract the block 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/crab-auth-server/src/receive/git_workspace.rs"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"d84f9c3ff78178f0073a6f5ed629f5fa154744d081c50609df621198d00e6a2f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/crab-git/src/repack.rs:611-615 | crates/crab-git/src/repack.rs:654-658 \u2014 both copies are in the same file, so extract the block 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/crab-git/src/repack.rs:611\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/crab-git/src/repack.rs:660\u0060 calls \u0060join\u0060 and \u0060crates/crab-git/src/repack.rs:617\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/crab-git/src/repack.rs"},"region":{"startLine":611}}}],"partialFingerprints":{"codehealthFindingId/v1":"db0cb7c769d255fb70b76b8e4d91da8115976715a84906064c9772d43449213c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/crab-git/src/repack.rs:1268-1273 | crates/crab-git/src/repack.rs:1277-1282 \u2014 both copies are in the same file, so extract the block 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/crab-git/src/repack.rs"},"region":{"startLine":1268}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf4de1b8b72087a7cafcae55dd897bc55380c4404537a34fa98626c9afa88596"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 7): crates/crab-http-server/src/checks.rs:870-877 | crates/crab-http-server/src/issues.rs:706-713 | crates/crab-http-server/src/labels.rs:340-347 | crates/crab-http-server/src/pulls/storage.rs:844-851 | crates/crab-http-server/src/releases/storage.rs:444-451 | crates/crab-http-server/src/repository_settings.rs:259-266 | crates/crab-http-server/src/statuses.rs:429-436 \u2014 before extracting anything, compare \u0060crates/crab-http-server/src/checks.rs\u0060 and \u0060crates/crab-http-server/src/issues.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 46 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/crab-http-server/src/checks.rs"},"region":{"startLine":870}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f76cbc3a26100d7de1b76d771f11bbf66c50e7e10af19a4bbae196592dbd43a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/crab-http-server/src/pulls/review_threads.rs:629-634 | crates/crab-http-server/src/pulls/review_threads.rs:689-694 \u2014 both copies are in the same file, so extract the block 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 \u0060input\u0060 to \u0060std::result::Result\u003CJson\u003CNewReply\u003E\u0060 in one and \u0060std::result::Result\u003CJson\u003CReplyEdit\u003E\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/crab-http-server/src/pulls/review_threads.rs"},"region":{"startLine":629}}}],"partialFingerprints":{"codehealthFindingId/v1":"79594b81adc1d3224dcb1ad3e5def195e768ec92d141b74fa32d3a662cd885ff"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/crab-http-server/src/pulls/reviews.rs:106-110 | crates/crab-http-server/src/pulls/reviews.rs:195-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-http-server/src/pulls/reviews.rs"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"376f65d9ce5a86805c57f550db854cf14e6e304ee9be5d74dc155b8db780f060"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/crab-metadata/src/git_object_locator/reader.rs:885-890 | crates/crab-metadata/src/git_object_locator/writer.rs:1753-1758 \u2014 before extracting anything, compare \u0060crates/crab-metadata/src/git_object_locator/reader.rs\u0060 and \u0060crates/crab-metadata/src/git_object_locator/writer.rs\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 35 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/crab-metadata/src/git_object_locator/reader.rs"},"region":{"startLine":885}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c6921f4377d6f19e804009ca983b82510c09d0d11960b8b36d02b21c4f951b9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/crab-remote-git/src/traversal.rs:165-169 | crates/crab-remote-git/src/traversal.rs:237-241 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/crab-remote-git/src/traversal.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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-remote-git/src/traversal.rs"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6d133b84eed695ce1f94c5fdf74af3085a96e218cc3d5cd1b9427d3909fef0c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/crab-s3-gateway/src/gateway.rs:1585-1591 | crates/crab-s3-gateway/src/gateway.rs:1888-1894 \u2014 both copies are in the same file, so extract the block 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 \u0060req\u0060 to \u0060S3Request\u003CPutObjectInput\u003E\u0060 in one and \u0060S3Request\u003CDeleteObjectInput\u003E\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/crab-s3-gateway/src/gateway.rs"},"region":{"startLine":1585}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7a9b8c9146c0be01bf6f7492e8194617fef1d4c7e48d530df60694fb6d01afc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/crab-sdk/src/local/fetch/recovery.rs:140-144 | crates/crab-sdk/src/local/fetch/recovery.rs:195-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-sdk/src/local/fetch/recovery.rs"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"23a44bf129e8481490dc315f746b7b41d86dba2b6fcff679a9f792f67bc9345d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/crab-staging/src/lib.rs:2811-2818 | crates/crab-staging/src/lib.rs:3845-3852 \u2014 both copies are in the same file, so extract the block 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/crab-staging/src/lib.rs"},"region":{"startLine":2811}}}],"partialFingerprints":{"codehealthFindingId/v1":"f14eb3fc23167747dd173b0cab41c7491dc4f4a1c5f2b660556e4c0fb34d5105"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/crab-staging/src/push_plan.rs:595-599 | crates/crab-staging/src/push_plan.rs:816-820 \u2014 both copies are in the same file, so extract the block 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/crab-staging/src/push_plan.rs"},"region":{"startLine":595}}}],"partialFingerprints":{"codehealthFindingId/v1":"459cb03ca95fa6b1de7f22dc21fbbbdd1097cc2b062531d84a276c468e701ec5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/crab-workflow/src/dvc_inventory.rs:775-779 | crates/crab-workflow/src/dvc_inventory.rs:2357-2361 \u2014 both copies are in the same file, so extract the block 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/crab-workflow/src/dvc_inventory.rs:775\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/crab-workflow/src/dvc_inventory.rs"},"region":{"startLine":775}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8ffe7afcfbafa619a69f26380456a033ebc41788d3e378d628fcc59526ef9fd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/crab-workflow/src/hydra.rs:1358-1363 | crates/crab-workflow/src/hydra.rs:1371-1376 \u2014 both copies are in the same file, so extract the block 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/crab-workflow/src/hydra.rs:1358\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/crab-workflow/src/hydra.rs"},"region":{"startLine":1358}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec025c4467b8eb242c4a2d65e68d60aa48f5de3bb819424cda00463740ab475a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/crab-workflow/src/template/context.rs:358-362 | crates/crab-workflow/src/template/substitute.rs:184-188 \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/crab-workflow/src/template/context.rs:358\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/crab-workflow/src/template/context.rs"},"region":{"startLine":358}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0d000ebd608fcaaa715f5264af68db4c261b980a469f4887a3c5639eb6bc7ff"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/crab-xet/src/shard_bloom.rs:92-96 | crates/crab-xet/src/shard_bloom.rs:107-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/crab-xet/src/shard_bloom.rs:92\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/crab-xet/src/shard_bloom.rs"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"e84baba1ee3e805869b9417546c2784579e9c56f0876c3d0d1b2c5c424357901"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (52 lines \u00D7 2): crab/deploy/auth-service/src/app.py:1070-1121 | crab/deploy/auth-service/src/app.py:1180-1231 \u2014 both copies are in the same file, so extract the block 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 \u0060crab/deploy/auth-service/src/app.py:1070\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":"crab/deploy/auth-service/src/app.py"},"region":{"startLine":1070}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f81c093bfb9a1e4d6ecc34f9edd5679c8bddebb31f09bebdd877307307937e6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (33\u201339 lines \u00D7 2): crab/scripts/nfs-evidence-summary.py:2095-2133 | crab/scripts/nfs-evidence-summary.py:2147-2179 \u2014 both copies are in the same file, so extract the block 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 \u0060crab/scripts/nfs-evidence-summary.py:2095\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":"crab/scripts/nfs-evidence-summary.py"},"region":{"startLine":2095}}}],"partialFingerprints":{"codehealthFindingId/v1":"e84cee0ac50ea74953b7ef626c450d25138d8516723dbb90948aad6e29ddca84"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201335 lines \u00D7 3): crab/scripts/nfs-evidence-summary.py:2185-2208 | crab/scripts/nfs-evidence-summary.py:2210-2244 | crab/scripts/nfs-evidence-summary.py:2275-2285 \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 \u0060crab/scripts/nfs-evidence-summary.py:2185\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. 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":"crab/scripts/nfs-evidence-summary.py"},"region":{"startLine":2185}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd37ce2615057efeff9b1e560d1156c1a6cdb241180774fd158a56282fb7e067"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27\u201332 lines \u00D7 3): crab/scripts/verify-nfs-smoke-report.py:1293-1324 | crab/scripts/verify-nfs-smoke-report.py:1633-1664 | crab/scripts/verify-nfs-smoke-report.py:1731-1757 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060crab/scripts/verify-nfs-smoke-report.py:1630\u0060 calls \u0060get\u0060 and \u0060crab/scripts/verify-nfs-smoke-report.py:1290\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":"crab/scripts/verify-nfs-smoke-report.py"},"region":{"startLine":1293}}}],"partialFingerprints":{"codehealthFindingId/v1":"afe2c1784c50f88ac3d39929ce1aa2bd792715c3e118fdf3d84ba6f8969eb6b5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28\u201329 lines \u00D7 2): crab/scripts/verify-nfs-smoke-report.py:4499-4527 | crab/scripts/verify-nfs-smoke-report.py:4609-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 \u0060crab/scripts/verify-nfs-smoke-report.py:4609\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. 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":"crab/scripts/verify-nfs-smoke-report.py"},"region":{"startLine":4499}}}],"partialFingerprints":{"codehealthFindingId/v1":"90fe7c663fe6701416d624b9e80b2a4ccd7114c80513bd25d88852065ac162f8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 2): crab/scripts/verify-nfs-smoke-report.py:1669-1695 | crab/scripts/verify-nfs-smoke-report.py:1757-1783 \u2014 both copies are in the same file, so extract the block 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 \u0060crab/scripts/verify-nfs-smoke-report.py:1757\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. 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":"crab/scripts/verify-nfs-smoke-report.py"},"region":{"startLine":1669}}}],"partialFingerprints":{"codehealthFindingId/v1":"94cac01df39e2230e3655dc10bb4a9a27c44806e1b9b67b1f444b3f8c535db35"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24\u201325 lines \u00D7 2): crab/scripts/qualify_sdk.py:393-417 | crab/scripts/verify-sdk-read-only.py:59-82 \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 \u0060crab/scripts/qualify_sdk.py:393\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":"crab/scripts/qualify_sdk.py"},"region":{"startLine":393}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bb1292b272ca803f6347ec5e3e5ef9c81299a2ecdd717c42dbc0d497094d3a2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29 lines \u00D7 2): crab/scripts/verify-cache-service-smoke-report.py:1071-1099 | crab/scripts/verify-cache-service-smoke-report.py:1102-1130 \u2014 both copies are in the same file, so extract the block 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 \u0060crab/scripts/verify-cache-service-smoke-report.py:1071\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":"crab/scripts/verify-cache-service-smoke-report.py"},"region":{"startLine":1071}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d52a3dbe103f0319e27d82e74c0d144478b3ebefb8bf6a2ea5e5fb848d94320"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): crab/scripts/verify-nfs-smoke-report.py:2271-2294 | crab/scripts/verify-nfs-smoke-report.py:2302-2325 \u2014 both copies are in the same file, so extract the block 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":"crab/scripts/verify-nfs-smoke-report.py"},"region":{"startLine":2271}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a1e86f415dac050cbb1adfcc73e8722331aa3e93d8ca793034e57aed440554b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201323 lines \u00D7 2): crab/scripts/verify-cache-service-smoke-report.py:596-618 | crab/scripts/verify-cache-service-smoke-report.py:633-645 \u2014 both copies are in the same file, so extract the block 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 \u0060crab/scripts/verify-cache-service-smoke-report.py:633\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, \u0060crab/scripts/verify-cache-service-smoke-report.py:647\u0060 calls \u0060verify_transparent_mutable_auth_controls\u0060 and \u0060crab/scripts/verify-cache-service-smoke-report.py:620\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":"crab/scripts/verify-cache-service-smoke-report.py"},"region":{"startLine":596}}}],"partialFingerprints":{"codehealthFindingId/v1":"21b5776d4677b46505950131c2ff6e3548139e77023306e87c9654e78fdcd33e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 10): crab/scripts/verify-nfs-smoke-report.py:3314-3334 | crab/scripts/verify-nfs-smoke-report.py:3380-3400 | crab/scripts/verify-nfs-smoke-report.py:3404-3424 | crab/scripts/verify-nfs-smoke-report.py:3428-3448 | crab/scripts/verify-nfs-smoke-report.py:3732-3752 | crab/scripts/verify-nfs-smoke-report.py:3774-3794 | crab/scripts/verify-nfs-smoke-report.py:3798-3818 | crab/scripts/verify-nfs-smoke-report.py:3858-3878 | crab/scripts/verify-nfs-smoke-report.py:4045-4065 | crab/scripts/verify-nfs-smoke-report.py:4071-4091 \u2014 all 10 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. 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, \u0060crab/scripts/verify-nfs-smoke-report.py:3753\u0060 calls \u0060Path\u0060 and \u0060crab/scripts/verify-nfs-smoke-report.py:4066\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":"crab/scripts/verify-nfs-smoke-report.py"},"region":{"startLine":3314}}}],"partialFingerprints":{"codehealthFindingId/v1":"26cf084d30cf60c10dda20031e15c7696e29fce6d0237117b2c63842f7ebe28e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 6): crab/scripts/verify-nfs-smoke-report.py:413-432 | crab/scripts/verify-nfs-smoke-report.py:965-984 | crab/scripts/verify-nfs-smoke-report.py:1270-1289 | crab/scripts/verify-nfs-smoke-report.py:1608-1627 | crab/scripts/verify-nfs-smoke-report.py:1704-1723 | crab/scripts/verify-nfs-smoke-report.py:1871-1890 \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. 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, \u0060crab/scripts/verify-nfs-smoke-report.py:1290\u0060 calls \u0060check_retained_control_endpoints_redacted\u0060 and \u0060crab/scripts/verify-nfs-smoke-report.py:434\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":"crab/scripts/verify-nfs-smoke-report.py"},"region":{"startLine":413}}}],"partialFingerprints":{"codehealthFindingId/v1":"6124dabfd45d39543f0babfb856670177872e0e4ecf75e2632b5edae8e032ae0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201319 lines \u00D7 5): crab/scripts/verify-nfs-smoke-report.py:3748-3764 | crab/scripts/verify-nfs-smoke-report.py:3767-3784 | crab/scripts/verify-nfs-smoke-report.py:3790-3808 | crab/scripts/verify-nfs-smoke-report.py:3833-3848 | crab/scripts/verify-nfs-smoke-report.py:3851-3868 \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 \u0060crab/scripts/verify-nfs-smoke-report.py:3748\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. 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":"crab/scripts/verify-nfs-smoke-report.py"},"region":{"startLine":3748}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5f9f9cf91e45cc34498038d57ab59c99cbf25c84ea44c041d716f161c8e04e6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 3): crab/scripts/verify-cache-service-smoke-report.py:690-708 | crab/scripts/verify-cache-service-smoke-report.py:717-735 | crab/scripts/verify-cache-service-smoke-report.py:744-762 \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 \u0060crab/scripts/verify-cache-service-smoke-report.py:690\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, \u0060crab/scripts/verify-cache-service-smoke-report.py:764\u0060 calls \u0060verify_capabilities\u0060 and \u0060crab/scripts/verify-cache-service-smoke-report.py:710\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":"crab/scripts/verify-cache-service-smoke-report.py"},"region":{"startLine":690}}}],"partialFingerprints":{"codehealthFindingId/v1":"323e243f2be0be36143ea9350d838cea1796a2038a903eb7c3b4e233cdbd4364"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): crab/scripts/verify-nfs-smoke-report.py:4333-4351 | crab/scripts/verify-nfs-smoke-report.py:4358-4376 \u2014 both copies are in the same file, so extract the block 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":"crab/scripts/verify-nfs-smoke-report.py"},"region":{"startLine":4333}}}],"partialFingerprints":{"codehealthFindingId/v1":"995cfafcedc8779367bd96df4b1c2fe833c7b3c56d4efff1b80544c50ffd6b56"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 6): crab/scripts/verify-nfs-smoke-report.py:3338-3355 | crab/scripts/verify-nfs-smoke-report.py:3359-3376 | crab/scripts/verify-nfs-smoke-report.py:3470-3487 | crab/scripts/verify-nfs-smoke-report.py:3918-3935 | crab/scripts/verify-nfs-smoke-report.py:3951-3968 | crab/scripts/verify-nfs-smoke-report.py:4022-4039 \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. 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":"crab/scripts/verify-nfs-smoke-report.py"},"region":{"startLine":3338}}}],"partialFingerprints":{"codehealthFindingId/v1":"651161e4f7f4f7d30b342064f33578579230d14e8e1c31a6c1eb0e5f9c606f8e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): crab/scripts/check-crate-behavior.py:98-115 | crab/scripts/check-crate-interface-builds.py:135-152 \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":"crab/scripts/check-crate-behavior.py"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"1219b39ce888c1bd47f0914a7f336ec652c9f878e0c8ea4fa27580eb2034de58"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5\u201318 lines \u00D7 3): crab/scripts/nfs-evidence-summary.py:1900-1917 | crab/scripts/nfs-evidence-summary.py:1936-1953 | crab/scripts/nfs-evidence-summary.py:2010-2014 \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 \u0060crab/scripts/nfs-evidence-summary.py:1900\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. 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":"crab/scripts/nfs-evidence-summary.py"},"region":{"startLine":1900}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5c1104e17e4be4e65fbdf3d27ce0029f4ef6015aab95cf955292890a6109b2e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): crab/scripts/verify-large-repo-rustfs-report.py:162-179 | crab/scripts/verify-large-repo-rustfs-report.py:188-205 \u2014 both copies are in the same file, so extract the block 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":"crab/scripts/verify-large-repo-rustfs-report.py"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0c0043362de6d81ae79147f4bb463a10e12ce9f793ae5d493ee0d802c6e9349"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201318 lines \u00D7 2): crab/scripts/verify-nfs-smoke-report.py:3725-3742 | crab/scripts/verify-nfs-smoke-report.py:3911-3926 \u2014 both copies are in the same file, so extract the block 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 \u0060crab/scripts/verify-nfs-smoke-report.py:3725\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. 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":"crab/scripts/verify-nfs-smoke-report.py"},"region":{"startLine":3725}}}],"partialFingerprints":{"codehealthFindingId/v1":"18d07648e591c979acbc491857c386ac173c7e5cce0766a99c606290b733cbdd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 16): crab/scripts/check-architecture-gates.py:2946-2962 | crab/scripts/check-architecture-gates.py:3141-3157 | crab/scripts/check-architecture-gates.py:3192-3208 | crab/scripts/check-architecture-gates.py:3418-3434 | crab/scripts/check-architecture-gates.py:3631-3647 | crab/scripts/check-architecture-gates.py:3792-3808 | crab/scripts/check-architecture-gates.py:3860-3876 | crab/scripts/check-architecture-gates.py:3921-3937 | crab/scripts/check-architecture-gates.py:3986-4002 | crab/scripts/check-architecture-gates.py:4140-4156 | crab/scripts/check-architecture-gates.py:4291-4307 | crab/scripts/check-architecture-gates.py:4425-4441 | crab/scripts/check-architecture-gates.py:4496-4512 | crab/scripts/check-architecture-gates.py:4555-4571 | crab/scripts/check-architecture-gates.py:4630-4646 | crab/scripts/check-architecture-gates.py:4727-4743 \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. 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, \u0060crab/scripts/check-architecture-gates.py:3210\u0060 calls \u0060strip\u0060, \u0060get\u0060, \u0060rel\u0060 and \u0060crab/scripts/check-architecture-gates.py:2964\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":"crab/scripts/check-architecture-gates.py"},"region":{"startLine":2946}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c419eb049378d03f9be2368ac45af62d6e8cafe9ba12353847aa320f94f532e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201317 lines \u00D7 10): crab/scripts/verify-nfs-smoke-report.py:3287-3302 | crab/scripts/verify-nfs-smoke-report.py:3330-3346 | crab/scripts/verify-nfs-smoke-report.py:3351-3367 | crab/scripts/verify-nfs-smoke-report.py:3372-3388 | crab/scripts/verify-nfs-smoke-report.py:3396-3412 | crab/scripts/verify-nfs-smoke-report.py:3420-3436 | crab/scripts/verify-nfs-smoke-report.py:3444-3460 | crab/scripts/verify-nfs-smoke-report.py:3638-3653 | crab/scripts/verify-nfs-smoke-report.py:3671-3686 | crab/scripts/verify-nfs-smoke-report.py:3689-3704 \u2014 all 10 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 \u0060crab/scripts/verify-nfs-smoke-report.py:3330\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":"crab/scripts/verify-nfs-smoke-report.py"},"region":{"startLine":3287}}}],"partialFingerprints":{"codehealthFindingId/v1":"88d91689a64d72468fd878c174640c212ce071f0bf09dcadea4b03e183c08bde"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 5): crab/scripts/verify-nfs-smoke-report.py:4261-4277 | crab/scripts/verify-nfs-smoke-report.py:4291-4307 | crab/scripts/verify-nfs-smoke-report.py:4316-4332 | crab/scripts/verify-nfs-smoke-report.py:4341-4357 | crab/scripts/verify-nfs-smoke-report.py:4366-4382 \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. 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":"crab/scripts/verify-nfs-smoke-report.py"},"region":{"startLine":4261}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c11a6b53657e2669f471dbd20e2d6026da9727b6e3fc330630f51cf24d98d82"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 3): crab/scripts/verify-nfs-smoke-report.py:4533-4549 | crab/scripts/verify-nfs-smoke-report.py:4566-4582 | crab/scripts/verify-nfs-smoke-report.py:4599-4615 \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":"crab/scripts/verify-nfs-smoke-report.py"},"region":{"startLine":4533}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5942b490fc33fdb3e6db584eec7e0200b0626c0b348fc958c97fa5136345c53"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): crab/deploy/auth-service/src/app.py:1422-1438 | crab/deploy/auth-service/src/app.py:1458-1474 \u2014 both copies are in the same file, so extract the block 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":"crab/deploy/auth-service/src/app.py"},"region":{"startLine":1422}}}],"partialFingerprints":{"codehealthFindingId/v1":"351b0487fd448b519bfcdca41d994d8bff9eab35eb18679bb61baf3bdbcb5caa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): crab/deploy/auth-service/src/policy.py:339-355 | crab/deploy/auth-service/src/policy.py:405-423 \u2014 both copies are in the same file, so extract the block 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 \u0060crab/deploy/auth-service/src/policy.py:405\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060crab/deploy/auth-service/src/policy.py:337\u0060 calls \u0060extend\u0060 and \u0060crab/deploy/auth-service/src/policy.py:405\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":"crab/deploy/auth-service/src/policy.py"},"region":{"startLine":339}}}],"partialFingerprints":{"codehealthFindingId/v1":"3704a1d54b41a913a00496256cbf0932361fb01418844bf0a9ec7a6d9dcc4395"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): crab/scripts/verify-cache-service-smoke-report.py:1309-1325 | crab/scripts/verify-cache-service-smoke-report.py:1337-1353 \u2014 both copies are in the same file, so extract the block 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 \u0060crab/scripts/verify-cache-service-smoke-report.py:1309\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":"crab/scripts/verify-cache-service-smoke-report.py"},"region":{"startLine":1309}}}],"partialFingerprints":{"codehealthFindingId/v1":"49f18e0d979143979c82fa351b195b0870b79089778ad7e6267899587d391695"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): crab/scripts/verify-nfs-smoke-report.py:1549-1565 | crab/scripts/verify-nfs-smoke-report.py:1822-1838 \u2014 both copies are in the same file, so extract the block 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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060crab/scripts/verify-nfs-smoke-report.py:1545\u0060 calls \u0060get\u0060, \u0060isinstance\u0060 and \u0060crab/scripts/verify-nfs-smoke-report.py:1820\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":"crab/scripts/verify-nfs-smoke-report.py"},"region":{"startLine":1549}}}],"partialFingerprints":{"codehealthFindingId/v1":"da003f88b95f576ec9b97b1bba284abc5f299480ec6923542987761e6523f079"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): crab/scripts/verify-nfs-smoke-report.py:3477-3493 | crab/scripts/verify-nfs-smoke-report.py:4148-4164 \u2014 both copies are in the same file, so extract the block 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 \u0060crab/scripts/verify-nfs-smoke-report.py:3477\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":"crab/scripts/verify-nfs-smoke-report.py"},"region":{"startLine":3477}}}],"partialFingerprints":{"codehealthFindingId/v1":"1dbe9c0bd4309bac811587bececbdc80c627666129406ae0ec93d5a50c69e998"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201316 lines \u00D7 3): crab/scripts/verify-cache-service-smoke-report.py:921-933 | crab/scripts/verify-cache-service-smoke-report.py:991-1006 | crab/scripts/verify-cache-service-smoke-report.py:1008-1020 \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 \u0060crab/scripts/verify-cache-service-smoke-report.py:921\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":"crab/scripts/verify-cache-service-smoke-report.py"},"region":{"startLine":921}}}],"partialFingerprints":{"codehealthFindingId/v1":"efd1c13675a5462ac9f9eda90d3f175b6e8ed85814af859135430a48c06e924e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201315 lines \u00D7 4): crab/scripts/verify-nfs-smoke-report.py:4507-4519 | crab/scripts/verify-nfs-smoke-report.py:4537-4551 | crab/scripts/verify-nfs-smoke-report.py:4570-4584 | crab/scripts/verify-nfs-smoke-report.py:4603-4615 \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 \u0060crab/scripts/verify-nfs-smoke-report.py:4537\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":"crab/scripts/verify-nfs-smoke-report.py"},"region":{"startLine":4507}}}],"partialFingerprints":{"codehealthFindingId/v1":"ecc86a3aec90909c73a4056db706e6e540fa94d63cd04b7ce901f4d118ea1714"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): crab/scripts/check-architecture-gates.py:2768-2782 | crab/scripts/check-architecture-gates.py:2818-2832 \u2014 both copies are in the same file, so extract the block 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 \u0060crab/scripts/check-architecture-gates.py:2768\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":"crab/scripts/check-architecture-gates.py"},"region":{"startLine":2768}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8dd129902464efc6dfee9540dd8d92934f6bfce42dcaf080a366f9639fa2a56"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): crates/crab-http-server/deploy/cell-issue-fleet/qualify_mode_rollout.py:114-128 | crates/crab-http-server/deploy/cell-issue-fleet/qualify_read_replicas.py:489-505 \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/crab-http-server/deploy/cell-issue-fleet/qualify_mode_rollout.py"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f3c1c3c03d069d1a356573207b75db3a6d7f5f80791848347d55ba0b2a8b8f3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 24): crab/scripts/verify-nfs-smoke-report.py:3277-3290 | crab/scripts/verify-nfs-smoke-report.py:3295-3308 | crab/scripts/verify-nfs-smoke-report.py:3453-3466 | crab/scripts/verify-nfs-smoke-report.py:3519-3532 | crab/scripts/verify-nfs-smoke-report.py:3547-3560 | crab/scripts/verify-nfs-smoke-report.py:3570-3583 | crab/scripts/verify-nfs-smoke-report.py:3591-3604 | crab/scripts/verify-nfs-smoke-report.py:3609-3622 | crab/scripts/verify-nfs-smoke-report.py:3628-3641 | crab/scripts/verify-nfs-smoke-report.py:3646-3659 | crab/scripts/verify-nfs-smoke-report.py:3661-3674 | crab/scripts/verify-nfs-smoke-report.py:3679-3692 | crab/scripts/verify-nfs-smoke-report.py:3697-3710 | crab/scripts/verify-nfs-smoke-report.py:3715-3728 | crab/scripts/verify-nfs-smoke-report.py:3757-3770 | crab/scripts/verify-nfs-smoke-report.py:3823-3836 | crab/scripts/verify-nfs-smoke-report.py:3841-3854 | crab/scripts/verify-nfs-smoke-report.py:3883-3896 | crab/scripts/verify-nfs-smoke-report.py:3901-3914 | crab/scripts/verify-nfs-smoke-report.py:3972-3985 | crab/scripts/verify-nfs-smoke-report.py:3989-4002 | crab/scripts/verify-nfs-smoke-report.py:4006-4019 | crab/scripts/verify-nfs-smoke-report.py:4095-4108 | crab/scripts/verify-nfs-smoke-report.py:4112-4125 \u2014 all 24 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. 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, \u0060crab/scripts/verify-nfs-smoke-report.py:3291\u0060 calls \u0060Path\u0060 and \u0060crab/scripts/verify-nfs-smoke-report.py:3986\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":"crab/scripts/verify-nfs-smoke-report.py"},"region":{"startLine":3277}}}],"partialFingerprints":{"codehealthFindingId/v1":"ced678a6f8de20e3121d15f7e98ca9e93950058485b5f7e19cecf52b82fde391"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 6): crab/scripts/verify-nfs-smoke-report.py:4267-4280 | crab/scripts/verify-nfs-smoke-report.py:4297-4310 | crab/scripts/verify-nfs-smoke-report.py:4322-4335 | crab/scripts/verify-nfs-smoke-report.py:4347-4360 | crab/scripts/verify-nfs-smoke-report.py:4372-4385 | crab/scripts/verify-nfs-smoke-report.py:4407-4420 \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 \u0060crab/scripts/verify-nfs-smoke-report.py:4267\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":"crab/scripts/verify-nfs-smoke-report.py"},"region":{"startLine":4267}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b48a7073141bf102a8627028eecedee5d8b119c6032c4afb17503f6f05aa80b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 4): crab/scripts/verify-nfs-smoke-report.py:4476-4489 | crab/scripts/verify-nfs-smoke-report.py:4536-4548 | crab/scripts/verify-nfs-smoke-report.py:4569-4581 | crab/scripts/verify-nfs-smoke-report.py:4602-4614 \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 \u0060crab/scripts/verify-nfs-smoke-report.py:4476\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":"crab/scripts/verify-nfs-smoke-report.py"},"region":{"startLine":4476}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c20214e5348b7a10556789df5948677981ec484aab5022da4c1390bb16eb01b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3): crab/scripts/verify-nfs-smoke-report.py:3495-3508 | crab/scripts/verify-nfs-smoke-report.py:4118-4131 | crab/scripts/verify-nfs-smoke-report.py:4133-4146 \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 \u0060crab/scripts/verify-nfs-smoke-report.py:3495\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":"crab/scripts/verify-nfs-smoke-report.py"},"region":{"startLine":3495}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ed4e7c1c573560816b4dc18f69e22c993596f60247c6b6a8d864e91d6b1bbcd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3): crab/scripts/verify-nfs-smoke-report.py:4491-4504 | crab/scripts/verify-nfs-smoke-report.py:4550-4563 | crab/scripts/verify-nfs-smoke-report.py:4583-4596 \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. 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":"crab/scripts/verify-nfs-smoke-report.py"},"region":{"startLine":4491}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1723712a157c763b8562d5b9fc083b4c261e9945b14c4d6163eb27210863a29"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): crab/deploy/auth-service/src/policy.py:137-150 | crab/deploy/auth-service/src/policy.py:171-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/deploy/auth-service/src/policy.py"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"b976bff4da1dcd0cad4e0edf9ebf99bdd93683efa9c7989ec72c8684358782aa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): crab/scripts/release/install-binaries.py:67-80 | crab/scripts/release/install-binaries.py:83-96 \u2014 both copies are in the same file, so extract the block 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":"crab/scripts/release/install-binaries.py"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"bef69bc862e22691b138a3b7d88612493f702bde0bf843a8540d55766146022f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201313 lines \u00D7 11): crab/scripts/verify-nfs-smoke-report.py:3292-3302 | crab/scripts/verify-nfs-smoke-report.py:3336-3346 | crab/scripts/verify-nfs-smoke-report.py:3357-3367 | crab/scripts/verify-nfs-smoke-report.py:3378-3390 | crab/scripts/verify-nfs-smoke-report.py:3402-3414 | crab/scripts/verify-nfs-smoke-report.py:3426-3438 | crab/scripts/verify-nfs-smoke-report.py:3450-3460 | crab/scripts/verify-nfs-smoke-report.py:3643-3653 | crab/scripts/verify-nfs-smoke-report.py:3676-3686 | crab/scripts/verify-nfs-smoke-report.py:3694-3704 | crab/scripts/verify-nfs-smoke-report.py:3986-3996 \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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crab/scripts/verify-nfs-smoke-report.py:3378\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060crab/scripts/verify-nfs-smoke-report.py:3291\u0060 calls \u0060Path\u0060 and \u0060crab/scripts/verify-nfs-smoke-report.py:3985\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":"crab/scripts/verify-nfs-smoke-report.py"},"region":{"startLine":3292}}}],"partialFingerprints":{"codehealthFindingId/v1":"b58c2d24c5441eaaa94a94e57c0d34c374f4b981a23b4c754b2d52dfa3e4779a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): crab/scripts/check-architecture-gates.py:4675-4687 | crab/scripts/check-architecture-gates.py:4784-4796 | crab/scripts/check-architecture-gates.py:4825-4837 \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. 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":"crab/scripts/check-architecture-gates.py"},"region":{"startLine":4675}}}],"partialFingerprints":{"codehealthFindingId/v1":"2062319510a0ec2213fa8115f4fbbbdfe72ad305fa62e5b359590f3682b69acb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): crab/scripts/verify-nfs-smoke-report.py:4433-4445 | crab/scripts/verify-nfs-smoke-report.py:4517-4529 | crab/scripts/verify-nfs-smoke-report.py:4613-4625 \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 \u0060crab/scripts/verify-nfs-smoke-report.py:4433\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":"crab/scripts/verify-nfs-smoke-report.py"},"region":{"startLine":4433}}}],"partialFingerprints":{"codehealthFindingId/v1":"1418e2839d74f0d66df2179bae186ced39ffd7f00ac38b680cfa81f3ab47a627"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): crab/deploy/auth-service/src/receive_helper.py:192-204 | crab/deploy/auth-service/src/view_helper.py:91-103 \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":"crab/deploy/auth-service/src/receive_helper.py"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"813f92a97131f171c7b0762d87cf0239f7ad2cf3108bea30864f8fcfdcfad52c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201313 lines \u00D7 2): crab/scripts/verify-cache-service-smoke-report.py:631-638 | crab/scripts/verify-cache-service-smoke-report.py:678-690 \u2014 both copies are in the same file, so extract the block 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 \u0060crab/scripts/verify-cache-service-smoke-report.py:678\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":"crab/scripts/verify-cache-service-smoke-report.py"},"region":{"startLine":631}}}],"partialFingerprints":{"codehealthFindingId/v1":"63504c33fa1a7815ebed0a047ee2ff501bc782845f1d5e14ab3a53434f2a62ac"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 6): crab/scripts/verify-nfs-smoke-report.py:4463-4473 | crab/scripts/verify-nfs-smoke-report.py:4494-4505 | crab/scripts/verify-nfs-smoke-report.py:4521-4531 | crab/scripts/verify-nfs-smoke-report.py:4553-4564 | crab/scripts/verify-nfs-smoke-report.py:4586-4597 | crab/scripts/verify-nfs-smoke-report.py:4617-4627 \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 \u0060crab/scripts/verify-nfs-smoke-report.py:4494\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":"crab/scripts/verify-nfs-smoke-report.py"},"region":{"startLine":4463}}}],"partialFingerprints":{"codehealthFindingId/v1":"65977f6925b6337d4ffc5e1365a3930b6fe89d8c6d4fc3313859660591708151"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 4): crab/scripts/verify-nfs-smoke-report.py:4433-4444 | crab/scripts/verify-nfs-smoke-report.py:4517-4528 | crab/scripts/verify-nfs-smoke-report.py:4613-4624 | crab/scripts/verify-nfs-smoke-report.py:4639-4650 \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 \u0060crab/scripts/verify-nfs-smoke-report.py:4433\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":"crab/scripts/verify-nfs-smoke-report.py"},"region":{"startLine":4433}}}],"partialFingerprints":{"codehealthFindingId/v1":"b610e0e8663c597aba0c6908a8a4be7fc66b3f0610910fc1a3e325c8e9b2c21b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 3): crab/deploy/auth-service/src/app.py:884-895 | crab/deploy/auth-service/src/app.py:897-908 | crab/deploy/auth-service/src/app.py:910-920 \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 \u0060crab/deploy/auth-service/src/app.py:910\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":"crab/deploy/auth-service/src/app.py"},"region":{"startLine":884}}}],"partialFingerprints":{"codehealthFindingId/v1":"5dfb801cf0f5a8ecec39d5cfacb9d153c6f45914808dc63108eccc739aa1219e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): crab/scripts/check-architecture-gates.py:2611-2622 | crab/scripts/check-architecture-gates.py:2671-2682 \u2014 both copies are in the same file, so extract the block 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 \u0060crab/scripts/check-architecture-gates.py:2611\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":"crab/scripts/check-architecture-gates.py"},"region":{"startLine":2611}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d74b1253f59b1ba23a36a5809cdc426beb95c5d3e8b186cd1f16d5a04e4c42e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): crab/scripts/verify-nfs-smoke-report.py:4459-4470 | crab/scripts/verify-nfs-smoke-report.py:4667-4678 \u2014 both copies are in the same file, so extract the block 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 \u0060crab/scripts/verify-nfs-smoke-report.py:4459\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":"crab/scripts/verify-nfs-smoke-report.py"},"region":{"startLine":4459}}}],"partialFingerprints":{"codehealthFindingId/v1":"43f5836fec248e0fef4e5f9717da3f537cdcf21f5748d881621766b338179a33"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 17): crab/scripts/check-architecture-gates.py:2970-2980 | crab/scripts/check-architecture-gates.py:3160-3169 | crab/scripts/check-architecture-gates.py:3216-3226 | crab/scripts/check-architecture-gates.py:3438-3447 | crab/scripts/check-architecture-gates.py:3650-3659 | crab/scripts/check-architecture-gates.py:3811-3820 | crab/scripts/check-architecture-gates.py:3879-3888 | crab/scripts/check-architecture-gates.py:4005-4014 | crab/scripts/check-architecture-gates.py:4159-4168 | crab/scripts/check-architecture-gates.py:4310-4319 | crab/scripts/check-architecture-gates.py:4515-4524 | crab/scripts/check-architecture-gates.py:4578-4588 | crab/scripts/check-architecture-gates.py:4649-4658 | crab/scripts/check-architecture-gates.py:4695-4705 | crab/scripts/check-architecture-gates.py:4746-4755 | crab/scripts/check-architecture-gates.py:4804-4814 | crab/scripts/check-architecture-gates.py:4845-4855 \u2014 all 17 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 \u0060crab/scripts/check-architecture-gates.py:2970\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060crab/scripts/check-architecture-gates.py:3214\u0060 calls \u0060any\u0060 and \u0060crab/scripts/check-architecture-gates.py:3160\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":"crab/scripts/check-architecture-gates.py"},"region":{"startLine":2970}}}],"partialFingerprints":{"codehealthFindingId/v1":"7454176479d137db66ae5d9a06af08e771af03ef682a8d32805b70cc09e24144"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 11): crab/scripts/verify-nfs-smoke-report.py:3326-3336 | crab/scripts/verify-nfs-smoke-report.py:3348-3357 | crab/scripts/verify-nfs-smoke-report.py:3369-3378 | crab/scripts/verify-nfs-smoke-report.py:3392-3402 | crab/scripts/verify-nfs-smoke-report.py:3416-3426 | crab/scripts/verify-nfs-smoke-report.py:3440-3450 | crab/scripts/verify-nfs-smoke-report.py:3744-3754 | crab/scripts/verify-nfs-smoke-report.py:3786-3796 | crab/scripts/verify-nfs-smoke-report.py:3810-3820 | crab/scripts/verify-nfs-smoke-report.py:3870-3880 | crab/scripts/verify-nfs-smoke-report.py:3928-3937 \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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crab/scripts/verify-nfs-smoke-report.py:3326\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":"crab/scripts/verify-nfs-smoke-report.py"},"region":{"startLine":3326}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce22520f2f140f5b4c5828254f5b61e401cbc8e472037bbb7053010ba522450b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201311 lines \u00D7 7): crab/scripts/verify-cache-service-smoke-report.py:929-939 | crab/scripts/verify-cache-service-smoke-report.py:1002-1012 | crab/scripts/verify-cache-service-smoke-report.py:1016-1024 | crab/scripts/verify-cache-service-smoke-report.py:1034-1042 | crab/scripts/verify-cache-service-smoke-report.py:1045-1054 | crab/scripts/verify-cache-service-smoke-report.py:1544-1554 | crab/scripts/verify-cache-service-smoke-report.py:1560-1570 \u2014 all 7 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crab/scripts/verify-cache-service-smoke-report.py:929\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060crab/scripts/verify-cache-service-smoke-report.py:1043\u0060 calls \u0060check\u0060, \u0060int_value\u0060, \u0060get\u0060 and \u0060crab/scripts/verify-cache-service-smoke-report.py:929\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":"crab/scripts/verify-cache-service-smoke-report.py"},"region":{"startLine":929}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b385d524b6c34841380b34d72f1a500a2f6ddfdab8e4a9c331ffc3c1b036ff2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 7): crab/scripts/verify-nfs-smoke-report.py:4201-4211 | crab/scripts/verify-nfs-smoke-report.py:4273-4283 | crab/scripts/verify-nfs-smoke-report.py:4303-4313 | crab/scripts/verify-nfs-smoke-report.py:4328-4338 | crab/scripts/verify-nfs-smoke-report.py:4353-4363 | crab/scripts/verify-nfs-smoke-report.py:4378-4388 | crab/scripts/verify-nfs-smoke-report.py:4413-4423 \u2014 all 7 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. 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":"crab/scripts/verify-nfs-smoke-report.py"},"region":{"startLine":4201}}}],"partialFingerprints":{"codehealthFindingId/v1":"44462ce7e69ecb42a8dab9a3c66269ecafc40f03aa11e1edaea1e7425a779a51"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 4): crab/scripts/verify-nfs-smoke-report.py:4436-4446 | crab/scripts/verify-nfs-smoke-report.py:4462-4472 | crab/scripts/verify-nfs-smoke-report.py:4520-4530 | crab/scripts/verify-nfs-smoke-report.py:4616-4626 \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. 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":"crab/scripts/verify-nfs-smoke-report.py"},"region":{"startLine":4436}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0283da08f54aaf5c3eadf3e028ee3cafb48fa2d40850dacaa45985fc68ffa71"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): crab/scripts/verify-nfs-smoke-report.py:1347-1357 | crab/scripts/verify-nfs-smoke-report.py:1681-1691 | crab/scripts/verify-nfs-smoke-report.py:1771-1781 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060crab/scripts/verify-nfs-smoke-report.py:1358\u0060 calls \u0060isinstance\u0060, \u0060get\u0060 and \u0060crab/scripts/verify-nfs-smoke-report.py:1692\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":"crab/scripts/verify-nfs-smoke-report.py"},"region":{"startLine":1347}}}],"partialFingerprints":{"codehealthFindingId/v1":"eeee713d34b715ffa19827f0f8a0f1dea900363c0ebe81a638ef184a7d1e95d9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crab/scripts/nfs-evidence-summary.py:380-390 | crab/scripts/nfs-evidence-summary.py:418-428 \u2014 both copies are in the same file, so extract the block 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 \u0060crab/scripts/nfs-evidence-summary.py:380\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":"crab/scripts/nfs-evidence-summary.py"},"region":{"startLine":380}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab89eeb5a415b42a8916f8d9da0d0a3ff50eaf0eadb23a4d40b994051ba5f39b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 2): crab/scripts/verify-cache-service-smoke-report.py:936-946 | crab/scripts/verify-cache-service-smoke-report.py:1059-1068 \u2014 both copies are in the same file, so extract the block 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 \u0060crab/scripts/verify-cache-service-smoke-report.py:936\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":"crab/scripts/verify-cache-service-smoke-report.py"},"region":{"startLine":936}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9a11b93f34ecf3e66df026a1b859c159d9b77d6979c56fc4891b2fbbfdb8ba9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 7): crab/scripts/verify-cache-service-smoke-report.py:928-937 | crab/scripts/verify-cache-service-smoke-report.py:1001-1010 | crab/scripts/verify-cache-service-smoke-report.py:1015-1024 | crab/scripts/verify-cache-service-smoke-report.py:1033-1042 | crab/scripts/verify-cache-service-smoke-report.py:1543-1552 | crab/scripts/verify-cache-service-smoke-report.py:1559-1568 | crab/scripts/verify-cache-service-smoke-report.py:1572-1581 \u2014 all 7 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crab/scripts/verify-cache-service-smoke-report.py:928\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, \u0060crab/scripts/verify-cache-service-smoke-report.py:1025\u0060 calls \u0060check\u0060, \u0060int_value\u0060, \u0060get\u0060 and \u0060crab/scripts/verify-cache-service-smoke-report.py:938\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":"crab/scripts/verify-cache-service-smoke-report.py"},"region":{"startLine":928}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed8b994c9bfed0fe0e54ee935d8b0a59d06b14bf8db2e5565a9b50b6954c9b0b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 4): crab/scripts/check-architecture-gates.py:2668-2677 | crab/scripts/check-architecture-gates.py:2714-2723 | crab/scripts/check-architecture-gates.py:2764-2773 | crab/scripts/check-architecture-gates.py:2814-2823 \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. 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":"crab/scripts/check-architecture-gates.py"},"region":{"startLine":2668}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f1a6275d6a5b51d5e0922c4d4b42a1fb66489f924208ccd9d78d72ad7656ec2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): crab/scripts/verify-nfs-smoke-report.py:3882-3891 | crab/scripts/verify-nfs-smoke-report.py:3900-3909 | crab/scripts/verify-nfs-smoke-report.py:3918-3929 \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 \u0060crab/scripts/verify-nfs-smoke-report.py:3918\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":"crab/scripts/verify-nfs-smoke-report.py"},"region":{"startLine":3882}}}],"partialFingerprints":{"codehealthFindingId/v1":"30ed911bd3d7df96196532bb3ac92d7c948273dfd84b29a15af9d89df68b05f2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crab/scripts/check-architecture-gates.py:2923-2932 | crab/scripts/check-architecture-gates.py:4713-4722 \u2014 both copies are in the same file, so extract the block 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":"crab/scripts/check-architecture-gates.py"},"region":{"startLine":2923}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3f4e71f7cb8ca03424d0b765fe83bbf62e567faeb62ffac06d25f1b238a9b33"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crab/scripts/check-architecture-gates.py:4470-4479 | crab/scripts/check-architecture-gates.py:4532-4541 \u2014 both copies are in the same file, so extract the block 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":"crab/scripts/check-architecture-gates.py"},"region":{"startLine":4470}}}],"partialFingerprints":{"codehealthFindingId/v1":"65059c2f1ad4f52d95cf215d3e674f15f78442b89590f208728a2a274eb0e7b8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): crab/scripts/release/check-auth-helper-packaging.py:33-44 | crab/scripts/release/check-release-archive-contents.py:37-48 \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":"crab/scripts/release/check-auth-helper-packaging.py"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"034b06673d1ce5c9828c8647535cc2082864b55b98c00bebb8aa5b57902f580a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (2\u201310 lines \u00D7 6): crab/scripts/verify-cache-service-smoke-report.py:858-864 | crab/scripts/verify-cache-service-smoke-report.py:865-867 | crab/scripts/verify-cache-service-smoke-report.py:904-905 | crab/scripts/verify-cache-service-smoke-report.py:990-999 | crab/scripts/verify-cache-service-smoke-report.py:1525-1526 | crab/scripts/verify-cache-service-smoke-report.py:1527-1529 \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 \u0060crab/scripts/verify-cache-service-smoke-report.py:865\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060crab/scripts/verify-cache-service-smoke-report.py:865\u0060 calls \u0060check\u0060, \u0060int_value\u0060, \u0060get\u0060 and \u0060crab/scripts/verify-cache-service-smoke-report.py:867\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":"crab/scripts/verify-cache-service-smoke-report.py"},"region":{"startLine":858}}}],"partialFingerprints":{"codehealthFindingId/v1":"4daf4be8ca7859cca373ca577fa46215f173c9f80fa0a905742201888ae1ad51"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crab/scripts/verify-cache-service-smoke-report.py:1360-1369 | crab/scripts/verify-cache-service-smoke-report.py:1455-1464 \u2014 both copies are in the same file, so extract the block 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 \u0060crab/scripts/verify-cache-service-smoke-report.py:1360\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":"crab/scripts/verify-cache-service-smoke-report.py"},"region":{"startLine":1360}}}],"partialFingerprints":{"codehealthFindingId/v1":"567131c2396d8673ca3076caa318919981a9d1fe2a5e42b19606d79e98ad1c0c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crab/scripts/verify-nfs-smoke-report.py:3627-3636 | crab/scripts/verify-nfs-smoke-report.py:3950-3962 \u2014 both copies are in the same file, so extract the block 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 \u0060crab/scripts/verify-nfs-smoke-report.py:3950\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":"crab/scripts/verify-nfs-smoke-report.py"},"region":{"startLine":3627}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7b790544a7a22283c6c025fb143b1e4634e4bc85426c86b567cd1b694bd9cd9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20139 lines \u00D7 8): crab/scripts/verify-cache-service-smoke-report.py:919-926 | crab/scripts/verify-cache-service-smoke-report.py:932-940 | crab/scripts/verify-cache-service-smoke-report.py:1005-1013 | crab/scripts/verify-cache-service-smoke-report.py:1019-1024 | crab/scripts/verify-cache-service-smoke-report.py:1037-1042 | crab/scripts/verify-cache-service-smoke-report.py:1534-1539 | crab/scripts/verify-cache-service-smoke-report.py:1547-1555 | crab/scripts/verify-cache-service-smoke-report.py:1563-1570 \u2014 all 8 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 \u0060crab/scripts/verify-cache-service-smoke-report.py:919\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060crab/scripts/verify-cache-service-smoke-report.py:1556\u0060 calls \u0060int_value\u0060 and \u0060crab/scripts/verify-cache-service-smoke-report.py:927\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":"crab/scripts/verify-cache-service-smoke-report.py"},"region":{"startLine":919}}}],"partialFingerprints":{"codehealthFindingId/v1":"11c1774ac446c9d11151e547de5d835fc8719cbaaa142f6a49b777759c6ddb32"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 5): crab/scripts/check-architecture-gates.py:3173-3181 | crab/scripts/check-architecture-gates.py:4466-4474 | crab/scripts/check-architecture-gates.py:4528-4536 | crab/scripts/check-architecture-gates.py:4592-4600 | crab/scripts/check-architecture-gates.py:4709-4717 \u2014 all 5 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/scripts/check-architecture-gates.py"},"region":{"startLine":3173}}}],"partialFingerprints":{"codehealthFindingId/v1":"f93ed54a7153bbf41e99327262c3b6234d94146a5fe127e058ed18b936b18a8c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 4): crab/scripts/check-architecture-gates.py:3177-3185 | crab/scripts/check-architecture-gates.py:3614-3622 | crab/scripts/check-architecture-gates.py:4410-4418 | crab/scripts/check-architecture-gates.py:4596-4604 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/scripts/check-architecture-gates.py"},"region":{"startLine":3177}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a90bd870f053f01b7f66712cc7c881399d5fb7fa9d7f6bf8192a8bcc2ce6e9b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crab/scripts/nfs-evidence-summary.py:2385-2393 | crab/scripts/nfs-evidence-summary.py:2396-2404 \u2014 both copies are in the same file, so extract the block 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":"crab/scripts/nfs-evidence-summary.py"},"region":{"startLine":2385}}}],"partialFingerprints":{"codehealthFindingId/v1":"45fd2f9441b150f5817b62a387a1a6f93808b020a6cb91db011d6cef00e6d12a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 5): crab/scripts/verify-nfs-smoke-report.py:4205-4212 | crab/scripts/verify-nfs-smoke-report.py:4277-4284 | crab/scripts/verify-nfs-smoke-report.py:4382-4389 | crab/scripts/verify-nfs-smoke-report.py:4417-4424 | crab/scripts/verify-nfs-smoke-report.py:4679-4686 \u2014 all 5 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/scripts/verify-nfs-smoke-report.py"},"region":{"startLine":4205}}}],"partialFingerprints":{"codehealthFindingId/v1":"a287e5819016bd551721e9ca59481d5e6fa8b6a0c093a663acb63b33f18c2a79"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 4): crab/scripts/check-architecture-gates.py:2658-2665 | crab/scripts/check-architecture-gates.py:2704-2711 | crab/scripts/check-architecture-gates.py:2754-2761 | crab/scripts/check-architecture-gates.py:2804-2811 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/scripts/check-architecture-gates.py"},"region":{"startLine":2658}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0d5eeb944abf8150e8506c7ac35e79d5a8f9acf9f1eac0a7b2051f277ac22e3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 4): crab/scripts/verify-cache-service-smoke-report.py:684-691 | crab/scripts/verify-cache-service-smoke-report.py:711-718 | crab/scripts/verify-cache-service-smoke-report.py:738-745 | crab/scripts/verify-cache-service-smoke-report.py:1435-1443 \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 \u0060crab/scripts/verify-cache-service-smoke-report.py:684\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060crab/scripts/verify-cache-service-smoke-report.py:1443\u0060 calls \u0060int_value\u0060 and \u0060crab/scripts/verify-cache-service-smoke-report.py:691\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":"crab/scripts/verify-cache-service-smoke-report.py"},"region":{"startLine":684}}}],"partialFingerprints":{"codehealthFindingId/v1":"59141bbb0c86f4a7c4be9e0d8c3ebdf4c01b99c4dd7ba6b3872e532b979633f9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crab/scripts/check-architecture-gates.py:4862-4869 | crab/scripts/check-architecture-gates.py:4872-4879 \u2014 both copies are in the same file, so extract the block 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":"crab/scripts/check-architecture-gates.py"},"region":{"startLine":4862}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe9e9af1c61cf9869f02d2e334dfa69ba9761664b6823e5788e1cf9b1fe77e34"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/crab-http-server/deploy/cell-issue-fleet/qualify_reader_first_loss.py:32-39 | crates/crab-http-server/deploy/cell-issue-fleet/qualify_reader_load.py:108-115 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-http-server/deploy/cell-issue-fleet/qualify_reader_first_loss.py"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"055123033cb7ba73f0212fd4f50078e68388334392165ffb5e2a4badee21f831"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 6): crab/scripts/check-architecture-gates.py:3177-3183 | crab/scripts/check-architecture-gates.py:3614-3620 | crab/scripts/check-architecture-gates.py:4410-4416 | crab/scripts/check-architecture-gates.py:4470-4476 | crab/scripts/check-architecture-gates.py:4532-4538 | crab/scripts/check-architecture-gates.py:4596-4602 \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":"crab/scripts/check-architecture-gates.py"},"region":{"startLine":3177}}}],"partialFingerprints":{"codehealthFindingId/v1":"54edf04b4ad47c1694a43ba1a41b5c08ecb8d8b09ffc5667523424cdb5b068be"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crab/scripts/verify-cache-service-smoke-report.py:620-626 | crab/scripts/verify-cache-service-smoke-report.py:1328-1334 \u2014 both copies are in the same file, so extract the block 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":"crab/scripts/verify-cache-service-smoke-report.py"},"region":{"startLine":620}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb967cd5123b53fd219c3c74346e9958ad413eca13d94e881944de9d5a25ca9c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crab/scripts/verify-cache-service-smoke-report.py:1096-1102 | crab/scripts/verify-cache-service-smoke-report.py:1127-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/scripts/verify-cache-service-smoke-report.py"},"region":{"startLine":1096}}}],"partialFingerprints":{"codehealthFindingId/v1":"c27e66d66e1677b51f196c77506ccfb89018e3ebec6464cf2ad787bf93bb23f2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 5): crab/scripts/check-architecture-gates.py:2584-2590 | crab/scripts/check-architecture-gates.py:2660-2666 | crab/scripts/check-architecture-gates.py:2706-2712 | crab/scripts/check-architecture-gates.py:2756-2762 | crab/scripts/check-architecture-gates.py:2806-2812 \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 \u0060crab/scripts/check-architecture-gates.py:2584\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":"crab/scripts/check-architecture-gates.py"},"region":{"startLine":2584}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f959c0540dd8c686fb9f02916ad9925e2993f4d5482e0fe0a6d6d4473ad745f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crab/scripts/verify-cache-service-smoke-report.py:897-904 | crab/scripts/verify-cache-service-smoke-report.py:982-989 \u2014 both copies are in the same file, so extract the block 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":"crab/scripts/verify-cache-service-smoke-report.py"},"region":{"startLine":897}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fc97a1b543cbb6fcb4d9086a0a1f95de752dbaf10eddf102897d0f6cff1bbec"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crab/scripts/check-architecture-gates.py:2995-2999 | crab/scripts/check-architecture-gates.py:3567-3572 \u2014 both copies are in the same file, so extract the block 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 \u0060crab/scripts/check-architecture-gates.py:2995\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":"crab/scripts/check-architecture-gates.py"},"region":{"startLine":2995}}}],"partialFingerprints":{"codehealthFindingId/v1":"05001804c26ac231cf5c8fbd096e95574a4a9f22190e67533e43181d5faa9053"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/crab-http-server/deploy/cell-issue-fleet/qualify.py:397-401 | crates/crab-http-server/deploy/cell-issue-fleet/qualify_read_replicas.py:479-483 \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/crab-http-server/deploy/cell-issue-fleet/qualify.py"},"region":{"startLine":397}}}],"partialFingerprints":{"codehealthFindingId/v1":"896b23b57fd6b63352871b3ff754a4953d578e2735a3cd1ba5bbf97c20410171"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crab/scripts/check-final-integration.py:95-102 | crab/scripts/release/check-shipped-binary-versions.py:34-41 \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. 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":"crab/scripts/check-final-integration.py"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f522806da728f5581418cf2c3406f292a4b4a18010d11912db4405742fa2f7f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crab/scripts/mount-concurrent-writer-probe.py:60-64 | crab/scripts/release/generate-release-manifest.py:30-34 \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. 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":"crab/scripts/mount-concurrent-writer-probe.py"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"db09e35f41876cbf2ccc8f1dd743459568491a30bcaefcaef6db5bd61d276239"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crab/scripts/nfs-read-path-bench-report.py:88-92 | crab/scripts/verify-nfs-smoke-report.py:219-223 \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":"crab/scripts/nfs-read-path-bench-report.py"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4f2efc9f34b74c180a86ee71b45aa0df5351b018e5aa90fa755360cdb21bda3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crab/scripts/package_sdk.py:83-87 | crab/scripts/verify-cache-service-smoke-report.py:1925-1929 \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":"crab/scripts/package_sdk.py"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e984adc2aaac880c7fbd5bc6bf001141f654a868d9f36b6609d78c34e550d83"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crab/deploy/auth-service/src/receive_helper.py:301-308 | crab/deploy/auth-service/src/view_helper.py:137-144 \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 \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":"crab/deploy/auth-service/src/receive_helper.py"},"region":{"startLine":301}}}],"partialFingerprints":{"codehealthFindingId/v1":"2046d9bf7e9ca12cbdbbb460db185a28dd309142f5e1b33087e28d4b38600889"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/crab-http-server/deploy/cell-issue-fleet/fault.py:316-320 | crates/crab-http-server/deploy/cell-issue-fleet/load.py:566-570 \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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060crates/crab-http-server/deploy/cell-issue-fleet/load.py:571\u0060 calls \u0060add_argument\u0060 and \u0060crates/crab-http-server/deploy/cell-issue-fleet/fault.py:321\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/crab-http-server/deploy/cell-issue-fleet/fault.py"},"region":{"startLine":316}}}],"partialFingerprints":{"codehealthFindingId/v1":"efd80a684a267f55e80f030b4f850941661f8fed09530b0113c796b7cb9ddbea"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 4): crates/crab-http-server/deploy/cell-issue-fleet/qualify.py:376-382 | crates/crab-http-server/deploy/cell-issue-fleet/qualify_mode_rollout.py:94-100 | crates/crab-http-server/deploy/cell-issue-fleet/qualify_read_replicas.py:467-473 | crates/crab-http-server/deploy/cell-issue-fleet/render.py:267-273 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 4 call sites, so a change lands once. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060crates/crab-http-server/deploy/cell-issue-fleet/qualify_mode_rollout.py:102\u0060 calls \u0060add_argument\u0060 and \u0060crates/crab-http-server/deploy/cell-issue-fleet/qualify_read_replicas.py:475\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/crab-http-server/deploy/cell-issue-fleet/qualify.py"},"region":{"startLine":376}}}],"partialFingerprints":{"codehealthFindingId/v1":"738dc2b8ff320fc7029b5b9feb1f9897062859fcec7edf2ea6136e0e1170d4b0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 17\u002B corresponding lines): crates/crab-http-server/src/auth_tests/assignees.rs:12-28 | crates/crab-http-server/src/auth_tests/issues.rs:17-35 | crates/crab-http-server/src/auth_tests/labels.rs:16-33 \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/crab-http-server/src/auth_tests/assignees.rs"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"cafaa28b8694b69173634672c21b4fe6b4f6321f676966db5f4688a82745669f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): crates/crab-http-server/src/auth_tests/branches.rs:8-23 | crates/crab-http-server/src/auth_tests/branches.rs:25-40 \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/crab-http-server/src/auth_tests/branches.rs"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"c59c8321ac9fea0ce8f701dd92c5b5b9ce766bedbef8a6c079a0272a30c31c33"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): crates/crab-http-server/src/auth_tests/pulls.rs:12-27 | crates/crab-http-server/src/auth_tests/pulls.rs:53-66 \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/crab-http-server/src/auth_tests/pulls.rs"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe09a96d27b78c66de7ff0d6003e6ac1ba7e17e7b36303b4a94d906fe2da3ed8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 11): crates/crab-http-server/src/auth_tests/assignees.rs:20-28 | crates/crab-http-server/src/auth_tests/branches.rs:15-23 | crates/crab-http-server/src/auth_tests/branches.rs:32-40 | crates/crab-http-server/src/auth_tests/branches.rs:54-62 | crates/crab-http-server/src/auth_tests/branches.rs:76-84 | crates/crab-http-server/src/auth_tests/branches.rs:93-101 | crates/crab-http-server/src/auth_tests/pulls.rs:19-27 | crates/crab-http-server/src/auth_tests/pulls.rs:37-45 | crates/crab-http-server/src/auth_tests/pulls.rs:58-66 | crates/crab-http-server/src/auth_tests/releases.rs:17-25 | crates/crab-http-server/src/auth_tests/releases.rs:40-48 \u2014 there are 11 copies across 4 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 11 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/crab-http-server/src/auth_tests/assignees.rs:20\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/crab-http-server/src/auth_tests/assignees.rs"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"409509ee31115bdb132312a5670739a7c1d69c6d8032d8f5fdca5fa9cd8ffe62"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): crates/crab-http-server/src/auth_tests/assignees.rs:18-25 | crates/crab-http-server/src/auth_tests/issues.rs:23-30 | crates/crab-http-server/src/auth_tests/labels.rs:22-29 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 3 call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/crab-http-server/src/auth_tests/assignees.rs:18\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/crab-http-server/src/auth_tests/assignees.rs"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"33b154566967ee01c9661b1c5a2c5f0ee1526aeb36978f5d0c7e5a49d9272354"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201319 lines \u00D7 2): crab/deploy/auth-service/scripts/e2e-path-acl-local.py:169-187 | crab/deploy/auth-service/scripts/e2e-path-acl-rustfs.py:229-243 \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 \u0060crab/deploy/auth-service/scripts/e2e-path-acl-local.py:169\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":"crab/deploy/auth-service/scripts/e2e-path-acl-local.py"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"83730e7e0fa769685a26c67c6dad9ddd5aa0bd77e53d4acab34b5e1b03f5acbc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201315 lines \u00D7 2): crab/deploy/auth-service/scripts/e2e-path-acl-local.py:142-154 | crab/deploy/auth-service/scripts/e2e-path-acl-local.py:185-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 \u0060crab/deploy/auth-service/scripts/e2e-path-acl-local.py:185\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":"crab/deploy/auth-service/scripts/e2e-path-acl-local.py"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"b06fd56f39e6046ff5e1f11c2f0390e5127c6182bad2f209e647aadab66e4011"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201311 lines \u00D7 2): crab/deploy/auth-service/scripts/e2e-path-acl-rustfs.py:214-222 | crab/deploy/auth-service/scripts/e2e-path-acl-rustfs.py:241-251 \u2014 both copies are in the same file, so extract the block 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 \u0060crab/deploy/auth-service/scripts/e2e-path-acl-rustfs.py:241\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":"crab/deploy/auth-service/scripts/e2e-path-acl-rustfs.py"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c81bcdc20eaff43fdc28653a7b2675d0705bc9544e0861591cada1b189b08d7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crab/deploy/auth-service/scripts/e2e-path-acl-local.py:110-119 | crab/deploy/auth-service/scripts/e2e-path-acl-local.py:125-134 \u2014 both copies are in the same file, so extract the block 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":"crab/deploy/auth-service/scripts/e2e-path-acl-local.py"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7503bfa0b2a4d826052d637aa431502be0b0fd2627e98ca44a0176deebb3370"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): crab/deploy/auth-service/scripts/e2e-path-acl-local.py:429-443 | crab/deploy/auth-service/scripts/e2e-path-acl-rustfs.py:546-560 \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":"crab/deploy/auth-service/scripts/e2e-path-acl-local.py"},"region":{"startLine":429}}}],"partialFingerprints":{"codehealthFindingId/v1":"b690cbada3f7df5d7275d431834f199f44b1d4305c017b43e51eb25dba97be66"}},{"ruleId":"D5","level":"warning","message":{"text":"Unstable project crab-vfs: crab-vfs has instability 0.89 with 1 dependents."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"a71a1fbb97b426b233356f87e72062a7c4267fffaca7b6ad8c6657482bab66ad"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: crab-types: crab-types: abstractness 0.00, instability 0.00, distance 1.00 \u2014 zone of pain \u2014 concrete and depended on by 13 project(s), so it\u0027s rigid to change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"5277d505b25e1dbfe49e90aba7d6defdd02f58a59aaf2acaee707840962adc1a"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: crab-xet: crab-xet: abstractness 0.07, instability 0.00, distance 0.93 \u2014 zone of pain \u2014 concrete and depended on by 14 project(s), so it\u0027s rigid to change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"f4c8fc5e4764537c7377b30332fa103b5e6d8a2e159ec4c1dfaf32571fa31042"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: crab-git: crab-git: abstractness 0.04, instability 0.07, distance 0.89 \u2014 zone of pain \u2014 concrete and depended on by 13 project(s), so it\u0027s rigid to change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"4bb1a748adbff8cd29915cce7b9fe433ffc887fa08ca00f0647e78e29511feb3"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: crab-coordination: crab-coordination: abstractness 0.12, instability 0.00, distance 0.88 \u2014 zone of pain \u2014 concrete and depended on by 9 project(s), so it\u0027s rigid to change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"5ef93c185e4dc2a5b12b0aa9a2e7c88e887d774b543577916cd60a1be943b1a2"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: crab-metadata: crab-metadata: abstractness 0.02, instability 0.18, distance 0.80 \u2014 zone of pain \u2014 concrete and depended on by 9 project(s), so it\u0027s rigid to change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"deb3877da48c8fb4a1b4b24695f09b7afd7b685fdab8a44151a4a923d7a113fe"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: crab-cache: crab-cache: abstractness 0.00, instability 0.20, distance 0.80 \u2014 zone of pain \u2014 concrete and depended on by 8 project(s), so it\u0027s rigid to change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"9075ab785d40aa077dc410e01b7433915a75bb997239db0dc541992b96a54fe7"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: crab-storage: crab-storage: abstractness 0.16, instability 0.06, distance 0.79 \u2014 zone of pain \u2014 concrete and depended on by 16 project(s), so it\u0027s rigid to change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"4c0b0f94b56a35b2aebb63f4d017f0ecbc9f4ca099b5a052a85ecc996e2d16cd"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: crab-lfs: crab-lfs: abstractness 0.00, instability 0.25, distance 0.75 \u2014 zone of pain \u2014 concrete and depended on by 6 project(s), so it\u0027s rigid to change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"c68e34deef60d17539c199e8175184eb6ef3e9a56f18daa464d17a80fe665925"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: ProcessCommand (LCOM4 7): ProcessCommand\u0027s methods fall into 7 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 7 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/cmd/mirror.rs"},"region":{"startLine":875}}}],"partialFingerprints":{"codehealthFindingId/v1":"5324c6c5b2e24a8e2139cdf62687a6970124a82710d8b597e6c2d3832325e61f"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: Store (LCOM4 6): Store\u0027s methods fall into 6 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 6 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-storage/src/store.rs"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"81a7de50675412c6b7672e8e33707cf0d7a7615990fff03f1d5379fd80de60db"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: CacheCatalog (LCOM4 4): CacheCatalog\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/crab-cache/src/catalog.rs"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a432b852749f62517a7fa49474a996204b8b3dc86eec56f55fc15dce4374527"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: PushOptions (LCOM4 4): PushOptions\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/crab-sdk/src/local/push.rs"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa8928bdb68115583c27ca874ac54372bdb9d8a1c3f8e5ccf40633610af90ac8"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: CloneOptions (LCOM4 4): CloneOptions\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/crab-sdk/src/local.rs"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"197025b753611ff8f16f02460d63fa8bbf591ffc1e3075d399451c1ce275c8d6"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: FetchOptions (LCOM4 4): FetchOptions\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/crab-sdk/src/local.rs"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"32c56ff1f78e689662f541fc1975f1c5953cedb29022e98e66f4b56f1958d5b6"}},{"ruleId":"D8","level":"warning","message":{"text":"Coverage not measured \u2014 JavaScript/TypeScript suite: Coverage NOT MEASURED: the JavaScript/TypeScript half could not be measured \u2014 packages/ui/ runs vitest but declares no coverage provider, so the suite can run and still produce no lcov \u2014 add \u0060@vitest/coverage-v8\u0060 (or \u0060@vitest/coverage-istanbul\u0060) as a devDependency. Coverage is excluded from the score rather than counted as a near-zero. The named suite step is one the repository\u0027s maintainers can perform; once it passes, the real number is measured on the next scan."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"62e63e619c28f057e129f2997c965d32a457366a9ce18ca019ffb6bdfba85c99"}},{"ruleId":"D13","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"730c320fd63708d0b7a35ff36f02dba20af52f6d58ed383bb79e4576f08dec9d"},"taxa":[{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},{"id":"CICD-SEC-6","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D13","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"561cea2fbbd74c479d4312315587dbaffb25023d1d89e01fb71a0abbf661c8b3"},"taxa":[{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},{"id":"CICD-SEC-6","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crab/src/git/push.rs: crab/src/git/push.rs changed 47 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 62 in PushPipeline::try_apply_add_push_plans at line 10673. 14 of those changes were fix/bug commits, and the other 33 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-06-29..2026-09-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-29 21:58:14 -07:00\u0027 --until=\u00272026-09-27 21:58:14 -07:00\u0027 --full-history --no-merges -- crab/src/git/push.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":"crab/src/git/push.rs"},"region":{"startLine":10673}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d031f89194055d05a3390d43d81a558e07e25b313b8ddedd72f3870b0d0a0b8"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crab/src/cmd/add.rs: crab/src/cmd/add.rs changed 13 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 74 in crab::cmd::add::execute_add at line 932. 5 of those changes were fix/bug commits, and the other 8 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-06-29..2026-09-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-29 21:58:14 -07:00\u0027 --until=\u00272026-09-27 21:58:14 -07:00\u0027 --full-history --no-merges -- crab/src/cmd/add.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":"crab/src/cmd/add.rs"},"region":{"startLine":932}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e1f36b60499eb4ec0604baedf626de3b96d9e740cfb441df0851ba062bfc7a7"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crab/src/cmd/metadb.rs: crab/src/cmd/metadb.rs changed 24 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 40 in crab::cmd::metadb::rebuild_git_object_locators at line 2688. 7 of those changes were fix/bug commits, and the other 17 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-06-29..2026-09-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-29 21:58:14 -07:00\u0027 --until=\u00272026-09-27 21:58:14 -07:00\u0027 --full-history --no-merges -- crab/src/cmd/metadb.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":"crab/src/cmd/metadb.rs"},"region":{"startLine":2688}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d85c5c6d5161cac7a8806eb5bb9cc08716ef4dee7254949c1dbb2815a78fbee"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/ui/src/App.tsx: packages/ui/src/App.tsx changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 117 in App.RepositoryPage at line 511. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-06-29..2026-09-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-29 21:58:14 -07:00\u0027 --until=\u00272026-09-27 21:58:14 -07:00\u0027 --full-history --no-merges -- packages/ui/src/App.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/ui/src/App.tsx"},"region":{"startLine":511}}}],"partialFingerprints":{"codehealthFindingId/v1":"08971e42020eb5d3465ff8b48cfad596513dcf3d0e128068aeca9ea6f306652a"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crab/src/git/remote_helper.rs: crab/src/git/remote_helper.rs changed 22 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 35 in crab::git::remote_helper::dispatch_batch at line 1366. 5 of those changes were fix/bug commits, and the other 17 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-06-29..2026-09-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-29 21:58:14 -07:00\u0027 --until=\u00272026-09-27 21:58:14 -07:00\u0027 --full-history --no-merges -- crab/src/git/remote_helper.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":"crab/src/git/remote_helper.rs"},"region":{"startLine":1366}}}],"partialFingerprints":{"codehealthFindingId/v1":"9da6ec1d883d038104250799231e726260bda131350b44cca2c6162f2a48c705"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/crab-http-server/src/server.rs: crates/crab-http-server/src/server.rs changed 28 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 25 in crab_http_server::server::boundary_request at line 2263. 6 of those changes were fix/bug commits, and the other 22 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-06-29..2026-09-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-29 21:58:14 -07:00\u0027 --until=\u00272026-09-27 21:58:14 -07:00\u0027 --full-history --no-merges -- crates/crab-http-server/src/server.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/crab-http-server/src/server.rs"},"region":{"startLine":2263}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d8dd3cda54c42259e6d3071ed09c3e5a686813ea4bfb7e7f6d0ffe600c30e6c"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/crab-metadata/src/git_visibility.rs: crates/crab-metadata/src/git_visibility.rs changed 16 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 41 in crab_metadata::git_visibility::storage::apply_catalog_journal_edits at line 3352. 4 of those changes were fix/bug commits, and the other 12 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-06-29..2026-09-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-29 21:58:14 -07:00\u0027 --until=\u00272026-09-27 21:58:14 -07:00\u0027 --full-history --no-merges -- crates/crab-metadata/src/git_visibility.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/crab-metadata/src/git_visibility.rs"},"region":{"startLine":3352}}}],"partialFingerprints":{"codehealthFindingId/v1":"2698a70ced6b426a6e4764906ffff62bdce1ce6f1cdbacb2b744a93335fac07b"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crab/scripts/release/check-release-archive-contents.py: crab/scripts/release/check-release-archive-contents.py changed 19 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 33 in check-release-archive-contents.check_release_workflow at line 196. 9 of those changes were fix/bug commits, and the other 10 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-06-29..2026-09-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-29 21:58:14 -07:00\u0027 --until=\u00272026-09-27 21:58:14 -07:00\u0027 --full-history --no-merges -- crab/scripts/release/check-release-archive-contents.py\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/scripts/release/check-release-archive-contents.py"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d9c50ef645a058196cd94c0347c01a3f7b13309a48a90b3afab9e8d183d523d"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crab/src/cmd/hydrate.rs: crab/src/cmd/hydrate.rs changed 16 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 37 in crab::cmd::hydrate::run_selected_hydration at line 2322. 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-06-29..2026-09-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-29 21:58:14 -07:00\u0027 --until=\u00272026-09-27 21:58:14 -07:00\u0027 --full-history --no-merges -- crab/src/cmd/hydrate.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":"crab/src/cmd/hydrate.rs"},"region":{"startLine":2322}}}],"partialFingerprints":{"codehealthFindingId/v1":"0dbab5fc1d27a89dde1cc504760fe23a455ba722ce4fbc1bbd984e15a0cd9155"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crab/src/cmd/repack.rs: crab/src/cmd/repack.rs changed 19 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 30 in crab::cmd::repack::run_repack_locked at line 286. 5 of those changes were fix/bug commits, and the other 14 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-06-29..2026-09-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-29 21:58:14 -07:00\u0027 --until=\u00272026-09-27 21:58:14 -07:00\u0027 --full-history --no-merges -- crab/src/cmd/repack.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":"crab/src/cmd/repack.rs"},"region":{"startLine":286}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8090eb3d729fe5d2fa24e8f38932147ca97e3046ab9d871548f73e17da6cec1"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crab/src/git/push_native.rs: crab/src/git/push_native.rs changed 9 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 59 in crab::git::push_native::run_native_push_inner at line 271. 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-06-29..2026-09-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-29 21:58:14 -07:00\u0027 --until=\u00272026-09-27 21:58:14 -07:00\u0027 --full-history --no-merges -- crab/src/git/push_native.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":"crab/src/git/push_native.rs"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"da8705043c17ae27ac729decbcb44de41bdf8ab5ae0b04657c9a60ff30a1eec7"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/crab-http-server/src/peer.rs: crates/crab-http-server/src/peer.rs changed 16 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 33 in crab_http_server::peer::dispatch_forwarded_request at line 968. 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-06-29..2026-09-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-29 21:58:14 -07:00\u0027 --until=\u00272026-09-27 21:58:14 -07:00\u0027 --full-history --no-merges -- crates/crab-http-server/src/peer.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/crab-http-server/src/peer.rs"},"region":{"startLine":968}}}],"partialFingerprints":{"codehealthFindingId/v1":"44c934f6dbda244d15f023d9cd3b9f71e633667b783587648a34f7e6141059f5"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crab/src/git/upload_pack_wire.rs: crab/src/git/upload_pack_wire.rs changed 20 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 24 in crab::git::upload_pack_wire::open_repository_with_visibility_requirement at line 890. 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-06-29..2026-09-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-29 21:58:14 -07:00\u0027 --until=\u00272026-09-27 21:58:14 -07:00\u0027 --full-history --no-merges -- crab/src/git/upload_pack_wire.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":"crab/src/git/upload_pack_wire.rs"},"region":{"startLine":890}}}],"partialFingerprints":{"codehealthFindingId/v1":"22a13b7e64040cd9af14551d6d05cf7ce01a896e86749bc3a566b3c21c7cbc50"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crab/src/core/config.rs: crab/src/core/config.rs changed 11 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 40 in Config::apply_overlay at line 2079. 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-06-29..2026-09-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-29 21:58:14 -07:00\u0027 --until=\u00272026-09-27 21:58:14 -07:00\u0027 --full-history --no-merges -- crab/src/core/config.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":"crab/src/core/config.rs"},"region":{"startLine":2079}}}],"partialFingerprints":{"codehealthFindingId/v1":"51ac1f673e83310dc6da678730b4d4962ad961b06ceee13fe0a13ef67b05dc41"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/crab-storage/src/store.rs: crates/crab-storage/src/store.rs changed 12 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 36 in Store::put_multipart_file_resumable at line 1792. 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-06-29..2026-09-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-29 21:58:14 -07:00\u0027 --until=\u00272026-09-27 21:58:14 -07:00\u0027 --full-history --no-merges -- crates/crab-storage/src/store.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/crab-storage/src/store.rs"},"region":{"startLine":1792}}}],"partialFingerprints":{"codehealthFindingId/v1":"8453bb0e449dc90c7e16e59351b745a9aedfcd83dc08cb2a625fd0a88e17dfca"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crab/src/cmd/push.rs: crab/src/cmd/push.rs changed 11 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 39 in crab::cmd::push::run_push_once at line 533. 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-06-29..2026-09-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-29 21:58:14 -07:00\u0027 --until=\u00272026-09-27 21:58:14 -07:00\u0027 --full-history --no-merges -- crab/src/cmd/push.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":"crab/src/cmd/push.rs"},"region":{"startLine":533}}}],"partialFingerprints":{"codehealthFindingId/v1":"712023fa733265a8713661c6464958cf092fab591cf04bb21a54f08cb36c1c8a"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/crab-http-server/src/cells/router.rs: crates/crab-http-server/src/cells/router.rs changed 19 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 20 in RepositoryCellRouter::rebalance_once at line 213. 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-06-29..2026-09-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-29 21:58:14 -07:00\u0027 --until=\u00272026-09-27 21:58:14 -07:00\u0027 --full-history --no-merges -- crates/crab-http-server/src/cells/router.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/crab-http-server/src/cells/router.rs"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bd4b4ba1a2a6fe9982f8693e5f664239bacda408310210e47f417348d9fca74"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crab/src/cmd/lfs/mod.rs: crab/src/cmd/lfs/mod.rs changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 76 in crab::cmd::lfs::run_lfs_with_cancel at line 727. 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-06-29..2026-09-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-29 21:58:14 -07:00\u0027 --until=\u00272026-09-27 21:58:14 -07:00\u0027 --full-history --no-merges -- crab/src/cmd/lfs/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":"crab/src/cmd/lfs/mod.rs"},"region":{"startLine":727}}}],"partialFingerprints":{"codehealthFindingId/v1":"58afdb130db1aa91b09f92242fe1f5e02342aa2ac61178f936b27ae83c21b72e"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/crab-http-server/src/cells/scheduler.rs: crates/crab-http-server/src/cells/scheduler.rs changed 16 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 23 in crab_http_server::cells::scheduler::recover_node_session at line 1190. 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-06-29..2026-09-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-29 21:58:14 -07:00\u0027 --until=\u00272026-09-27 21:58:14 -07:00\u0027 --full-history --no-merges -- crates/crab-http-server/src/cells/scheduler.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/crab-http-server/src/cells/scheduler.rs"},"region":{"startLine":1190}}}],"partialFingerprints":{"codehealthFindingId/v1":"39d78063e70a485f5ed6d7fa407b04e5866a07e1810c9e04c2a7ea0b07a92c68"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crab/src/cmd/gc/mod.rs: crab/src/cmd/gc/mod.rs changed 16 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 22 in crab::cmd::gc::execute_journaled_deletes at line 1248. 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-06-29..2026-09-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-29 21:58:14 -07:00\u0027 --until=\u00272026-09-27 21:58:14 -07:00\u0027 --full-history --no-merges -- crab/src/cmd/gc/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":"crab/src/cmd/gc/mod.rs"},"region":{"startLine":1248}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e899b9f43f3b38c004016ef2b052afc85f27e73fbe68425a64dc60029951cb0"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crab/src/cmd/clone.rs: crab/src/cmd/clone.rs changed 11 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 32 in crab::cmd::clone::run_clone_in at line 216. 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-06-29..2026-09-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-29 21:58:14 -07:00\u0027 --until=\u00272026-09-27 21:58:14 -07:00\u0027 --full-history --no-merges -- crab/src/cmd/clone.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":"crab/src/cmd/clone.rs"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"6aa7d5373bf7fe30597e6a4244c4431e99d9cc604236b7f0751328b1e957e722"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/ui/src/content.tsx: packages/ui/src/content.tsx changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 49 in content.FileView at line 132. 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-06-29..2026-09-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-29 21:58:14 -07:00\u0027 --until=\u00272026-09-27 21:58:14 -07:00\u0027 --full-history --no-merges -- packages/ui/src/content.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/ui/src/content.tsx"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8500f0ff434ee18efd991c65717d70a7fd309fd5fec0a3170ccad3e86aa0190"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/crab-remote-git/src/repository.rs: crates/crab-remote-git/src/repository.rs changed 16 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 21 in RemoteGitRepository::open_inner at line 495. 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-06-29..2026-09-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-29 21:58:14 -07:00\u0027 --until=\u00272026-09-27 21:58:14 -07:00\u0027 --full-history --no-merges -- crates/crab-remote-git/src/repository.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/crab-remote-git/src/repository.rs"},"region":{"startLine":495}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d98cf6c9d31d3637d2924061073c62dbcaa618c6d29742b09dea46eb82f9932"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crab/scripts/verify-large-repo-rustfs-report.py: crab/scripts/verify-large-repo-rustfs-report.py changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 67 in verify-large-repo-rustfs-report.verify_report at line 475. 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-06-29..2026-09-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-29 21:58:14 -07:00\u0027 --until=\u00272026-09-27 21:58:14 -07:00\u0027 --full-history --no-merges -- crab/scripts/verify-large-repo-rustfs-report.py\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/scripts/verify-large-repo-rustfs-report.py"},"region":{"startLine":475}}}],"partialFingerprints":{"codehealthFindingId/v1":"74144cc373a6f49b58fc82ef7c689601863bb9665c99c86a43cb672c5f848b93"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/crab-read/src/upload_pack.rs: crates/crab-read/src/upload_pack.rs changed 9 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 37 in crab_read::upload_pack::plan_with_operation at line 640. 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-06-29..2026-09-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-29 21:58:14 -07:00\u0027 --until=\u00272026-09-27 21:58:14 -07:00\u0027 --full-history --no-merges -- crates/crab-read/src/upload_pack.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/crab-read/src/upload_pack.rs"},"region":{"startLine":640}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0c17e700900a8d18cc6c61e23ef7fbcb2995c54fb02ca255c5dbce1adc98026"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/crab-metadata/src/git_object_locator/writer.rs: crates/crab-metadata/src/git_object_locator/writer.rs changed 13 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 25 in GitObjectLocatorWriter::write_locations_inner at line 558. 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-06-29..2026-09-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-29 21:58:14 -07:00\u0027 --until=\u00272026-09-27 21:58:14 -07:00\u0027 --full-history --no-merges -- crates/crab-metadata/src/git_object_locator/writer.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/crab-metadata/src/git_object_locator/writer.rs"},"region":{"startLine":558}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ea99a0556b7de5d5d2e4a183ed0a28eaff9f1ac981840d8b4d35afc4a47caa4"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/crab-auth-server/src/receive.rs: crates/crab-auth-server/src/receive.rs changed 19 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in crab_auth_server::receive::commit_service_git_locators_with_source at line 1765. 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-06-29..2026-09-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-29 21:58:14 -07:00\u0027 --until=\u00272026-09-27 21:58:14 -07:00\u0027 --full-history --no-merges -- crates/crab-auth-server/src/receive.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/crab-auth-server/src/receive.rs"},"region":{"startLine":1765}}}],"partialFingerprints":{"codehealthFindingId/v1":"3abb4ee296a2de9e7def366d834772f0ed2a15ad9385f7324d5a1fceda68cf7c"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crab/src/cmd/history_recovery.rs: crab/src/cmd/history_recovery.rs changed 12 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 25 in crab::cmd::history_recovery::verify_history at line 680. 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-06-29..2026-09-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-29 21:58:14 -07:00\u0027 --until=\u00272026-09-27 21:58:14 -07:00\u0027 --full-history --no-merges -- crab/src/cmd/history_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":"crab/src/cmd/history_recovery.rs"},"region":{"startLine":680}}}],"partialFingerprints":{"codehealthFindingId/v1":"2cb54e0c35dabd3e31d45ffbf060c248c31d7be1c679fa0e55cf7750efef6801"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/crab-staging/src/stream.rs: crates/crab-staging/src/stream.rs changed 9 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 33 in crab_staging::stream::stage_file_streaming_inner at line 602. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-06-29..2026-09-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-29 21:58:14 -07:00\u0027 --until=\u00272026-09-27 21:58:14 -07:00\u0027 --full-history --no-merges -- crates/crab-staging/src/stream.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/crab-staging/src/stream.rs"},"region":{"startLine":602}}}],"partialFingerprints":{"codehealthFindingId/v1":"b65793d26f3455c8e12174529a2130a1ed6082ecfd8a76332020f4e0074ee953"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/crab-http-server/src/api.rs: crates/crab-http-server/src/api.rs changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 46 in crab_http_server::api::execute at line 468. 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-06-29..2026-09-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-29 21:58:14 -07:00\u0027 --until=\u00272026-09-27 21:58:14 -07:00\u0027 --full-history --no-merges -- crates/crab-http-server/src/api.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/crab-http-server/src/api.rs"},"region":{"startLine":468}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec832b3cc627ccca80e8e5279f628bbfdb44a0cd0e0da09c88d36346989d7320"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crab/src/cmd/init.rs: crab/src/cmd/init.rs changed 10 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 25 in crab::cmd::init::run_init_inner at line 233. 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-06-29..2026-09-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-29 21:58:14 -07:00\u0027 --until=\u00272026-09-27 21:58:14 -07:00\u0027 --full-history --no-merges -- crab/src/cmd/init.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":"crab/src/cmd/init.rs"},"region":{"startLine":233}}}],"partialFingerprints":{"codehealthFindingId/v1":"99866573b7fff5a6351bb03713a3cf25b917f402e7d5a8453f48ee558d80bf25"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crab/src/cmd/gc/bucket.rs: crab/src/cmd/gc/bucket.rs changed 9 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 25 in crab::cmd::gc::bucket::execute_bucket_journal at line 911. 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-06-29..2026-09-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-29 21:58:14 -07:00\u0027 --until=\u00272026-09-27 21:58:14 -07:00\u0027 --full-history --no-merges -- crab/src/cmd/gc/bucket.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":"crab/src/cmd/gc/bucket.rs"},"region":{"startLine":911}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a616c840be98e70e3083d2ece6f9d5b10c30522e2dfc83943c87d4df48a6390"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/crab-metadata/src/git_object_locator/reader.rs: crates/crab-metadata/src/git_object_locator/reader.rs changed 12 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 18 in crab_metadata::git_object_locator::reader::lookup_strategy at line 892. 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-06-29..2026-09-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-29 21:58:14 -07:00\u0027 --until=\u00272026-09-27 21:58:14 -07:00\u0027 --full-history --no-merges -- crates/crab-metadata/src/git_object_locator/reader.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/crab-metadata/src/git_object_locator/reader.rs"},"region":{"startLine":892}}}],"partialFingerprints":{"codehealthFindingId/v1":"688f3eef838954816938c0bf3c46fa8c6a2cefd73f3b2bd213786e0732976f39"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/crab-metadata/src/ref_journal.rs: crates/crab-metadata/src/ref_journal.rs changed 9 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 24 in crab_metadata::ref_journal::materialize_ref_journal at line 625. 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-06-29..2026-09-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-29 21:58:14 -07:00\u0027 --until=\u00272026-09-27 21:58:14 -07:00\u0027 --full-history --no-merges -- crates/crab-metadata/src/ref_journal.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/crab-metadata/src/ref_journal.rs"},"region":{"startLine":625}}}],"partialFingerprints":{"codehealthFindingId/v1":"35928d934871ba9013e49fa81f8bd03f15b26f88ea549dc9be9452c337bbc95f"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/crab-remote-git/src/reader.rs: crates/crab-remote-git/src/reader.rs changed 12 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in crab_remote_git::reader::parse_pack_index at line 2407. 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-06-29..2026-09-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-29 21:58:14 -07:00\u0027 --until=\u00272026-09-27 21:58:14 -07:00\u0027 --full-history --no-merges -- crates/crab-remote-git/src/reader.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/crab-remote-git/src/reader.rs"},"region":{"startLine":2407}}}],"partialFingerprints":{"codehealthFindingId/v1":"19937e687b694d58de565e91c7dfe125ab58496899e6dd6e11db8e7a2a1fba49"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crab/src/git/filter_process.rs: crab/src/git/filter_process.rs changed 10 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 19 in crab::git::filter_process::dispatch_command at line 1081. 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-06-29..2026-09-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-29 21:58:14 -07:00\u0027 --until=\u00272026-09-27 21:58:14 -07:00\u0027 --full-history --no-merges -- crab/src/git/filter_process.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":"crab/src/git/filter_process.rs"},"region":{"startLine":1081}}}],"partialFingerprints":{"codehealthFindingId/v1":"02144f32c1a807af76a375594ee21b1a20fc21af7363e9575f80be6cff6fd039"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/crab-s3-gateway/src/gateway.rs: crates/crab-s3-gateway/src/gateway.rs changed 9 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 20 in Gateway::complete_multipart_upload at line 2428. 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-06-29..2026-09-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-29 21:58:14 -07:00\u0027 --until=\u00272026-09-27 21:58:14 -07:00\u0027 --full-history --no-merges -- crates/crab-s3-gateway/src/gateway.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/crab-s3-gateway/src/gateway.rs"},"region":{"startLine":2428}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c1a1d580ed81c7f570fa9214bb178f65c92d10c432fd61a59288b485d58d6d9"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/crab-staging/src/index.rs: crates/crab-staging/src/index.rs changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 36 in Index::insert_file_push_plans at line 6335. 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-06-29..2026-09-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-29 21:58:14 -07:00\u0027 --until=\u00272026-09-27 21:58:14 -07:00\u0027 --full-history --no-merges -- crates/crab-staging/src/index.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/crab-staging/src/index.rs"},"region":{"startLine":6335}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2808010fac63fae971f598206f722494fcfe7bbb2b19e0ace85a0d8a493ae74"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/crab-http-server/src/receive/publish.rs: crates/crab-http-server/src/receive/publish.rs changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 25 in crab_http_server::receive::publish::publish_attempt at line 434. 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-06-29..2026-09-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-29 21:58:14 -07:00\u0027 --until=\u00272026-09-27 21:58:14 -07:00\u0027 --full-history --no-merges -- crates/crab-http-server/src/receive/publish.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/crab-http-server/src/receive/publish.rs"},"region":{"startLine":434}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbd7a0022180406532d4de4e5b1d77fb01bf6b32d8737f7cc84691724c65c08e"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crab/src/cmd/dehydrate.rs: crab/src/cmd/dehydrate.rs changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 29 in crab::cmd::dehydrate::run_dehydrate_in at line 105. 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-06-29..2026-09-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-29 21:58:14 -07:00\u0027 --until=\u00272026-09-27 21:58:14 -07:00\u0027 --full-history --no-merges -- crab/src/cmd/dehydrate.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":"crab/src/cmd/dehydrate.rs"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"11b821a95ba7010f65db3b92ccf0dc87434ab86dc79daabc1cac33b008ebfefa"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crab/src/cmd/run.rs: crab/src/cmd/run.rs changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 53 in crab::cmd::run::run_dag at line 1471. 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-06-29..2026-09-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-29 21:58:14 -07:00\u0027 --until=\u00272026-09-27 21:58:14 -07:00\u0027 --full-history --no-merges -- crab/src/cmd/run.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":"crab/src/cmd/run.rs"},"region":{"startLine":1471}}}],"partialFingerprints":{"codehealthFindingId/v1":"4743202aa5caf01376151c0a8e9d5ae14c19b8d1c1ff3979613b9c4601b383fa"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/crab-workflow/src/executor.rs: crates/crab-workflow/src/executor.rs changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 53 in crab_workflow::executor::run_inner at line 310. 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-06-29..2026-09-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-29 21:58:14 -07:00\u0027 --until=\u00272026-09-27 21:58:14 -07:00\u0027 --full-history --no-merges -- crates/crab-workflow/src/executor.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/crab-workflow/src/executor.rs"},"region":{"startLine":310}}}],"partialFingerprints":{"codehealthFindingId/v1":"d599cc5d469f3179aeb4c9ebec33bf88badf614a1ea7156d875bfa1e0fc8c2a1"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/crab-s3-gateway/src/mutation.rs: crates/crab-s3-gateway/src/mutation.rs changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 26 in crab_s3_gateway::mutation::build_commit at line 2404. 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-06-29..2026-09-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-29 21:58:14 -07:00\u0027 --until=\u00272026-09-27 21:58:14 -07:00\u0027 --full-history --no-merges -- crates/crab-s3-gateway/src/mutation.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/crab-s3-gateway/src/mutation.rs"},"region":{"startLine":2404}}}],"partialFingerprints":{"codehealthFindingId/v1":"081cb14298bdd87221b3129e0f195833bce08fe76402fedc6b3f3f7222566577"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/crab-git/src/repack.rs: crates/crab-git/src/repack.rs changed 9 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in crab_git::repack::consolidate_pack_suffix_with_options at line 495. 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-06-29..2026-09-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-29 21:58:14 -07:00\u0027 --until=\u00272026-09-27 21:58:14 -07:00\u0027 --full-history --no-merges -- crates/crab-git/src/repack.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/crab-git/src/repack.rs"},"region":{"startLine":495}}}],"partialFingerprints":{"codehealthFindingId/v1":"40755c1458f79cdc66ecf4395b17bbf6b0390afc740e3231abb433156b312edb"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crab/src/cmd/optimize/xorbs.rs: crab/src/cmd/optimize/xorbs.rs changed 9 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in crab::cmd::optimize::xorbs::run_apply at line 440. 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-06-29..2026-09-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-29 21:58:14 -07:00\u0027 --until=\u00272026-09-27 21:58:14 -07:00\u0027 --full-history --no-merges -- crab/src/cmd/optimize/xorbs.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":"crab/src/cmd/optimize/xorbs.rs"},"region":{"startLine":440}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d2e261825e2c652ea82739ee0dcee9fe569247c3bbcb91801711ece661034cf"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/crab-coordination/src/push_admission.rs: crates/crab-coordination/src/push_admission.rs changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 21 in PushAdmissionTicket::try_admit at line 153. 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-06-29..2026-09-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-29 21:58:14 -07:00\u0027 --until=\u00272026-09-27 21:58:14 -07:00\u0027 --full-history --no-merges -- crates/crab-coordination/src/push_admission.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/crab-coordination/src/push_admission.rs"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"582edb00f01a5216ab0fdc66c9419b1dc747da04b2a59eda5846f981fbff8f5b"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crab/src/git/clean.rs: crab/src/git/clean.rs changed 9 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in CleanSession::crab_clean_stream at line 2084. 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-06-29..2026-09-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-29 21:58:14 -07:00\u0027 --until=\u00272026-09-27 21:58:14 -07:00\u0027 --full-history --no-merges -- crab/src/git/clean.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":"crab/src/git/clean.rs"},"region":{"startLine":2084}}}],"partialFingerprints":{"codehealthFindingId/v1":"725b9ca1d8f11be9d3cac811fa94b87535d8cd9b0d4ff3659484b842ddc1a0bd"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crab/src/cmd/exp.rs: crab/src/cmd/exp.rs changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 23 in crab::cmd::exp::apply_checkpoint_record_to at line 2133. 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-06-29..2026-09-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-29 21:58:14 -07:00\u0027 --until=\u00272026-09-27 21:58:14 -07:00\u0027 --full-history --no-merges -- crab/src/cmd/exp.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":"crab/src/cmd/exp.rs"},"region":{"startLine":2133}}}],"partialFingerprints":{"codehealthFindingId/v1":"f17fc75debc9bf73a1547e1803bea308e97b0e2c5ff91528ab95ae06c16f4dfc"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crab/src/lfs/transfer_agent.rs: crab/src/lfs/transfer_agent.rs changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 45 in crab::lfs::transfer_agent::run_transfer_agent_with_resolver at line 216. 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-06-29..2026-09-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-29 21:58:14 -07:00\u0027 --until=\u00272026-09-27 21:58:14 -07:00\u0027 --full-history --no-merges -- crab/src/lfs/transfer_agent.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":"crab/src/lfs/transfer_agent.rs"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"92d0912b764722a7914d96c8431a6841899f4670d2064908eb8d51592f4ca8a1"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/crab-lfs/src/object_store.rs: crates/crab-lfs/src/object_store.rs changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 22 in LfsObjectStore::get_verified_stream_at at line 775. 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-06-29..2026-09-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-29 21:58:14 -07:00\u0027 --until=\u00272026-09-27 21:58:14 -07:00\u0027 --full-history --no-merges -- crates/crab-lfs/src/object_store.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/crab-lfs/src/object_store.rs"},"region":{"startLine":775}}}],"partialFingerprints":{"codehealthFindingId/v1":"7eec3d619d57b9153807730e9f9f0d9b6c62595c0b452f2bc009f612b202f89b"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crab/src/cmd/migrate.rs: crab/src/cmd/migrate.rs changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 26 in crab::cmd::migrate::run_migrate_from_dvc_with_options at line 922. 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-06-29..2026-09-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-29 21:58:14 -07:00\u0027 --until=\u00272026-09-27 21:58:14 -07:00\u0027 --full-history --no-merges -- crab/src/cmd/migrate.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":"crab/src/cmd/migrate.rs"},"region":{"startLine":922}}}],"partialFingerprints":{"codehealthFindingId/v1":"671e259669019f69e27d8b18ce0ccb86570bec970ab76c354273c8e4c9a33f1d"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/crab-http-server/src/config.rs: crates/crab-http-server/src/config.rs changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in Config::validate at line 170. 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-06-29..2026-09-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-29 21:58:14 -07:00\u0027 --until=\u00272026-09-27 21:58:14 -07:00\u0027 --full-history --no-merges -- crates/crab-http-server/src/config.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/crab-http-server/src/config.rs"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"b661d01423ad5af76057210da14b9a2d44480e48a36faaaed2e77b344910785c"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/crab-http-server/src/issues.rs: crates/crab-http-server/src/issues.rs changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 18 in crab_http_server::issues::edit at line 426. 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-06-29..2026-09-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-29 21:58:14 -07:00\u0027 --until=\u00272026-09-27 21:58:14 -07:00\u0027 --full-history --no-merges -- crates/crab-http-server/src/issues.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/crab-http-server/src/issues.rs"},"region":{"startLine":426}}}],"partialFingerprints":{"codehealthFindingId/v1":"50e3df302b5978a2bfcdeae9bfa5044d3201fa8b597400cb11ef6d34224f6aba"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crab/src/cmd/lfs/fetch.rs: crab/src/cmd/lfs/fetch.rs changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 21 in crab::cmd::lfs::fetch::run_lfs_fetch at line 48. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-06-29..2026-09-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-29 21:58:14 -07:00\u0027 --until=\u00272026-09-27 21:58:14 -07:00\u0027 --full-history --no-merges -- crab/src/cmd/lfs/fetch.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":"crab/src/cmd/lfs/fetch.rs"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"c33ff44ed3a1f436690ad159676ad793d6dac161a1ea24e71f8f501868d1deac"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/crab-s3-gateway/src/multipart.rs: crates/crab-s3-gateway/src/multipart.rs changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 26 in crab_s3_gateway::multipart::register_part at line 526. 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-06-29..2026-09-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-29 21:58:14 -07:00\u0027 --until=\u00272026-09-27 21:58:14 -07:00\u0027 --full-history --no-merges -- crates/crab-s3-gateway/src/multipart.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/crab-s3-gateway/src/multipart.rs"},"region":{"startLine":526}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5916ab8adf43371b15fdac7c2b9eaee532b91a6f00e823ae107a0bf0c94e616"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/crab-s3-gateway/src/config.rs: crates/crab-s3-gateway/src/config.rs changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 34 in Config::validate at line 113. 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-06-29..2026-09-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-29 21:58:14 -07:00\u0027 --until=\u00272026-09-27 21:58:14 -07:00\u0027 --full-history --no-merges -- crates/crab-s3-gateway/src/config.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/crab-s3-gateway/src/config.rs"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd3f0988dd21b19447ae903d389d03a9bb6474b5881d666e2ad74f52c2f99374"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/crab-git/src/pack.rs: crates/crab-git/src/pack.rs changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in crab_git::pack::install_pack_files_from_paths_with_identity at line 418. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-06-29..2026-09-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-29 21:58:14 -07:00\u0027 --until=\u00272026-09-27 21:58:14 -07:00\u0027 --full-history --no-merges -- crates/crab-git/src/pack.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/crab-git/src/pack.rs"},"region":{"startLine":418}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bee9c9c8146064d84c6d906bb53fe9b453178cc975f845d5b16ff9d33c580a8"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/crab-workflow/src/cache.rs: crates/crab-workflow/src/cache.rs changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 19 in crab_workflow::cache::pull_remote_with_artifact_stores at line 1090. 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-06-29..2026-09-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-29 21:58:14 -07:00\u0027 --until=\u00272026-09-27 21:58:14 -07:00\u0027 --full-history --no-merges -- crates/crab-workflow/src/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/crab-workflow/src/cache.rs"},"region":{"startLine":1090}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b709016cf3c00b3bbfb43f9138a3bfee4e3c80e4e98eb58eeb1e591b476afa9"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/crab-coordination/src/gc_fence.rs: crates/crab-coordination/src/gc_fence.rs changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in GcFenceLease::acquire_with_holder at line 411. 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-06-29..2026-09-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-29 21:58:14 -07:00\u0027 --until=\u00272026-09-27 21:58:14 -07:00\u0027 --full-history --no-merges -- crates/crab-coordination/src/gc_fence.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/crab-coordination/src/gc_fence.rs"},"region":{"startLine":411}}}],"partialFingerprints":{"codehealthFindingId/v1":"73dc20e853e0b79a3a4d24b34a6760d61a3dcc45d160ffe98b87e4d790efbcbd"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/crab-http-server/src/peer/client.rs: crates/crab-http-server/src/peer/client.rs changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 20 in PeerHttpRoundTrip::owner at line 176. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-06-29..2026-09-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-29 21:58:14 -07:00\u0027 --until=\u00272026-09-27 21:58:14 -07:00\u0027 --full-history --no-merges -- crates/crab-http-server/src/peer/client.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/crab-http-server/src/peer/client.rs"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"22bb4a7d03a96cb3024708428bed41b5661f35b3831eb4aaaf60a6d2bce624a0"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/crab-cache-server/src/handlers.rs: crates/crab-cache-server/src/handlers.rs changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in crab_cache_server::handlers::fetch_and_cache_data_locked at line 1619. 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-06-29..2026-09-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-29 21:58:14 -07:00\u0027 --until=\u00272026-09-27 21:58:14 -07:00\u0027 --full-history --no-merges -- crates/crab-cache-server/src/handlers.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/crab-cache-server/src/handlers.rs"},"region":{"startLine":1619}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d6b293a37ef9f21929a920775d0c215e95205e4f16695c6ffb6791e292889be"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/crab-read/src/store_client.rs: crates/crab-read/src/store_client.rs changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in StoreClient::load_shard_for_file at line 173. 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-06-29..2026-09-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-29 21:58:14 -07:00\u0027 --until=\u00272026-09-27 21:58:14 -07:00\u0027 --full-history --no-merges -- crates/crab-read/src/store_client.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/crab-read/src/store_client.rs"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce5025472cda17d1f79d9cbbfda22cbad767c277d2c6874d89f4c8ae5cf23e04"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/crab-http-server/src/pulls.rs: crates/crab-http-server/src/pulls.rs changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 25 in crab_http_server::pulls::edit at line 538. 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-06-29..2026-09-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-29 21:58:14 -07:00\u0027 --until=\u00272026-09-27 21:58:14 -07:00\u0027 --full-history --no-merges -- crates/crab-http-server/src/pulls.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/crab-http-server/src/pulls.rs"},"region":{"startLine":538}}}],"partialFingerprints":{"codehealthFindingId/v1":"63c0d04b04391d785b65b8786f65557b147bcfcd308a1e708a62750e674d99bd"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crab/src/cmd/setup.rs: crab/src/cmd/setup.rs changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 25 in crab::cmd::setup::run_setup_at at line 95. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-06-29..2026-09-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-29 21:58:14 -07:00\u0027 --until=\u00272026-09-27 21:58:14 -07:00\u0027 --full-history --no-merges -- crab/src/cmd/setup.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":"crab/src/cmd/setup.rs"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc7a7c7d4d759b86af7278ab265c42af1ec5ca2ef694c3cc2e1009edcb9cece2"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/crab-staging/src/add_push_plan.rs: crates/crab-staging/src/add_push_plan.rs changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 24 in crab_staging::add_push_plan::prepare_one_file_plan_with_existing_refs at line 748. 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-06-29..2026-09-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-29 21:58:14 -07:00\u0027 --until=\u00272026-09-27 21:58:14 -07:00\u0027 --full-history --no-merges -- crates/crab-staging/src/add_push_plan.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/crab-staging/src/add_push_plan.rs"},"region":{"startLine":748}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebb26465da44da2b44d1005f81b2cde05e59871d9d99504515ed17c5345945be"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/ui/src/settings.tsx: packages/ui/src/settings.tsx changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 35 in settings.MemberSettings at line 148. 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-06-29..2026-09-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-29 21:58:14 -07:00\u0027 --until=\u00272026-09-27 21:58:14 -07:00\u0027 --full-history --no-merges -- packages/ui/src/settings.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/ui/src/settings.tsx"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d54b553cb0a9dde609a358f439b1d73586a8d1af7b5a281df40072fd8525c56"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crab/src/cmd/fsck.rs: crab/src/cmd/fsck.rs changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in crab::cmd::fsck::run_fsck at line 570. 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-06-29..2026-09-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-29 21:58:14 -07:00\u0027 --until=\u00272026-09-27 21:58:14 -07:00\u0027 --full-history --no-merges -- crab/src/cmd/fsck.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":"crab/src/cmd/fsck.rs"},"region":{"startLine":570}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa1612775f605489b5da7d030a7a9360bc9a050651b947877c3ef62ae51ee78a"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crab/src/cmd/ship.rs: crab/src/cmd/ship.rs changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in crab::cmd::ship::run_ship at line 124. 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-06-29..2026-09-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-29 21:58:14 -07:00\u0027 --until=\u00272026-09-27 21:58:14 -07:00\u0027 --full-history --no-merges -- crab/src/cmd/ship.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":"crab/src/cmd/ship.rs"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"05c289287d1f0a543c8edaae7918d053ec5a4b4674903397449547a614632a04"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/crab-http-server/src/auth.rs: crates/crab-http-server/src/auth.rs changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 20 in Authentication::revoke_identity at line 729. 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-06-29..2026-09-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-29 21:58:14 -07:00\u0027 --until=\u00272026-09-27 21:58:14 -07:00\u0027 --full-history --no-merges -- crates/crab-http-server/src/auth.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/crab-http-server/src/auth.rs"},"region":{"startLine":729}}}],"partialFingerprints":{"codehealthFindingId/v1":"58af0e43ed9d2b0ac105867d706f62794ef589938833f3cd5244046e7189a50c"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/crab-workflow/src/stage_runtime.rs: crates/crab-workflow/src/stage_runtime.rs changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 20 in crab_workflow::stage_runtime::hash_object_store_location at line 528. 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-06-29..2026-09-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-29 21:58:14 -07:00\u0027 --until=\u00272026-09-27 21:58:14 -07:00\u0027 --full-history --no-merges -- crates/crab-workflow/src/stage_runtime.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/crab-workflow/src/stage_runtime.rs"},"region":{"startLine":528}}}],"partialFingerprints":{"codehealthFindingId/v1":"30b9a7588e6e3c8301313beecd99a1ae409ef8378f80bb39fa0090c70f500fb6"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/crab-cache/src/xet_chunk_cache.rs: crates/crab-cache/src/xet_chunk_cache.rs changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 20 in crab_cache::xet_chunk_cache::verify_xet_chunk_cache_entry at line 655. 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-06-29..2026-09-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-29 21:58:14 -07:00\u0027 --until=\u00272026-09-27 21:58:14 -07:00\u0027 --full-history --no-merges -- crates/crab-cache/src/xet_chunk_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/crab-cache/src/xet_chunk_cache.rs"},"region":{"startLine":655}}}],"partialFingerprints":{"codehealthFindingId/v1":"1935c975773b4bb520a1b667a33747885de2419c1103ad2b93255a027d93afe8"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/ui/src/pulls.tsx: packages/ui/src/pulls.tsx changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 29 in pulls.PullDetail at line 614. 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-06-29..2026-09-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-29 21:58:14 -07:00\u0027 --until=\u00272026-09-27 21:58:14 -07:00\u0027 --full-history --no-merges -- packages/ui/src/pulls.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/ui/src/pulls.tsx"},"region":{"startLine":614}}}],"partialFingerprints":{"codehealthFindingId/v1":"88740a8a584b573cb64cfee0d6c2103183fe338813253a365663855df723b6dc"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/crab-http-server/src/pulls/merge.rs: crates/crab-http-server/src/pulls/merge.rs changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 19 in crab_http_server::pulls::merge::execute at line 248. 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-06-29..2026-09-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-29 21:58:14 -07:00\u0027 --until=\u00272026-09-27 21:58:14 -07:00\u0027 --full-history --no-merges -- crates/crab-http-server/src/pulls/merge.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/crab-http-server/src/pulls/merge.rs"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"60742b2f3bdd989920c5381c94886d074ca5748aff2b26d908f401f0064d4b11"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crab/src/optimize/xorbs/executor.rs: crab/src/optimize/xorbs/executor.rs changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 19 in crab::optimize::xorbs::executor::process_batch at line 215. 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-06-29..2026-09-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-29 21:58:14 -07:00\u0027 --until=\u00272026-09-27 21:58:14 -07:00\u0027 --full-history --no-merges -- crab/src/optimize/xorbs/executor.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":"crab/src/optimize/xorbs/executor.rs"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"4097dc05231c1d8a635288ad81d71e4015b478a9cb6263f8fdbc0dc8807c8b04"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crab/src/core/error/read_failure.rs: crab/src/core/error/read_failure.rs changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 27 in ReadFailure::with_cause at line 31. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-06-29..2026-09-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-29 21:58:14 -07:00\u0027 --until=\u00272026-09-27 21:58:14 -07:00\u0027 --full-history --no-merges -- crab/src/core/error/read_failure.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":"crab/src/core/error/read_failure.rs"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab6cd7e6c7b9e0551c2eae06649daeb637158d64c4ccb859756ba1c458421427"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/crab-http-server/src/cells/repository/operations.rs: crates/crab-http-server/src/cells/repository/operations.rs changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 26 in UpdateIssue::execute at line 12. 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-06-29..2026-09-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-29 21:58:14 -07:00\u0027 --until=\u00272026-09-27 21:58:14 -07:00\u0027 --full-history --no-merges -- crates/crab-http-server/src/cells/repository/operations.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/crab-http-server/src/cells/repository/operations.rs"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"23066f409180b8624e17f416f234f31121c918fec2317aa31f296e022af0652b"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/ui/src/browse.tsx: packages/ui/src/browse.tsx changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 19 in browse.Directory at line 100. 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-06-29..2026-09-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-29 21:58:14 -07:00\u0027 --until=\u00272026-09-27 21:58:14 -07:00\u0027 --full-history --no-merges -- packages/ui/src/browse.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/ui/src/browse.tsx"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"5075ea90db08c830a41e572a0bb5569652119c225123742c89b29fc164b132f8"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: crab/src/cmd/mount.rs: crab/src/cmd/mount.rs changed 6 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 15 (its worst body is crab::cmd::mount::run_mount_with_new_cli at line 538), 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(crates): tighten data integrity, cleanup, and diagnostic contracts (#159)\u201D; \u201Cfix(vfs): harden macOS NFS mount lifecycle (#140)\u201D; \u201Cfix: harden Linux NFS mount parity (#109)\u201D; \u201Cfix(ci): stabilize hosted Rust and protocol gates (#50)\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-06-29..2026-09-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-29 21:58:14 -07:00\u0027 --until=\u00272026-09-27 21:58:14 -07:00\u0027 --full-history --no-merges -- crab/src/cmd/mount.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":"crab/src/cmd/mount.rs"},"region":{"startLine":538}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3dfc6617bb353b75b0c6070935419e6b7161817cd392f548bc4f05eb59c9eae"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: crab/src/cmd/lfs/checkout.rs: crab/src/cmd/lfs/checkout.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 9 (its worst body is crab::cmd::lfs::checkout::checkout_file 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(s3): harden burst load and large-object clones (#175)\u201D; \u201Cfix(lfs): make Crab LFS direct-only (#88)\u201D; \u201Cfix(lfs): harden mixed LFS and Xet workflows (#68)\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-06-29..2026-09-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-29 21:58:14 -07:00\u0027 --until=\u00272026-09-27 21:58:14 -07:00\u0027 --full-history --no-merges -- crab/src/cmd/lfs/checkout.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":"crab/src/cmd/lfs/checkout.rs"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"54a6db55c0c86f55ca5b9115f2f0ab24f80159a82f65d7a992d0e992d27c1e2d"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: crates/crab-vfs/src/engine.rs: crates/crab-vfs/src/engine.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 9 (its worst body is VfsEngine::read_at at line 1435), 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(crates): tighten data integrity, cleanup, and diagnostic contracts (#159)\u201D; \u201Cfix(vfs): harden macOS NFS mount lifecycle (#140)\u201D; \u201Cfix: harden NFS Xet mounts and operator workflow (#104)\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-06-29..2026-09-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-29 21:58:14 -07:00\u0027 --until=\u00272026-09-27 21:58:14 -07:00\u0027 --full-history --no-merges -- crates/crab-vfs/src/engine.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/crab-vfs/src/engine.rs"},"region":{"startLine":1435}}}],"partialFingerprints":{"codehealthFindingId/v1":"631a62b65d26eefc97cd5f768f9867e8520f10192d11485ccb0caae7faeea9e3"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: crates/crab-vfs/src/nfs_mount.rs: crates/crab-vfs/src/nfs_mount.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 15 (its worst body is crab_vfs::nfs_mount::run_until_cancelled at line 255), 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(crates): tighten data integrity, cleanup, and diagnostic contracts (#159)\u201D; \u201Cfix(vfs): harden macOS NFS mount lifecycle (#140)\u201D; \u201Cfix: harden Linux NFS mount parity (#109)\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-06-29..2026-09-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-29 21:58:14 -07:00\u0027 --until=\u00272026-09-27 21:58:14 -07:00\u0027 --full-history --no-merges -- crates/crab-vfs/src/nfs_mount.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/crab-vfs/src/nfs_mount.rs"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c796fd26050eb72429dfcc00f17eaa6114013c31a88ba514dc734b9f75a4173"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: phase 3 splits this into local vs remote once the \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":"crates/crab-workflow/src/executor.rs"},"region":{"startLine":379}}}],"partialFingerprints":{"codehealthFindingId/v1":"abdc405a2a1c1c5a0170b7e2ddeb3457b329f52e250e5396a00298b1bfc90958"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO(crab-storage-economy): wire \u0060auth::CredentialProvider\u0060 via \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":"crab/src/tier/provider/gcs.rs"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2ff3f50c72696a5a4d5cb1dd51fc47835ab19398e5680a92d936a82013a6836"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO(crab-storage-economy): wire \u0060auth::CredentialProvider\u0060 via \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":"crab/src/tier/provider/s3.rs"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"83cff5930d3300687fd124b79898180ece1cfadcdd6fce63386451cc783ad58d"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO(#cache-pressure): Wire to real ChunkCache usage metrics once \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":"crab/src/git/filter_process.rs"},"region":{"startLine":452}}}],"partialFingerprints":{"codehealthFindingId/v1":"98fe1e2ce877b9d5901d0ec10cf68c4abee4a75f8e2592136f9816a94e7bf469"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO(stretch): Implement history rewrite using git-filter-repo --blob-callback. \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":"crab/src/cmd/adopt.rs"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"45d7fe14363896b479b17f17b486e351371a9333822d80efd0563fd1af697cbd"}},{"ruleId":"D20","level":"note","message":{"text":"ADR declares no status: \u0060plans/018-product-readiness-roadmap.md\u0060 declares no status, while 12 of the 12 other records in \u0060plans\u0060 do, so a reader cannot tell whether this decision is in force. Add a \u0060Status:\u0060 line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"plans/018-product-readiness-roadmap.md"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"aad1ed9771e32b3ff9d825b65fa8acb3b32e309ffec398f7190222485e85abba"}},{"ruleId":"D26","level":"note","message":{"text":"Projects may be oversized for their cohesion: \u0060crab\u0060 (355183 LoC, 1267 module-visible types across 40 directories) overshoots its size bounds. 7 of 28 build unit(s) (Cargo, Python, npm) overshoot their size bounds, lowering Project Cohesion to 5.1/10. 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":[{"physicalLocation":{"artifactLocation":{"uri":"crab/Cargo.toml"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c4cb7159309b1a51aecfdd8c9d434cd59ab7f31bf20538deb07a70844a17dda"}},{"ruleId":"D26","level":"note","message":{"text":"Projects may be oversized for their cohesion: \u0060crates/crab-http-server\u0060 (64945 LoC, 114 module-visible types across 12 directories) overshoots its size bounds. 7 of 28 build unit(s) (Cargo, Python, npm) overshoot their size bounds, lowering Project Cohesion to 5.1/10. 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":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-http-server/Cargo.toml"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"47621045ce8253cf6ad06a4073aabc7eaff68f5699cb38b44a9428c279efc745"}},{"ruleId":"D26","level":"note","message":{"text":"Projects may be oversized for their cohesion: \u0060crates/crab-workflow\u0060 (43637 LoC, 165 module-visible types across 2 directories) overshoots its size bounds. 7 of 28 build unit(s) (Cargo, Python, npm) overshoot their size bounds, lowering Project Cohesion to 5.1/10. 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":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-workflow/Cargo.toml"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"677566a1653202db2a88bf797d1ff23d64fb2c15d5c286e3de7265e07746a024"}},{"ruleId":"D26","level":"note","message":{"text":"Projects may be oversized for their cohesion: \u0060crates/crab-vfs\u0060 (34934 LoC, 162 module-visible types across 1 directories) overshoots its size bounds. 7 of 28 build unit(s) (Cargo, Python, npm) overshoot their size bounds, lowering Project Cohesion to 5.1/10. 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":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-vfs/Cargo.toml"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb15b9f6609dc940ea55b9fe9325df10d74b163342b23b5ac439aecaf4c0cd06"}},{"ruleId":"D26","level":"note","message":{"text":"Projects may be oversized for their cohesion: \u0060crates/crab-metadata\u0060 (30740 LoC, 134 module-visible types across 3 directories) overshoots its size bounds. 7 of 28 build unit(s) (Cargo, Python, npm) overshoot their size bounds, lowering Project Cohesion to 5.1/10. 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":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-metadata/Cargo.toml"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b992c1dccff79b4d02d939139f7b1452071280c5c4c40fc11de4f43cbdd5044"}},{"ruleId":"D26","level":"note","message":{"text":"Projects may be oversized for their cohesion: \u0060packages/web\u0060 (30098 LoC, 207 module-visible types across 39 directories) overshoots its size bounds. 7 of 28 build unit(s) (Cargo, Python, npm) overshoot their size bounds, lowering Project Cohesion to 5.1/10. 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":[{"physicalLocation":{"artifactLocation":{"uri":"packages/web/package.json"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b61fa7b6885a6d88a68727565568d0b7bb1252f344c7362917c5bebb865bba5"}},{"ruleId":"D26","level":"note","message":{"text":"Projects may be oversized for their cohesion: \u0060crates/crab-auth\u0060 (10224 LoC, 129 module-visible types across 2 directories) overshoots its size bounds. 7 of 28 build unit(s) (Cargo, Python, npm) overshoot their size bounds, lowering Project Cohesion to 5.1/10. 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":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-auth/Cargo.toml"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a696a25a79a7ed8590ee8642c89d35635d768954c6aba7bd9aeae60c5714ce9b"}},{"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":"a2be1a347eb8386f4ad025ea5e6946964d3c0ca17d0087e6f0ff6a5f96a7d842"},"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":"775db1a8ad7697f4edac85f6306f1b328edd922c7d35c65e4e3d821d7a0bb739"},"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":"6da3370152c8cb9c252431a447a7a684778e9bed715a71887ca057fdffc9ac39"},"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":"5d716e52eea1afff3a5f9a764e88d0f0fa1847189ee3b31d8380aa8f4e4c6870"},"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":"7cd968b6ce0041efa4e71d8e6a2a6bb0a1e50a648b7e5e7ec34ad0cbe9233464"},"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":"c63c93122524570a4da35849d2682de50de5ebcf2dfa408c63711cda9f3c5d8c"},"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":"5728148054a4b61628a469f6c7f154a520a2164c7ca74af22fb0f9e3a3283cee"},"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":"2f124f1612c5ba3685ab859f8965e2c7bb82bbe1d9b3a635bcc39cd42e75abbf"},"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":"27587096b0bde7b0596a085e6aad50147e0e3388e8ff3a02c85aafa587479b1f"},"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":"385f8d5aeed71ff2714ff5b77d6ade896f04c7c90c57b112adece1b4966f3aa7"},"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":"80b9412ef694048799c880a6f75c1eb1bf83ba4b1be823ee1b1382379aaebbe5"},"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":"5621ac7519081b475cf4a007dcaa67672b099eba64ebdd832d3847dae1208edd"},"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":"3339529ce9899c756a82f0500126269f1684bdafdfb012bb76c7171fed2352b7"},"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":"5ff9aed11afc40f6ac93e1befb696f04bbcaf396b0fafaefa75285270cbb1b4c"},"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":"624906f1c50219d023335ef1c3b03e6b215d1072ce8bc50a740b98ea28c3ad17"},"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":"a42fd55704982c6d0f8c2ee116eb41a4d0f1b0d910d574ad891106bbd74e06b2"},"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":"934b9b74c42446462aad1f87181c5c1ef31acaf78384238addd2a36b12626353"},"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":"2b30daf05903da8021db26a8ed3968dc3da88264e90a073f921eb680f133ed24"},"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":"96044aecc9deaa5bf5333862fe4024485bc9d3025450d04c8a2e289d07138dd7"},"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":"f10130e12139ae7386a6a8442e855aafc227422605a90f3471c5bcc31be2cff5"},"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":"de25dabbc905af114ee9930e344b357281375270ab91c65106e3578e3895ef9d"},"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":"d6c3b7331a858dc115956c36e7a6f5b5f56d49418ee94c091f92d01c43c1afe9"},"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":"0679585aef026308fc97e80b39e6e4440ce758f3dff36c135cb08d18b5a8d670"},"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":"777a31194ae6a7b5332740d634edad2a8363c6019918a2a108fca9beeb890066"},"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":"c8725d6fba6aa61eb3f3170316de2470526f0efaaad78e29ebcffa9d003b2b14"},"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":"0054fda0ba15a5f572de00f9474aa9fe52fc4cec37df3f0276ba69bfbd0e07a7"},"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":"b2bfa7f3fd311b895970f6b25f06b1a75228fd120f2148229f0110c41d234758"},"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":"f49e52ffbc96cc7d201b8dfe7ff0b4ac6ab3e0d2df4447bba795cb0018b17bdb"},"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":"92603fdfc05e47dad06de1f1dd0d1ea4aa62887a142963b1c9e2c96889f1c3c3"},"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":"f3f92ab350b8342dca845173812bb8889ed429ca6ed755ac5eea586c71f21be2"},"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":"c79dec1fe79f053ae80a193d028b8abfce0099167931920502e825f51e06f3af"},"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":"24957e277d8ca1efb5868329e622748b2af31052e385ecd87d53339c9ab01ad7"},"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":"b6be06f7f17f317a8a96ee698d9cfa46a61ab6c242eb3a1342c354c5c4979115"},"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":"7af4072732d8f591dbe8b4fbbccfdfca810f3af10bf9ae9773adcf2ff39ff0f0"},"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":"79c63b474ccfbee7687db2d59cf6c0974c1fa427b8f320a7a1e699081419ff44"},"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":"22596c5dcfe34b88acbe43237047ce52a1d65c589983bf5ea085460aaf1a3317"},"taxa":[{"id":"CWE-250","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"5a6cc2f9ce9bc4c0fcb42c5e12f637e25a6ea545159f6689ae341d338acbe8ca"},"taxa":[{"id":"CWE-78","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":"2bc43629d548d6d71d3ac6a875594255e1f2753e3b41cdbc3ff369d5db8e4a0f"},"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":"4dc9b2c3d8da1f49651b4d20760b0c72a251adae41136616666de632d323b050"},"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":"710cc75ed80b0df32044a4dc2572c9befc03b017f4f36d7f95afd3cda91602c7"},"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":"72003aae5f49ef498b18ccf928e5790c91ba60ffe406d68ea66a367363144e71"},"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":"222230e54afa56dfa2620bd5aaf15bdfa4466a5aa530b2e5e75f580d5a54abb5"},"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":"d7b08ce31753fe7d3b795739cfe6f5a08faeff5b57fcce680deada218ff9366b"},"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":"454d42a3b66ae362331a99cb3a2c64a8c9520f9c02e9179520e773168053f79c"},"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":"d039fe33b937d63ccac7c50bec30f984ebba2bca05ee1f358e537374616f07b1"},"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":"6d67bf569ea4f4b21f357e8ccea700221eea142ea321ff0f8fb46f078dbb8f13"},"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":"a71cc6c76e0bfc3a01b74910b2f3bd44e59791ec1985f624259ed8e334a241f2"},"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":"ebaffcaca36a0ae953c35891501265a913f5f23ec43de357747fd53269536ef1"},"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":"50250eab2e98b30689946834c1a94c85fd4bc2f6a65d7f51ec655358d1c16780"},"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":"eee7810fa2f01e001f3a37156294b4497e175548d60cd38cfb5ecf4f2f74f784"},"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":"15366abe1c003125aca418379668b63dc83e353dd1378b24bfa7a83220b08e9d"},"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":"047f4ae38430a35c8e5a3c7afa9f30b7a92478ae85e207f0924ede3b057fa361"},"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":"a0f40a8c959fe75e119dd6b6d0fa8587f386343016117451f8851728a0255ef1"},"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":"71a27ab83a9e982fb9cf4dfc7a63614c6ae9cb464af3ca898089fc4f3549ab53"},"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":"147e6796ff01fdda54ff9342c53074a72845569e75779a7d6371487e9a194d41"},"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":"657bbbaa6705d5f943d9d45c9512b73c788220be620ab4aff4829ab596a81c73"},"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":"91bb141a4518f02752b99ac7f737935432d551954d9b9989c4872404e1fda635"},"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":"b48e23d4dda1bff0d1d26dbbf0e4efcc1a5931a61a829beeee856ef8fcb8cd50"},"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":"48efa9d866d3bfa78e64428d28938922744a0210c59640927b76a3a00244036b"},"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":"f695922d61d0c6e87beb34c2ba0a274576e7e451aac798efb8eb9d74229b5d8e"},"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":"5e3a7584add4874aefcca50cc83f114b88d685ee32f5317cea468152de08b327"},"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":"0cbd093b1592f016b5fac7593685cbde1671345f92a8ef18726be1768f55cba9"},"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":"aec6e558a0129a302f51c3a3d139a07fdba3c6428b34f62949cf488fd17c3d76"},"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":"31b301fc387337369f892f66efad60644a61a77f14728b4f9110d3f154917108"},"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":"0d0cda6e55ce1dc4b3983a9d3fa766b927e1f40a1c3d680bfbaa79650311502d"},"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":"b9275881aa2a4d77dfa9606d7904623ff50ea97f9061030ace3fcd375af01efb"},"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":"184516d9061027dffdfe27c518b2ed07ba25bec125844e1ae90522b462c2c9d6"},"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":"3c2e650e9904e2a006a0f81fee4e24909af1d1a2cfb3cac530df903b02e483da"},"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":"1e7508e418f067cff1c272548bf1f2b879c82809903496bc687f3ca0a76a6a96"},"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":"231ef0cf41bf9e971adc9482b02b77fdc22fbd0e242d11e1ca43b2b5bf4960e7"},"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":"4efa2309e6985abef112f810a0cddde0d49cb0dab0396c6951ae1065b05a2964"},"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":"cb192ff7eb536426c7b4c57967d2debd32208d8d760c9784a4c375079a27d455"},"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":"1bddd7ce39878db4ecee8172daf995d2766ef65e134f2bfdcc67af4c3ed82481"},"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":"6b9a609056d879aab63dc3d05c5a67c936ab149429753ba36a43b8257edc961b"},"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":"994e597dba866c3fb62234baa61260195141b28311befe139921f43f3c4249fd"},"taxa":[{"id":"CWE-78","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":"45ccba067d40241c0b97d226a44c31600049c8ff4362f1684adf304460c44f45"},"taxa":[{"id":"CWE-78","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":"fab99347ac8f0a3fa892734fe4ef67c5848b62be32dffea3b6cf718daa131d49"},"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":"61e47cb8eaba6ed590efb402f0010e4e378e8d96f76e0be561c95e47157a952b"},"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":"f377bae7fc8c25b77e36e36a5c6a7c6a478da5be597be7456f129897606fccfb"},"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":"86241c62920064dc4ae69366a772c5e824bdb907cf172df18ca02b470ec830d8"},"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":"69adaf063544ed4db2825d6388e3c27a4a3dc96edbe27d9276ed6e520ba264d9"},"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":"a24f73c53fe595b8b14898a5dd1a549616d9b4f9c6bdc9936291fffa15506455"},"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":"a44c35afa89528fe46cacd5d2e41b4a961ca64c0efc54ac0c25674756cf62464"},"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":"06dcb5f670fc7c678ac3933493502944f0140be4e8d81f1cbc5532f8db54ed93"},"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":"2accdab46b64ee4aeee240635f4fc8ad9b86b9ff45548c31be1aefeb6d0a015f"},"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":"5e1d3aed0d86beef622d7015473a888fed00c867599aa68c46d9b26894072084"},"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":"14af0605796bf6253b681d0573bf279d5f4ba79ecc4dc06937eefba68535c501"},"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":"82ea95433badd63e2ef7aa6d3bb679d25a28327770bf2320ef5ef45119771bcd"},"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":"b58676cb36ff0fa28d447dc6362789de95535c83af0ffa435f6a51ca70e41746"},"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":"35d7e96aecac32ea4155773ee8013c2fb63dcc1ea09d30263ced716c0df04943"},"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":"f9f7426c8307fa4383f4e97425ad33b0ac2d2c74c064d67fec99ea80cd233d2e"},"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":"eed7ff7fabfe9ff92dd224b3b0a84a2b325b63a83e7da26aea361603f52ea513"},"taxa":[{"id":"CWE-78","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":"786733a3f1394d003ee2aa979fefb82ec4020971a383c572babd165b71678ca9"},"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":"386903ae3eebb1e3d72dbd9d91dafc25b343c7c4485d84b1391df1164ebdb480"},"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":"8a067e8ce999f005ddd3c98a5c01c3c5b713d7139e1f82070d839080057076cd"},"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":"f0a948ed043b96902a003444ba56eec7ca261db290328b5490a2fdbb6e8c2218"},"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":"45733bdb24476c8c968627150895ccf58e6f7d2b5918924c47570833cff40100"},"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":"236d46021c971816648966608fbee3a1275f23c8cfa06e6022d42dace085c3f6"},"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":"95790ce93957c265c84eaae03b8e0c932908c5bf632adb86074d57f707b564b0"},"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":"6894421adcbcdb20693cff0ead333d481ef0dbdcd0eed0f6b92eb52c3525aa1b"},"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":"36c3dcf932acd1b88e38d406a057898c5d8a50d62f85503c930e7b22aacd67b9"},"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":"7250fafae140dc0793ad90c80407223a756489df2d590065d722bcadbe2e11c4"},"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":"f51941e2a067910410e92b17253cb47c676bd9cf9f65993a3389a888e8acd086"},"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":"75020a73c1f1213a752556a94c57d074ec692f21c11bd0e6c81d4e7710996ad1"},"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":"a49d14a1edbe6d16c1d5bbc44d25463572d906433b2d8b231a15b68d755a051a"},"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":"6090b15659ac2cf8ed43a2f246def8a7b46b23fdc83b21f2a966c2f086213f5b"},"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":"6ca66fec6ecb3b9c43a29416a3fe0d402b9fcaaecfbcf1118edf2568f7c6509f"},"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":"29d37e36c0775a7cc786ad6403f32921a9daca13ecd6c764bc4fc9b2d136c584"},"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":"6134326a5b77291c0fac14f4faf87fe98924fb343e89841e1d79cf2ae206e91f"},"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":"12d526249ee44f69eece16a7ed1e6313573744c92b24146856976a6921fef0ec"},"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":"6cf99cd6773eb40776564b3d0e2b10c9915a2848704260b0d575b441890693e3"},"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":"d76ddada8dc3103040bcca553b4f142939a7b78ed1ed63c4ec34734ab8397ebf"},"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":"724abdf562ae5b6749421ecc33d4c57edc9844ce0b855545cf0cc38c70dffcad"},"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":"f0eca7d30ca99c9bb8a722ac37f2920008d8a4be9dcad3fa751fc2158b515c01"},"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":"2ebecf2fc4039fc5573d0a6739bcd5442f0be2c7b29134a18f25c3b86aeee529"},"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":"ddcbc4ed63a7e2fc15fdb04d1ffd68998656da25865df7a9e9bfd47fe89c1a40"},"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":"d0b1211584ffbaae75735dd558e0ad3501aed9bd064db80e3596b3cc027ff829"},"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":"4207887eac115e90d80b96baa0221c3fdbe6c53b7e85b46d007ac689e9f02e15"},"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":"a32d652bbc153567d25f06cf3fafe956bd32ab0aab79a5a18e13f6090a81f5a4"},"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":"44cb5372e821643ba86c3e6f1ba108f3f0a6cf6ab7b4845eba5b223b30719673"},"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":"1e673165038d35920785f1751a75a9442157444219cf5e8225a6bc597a5864f4"},"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":"5ae405e7c26d0f960efd8ab689f6623dd82641dd440ed66cfbb0ff335e8522a8"},"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":"a8eb45c75820157aa2b72c3be8b4f61854af7898e53300a2469dff13ff7ef53d"},"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":"0c19b7c55a1121682aa0aad6b213bca95f1002c84b45c9b6f14b32c796f26784"},"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":"0d5628e6fd7d1eb5f9a54cf791281d2b6a0b5ec00f3cfb0d540cc6cb7db500cf"},"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":"a9cfdf35e4959dd44d0c623daeb27b61197c67c8a3760ab82f868a3d4750be42"},"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":"c22cc362e4999bbca5b612e97e9eea1405bea9fbeb1cecd8c6215eb61768f8fc"},"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":"0e96f9b676ccafc87ad0e50c67756fd861e963146e1f476ed585fb9ceec3a693"},"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":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"4a10e5cfdb35de5e8c0a1130b50988eaa4573b7aab4d4215c09f5fd1ae01f689"},"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":"26abee670a3dc501df18ae35d6f99f7f87bd8e323b4cef17f91e29fad90f9c2c"},"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":"22c9b17d2cbda1c09fceeb941033b8f1592affe826e51be63642b0b650953f90"},"taxa":[{"id":"CWE-732","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":"70fb643171e5220c3b75f90ed2370d28ad988d31246432f27af123d969e30497"},"taxa":[{"id":"CWE-502","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"c8043071cb016595af9fd8ce20c722d0efa8738f66386fbccdd883419e993c8a"},"taxa":[{"id":"CWE-502","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"d4981bb17aaacb426ad537f1f78c1cea4c78d0a2ab99ee54a6592b431f93740f"},"taxa":[{"id":"CWE-502","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"c89a98c268f5a089c99ae40cc15af65ded357b0c80628c0423964fc1070e4f97"},"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":"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":"86d1f4cccfe6260ea89ee1c6d89d4024090e984de3a66df7e6514ffe7f84ec14"},"taxa":[{"id":"CWE-778","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A09:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"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":"8d0c5ed05290438ea0891bf28dbd71a709db10875e05a6fde59ae099634dd67f"},"taxa":[{"id":"CWE-939","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"68953cceef6b3841c12a9aefc1f8f893d1a327cdcdcff2a8d75d3507d258b108"},"taxa":[{"id":"CWE-939","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"2f5dd314b59bd011e1878a38505df4e86433f0ae801087b033e04f3a135022ff"},"taxa":[{"id":"CWE-939","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"85dea11f04a8af09f844b501c5b02c20283599b9fcd9517d0ab811102b6dcb92"},"taxa":[{"id":"CWE-939","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"000d20683aa05933cbedc01138e166588b71ae74330692fd44b507fc0a96d8fe"},"taxa":[{"id":"CWE-939","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"ac147b3bc99433eee68a98c16d6b51451c244afbb26490fee9339296368569f1"},"taxa":[{"id":"CWE-939","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"42ca0215c7be7348e7b3c39115523b8e364e9a6b7834d690086a6cad5489605d"},"taxa":[{"id":"CWE-939","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"b949ad0f156027e183074f4345af227388d18273a5713a7ba1c882305ada3f97"},"taxa":[{"id":"CWE-939","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"261dc2090119063a79001576157eb99a3ea81a268bb8465ac7595967e420882c"},"taxa":[{"id":"CWE-939","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"b9dd34446a1bf0e2913dde18044e26a1de3cb9f71ad238fca2c2f5b24bd1f448"},"taxa":[{"id":"CWE-939","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"5c31a91eb0433224d7e25885e7419f05eab8b9d4232ce566ff89322e19c5419e"},"taxa":[{"id":"CWE-778","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A09: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":"5700cf8ee182fc440abb16030061d2e9976929eb60c880096208a514bc453b10"},"properties":{"dependency":{"package":"zip","version":"6.0.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","RUSTSEC-2026-0367","RUSTSEC-2026-0368","RUSTSEC-2026-0369","RUSTSEC-2026-0429"],"severity":"critical","fixedVersion":"9.0.5","relation":"direct","declaredRange":"6.0","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":"823c5acfb54006b5ebfc5d1ddf8a550d2a9c2a51b1fe684cb9b0f27e1d41e261"},"properties":{"dependency":{"package":"pyjwt","version":"2.10.1","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","PYSEC-2025-183","PYSEC-2026-120","PYSEC-2026-175","PYSEC-2026-176","PYSEC-2026-177","PYSEC-2026-178","PYSEC-2026-179","PYSEC-2026-4140","PYSEC-2026-4141","PYSEC-2026-4144","PYSEC-2026-4145","PYSEC-2026-4147","PYSEC-2026-4148","PYSEC-2026-4149","PYSEC-2026-4152","PYSEC-2026-4183"],"severity":"critical","fixedVersion":"2.14.0","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":"e32ed16891d8cf84ba4cec817df0f28682a6f398436ded89eaaec43a54d1fa96"},"properties":{"dependency":{"package":"pyjwt","version":"2.10.1","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","PYSEC-2025-183","PYSEC-2026-120","PYSEC-2026-175","PYSEC-2026-176","PYSEC-2026-177","PYSEC-2026-178","PYSEC-2026-179","PYSEC-2026-4140","PYSEC-2026-4141","PYSEC-2026-4144","PYSEC-2026-4145","PYSEC-2026-4147","PYSEC-2026-4148","PYSEC-2026-4149","PYSEC-2026-4152","PYSEC-2026-4183"],"severity":"critical","fixedVersion":"2.14.0","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":"f9f006c628012f689eb2acb84f54b82a698566776af2123dd0e654cd114c9a36"},"properties":{"dependency":{"package":"pyjwt","version":"2.10.1","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","PYSEC-2025-183","PYSEC-2026-120","PYSEC-2026-175","PYSEC-2026-176","PYSEC-2026-177","PYSEC-2026-178","PYSEC-2026-179","PYSEC-2026-4140","PYSEC-2026-4141","PYSEC-2026-4144","PYSEC-2026-4145","PYSEC-2026-4147","PYSEC-2026-4148","PYSEC-2026-4149","PYSEC-2026-4152","PYSEC-2026-4183"],"severity":"critical","fixedVersion":"2.14.0","relation":"direct","declaredRange":"2.10.1","reachability":{"kind":"production","file":"crab/deploy/auth-service/mock-idp/server.py","line":20}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"55c017ca00a11b2cb5052e8660c66ba6c7c1e3d44341d715a2f9e8acba3ff2b4"},"properties":{"dependency":{"package":"dompurify","version":"3.4.5","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"severity":"critical","fixedVersion":"3.4.17","relation":"transitive","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":"c96da7af65a806afe7c0c425a3785fc39779563a438c5820aaf2c260a1cfc1ff"},"properties":{"dependency":{"package":"proxy-addr","version":"2.0.7","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"severity":"critical","fixedVersion":"2.0.8","relation":"transitive","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":"982e7d31ab312964994991d712fb16b4fb82e48351283bc62145583b5fcbeca9"},"properties":{"dependency":{"package":"next","version":"16.1.7","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"severity":"critical","fixedVersion":"16.4.1","relation":"direct","declaredRange":"16.1.7","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":"a70dbf07a55abc9dd7f7ea0b6d7f52e126a3c326d6c56b982b94cd730d933af9"},"properties":{"dependency":{"package":"openssl","version":"0.10.78","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","RUSTSEC-2026-0474","RUSTSEC-2026-0476","RUSTSEC-2026-0477"],"severity":"high","fixedVersion":"0.10.79","relation":"transitive","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":"b5308f9ed219ff7d361ed2b01ab7b5fa7a33b0013fcd35575e7068ccda1d2997"},"properties":{"dependency":{"package":"quinn-proto","version":"0.11.14","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","RUSTSEC-2026-0185","RUSTSEC-2026-0338","RUSTSEC-2026-0339","RUSTSEC-2026-0340","RUSTSEC-2026-0342","RUSTSEC-2026-0523","RUSTSEC-2026-0524"],"severity":"high","fixedVersion":"0.11.15","relation":"transitive","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":"0d3d2c2346bccaaa14c1bd0f0713c18ae4de849fffdc7282dbd533ab105c9398"},"properties":{"dependency":{"package":"rustls-webpki","version":"0.101.7","advisory":"[GHSA redacted]","aliases":["BIT-golang-2026-111943","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","GO-2026-6809","RUSTSEC-2026-0098","RUSTSEC-2026-0099","RUSTSEC-2026-0104","RUSTSEC-2026-0381","RUSTSEC-2026-0382","RUSTSEC-2026-0383"],"severity":"high","fixedVersion":"0.103.13","relation":"transitive","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":"8c0dfe52e73f6ac6de7757c9f179b68eef390dcdf3e7139fbdea7abf9715edf8"},"properties":{"dependency":{"package":"cryptography","version":"44.0.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","PYSEC-2026-1284","PYSEC-2026-2141","PYSEC-2026-35","PYSEC-2026-3552","PYSEC-2026-3553","PYSEC-2026-3554"],"severity":"high","fixedVersion":"48.0.1","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":"f281c1e685fd1a1a2bb7ed55554e6d197288db98c08ade1718e1488f653ac371"},"properties":{"dependency":{"package":"cryptography","version":"44.0.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","PYSEC-2026-1284","PYSEC-2026-2141","PYSEC-2026-35","PYSEC-2026-3552","PYSEC-2026-3553","PYSEC-2026-3554"],"severity":"high","fixedVersion":"48.0.1","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":"28931dfd204cc17d8768923de17ab1c6ddb8cf429d8f240d6cbcf4e448e0cf97"},"properties":{"dependency":{"package":"cryptography","version":"44.0.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","PYSEC-2026-1284","PYSEC-2026-2141","PYSEC-2026-35","PYSEC-2026-3552","PYSEC-2026-3553","PYSEC-2026-3554"],"severity":"high","fixedVersion":"48.0.1","relation":"direct","declaredRange":"44.0.0","reachability":{"kind":"production","file":"crab/deploy/auth-service/mock-idp/server.py","line":21}}}},{"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":"54f97bc855361a24627d7876e928c5cd8837cf16151e5bf21cd5788a97c029c2"},"properties":{"dependency":{"package":"source-map-js","version":"1.2.1","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"severity":"high","fixedVersion":"1.2.2","relation":"transitive","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":"649fc263d0122167ba0f6143fe9f17ba10152834cf4792456dd1affdb8dc9a8a"},"properties":{"dependency":{"package":"vite","version":"7.3.6","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"severity":"high","fixedVersion":"7.3.7","relation":"direct","declaredRange":"7.3.6","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":"8d5fe1c92e78a88e6247dac11041d70703b4ceb1967b0aba0915f1c2375faf75"},"properties":{"dependency":{"package":"@modelcontextprotocol/sdk","version":"1.29.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"severity":"high","fixedVersion":"1.32.0","relation":"transitive","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":"5231bf9724b2303c2d4cbf2aea8fcc3c78ee8ecbef2cf4568706947d11c7ce0b"},"properties":{"dependency":{"package":"brace-expansion","version":"5.0.6","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"severity":"high","fixedVersion":"5.0.7","relation":"transitive","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":"a58637847dc64b2a923aecb1ca5af2d126f818c19d7acd839973ac1fca9cd4b0"},"properties":{"dependency":{"package":"body-parser","version":"2.2.2","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[GHSA redacted]"],"severity":"high","fixedVersion":"2.4.0","relation":"transitive","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":"77e91c0bd8f698687743d8336b8419fd0aeaa8c77f3cb6334403f075ffa9d278"},"properties":{"dependency":{"package":"brace-expansion","version":"1.1.14","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"severity":"high","fixedVersion":"1.1.16","relation":"transitive","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":"286b77db55c1ca96b232e0b184cb97eb2700dc753455db8f2f617238147f6ec0"},"properties":{"dependency":{"package":"browserslist","version":"4.28.2","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[GHSA redacted]"],"severity":"high","fixedVersion":"4.28.7","relation":"transitive","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":"9becd73884fa94005d3768e4c65ec5c0f76be331829bbd4d51d4a3f80bc4552e"},"properties":{"dependency":{"package":"fast-uri","version":"3.1.2","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"severity":"high","fixedVersion":"3.1.3","relation":"transitive","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":"df3f323d4906590e05db113f426d2b1b51714a0a3d1ace87b9f3f5114b2e7cd0"},"properties":{"dependency":{"package":"hono","version":"4.12.18","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"severity":"high","fixedVersion":"4.12.25","relation":"transitive","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":"60dc124edb52ea97ae817c8c26dfc830cf151700b403af0e45903631a95fe02e"},"properties":{"dependency":{"package":"ip-address","version":"10.2.0","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]"],"severity":"high","fixedVersion":"10.3.1","relation":"transitive","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":"f4a05fe70d35447beb82a97fcd56d869d40f57788d0d82bed436217035a5f209"},"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]"],"severity":"high","fixedVersion":"4.3.2","relation":"transitive","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":"fad19ed340c60008267d1fe4e4945960eb848b8d1288fe23e1592fe0f1a33731"},"properties":{"dependency":{"package":"nanoid","version":"3.3.12","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[GHSA redacted]"],"severity":"high","fixedVersion":"3.3.16","relation":"transitive","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":"deb1e9c004b7569e50c6e56221bf2015810b0643d13d003cd582c86916b1a336"},"properties":{"dependency":{"package":"postcss","version":"8.4.31","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"severity":"high","fixedVersion":"8.5.12","relation":"direct","declaredRange":"^8","reachability":{"kind":"test-or-tooling","file":"packages/web/package.json"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"1b35a86785c3c6a9f072f4ccdea0267138d984001e14d8686e92824a5d86cfda"},"properties":{"dependency":{"package":"postcss","version":"8.5.14","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[GHSA redacted]"],"severity":"high","fixedVersion":"8.5.18","relation":"direct","declaredRange":"^8","reachability":{"kind":"test-or-tooling","file":"packages/web/package.json"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"0c2fec4b53d166300884d49ce014e743a44b468da99b16849c36d3bdfa040f89"},"properties":{"dependency":{"package":"zod","version":"3.25.76","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"severity":"high","fixedVersion":"4.6.6","relation":"transitive","reachability":{"kind":"production","file":"packages/web/source.config.ts","line":4}}}},{"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":"bc5292a15a495695589cd3fc53c770265aa0b11d177fbd04a55288f5b8c9fb17"},"properties":{"dependency":{"package":"sharp","version":"0.34.5","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]"],"severity":"high","fixedVersion":"0.35.0","relation":"transitive","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":"c4f2de5775d6a01029eef8e93ffc1201060274de62cc7311ee18537c658fa945"},"properties":{"dependency":{"package":"source-map-js","version":"1.2.1","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"severity":"high","fixedVersion":"1.2.2","relation":"transitive","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":"1dd90812ef3ba7debc92336d3a338f8ece233e96e11c2d677494858052cfdb9f"},"properties":{"dependency":{"package":"vite","version":"8.0.13","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]"],"severity":"high","fixedVersion":"8.1.6","relation":"transitive","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":"351e184aff27f40c68dab0a3d91008b0981bb77e7ee281251e1ecd0a3b541cd8"},"properties":{"dependency":{"package":"zod","version":"4.4.3","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"severity":"high","fixedVersion":"4.6.6","relation":"transitive","reachability":{"kind":"production","file":"packages/web/source.config.ts","line":4}}}},{"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.102","advisory":"RUSTSEC-2026-0190","severity":"medium","fixedVersion":"1.0.103","relation":"transitive","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":"32c61799ea12afd28b6135da666ec933b4279f8feffe94ac81501e920b038c11"},"properties":{"dependency":{"package":"arrow-data","version":"55.2.0","advisory":"RUSTSEC-2026-0442","aliases":["[CVE redacted]","[GHSA redacted]"],"severity":"medium","fixedVersion":"57.3.2","relation":"transitive","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":"a5c739e8fe3a2630db9336810293def9363bf03c0cfad3ae34e50e439ae3f780"},"properties":{"dependency":{"package":"azure_core","version":"0.21.0","advisory":"RUSTSEC-2026-0275","severity":"medium","fixedVersion":"0.22.0","relation":"direct","declaredRange":"0.21","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","severity":"medium","relation":"transitive","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":"ca383df8f93c1fcb449201c7c47b9fc487e55acf31a9bb60212d29fe36dde189"},"properties":{"dependency":{"package":"block-buffer","version":"0.12.0","advisory":"[GHSA redacted]","severity":"medium","relation":"transitive","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":"b995e75272b61cf5f3649600c4af60acb108488f8113b0f25a04ec6792e70778"},"properties":{"dependency":{"package":"cmov","version":"0.5.3","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"severity":"medium","fixedVersion":"0.5.4","relation":"transitive","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","severity":"medium","fixedVersion":"0.9.20","relation":"transitive","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":"cc4db900d7247116e90ac1f55322889d7c04a2f09430308fea72e799e9229468"},"properties":{"dependency":{"package":"crypto-bigint","version":"0.5.5","advisory":"RUSTSEC-2026-0387","severity":"medium","fixedVersion":"0.7.6","relation":"transitive","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":"109eb8c2be00952287a6643744da7dcc2c9a7a6618d7cac60ea6539c1687dfd6"},"properties":{"dependency":{"package":"ctutils","version":"0.4.2","advisory":"RUSTSEC-2026-0385","severity":"medium","fixedVersion":"0.4.4","relation":"transitive","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":"1092cdc16bab90e26caa98781415518f2a1a0fec9b43d183894264e01dcc42b6"},"properties":{"dependency":{"package":"event-listener","version":"5.4.1","advisory":"RUSTSEC-2026-0221","severity":"medium","fixedVersion":"5.4.2","relation":"transitive","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":"f98a5252cf643899a128d2b6f6d04b7713273d44fa70b088ba81df0a39c759a9"},"properties":{"dependency":{"package":"faster-hex","version":"0.10.0","advisory":"RUSTSEC-2026-0306","severity":"medium","fixedVersion":"0.10.1","relation":"transitive","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":"5fcf1cf72d008907a0eabd1eed7554d9d9620bd0222ddb28369e7be978ef92aa"},"properties":{"dependency":{"package":"gix-packetline","version":"0.21.3","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"severity":"medium","fixedVersion":"0.21.5","relation":"direct","declaredRange":"0.21.3","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":"80b5c22beae306eb623d7a60ec13361ab89285e1cc30fcf5b8daa2e87ffb5c69"},"properties":{"dependency":{"package":"h2","version":"0.3.27","advisory":"RUSTSEC-2026-0258","aliases":["[GHSA redacted]"],"severity":"medium","fixedVersion":"0.4.16","relation":"transitive","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":"1fbfaa54c6250c5bea6051f292aaedcc30665f84b088589f336a3c4988e91c18"},"properties":{"dependency":{"package":"http-types","version":"2.12.0","advisory":"RUSTSEC-2026-0174","severity":"medium","relation":"transitive","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":"f48cf8c9f415048128045caa118a1e03769d0b4fe18d7f036c2f3766e3e8d8fb"},"properties":{"dependency":{"package":"instant","version":"0.1.13","advisory":"RUSTSEC-2024-0384","severity":"medium","relation":"transitive","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":"be9977d5d7ddb867e7f2e9fb5ad301e217dd9c03427d8e948d094761434f4502"},"properties":{"dependency":{"package":"jsonwebtoken","version":"9.3.1","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"severity":"medium","fixedVersion":"10.3.0","relation":"separate-copy","declaredRange":"=11.0.0","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.32.0","advisory":"RUSTSEC-2026-0459","aliases":["[CVE redacted]","[GHSA redacted]","RUSTSEC-2026-0502"],"severity":"medium","fixedVersion":"0.39.0","relation":"transitive","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]"],"severity":"medium","fixedVersion":"0.16.3","relation":"direct","declaredRange":"0.12","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":"f80cc8a64f277216b40d4f6c4defc74b66f50f547a6604f2f2a0dfebfc30c34b"},"properties":{"dependency":{"package":"lru","version":"0.12.5","advisory":"RUSTSEC-2026-0253","severity":"medium","fixedVersion":"0.18.2","relation":"direct","declaredRange":"0.12","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":"52d5bfc6d2adb9c705596e0c7aacc044e97b465161de270970244f1a15752d0c"},"properties":{"dependency":{"package":"lru","version":"0.16.4","advisory":"RUSTSEC-2026-0253","severity":"medium","fixedVersion":"0.18.2","relation":"separate-copy","declaredRange":"0.12","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":"ec74a69294fd53937abf9ab18929961108d87edbac9df33bb2dbd5615ab4d0ae"},"properties":{"dependency":{"package":"lru","version":"0.18.0","advisory":"RUSTSEC-2026-0253","severity":"medium","fixedVersion":"0.18.2","relation":"separate-copy","declaredRange":"0.12","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":"bf9b3890cba73cd3c5d5270d1976bd1bae94596a1c510482b94fe9367ef871f2"},"properties":{"dependency":{"package":"memmap2","version":"0.9.10","advisory":"RUSTSEC-2026-0186","severity":"medium","fixedVersion":"0.9.11","relation":"transitive","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":"525150c79769e3a8552e1d639a767bc181c181d5c769963ba9e0faa9d03741e3"},"properties":{"dependency":{"package":"opentelemetry_sdk","version":"0.27.1","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"severity":"medium","fixedVersion":"0.32.1","relation":"direct","declaredRange":"0.27","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","severity":"medium","relation":"transitive","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","severity":"medium","relation":"transitive","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":"d469c4cdd0b2892278c4ee90c01a5a8ea4872a98733c483777e04c904cfebdfc"},"properties":{"dependency":{"package":"proc-macro-error2","version":"2.0.1","advisory":"RUSTSEC-2026-0173","severity":"medium","relation":"transitive","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":"a0d6071f3ff9df08baeefad051ce7a82628659fca2e427d1ba6fecf7190a1b3a"},"properties":{"dependency":{"package":"quick-xml","version":"0.31.0","advisory":"RUSTSEC-2026-0194","aliases":["RUSTSEC-2026-0195"],"severity":"medium","fixedVersion":"0.41.0","relation":"separate-copy","declaredRange":"0.37","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":"37f5ad79463258399d3219bebbc47ad65b891b554adca380bce7fe368c434b63"},"properties":{"dependency":{"package":"quick-xml","version":"0.37.5","advisory":"RUSTSEC-2026-0194","aliases":["RUSTSEC-2026-0195"],"severity":"medium","fixedVersion":"0.41.0","relation":"direct","declaredRange":"0.37","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.14","advisory":"RUSTSEC-2026-0538","aliases":["[GHSA redacted]"],"severity":"medium","fixedVersion":"0.5.16","relation":"transitive","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.7.3","advisory":"RUSTSEC-2026-0097","aliases":["[GHSA redacted]"],"severity":"medium","fixedVersion":"0.8.6","relation":"separate-copy","declaredRange":"0.9","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":"f33134b914692cd6c5f119efdf542f3d6c34c918da971c9cc600e5d39c46efde"},"properties":{"dependency":{"package":"rkyv","version":"0.7.46","advisory":"RUSTSEC-2026-0235","severity":"medium","fixedVersion":"0.8.17","relation":"transitive","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":"ac07f6d7edfd49261e66a0ecf670dc83aeb27f637d0eaec58b89ac41744f7835"},"properties":{"dependency":{"package":"rsa","version":"0.9.10","advisory":"RUSTSEC-2023-0071","aliases":["[CVE redacted]","[GHSA redacted]","[GHSA redacted]"],"severity":"medium","fixedVersion":"0.10.0","relation":"transitive","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.4","advisory":"RUSTSEC-2026-0486","aliases":["[GHSA redacted]"],"severity":"medium","fixedVersion":"1.1.6","relation":"transitive","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":"22995033016ae3861d571b2c92ada6244555e3aeec08bc870b909cda12b35c06"},"properties":{"dependency":{"package":"rustls","version":"0.21.12","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","RUSTSEC-2026-0346","RUSTSEC-2026-0348","RUSTSEC-2026-0349"],"severity":"medium","fixedVersion":"0.23.46","relation":"separate-copy","declaredRange":"0.23","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.40","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"],"severity":"medium","fixedVersion":"0.23.45","relation":"direct","declaredRange":"0.23","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":"b5524f25221308ec94b7206b58afaa59996104c20abaa242285d451f5344e44b"},"properties":{"dependency":{"package":"rustls-pemfile","version":"2.2.0","advisory":"RUSTSEC-2025-0134","severity":"medium","relation":"direct","declaredRange":"2","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.13","advisory":"RUSTSEC-2026-0382","aliases":["BIT-golang-2026-111943","[CVE redacted]","GO-2026-6809","RUSTSEC-2026-0381","RUSTSEC-2026-0383"],"severity":"medium","fixedVersion":"0.103.16","relation":"transitive","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":"0b4d0bd0ea0d3a81846d91c999f1c98d63806893d9b8b2fd8c703eaa81f667a7"},"properties":{"dependency":{"package":"tar","version":"0.4.45","advisory":"[GHSA redacted]","severity":"medium","fixedVersion":"0.4.46","relation":"direct","declaredRange":"0.4","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":"5c430f51c25d079e0fdc603f98de7a08790e1dfa5aeeb424f2d1aba5456169e1"},"properties":{"dependency":{"package":"thrift","version":"0.17.0","advisory":"[GHSA redacted]","aliases":["BIT-thrift-2026-43868","[CVE redacted]","RUSTSEC-2026-0435"],"severity":"medium","fixedVersion":"0.23.0","relation":"transitive","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.53.1","advisory":"RUSTSEC-2026-0386","severity":"medium","fixedVersion":"1.53.3","relation":"direct","declaredRange":"1.49","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":"2b5cc6a78fe02a95b2f6755616011982ae866dcba8c2aeaae7b037f36ce19be5"},"properties":{"dependency":{"package":"unsafe-libyaml","version":"0.2.11","advisory":"RUSTSEC-2024-0449","severity":"medium","relation":"transitive","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":"c78c7c829ffb431fb928ff724c9cf0276a780b7b7d9be87f32343d1209a988f8"},"properties":{"dependency":{"package":"webpki-root-certs","version":"1.0.7","advisory":"RUSTSEC-2026-0383","aliases":["BIT-golang-2026-111943","[CVE redacted]","GO-2026-6809","RUSTSEC-2026-0381","RUSTSEC-2026-0382"],"severity":"medium","fixedVersion":"1.0.10","relation":"transitive","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.7","advisory":"RUSTSEC-2026-0381","aliases":["BIT-golang-2026-111943","[CVE redacted]","GO-2026-6809","RUSTSEC-2026-0382","RUSTSEC-2026-0383"],"severity":"medium","fixedVersion":"1.0.10","relation":"transitive","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","severity":"medium","fixedVersion":"0.13.4","relation":"direct","declaredRange":"0.13","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","severity":"medium","fixedVersion":"7.4.0","relation":"transitive","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","severity":"medium","fixedVersion":"7.4.0","relation":"transitive","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","severity":"medium","fixedVersion":"7.4.0","relation":"transitive","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","severity":"medium","fixedVersion":"7.4.0","relation":"transitive","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","severity":"medium","fixedVersion":"7.4.0","relation":"transitive","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","severity":"medium","fixedVersion":"7.4.0","relation":"transitive","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","severity":"medium","fixedVersion":"7.4.0","relation":"transitive","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","severity":"medium","fixedVersion":"7.4.0","relation":"transitive","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","severity":"medium","fixedVersion":"7.4.0","relation":"transitive","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","severity":"medium","fixedVersion":"7.4.0","relation":"transitive","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"],"severity":"medium","fixedVersion":"7.4.0","relation":"transitive","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","severity":"medium","fixedVersion":"2.1.2","relation":"transitive","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":"7bedaf9139c15c00dd79d8586b4e5a13fac632d4f234e1216267ee36f6b0a128"},"properties":{"dependency":{"package":"pytest","version":"8.3.4","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","PYSEC-2026-1845"],"severity":"medium","fixedVersion":"9.0.3","relation":"direct","declaredRange":"8.3.4","reachability":{"kind":"test-or-tooling","file":"crab/deploy/auth-service/tests/conftest.py","line":8}}}},{"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":"4bb4de708d4acec7940e5b0c46e905f5751439ee0f84b481d551a0e03b9700f7"},"properties":{"dependency":{"package":"@vitest/mocker","version":"4.1.6","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[GHSA redacted]"],"severity":"medium","fixedVersion":"4.1.11","relation":"transitive","reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"8143297fb367f7e2e5fd623c6657e4a42e8368c628e3e6161abddda98520bb26"},"properties":{"dependency":{"package":"vitest","version":"4.1.6","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"severity":"medium","fixedVersion":"4.1.11","relation":"direct","declaredRange":"4.1.6","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":"efa3b02595383db605c7ddd7db66992783a33a5e443934c0bc8376c9f2d920de"},"properties":{"dependency":{"package":"@hono/node-server","version":"1.19.14","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]"],"severity":"medium","fixedVersion":"1.19.15","relation":"transitive","reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"d719806af553c6240ce6457a0154869410605c8e4282421353d6dcd99a7b13e2"},"properties":{"dependency":{"package":"minimatch","version":"10.2.5","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"severity":"medium","fixedVersion":"11.0.1","relation":"transitive","reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"edd876323dd2a3c98837423c7684cfe5cefa39dd7d2391194cd5cd1ff7d0af40"},"properties":{"dependency":{"package":"@vitest/mocker","version":"4.1.6","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[GHSA redacted]"],"severity":"medium","fixedVersion":"4.1.11","relation":"transitive","reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"d9920c42d0b255a98bcf17ec5b46b5a94384cf92f8d70e121833760748322ee0"},"properties":{"dependency":{"package":"baseline-browser-mapping","version":"2.10.29","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"severity":"medium","fixedVersion":"2.11.0","relation":"transitive","reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"de8ee44bb63e1694f6ab1bb00591d5fb3583ba48d129d2d0bf18f75655d9ef3a"},"properties":{"dependency":{"package":"mermaid","version":"11.15.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"severity":"medium","fixedVersion":"11.16.1","relation":"direct","declaredRange":"^11.15.0","reachability":{"kind":"production","file":"packages/web/components/mdx/mermaid.tsx","line":44}}}},{"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":"95d28de7bd914adfb540ef4b6ffffce599eb073c03446f82f685bf082611c84e"},"properties":{"dependency":{"package":"postcss-selector-parser","version":"7.1.1","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[GHSA redacted]"],"severity":"medium","fixedVersion":"7.1.6","relation":"transitive","reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"24287fb1ba519a3bfbf5a36ff96ce35f3ff75877cfc4a7bf1d2721293e0781bc"},"properties":{"dependency":{"package":"qs","version":"6.15.1","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"severity":"medium","fixedVersion":"6.16.0","relation":"transitive","reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"0c933c2de2dccacb1060cbd2917818928c99fb419cef490db8593277ea9284d8"},"properties":{"dependency":{"package":"vitest","version":"4.1.6","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"severity":"medium","fixedVersion":"4.1.11","relation":"direct","declaredRange":"^4.1.6","reachability":{"kind":"production","file":"packages/web/app/spec/v1/route.test.ts","line":1}}}},{"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":"9b9029ee667ece740837181e6db37e9ddfed77f3d1a0ff6ad931815669618669"},"properties":{"dependency":{"package":"@babel/core","version":"7.29.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"severity":"low","fixedVersion":"7.29.6","relation":"transitive","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":"db02359404c8fae80cfa5ca46943063bc52a96272a672dacf2c2083b7e281f15"},"properties":{"dependency":{"package":"esbuild","version":"0.28.0","advisory":"[GHSA redacted]","severity":"low","fixedVersion":"0.28.1","relation":"transitive","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":"83331dd17846fa697aa44bdade8dddb3ffe18838374a48da033a20928a310f8b"},"properties":{"dependency":{"package":"katex","version":"0.16.47","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"severity":"low","fixedVersion":"0.18.2","relation":"transitive","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":"e186444a99ca49c36b3f7d9cb6d5d5548b7358e8d427de7680c25b434e1636df"}},{"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":"d086f36bc4f326dc4441271a7f694e923fbe955e88aa1c7826f8b08fb528d069"}},{"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":"6817134e61fe7df23cf0e3140501505c0634208c89a5204343d99515074b0acc"}},{"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":"06f8628746a486017f88d8ec7518d958d73b02ab335c88d753f8a45312be7589"}},{"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":"19cb8451fd8a8a1d988ddc22eff6899b3915cb449a43eb76ff8b3c156cd56757"}},{"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":"92637cb1141682cec9b78f782334b999bdbc46743dee518b9e3a358b3931e407"}},{"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":"bd2d7ffaa9a9c6731ffe8dafa58927ce03cb3e13ea126b24ce8a2b745f394079"}},{"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":"00cda125f355cf2b06604791a6911414ac69aedbc7630a31cc794fac97410d85"}},{"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":"1269cc5413dd322b86c3b6e7a7a895543b30ee4b52e82cc9c7e7454b835d4d3f"}},{"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":"05aecc91559557018b101801d964cc1cedeb06a4ccefe9eb4f56284a4477f285"}},{"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":"ffacf93e63b2e86c598094c52a9ba357b8b3317086dca3732604b150d9f0e15d"}},{"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":"a3c0837749960fa2330b16eef5fd24b36192768bce364d0acda806d062f78d64"}},{"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":"a3efab4ed52c339305dd614baf88a3d19159aced73c9f8d089bb7fa61c75bcbc"},"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":"46a938be6947ab1bd29ae416fb090bcbe9d368f408df9f10c96f332cf29cbc69"},"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":"46beaaf7d29390e012961f15986805d8221315c8af74a415250a0d404ffbcc63"},"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":"5a626be93b74ae620d68953fb7037f930d318d2f9ed36ced1783b8666c8c72fb"},"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":"0e4c057ef67b96711bf31bf563c64c4553656ca70afc55ec2aa184e0b1de7e08"},"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":"cbaf45e429218781427c9edc1070b6c91666c47e656c4b42b4dd19d9aded309b"},"taxa":[{"id":"CWE-1357","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-3","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"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":"7b0500a1e7446d49e41ca2097486d25bdf041d5c83de26a8fba23ad4203477b9"}},{"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":"21801ddb58e62d29c0efb7111fff747a7a970aa34fa801151b5385f9f5059b4e"}},{"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":"591f1ed15aec82dfd56450fe2e898b261c5af6bfa48250e40dbb9fb53c8ef735"}},{"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":"07d7385da9e68c83f928fbf3cd1b40e0f051c68b4423ae7b015e71ac42083639"}},{"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":"1310bd4de735b490e153ceb519c29f9278f6f9e3c75f3e39ddd8e1a4c9a7f7d2"}},{"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":"017e9c1fa8ab1154b15fac86793b68d739e4b3518f18b9c059dfcdbc8bbfcfce"},"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":"f375f37535aecad6f94f174d6634ddfe9af7951658d5111a48359f6ea90daa58"},"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":"0c560dc089fa7fc89068c4ce5b98f764a98f58c665919614c7616962ca4cdaf1"}},{"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":"461ba94141eb1383dae522c1e216753ab6e88098ccf243e120d3fd464e2720d6"}},{"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":"9bf09998522a5f1aa01f4500d05f690a802769cbc2129d1f4102277898d60b71"}},{"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":"dfab1c0e9abc0ac7f5f4140ccea42e35f2b2bb3c7f94b4cd48dbb320fbd4a495"}},{"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":"bbbee4a223caae6dc0f35eec34558ddfc4a8d2e009bdcfc9bbdf59c0141e5a7d"}},{"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":"cf0d9af93a64f127f846ff802e2157b99f5cfe56275c4801341a0f4479a02b6f"}},{"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":"0197df91ca0e1d4e57493288d81d2584a995633ab49f74ab618e82a7cb7ebf5f"}},{"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":"9dc110525aa71671fba52dc719e7abc476b8c3fcf9cd68248bed826992c1d4ee"}},{"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":"9e4b859046ca76d7cf293f840c0aa30474b02e3b0bd8e5070375eee5682b2bf8"}},{"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":"c270041a997e48881c79b03b25ad5490f79216589783a5200b55d4dd9df52165"}},{"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":"8ca5a7b12d71d4c28f966bcc8895edaf512803efb91a2298fe43c8975973707e"}},{"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":"ab1ceb5d6c9dd20688a15e0b2910b4d7c2b69769ce4c2694ae2690d7f5d731a9"}},{"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":"ed52be11d49c7e8fcfa1a83a7745bf6f2dbc96cb3784bd2feb59326e5da53a50"}},{"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":"67ef767a2cf2de7a614c6e8bb6727d7fd97670a094e0ce97c096a6da20d09345"}},{"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":"97da43dd8762a81e4c246aa971d01ff66e2d9886a118265644c0f9b822783732"}},{"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":"78a46597914e753128251f0eb1f033fdd204589b986faaf149b3169a8c71682f"},"taxa":[{"id":"CWE-250","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-522","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06: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":"9158aae1c7a1d53edd85576bf7befab44bdcb0ea6b3e32d943a36741fa38896c"}},{"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":"ba31929de4b6641b9d910fd89f05d3ac4224bc745af824a5b6b0394bb18d2497"}},{"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":"6cdc487a3a616c5e10edc07bacbd1d76b20d87b2c9190c45e8cfd6490fd90380"}},{"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":"b0b0b6aeb3684e06b05c18877ead58de9668f609d26f0db492fb685b35d700e1"}},{"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":"5182db933293341fde7127ff7eb6ab3f65390af2b086de46564ef1605a3be536"}},{"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":"c6c752a5b1faa1e1109adfa14653b0e1a9fde7e52f290e9a20a6107c42fbd2d0"},"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":"92d4f2a19b18950d281e9b237b0c85cb25af0013b99a7fa3231c510518878e44"},"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":"98517edd73b9aced76f9311f958baa9e67913c4c92921a520b47cb2c87d09244"}},{"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":"eb8f34e1888ff0e6422c77b965976ff20a5a25ab23bdc90df630e0b345a2a98d"}},{"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":"f1e49fd7e0b713e346f78987ead0a44fc31f131f01b38d5929a65bdf870193ad"}},{"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":"630e7e75e8e0fec6b04e9fdcae0e7b08d8ccdcc3540ecbffa046d55e1cabbc4f"}},{"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":"ca3c4bf513b3a81e9b6a7f71cb169486fd6be16e7c53d0539d930bfc51dbb8f9"}},{"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":"b257ef0b9fcd97d12362750bba29726b21b426114975f15f27573e448b151fd1"}},{"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":"1ce6ef100c63cbd668000477071f482bb8a299cabf5aadaf12bbd31e6a138f28"}},{"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":"bdc290bccf174426bce02faec9350a2bad6d44126fd28ccde68e97c20f108055"}},{"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":"dcc093d1cd4da73f2c3311530e4794aec5324145ad106ce6803e6ece8508c477"}},{"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":"7289c4e281a01d98747f7cffc4522e54313997aa23951bd087c8d734b263f4fa"}},{"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":"26d7444d83ce97cb193d181faac9e26e99425dbc10b7e9b760ce99332a19174e"}},{"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":"4a90511e082de5da27d2ec278a26a2723236a1fc1d6df5ff8062d47f1e54cf05"}},{"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":"ae7ae7bbb13b53ce0824100a7ce165df33c21c04a760543c4a9f45f82cfb21a2"}},{"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":"d2c67658d21119a004afe792f957271b1116cb9f2ceebafb995aaade36354cc3"}},{"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":"84d6d2413a3ff389999c6915981d8cfa8d03d5fe9dc8bc658060a2a3e10f39c5"}},{"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":"a516cf0c09fa39347e9ca7577d44ffbde1ba6dd07f730174748cc3de910eb4df"}},{"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":"6472403e4782a447a7acd9dc8f733d1c6671e995eb64b8bca2884b3aabf22dae"}},{"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":"722b08afe6578964fec5bcd92a1db4ae46a5205d27e118c1b6a4ae6f4530c053"}},{"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":"275a8330e4eee7ff5628bc2fcdce1bcaf6addfe27ab6ff132c1d4ea78beab62f"}},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"90f83b4fa27db32740afe9540c905f3c0499caed87f61049a8a903ecc95b41c3"},"taxa":[{"id":"CICD-SEC-8","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"3ab82b4ece519ed3ecee3ed345f748de9e933574f6eaf078781d34dfb4b8076d"}},{"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":"0dbcf2508826c8ac038f31c507121a685838805ba8f1a249b309262c4bc222e7"},"taxa":[{"id":"CICD-SEC-8","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"25552cbb003b23b1e302e79a68cd9a2a8454232aa840651c39ec5d85bb8315b1"},"taxa":[{"id":"CICD-SEC-8","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"51da8d3e4f8f6b045eea63699972af184a4d78cc5ca22b616cab70e5cd88066e"},"taxa":[{"id":"CICD-SEC-5","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":"fe274ba5adebde25ca0b3db842e44cbb1aaeb7cfecfbb7215cd452596ba1f4c2"},"taxa":[{"id":"CICD-SEC-6","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"d657599f6f99da1927d3377533dfc0888b34c4d84aa7d5579841fd72d0e39bce"},"taxa":[{"id":"CICD-SEC-6","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"ace515990e7ee0f17b5c17e44dd168a5bdecf90804a3a3dd845cf05540978013"},"taxa":[{"id":"CICD-SEC-3","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D41","level":"note","message":{"text":"No seccomp profile: The workload runs a container with no seccomp profile in force (neither RuntimeDefault nor a Localhost profile, on the container or the pod), so Kubernetes runs it Unconfined. Seccomp blocks the syscalls a container never needs, shrinking the kernel attack surface a container escape would use."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/deploy/cache-service/kubernetes/deployment.yaml"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"c705ea1df4dc641eb3d706da372bca61c1f2d73c9a628fd49cf6678da4620679"}},{"ruleId":"AC1","level":"warning","message":{"text":"\u003Cvideo\u003E without a captions track: Video with no captions \u003Ctrack\u003E offers no captions. This player\u0027s source is set at runtime, so there is no caption file to author here: give the player a way to carry captions \u2014 accept a track/captions URL alongside the media and render a \u003Ctrack kind=\u0022captions\u0022\u003E when one is supplied \u2014 and capture that asset wherever the media enters the product (upload, import or generation)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/file-preview.tsx"},"region":{"startLine":280}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8c807761ef6f70b7e74de031c93b84ecd563dcbc298fec7bb3779690e61c165"}},{"ruleId":"AC3","level":"warning","message":{"text":"Heading level jumps from h1 to h4: Skipping heading levels breaks the document outline assistive tech relies on. Don\u0027t jump levels \u2014 increase by at most one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/web/app/landing-page-client.tsx"},"region":{"startLine":296}}}],"partialFingerprints":{"codehealthFindingId/v1":"c10ee6fa4dd4f86feb2d031947057a94142f2e4bab8252248fb857922a428809"}},{"ruleId":"AC4","level":"error","message":{"text":"Hover-only interaction on \u003Cdiv\u003E: This \u003Cdiv\u003E binds mouse-enter and mouse-leave and nothing else \u2014 no click, no key handler, no focus handler, and no tabIndex={0}, so it cannot even take focus. A keyboard user cannot hover, so whatever the pair reveals or highlights is reachable with a mouse only. Bind the same state to focus/blur as well, and add tabIndex={0}=\u00220\u0022 so the element can receive that focus."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/web/components/marketing/testimonials-carousel.tsx"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa2a2261e54a3ea17240417159a032abd0cc5550787d7d644d6e465b3ea8f0cd"}},{"ruleId":"AC4","level":"warning","message":{"text":"Modal dialog does not manage focus: This \u003Cdiv role=\u0022dialog\u0022\u003E is a modal dialog, but nothing moves focus into it when it opens and nothing keeps focus inside it while it is open, so a keyboard or screen-reader user keeps acting on the content behind it (WCAG 2.4.3). Use a native \u003Cdialog\u003E opened with showModal(), a dialog component that traps focus, or move focus to the dialog on open, trap Tab inside it (or make the page behind inert) and return focus to the control that opened it on close."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/web/components/navigation/mobile-nav.tsx"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d1eed86ea7add9edad77bc99a695ad355bb7771c21027dcd095a4a1c56f73c3"}},{"ruleId":"AC6","level":"warning","message":{"text":"Low contrast Tailwind colour pair (3.8:1): This element\u0027s Tailwind text/background colour utilities fall below the 4.5:1 WCAG AA minimum for normal text. Pick a darker or lighter shade."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/web/components/library/knowledge-check.tsx"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d017064c7b85e18ee26ba20dc5c5ea87e36956869c2d754e0e0304988d642dd"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u003Cspan\u003E moves \u2014 its \u0060animate-[typing-cursor-blink_1s_step-end_infinite]\u0060 utility runs with no motion-safe:/motion-reduce: variant \u2014 and nothing reads prefers-reduced-motion for it, so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Gate it on @media (prefers-reduced-motion: no-preference) or motion-safe:."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/web/components/marketing/typing-code.tsx"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"86e260cba9da54ca4f72d7f93561afc968a6e720e7632e45a858a1a1ba72ffa6"}},{"ruleId":"AC6","level":"warning","message":{"text":"Focus outline removed in CSS without a :focus replacement: \u0060.tree-search input\u0060 sets the outline to none/0 and no visible :focus / :focus-visible style for that element replaces it in this stylesheet, so a keyboard user cannot see where focus is. Draw a focus ring (outline, box-shadow or border) under :focus-visible."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/style.css"},"region":{"startLine":4516}}}],"partialFingerprints":{"codehealthFindingId/v1":"24b8044f8ed7c2fb1d65402ede293789440d6d4c667fe814ff1c6140cbfd7e6f"}},{"ruleId":"AC6","level":"warning","message":{"text":"Focus outline removed in CSS without a :focus replacement: \u0060.code-symbols-search input\u0060 sets the outline to none/0 and no visible :focus / :focus-visible style for that element replaces it in this stylesheet, so a keyboard user cannot see where focus is. Draw a focus ring (outline, box-shadow or border) under :focus-visible."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/style.css"},"region":{"startLine":5013}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e802d2cc1fe234df2c29a6d8af880088848a561863198cc35e08c480b9ffe99"}},{"ruleId":"AC6","level":"warning","message":{"text":"Focus outline removed in CSS without a :focus replacement: \u0060.data-search input\u0060 sets the outline to none/0 and no visible :focus / :focus-visible style for that element replaces it in this stylesheet, so a keyboard user cannot see where focus is. Draw a focus ring (outline, box-shadow or border) under :focus-visible."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/style.css"},"region":{"startLine":5188}}}],"partialFingerprints":{"codehealthFindingId/v1":"280921c8809fa54118246a2a34aa31e3f45fdc6e2de2caea9febb0bd8be57be1"}},{"ruleId":"AC6","level":"warning","message":{"text":"Focus outline removed in CSS without a :focus replacement: \u0060.data-schema-search input\u0060 sets the outline to none/0 and no visible :focus / :focus-visible style for that element replaces it in this stylesheet, so a keyboard user cannot see where focus is. Draw a focus ring (outline, box-shadow or border) under :focus-visible."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/style.css"},"region":{"startLine":5656}}}],"partialFingerprints":{"codehealthFindingId/v1":"808c3ccb678e41336b092cfdad2f89f3a1b48ed2d300100370bb27726579f28b"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.inline-review-annotation\u0060 moves (\u0060transition: background-color 120ms ease,\n    border-color 120ms ease,\n    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/ui/src/style.css"},"region":{"startLine":795}}}],"partialFingerprints":{"codehealthFindingId/v1":"8aa21bb75139060a1b341e8dba9a4ef77aa5eb23276dfc6a47514dbaecff438d"}},{"ruleId":"AX9","level":"error","message":{"text":"Query writes persistent state on the read path: Authentication.load_git_token: \u0060Authentication.load_git_token\u0060 is a read-named query yet it performs a durable write on the read path (a persist to a store/repository). A query must stay side-effect-free so reads are safe to retry, cache, and route to a read replica; move the write into a command."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-http-server/src/auth.rs"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"286d9f12f560e6ff9e5dd17eb3e86cbbc6234e65074832ca3efd7bd1709343a6"}},{"ruleId":"AX9","level":"error","message":{"text":"Query writes persistent state on the read path: ref_registry$module.load_ref_registry_summary: \u0060ref_registry$module.load_ref_registry_summary\u0060 is a read-named query yet it performs a durable write on the read path (a persist to a store/repository). A query must stay side-effect-free so reads are safe to retry, cache, and route to a read replica; move the write into a command."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-metadata/src/ref_registry.rs"},"region":{"startLine":591}}}],"partialFingerprints":{"codehealthFindingId/v1":"74c160f50b557ab4f57b786bf45f7052d0670cd6263e585b2219ddb9eebf8c06"}},{"ruleId":"C2","level":"note","message":{"text":"No named authorization policies: Authorization IS enforced here (by route guards, auth middleware or checks that refuse a caller) \u2014 this is NOT a claim that endpoints are unprotected. What\u0027s missing is a NAMED rule set: who may do what is encoded inline where it is checked, so the rules can\u0027t be listed, reviewed or tested apart from the code that applies them. Recommendation, not a defect."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"b048fdf3fa524ac68c7874fdfcdb4c49d5f010013f2cb22a0bd84cb12ceb951f"}},{"ruleId":"C3","level":"note","message":{"text":"Partial audit-trail evidence: An audit mechanism is present, but the trail is not yet complete \u2014 missing: a write-side hook every change flows through (a SeaORM ActiveModelBehavior hook or a database trigger recording each change, or an event-sourced store), per-entity coverage (an event-sourced aggregate, or a hook on each entity that needs a who-changed-what trail)."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"274a04e524f3228d241c99316455563739cb06cfd10a01e446d00b8a14956083"}},{"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: an expiry limit \u2014 a declared maximum age / TTL after which the data is no longer kept."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"e6c843eccaff7ffcfe5241125b74768c2364055ab6678b12b10d47f44086afa4"}},{"ruleId":"DM4","level":"error","message":{"text":"Anemic domain model: ComputedPaths: \u0060ComputedPaths\u0060 is a data-only domain entity with \u0060pub\u0060 mutable state and no invariant-enforcing behaviour of its own, while the repo holds the logic in a foreign service/manager/use-case \u2014 the anemic domain model. Move the behaviour onto the entity so it enforces its own invariants (or make it an immutable value object with private fields) rather than being driven from outside."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-vfs/src/daemon.rs"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf7450acc7d3613aabd731853069f84ddadf8306fd7de5f0d959fd9a8728cca2"}},{"ruleId":"IC1","level":"warning","message":{"text":"Empty method body \u2014 does nothing with its inputs: \u0060remove_temporary\u0060 takes parameters but its body is empty \u2014 it accepts inputs and does nothing. Either implement it or remove it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/cmd/data.rs"},"region":{"startLine":1818}}}],"partialFingerprints":{"codehealthFindingId/v1":"751001fbdcef2956f35f29557a072f02d57ef1462907232270aa0a74e71ab24b"}},{"ruleId":"IC1","level":"warning","message":{"text":"Empty method body \u2014 does nothing with its inputs: \u0060print_mixed_pointer_content\u0060 takes parameters but its body is empty \u2014 it accepts inputs and does nothing. Either implement it or remove it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/cmd/diff_driver.rs"},"region":{"startLine":339}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8f57bad7560c786faad63d334eecce8012813175ea865710c211482ec8a27b1"}},{"ruleId":"IC1","level":"warning","message":{"text":"Empty method body \u2014 does nothing with its inputs: \u0060print_row\u0060 takes parameters but its body is empty \u2014 it accepts inputs and does nothing. Either implement it or remove it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/cmd/du.rs"},"region":{"startLine":380}}}],"partialFingerprints":{"codehealthFindingId/v1":"22838c00f45eea5cdae8ba03da15afeb6915db5a91dc05ee751cea45273736c1"}},{"ruleId":"IC1","level":"warning","message":{"text":"Empty method body \u2014 does nothing with its inputs: \u0060print_row_with_count\u0060 takes parameters but its body is empty \u2014 it accepts inputs and does nothing. Either implement it or remove it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/cmd/du.rs"},"region":{"startLine":384}}}],"partialFingerprints":{"codehealthFindingId/v1":"51cb7a56ebdca0817ccba547ad7bbfd454ead2ff41fff81c8125e653aa80696c"}},{"ruleId":"IC1","level":"warning","message":{"text":"Hollow method \u2014 returns a constant without doing the work: \u0060check_object_lock\u0060 looks like it should compute a result but its body just returns a constant \u2014 a placeholder return that was never filled in."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/cmd/gc/class_aware.rs"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"58becaceab43bc89f328fed0fb8eea9443bbce74986514f6f0d87e772ee3da14"}},{"ruleId":"IC1","level":"warning","message":{"text":"Empty method body \u2014 does nothing with its inputs: \u0060print_root_help\u0060 takes parameters but its body is empty \u2014 it accepts inputs and does nothing. Either implement it or remove it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/cmd/help.rs"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c2b3b3f60996f2d7796fdfe0bf7d27b9e6f6e51ed9933196457a09f773b330b"}},{"ruleId":"IC1","level":"warning","message":{"text":"Hollow method \u2014 returns a constant without doing the work: \u0060generate_bash_completion\u0060 looks like it should compute a result but its body just returns a constant \u2014 a placeholder return that was never filled in."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/cmd/install.rs"},"region":{"startLine":673}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ecf717d68984aa4ac8de01a709fc494735aa69f8e3beab5220c0859584ed6df"}},{"ruleId":"IC1","level":"warning","message":{"text":"Hollow method \u2014 returns a constant without doing the work: \u0060generate_zsh_completion\u0060 looks like it should compute a result but its body just returns a constant \u2014 a placeholder return that was never filled in."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/cmd/install.rs"},"region":{"startLine":695}}}],"partialFingerprints":{"codehealthFindingId/v1":"396884354ad8026f7302dfa0e3b827697b8bf667ee80bdf4c7b46c266a60b39d"}},{"ruleId":"IC1","level":"warning","message":{"text":"Hollow method \u2014 returns a constant without doing the work: \u0060generate_fish_completion\u0060 looks like it should compute a result but its body just returns a constant \u2014 a placeholder return that was never filled in."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/cmd/install.rs"},"region":{"startLine":738}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfc0e661d16e8a2785b6da523657b1644c2e481ea741a5d50d68484f5f436754"}},{"ruleId":"IC1","level":"warning","message":{"text":"Empty method body \u2014 does nothing with its inputs: \u0060skip_missing_lfs_content\u0060 takes parameters but its body is empty \u2014 it accepts inputs and does nothing. Either implement it or remove it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/cmd/lfs/checkout.rs"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc2a11b3a40d8a8a9825a869c08fa5aec32f5915cbcee70610d276750d768c2a"}},{"ruleId":"IC1","level":"warning","message":{"text":"Empty method body \u2014 does nothing with its inputs: \u0060print_extension\u0060 takes parameters but its body is empty \u2014 it accepts inputs and does nothing. Either implement it or remove it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/cmd/lfs/ext.rs"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"d422cfbceb0df108f72a7c78beafe50ed9dd7978c0da94ce480063e6d31a6d80"}},{"ruleId":"IC1","level":"warning","message":{"text":"Empty method body \u2014 does nothing with its inputs: \u0060render_failover_automation_policy\u0060 takes parameters but its body is empty \u2014 it accepts inputs and does nothing. Either implement it or remove it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/cmd/replica.rs"},"region":{"startLine":12427}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa2276fd55715f8c828c9b8d64d42d70c10afaff826a8d3527093b5f03a31f8a"}},{"ruleId":"IC1","level":"warning","message":{"text":"Empty method body \u2014 does nothing with its inputs: \u0060print_summary\u0060 takes parameters but its body is empty \u2014 it accepts inputs and does nothing. Either implement it or remove it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/cmd/status.rs"},"region":{"startLine":1052}}}],"partialFingerprints":{"codehealthFindingId/v1":"558ef33d42fb9fe9e0f0927b39cccd95b9240df764625491b4de1cd6b35fb979"}},{"ruleId":"IC1","level":"warning","message":{"text":"Hollow method \u2014 returns a constant without doing the work: \u0060no_attrs\u0060 looks like it should compute a result but its body just returns a constant \u2014 a placeholder return that was never filled in."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/core/pathmatch.rs"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"229afd446bad75c3d59ea19e864045a7ef45a2a89aaaac0edadaa4495814d0c8"}},{"ruleId":"IC1","level":"warning","message":{"text":"Empty method body \u2014 does nothing with its inputs: \u0060trace_phase\u0060 takes parameters but its body is empty \u2014 it accepts inputs and does nothing. Either implement it or remove it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/core/perf_phase.rs"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1e51d2e16da15b9075a2b22f582c3852a889d77b1387befa534b630b1511e49"}},{"ruleId":"IC1","level":"warning","message":{"text":"Empty method body \u2014 does nothing with its inputs: \u0060record_failure_stage\u0060 takes parameters but its body is empty \u2014 it accepts inputs and does nothing. Either implement it or remove it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/git/push.rs"},"region":{"startLine":16308}}}],"partialFingerprints":{"codehealthFindingId/v1":"814f5020eeea084b30d8d6f0a4ea44dd749c1661799a5b303cf356f58c8be891"}},{"ruleId":"IC1","level":"warning","message":{"text":"Empty method body \u2014 does nothing with its inputs: \u0060clear_readiness_cache_invalidation\u0060 takes parameters but its body is empty \u2014 it accepts inputs and does nothing. Either implement it or remove it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/replication/mod.rs"},"region":{"startLine":9262}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2e7d290f675de1180f0c752c8d245134c60bf87b5e6201d72bc9fe00c6b4b40"}},{"ruleId":"IC1","level":"warning","message":{"text":"Empty method body \u2014 does nothing with its inputs: \u0060append_metric_header\u0060 takes parameters but its body is empty \u2014 it accepts inputs and does nothing. Either implement it or remove it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-cache-server/src/metrics.rs"},"region":{"startLine":860}}}],"partialFingerprints":{"codehealthFindingId/v1":"6aab7abef1ab2d94fb5e27333ec534d757256d9a81d07b04a40901318d4d0cdc"}},{"ruleId":"IC1","level":"warning","message":{"text":"Empty method body \u2014 does nothing with its inputs: \u0060log_request_summary\u0060 takes parameters but its body is empty \u2014 it accepts inputs and does nothing. Either implement it or remove it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-cache-server/src/metrics.rs"},"region":{"startLine":906}}}],"partialFingerprints":{"codehealthFindingId/v1":"0556b7ffe20cdd55248a3eb3d23f32ad2c009ebfbfd60791d403b2b7550a15eb"}},{"ruleId":"IC1","level":"warning","message":{"text":"Hollow method \u2014 returns a constant without doing the work: \u0060sector_size\u0060 looks like it should compute a result but its body just returns a constant \u2014 a placeholder return that was never filled in."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-cache/src/private_fs/platform/database/file.rs"},"region":{"startLine":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ef62326c9ec6e4132b72b0dab7bf42e3e34ca9e22a4bd5e0d1c5999064356be"}},{"ruleId":"IC1","level":"warning","message":{"text":"Empty method body \u2014 does nothing with its inputs: \u0060observe_storage_read\u0060 takes parameters but its body is empty \u2014 it accepts inputs and does nothing. Either implement it or remove it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-remote-git/src/reader.rs"},"region":{"startLine":1843}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d97fe49d014453d05f647bf597ab19c45ba06ec70912190d4344a37c3759051"}},{"ruleId":"IC1","level":"warning","message":{"text":"Empty method body \u2014 does nothing with its inputs: \u0060insert_pack_index_source_size\u0060 takes parameters but its body is empty \u2014 it accepts inputs and does nothing. Either implement it or remove it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-remote-git/src/runtime.rs"},"region":{"startLine":769}}}],"partialFingerprints":{"codehealthFindingId/v1":"19028688807d803e211a801845267b2890f91f1a91e0f1708f17840e3e6d7734"}},{"ruleId":"IC1","level":"warning","message":{"text":"Empty method body \u2014 does nothing with its inputs: \u0060debug_file_summary\u0060 takes parameters but its body is empty \u2014 it accepts inputs and does nothing. Either implement it or remove it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-staging/src/add_push_plan.rs"},"region":{"startLine":272}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbe7f703890e6f0706f989ddbce99aee8d7a01cc1015f863d395de38d2f0ade7"}},{"ruleId":"IC1","level":"warning","message":{"text":"Empty method body \u2014 does nothing with its inputs: \u0060report_completion\u0060 takes parameters but its body is empty \u2014 it accepts inputs and does nothing. Either implement it or remove it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-xet/src/upload_concurrency.rs"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"aef22244e97f6fdc07a5f30a0424affa380f8d9f430c0b52697aaa68c47dfe54"}},{"ruleId":"IC1","level":"warning","message":{"text":"Hollow method \u2014 returns a constant without doing the work: \u0060verify_compressed_chunk\u0060 looks like it should compute a result but its body just returns a constant \u2014 a placeholder return that was never filled in."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-xet/src/xorb/parser.rs"},"region":{"startLine":297}}}],"partialFingerprints":{"codehealthFindingId/v1":"04bdcc8ecfa5b8906a8e90bc27e6e45e2421da6907d6cee11fee8e003df6951b"}},{"ruleId":"M2","level":"note","message":{"text":"Architecture diagram out of date: \u0060diagram/crab-internal-architecture/crab-internal-architecture.svg\u0060 draws the system\u0027s parts, and the drawing no longer matches the code: it leaves out \u0060crab-auth-server\u0060, \u0060crab-auth-store\u0060, \u0060crab-cache-store\u0060, \u0060crab-coordination\u0060, \u0060crab-diff\u0060, \u0060crab-http-server\u0060, \u0060crab-remote-git\u0060, \u0060crab-s3-gateway\u0060, \u0060crab-sdk\u0060, \u0060crab-types\u0060, \u0060crab-write\u0060, \u0060crab-xet\u0060, which the repository has beside the units it does draw. A diagram of a system that no longer exists misleads the reader it was drawn for, so it is not credited as documenting the shape."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"diagram/crab-internal-architecture/crab-internal-architecture.svg"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"7474de23635bc0ca209421a67038dbd6f9bff0c82c497628026ab4a43ab2a615"}},{"ruleId":"M2","level":"note","message":{"text":"Architecture diagram out of date: \u0060crab/docs/architecture/multi-crate-transition.md\u0060 draws the system\u0027s parts, and the drawing no longer matches the code: it leaves out \u0060crab-auth-store\u0060, \u0060crab-http-server\u0060, \u0060crab-s3-gateway\u0060, \u0060crab-staging\u0060, \u0060crab-vfs\u0060, \u0060crab-write\u0060, which the repository has beside the units it does draw. A diagram of a system that no longer exists misleads the reader it was drawn for, so it is not credited as documenting the shape."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/docs/architecture/multi-crate-transition.md"},"region":{"startLine":1836}}}],"partialFingerprints":{"codehealthFindingId/v1":"33f657e7a22371cc3ad8628f75d64944f16ec66044d1b48a74a8be8881b83901"}},{"ruleId":"M4","level":"note","message":{"text":"README/code drift: packages/web/README.md links to \u0060../README.md\u0060, but \u0060packages/README.md\u0060 does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents\u0027 own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/web/README.md"},"region":{"startLine":353}}}],"partialFingerprints":{"codehealthFindingId/v1":"edc20264313e8322a9537aee6afd71a368227c94280debb7d8d10aa7c14c926a"}},{"ruleId":"M4","level":"note","message":{"text":"README/code drift: crab/docs/architecture/README.md links to \u0060decisions/README.md\u0060, but \u0060crab/docs/architecture/decisions/README.md\u0060 does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents\u0027 own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/docs/architecture/README.md"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"02006ff5c3a26fb3748f83be0a094eb8fd6f8c7c75466a8fd2cbfee722925b32"}},{"ruleId":"M4","level":"note","message":{"text":"README/code drift: crab/docs/guides/README.md links to \u0060crab-init.md\u0060, but \u0060crab/docs/guides/crab-init.md\u0060 does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents\u0027 own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/docs/guides/README.md"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"703b0f8e60dd3bb00137422c2ab850ff278f047240532c892191141cb8f4eaf2"}},{"ruleId":"M4","level":"note","message":{"text":"README/code drift: crab/docs/guides/README.md links to \u0060crab-clone.md\u0060, but \u0060crab/docs/guides/crab-clone.md\u0060 does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents\u0027 own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/docs/guides/README.md"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"3961672d82aad647d0c30c06df1bceb34f3adbeffb30d1765fbf330738ebd693"}},{"ruleId":"M4","level":"note","message":{"text":"README/code drift: crab/docs/guides/README.md links to \u0060crab-import.md\u0060, but \u0060crab/docs/guides/crab-import.md\u0060 does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents\u0027 own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/docs/guides/README.md"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"08548895616f1bfe74c845e895083d5a5789dcda98e8b5273bad5f407738edc8"}},{"ruleId":"M4","level":"note","message":{"text":"README/code drift: crab/docs/guides/README.md links to \u0060crab-install.md\u0060, but \u0060crab/docs/guides/crab-install.md\u0060 does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents\u0027 own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/docs/guides/README.md"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"49cba2c826dc0d58be4368d7721d632081192cd1c21479956c057c370b3ea332"}},{"ruleId":"M4","level":"note","message":{"text":"README/code drift: crab/docs/guides/README.md links to \u0060crab-track.md\u0060, but \u0060crab/docs/guides/crab-track.md\u0060 does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents\u0027 own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/docs/guides/README.md"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9620109acfa98a548189f1b22eebf009c89545f6d9ce5f8e521bde56eeab06f"}},{"ruleId":"M4","level":"note","message":{"text":"README/code drift: crab/docs/guides/README.md links to \u0060crab-add.md\u0060, but \u0060crab/docs/guides/crab-add.md\u0060 does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents\u0027 own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/docs/guides/README.md"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"a69c9993cfd778a2bf2c55e3ba0f0338f4444a29003998e1bf16f0d8ac7a8cbe"}},{"ruleId":"M4","level":"note","message":{"text":"README/code drift: crab/docs/guides/README.md links to \u0060crab-reset.md\u0060, but \u0060crab/docs/guides/crab-reset.md\u0060 does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents\u0027 own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/docs/guides/README.md"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"a870f92d92e1c6f1671d4ff4b81b4440fa2ac8e45091864cbe1b2d9321f2cfc4"}},{"ruleId":"M4","level":"note","message":{"text":"README/code drift: crab/docs/guides/README.md links to \u0060crab-hydrate.md\u0060, but \u0060crab/docs/guides/crab-hydrate.md\u0060 does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents\u0027 own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/docs/guides/README.md"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3448d5d80268d3532b5d34be3dc1a417732cb39aec67264fdf5de882d7bd22a"}},{"ruleId":"M4","level":"note","message":{"text":"README/code drift: crab/docs/guides/README.md links to \u0060crab-dehydrate.md\u0060, but \u0060crab/docs/guides/crab-dehydrate.md\u0060 does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents\u0027 own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/docs/guides/README.md"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed3111e4e8309ae2fb36be1b0481c732e1c17b0c6fb2f9a2a3489149e554f010"}},{"ruleId":"M4","level":"note","message":{"text":"README/code drift: crab/docs/guides/README.md links to \u0060crab-status.md\u0060, but \u0060crab/docs/guides/crab-status.md\u0060 does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents\u0027 own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/docs/guides/README.md"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"156527a35c13a4e5ed806198f61e9130556a4f69de995490bcd4b0ddf1609f0c"}},{"ruleId":"M4","level":"note","message":{"text":"README/code drift: crab/docs/guides/README.md links to \u0060crab-diff.md\u0060, but \u0060crab/docs/guides/crab-diff.md\u0060 does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents\u0027 own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/docs/guides/README.md"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac6030c15947d92f40571af07d884f0124f057247e07930f82b124ee3a7627a7"}},{"ruleId":"M4","level":"note","message":{"text":"README/code drift: crab/docs/guides/README.md links to \u0060crab-fetch.md\u0060, but \u0060crab/docs/guides/crab-fetch.md\u0060 does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents\u0027 own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/docs/guides/README.md"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"b91224248f73d0d06a1018e3ced9ef3f8a1c9452392bb5757cbfeb00f6c6be6a"}},{"ruleId":"M4","level":"note","message":{"text":"README/code drift: crab/docs/guides/README.md links to \u0060crab-worktree.md\u0060, but \u0060crab/docs/guides/crab-worktree.md\u0060 does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents\u0027 own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/docs/guides/README.md"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"139f1f16384c515dcfee75e8c5927afee8ca406b8cf8253c16af0e721d7a7bf2"}},{"ruleId":"M4","level":"note","message":{"text":"README/code drift: crab/docs/guides/README.md links to \u0060crab-ls-files.md\u0060, but \u0060crab/docs/guides/crab-ls-files.md\u0060 does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents\u0027 own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/docs/guides/README.md"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"e950a05f380c6de467fc3a6decd5f5c46c0ab021bd002552ce5e9e34a9ea0b0d"}},{"ruleId":"M4","level":"note","message":{"text":"README/code drift: crab/docs/guides/README.md links to \u0060crab-du.md\u0060, but \u0060crab/docs/guides/crab-du.md\u0060 does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents\u0027 own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/docs/guides/README.md"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7aaa14228b48ff8c8b05bc79f65011f38afba10ffdbd4d46d8d3d9ad7451c1d"}},{"ruleId":"M4","level":"note","message":{"text":"README/code drift: crab/docs/guides/README.md links to \u0060crab-stat.md\u0060, but \u0060crab/docs/guides/crab-stat.md\u0060 does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents\u0027 own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/docs/guides/README.md"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"29f569d3ea3e13e7148a6977123bcc85b01a79e07825fb32c1c035c241f09095"}},{"ruleId":"M4","level":"note","message":{"text":"README/code drift: crab/docs/guides/README.md links to \u0060crab-lock.md\u0060, but \u0060crab/docs/guides/crab-lock.md\u0060 does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents\u0027 own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/docs/guides/README.md"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"e061687c1eb827f6db0a6f19e8c5c9da72be7abf4e8691a951cb76064d3db7a6"}},{"ruleId":"M4","level":"note","message":{"text":"README/code drift: crab/docs/guides/README.md links to \u0060crab-gc.md\u0060, but \u0060crab/docs/guides/crab-gc.md\u0060 does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents\u0027 own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/docs/guides/README.md"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfc169ec90844363c12859cb4d4fb683f05a7d117790ef18edfcadae8681d2a0"}},{"ruleId":"M4","level":"note","message":{"text":"README/code drift: crab/docs/guides/README.md links to \u0060crab-fsck.md\u0060, but \u0060crab/docs/guides/crab-fsck.md\u0060 does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents\u0027 own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/docs/guides/README.md"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"f05e1ea1fb72e5b7bb1512cb7563e2ed232c4fc010d03a4e7598a4ef49227f43"}},{"ruleId":"M4","level":"note","message":{"text":"README/code drift: crab/docs/guides/README.md links to \u0060crab-repack.md\u0060, but \u0060crab/docs/guides/crab-repack.md\u0060 does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents\u0027 own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/docs/guides/README.md"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d7a39a043aa951e03a64c98d9415bed22ec83e60f41c4f779d069142d2e3603"}},{"ruleId":"M4","level":"note","message":{"text":"README/code drift: crab/docs/guides/README.md links to \u0060crab-prune.md\u0060, but \u0060crab/docs/guides/crab-prune.md\u0060 does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents\u0027 own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/docs/guides/README.md"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb49e22ec8669cd3423907ae02f3c7e987501fedab4dda3f5003dd822fbbdf3c"}},{"ruleId":"M4","level":"note","message":{"text":"README/code drift: crab/docs/guides/README.md links to \u0060crab-staging.md\u0060, but \u0060crab/docs/guides/crab-staging.md\u0060 does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents\u0027 own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/docs/guides/README.md"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c96cb782272cb19c31d97d51054b1c02918d3c4fe96ffffe0e4af1ab75ae4ac"}},{"ruleId":"M4","level":"note","message":{"text":"README/code drift: crab/docs/guides/README.md links to \u0060crab-cache.md\u0060, but \u0060crab/docs/guides/crab-cache.md\u0060 does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents\u0027 own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/docs/guides/README.md"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"fec3a67165ac6430b36e23a1d7e6dde6e5b07ad562542dd246a9142370640a75"}},{"ruleId":"M4","level":"note","message":{"text":"README/code drift: crab/docs/guides/README.md links to \u0060crab-migrate.md\u0060, but \u0060crab/docs/guides/crab-migrate.md\u0060 does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents\u0027 own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/docs/guides/README.md"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"81b800aa9dfbb4c04d11e0afa09f97ae5c94e13905e41b86f4267f5db82c8faa"}},{"ruleId":"M4","level":"note","message":{"text":"README/code drift: crab/docs/guides/README.md links to \u0060crab-mount.md\u0060, but \u0060crab/docs/guides/crab-mount.md\u0060 does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents\u0027 own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/docs/guides/README.md"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"75d1490e1cb4369c460b6e4082497371eb3f266915883b3602c91c58fae5ec3a"}},{"ruleId":"P10","level":"note","message":{"text":"Implementation type on the public API: 1 public type in \u0060crab.import.versions\u0060 is marked as implementation by its own namespace, folder or name: \u0060VersionedListImpl\u0060 (crab/src/import/versions.rs:161, name ends in \u0060Impl\u0060). While it is public, every consumer of the library can bind to it, so changing it is a breaking change for those consumers."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/import/versions.rs"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"db842c76460d51371a16090aafa031f2abd97185a8c8342cc78018b036e8aed8"}},{"ruleId":"P2","level":"note","message":{"text":"Logging is not universal: Only 24/26 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/web\u0060."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"91a94e21d6d4d0e6a2003f94505b0b02b157176f0b24c4820f3f82b4447a97fe"}},{"ruleId":"P3","level":"note","message":{"text":"No dependency-update automation: \u0060packages/ui/package.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":"packages/ui/package.json"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b6ee2e227783408a8fb87de932d62ce5084428bdd50de0cb597e366931b87ed"}},{"ruleId":"P7","level":"warning","message":{"text":"Outbound HTTP without resilience: \u0060requests.get(\u0060 makes an outbound HTTP call, and nothing bounds it: no timeout, deadline, retry or circuit breaker is set for it here, and the client has no process-wide default. A slow or failing dependency will hold this service\u0027s request, thread or connection until the call gives up on its own \u2014 or never, for a client with no default timeout."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/scripts/qualify_sdk.py"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ed435dbfda855635f313da3120fe953a994de9c53e2b1b2613bfa22f205911d"}},{"ruleId":"P7","level":"warning","message":{"text":"Outbound HTTP without resilience: \u0060reqwest::blocking::Client::new(\u0060 makes an outbound HTTP call, and nothing bounds it: no timeout, deadline, retry or circuit breaker is set for it here, and the client has no process-wide default. A slow or failing dependency will hold this service\u0027s request, thread or connection until the call gives up on its own \u2014 or never, for a client with no default timeout."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/cmd/data.rs"},"region":{"startLine":355}}}],"partialFingerprints":{"codehealthFindingId/v1":"114acbe73585036ed6c04b5f639bbd0fe85dc6def86d8a3596f998ea266bf154"}},{"ruleId":"P7","level":"warning","message":{"text":"Outbound HTTP without resilience: \u0060reqwest::blocking::Client::new(\u0060 makes an outbound HTTP call, and nothing bounds it: no timeout, deadline, retry or circuit breaker is set for it here, and the client has no process-wide default. A slow or failing dependency will hold this service\u0027s request, thread or connection until the call gives up on its own \u2014 or never, for a client with no default timeout."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/cmd/data.rs"},"region":{"startLine":813}}}],"partialFingerprints":{"codehealthFindingId/v1":"c856594d3b4e4fa5f835752515b9c0537ea4287157aabf005bd006f2ae318397"}},{"ruleId":"P7","level":"warning","message":{"text":"Outbound HTTP without resilience: \u0060reqwest::Client::new(\u0060 makes an outbound HTTP call, and nothing bounds it: no timeout, deadline, retry or circuit breaker is set for it here, and the client has no process-wide default. A slow or failing dependency will hold this service\u0027s request, thread or connection until the call gives up on its own \u2014 or never, for a client with no default timeout."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/replication/mod.rs"},"region":{"startLine":3206}}}],"partialFingerprints":{"codehealthFindingId/v1":"1263846ce699144444fe5af6ae1a278e83f89e2a213131e3e59b0bed32423ba4"}},{"ruleId":"P7","level":"warning","message":{"text":"Outbound HTTP without resilience: \u0060reqwest::Client::new(\u0060 makes an outbound HTTP call, and nothing bounds it: no timeout, deadline, retry or circuit breaker is set for it here, and the client has no process-wide default. A slow or failing dependency will hold this service\u0027s request, thread or connection until the call gives up on its own \u2014 or never, for a client with no default timeout."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-coordination/src/cosmosdb_coordinator.rs"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"334220ca139ad3ba0386c90a0e2bd1692127841001903ed51226547879de87cb"}},{"ruleId":"P7","level":"warning","message":{"text":"Outbound HTTP without resilience: \u0060reqwest::Client::new(\u0060 makes an outbound HTTP call, and nothing bounds it: no timeout, deadline, retry or circuit breaker is set for it here, and the client has no process-wide default. A slow or failing dependency will hold this service\u0027s request, thread or connection until the call gives up on its own \u2014 or never, for a client with no default timeout."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-coordination/src/cosmosdb_coordinator.rs"},"region":{"startLine":882}}}],"partialFingerprints":{"codehealthFindingId/v1":"82ca4d038491f96ca204187eb924c9050d71d43fb3d963aaddeffe81a503edf0"}},{"ruleId":"P7","level":"warning","message":{"text":"Outbound HTTP without resilience: \u0060reqwest::Client::new(\u0060 makes an outbound HTTP call, and nothing bounds it: no timeout, deadline, retry or circuit breaker is set for it here, and the client has no process-wide default. A slow or failing dependency will hold this service\u0027s request, thread or connection until the call gives up on its own \u2014 or never, for a client with no default timeout."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-coordination/src/spanner_coordinator.rs"},"region":{"startLine":337}}}],"partialFingerprints":{"codehealthFindingId/v1":"47d16225e6b08e78455eb279ec6f3da49cc2896b60c5d81975abb98e6d6d7bc6"}},{"ruleId":"P7","level":"warning","message":{"text":"Outbound HTTP without resilience: \u0060reqwest::Client::new(\u0060 makes an outbound HTTP call, and nothing bounds it: no timeout, deadline, retry or circuit breaker is set for it here, and the client has no process-wide default. A slow or failing dependency will hold this service\u0027s request, thread or connection until the call gives up on its own \u2014 or never, for a client with no default timeout."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-coordination/src/spanner_coordinator.rs"},"region":{"startLine":629}}}],"partialFingerprints":{"codehealthFindingId/v1":"92c0905762c3cf4bbce87aa8b22f55bc5dd5d370ac2c34e115c8e77c1e799e8b"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplication concentrated across 7 sibling directories (14 clone groups): 14 duplicated blocks under packages/web/app/ have copies in at least two of the sibling directories auth, blog, cache, cli, library, pricing (\u002B1 more sibling(s) not listed) \u2014 8 of them are reported below, and 6 are counted here but not reported individually: those copies match on shape but no longer clear R10\u0027s bar for an individually reported row \u2014 either they kept neither their own names nor their values, or what was copied is too small to stand on its own (it reports near-exact duplication only, and only of substantial extent). What this row states is the concentration, which the detector measured over all 14 and which does not depend on how exactly each block\u0027s copies still match. That concentration is one structural fact, not 14 local ones: the siblings replicate behaviour none of them owns, which is the shape of a missing shared module \u2014 a common library every sibling imports \u2014 rather than 14 separate extractions. Check first whether the siblings are deliberately standalone deliverables (scaffold templates, demo apps that must stay copy-pasteable); where they are, the duplication is the design and the per-block rows are the ones to act on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/web/app/auth/page.tsx"},"region":{"startLine":277}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fa0b49d78ef8385639432aeb935da5f1690107bafe2cb1898ae638274de7ae8"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplication concentrated across 2 sibling directories (13 clone groups): 13 duplicated blocks under packages/web/ have copies in at least two of the sibling directories app, components \u2014 2 of them are reported below, and 11 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 13 and which does not depend on how exactly each block\u0027s copies still match. That concentration is one structural fact, not 13 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 13 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/web/app/blog/[slug]/page.tsx"},"region":{"startLine":218}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d772cf5986341dcb72afbbf1eaec0038b5ed9bc6a45ac01b3f3e92698c318b3"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplication concentrated across 4 sibling directories (6 clone groups): 6 duplicated blocks under packages/web/components/ have copies in at least two of the sibling directories blog, library, marketing, navigation \u2014 0 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 6 and which does not depend on how exactly each block\u0027s copies still match. That concentration is one structural fact, not 6 local ones: the siblings replicate behaviour none of them owns, which is the shape of a missing shared module \u2014 a common library every sibling imports \u2014 rather than 6 separate extractions. Check first whether the siblings are deliberately standalone deliverables (scaffold templates, demo apps that must stay copy-pasteable); where they are, the duplication is the design and the per-block rows are the ones to act on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/web/components/blog/lfs-compatibility-visuals.tsx"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"94ab6d34005721533ba30e3ed56d118873be24fea7270e248d16dd7bebf3cfc9"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (282 matched lines \u00D7 2 locations): packages/ui/src/issues.tsx:41 \u00B7 packages/ui/src/pulls.tsx:212 \u2014 the two spans are one implementation copied and then locally edited \u2014 1542 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/ui/src/issues.tsx"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e6204f2804c81b1773fff1a48c21abf4007c30ecb299cd06575bd75bf34dbac"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (54 matched lines \u00D7 2 locations): packages/web/app/auth/page.tsx:277 \u00B7 packages/web/app/remote-services/page.tsx:110 \u2014 the two spans are one implementation copied and then locally edited \u2014 234 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/web/app/auth/page.tsx"},"region":{"startLine":277}}}],"partialFingerprints":{"codehealthFindingId/v1":"33d67318729b29e4fc3972643249f73b96c7df3fd1b74768c4c53463e184302f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (51 matched lines \u00D7 2 locations): packages/ui/src/discussion-labels.tsx:115 \u00B7 packages/ui/src/discussion-metadata.tsx:101 \u2014 the two spans are one implementation copied and then locally edited \u2014 272 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/ui/src/discussion-labels.tsx"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"1512d819f5ec7fcedf3d4c27c1013e1dc0259d34f2f5b36d2c27193d5705cad5"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (44 matched lines \u00D7 2 locations): packages/ui/src/issues.tsx:386 \u00B7 packages/ui/src/issues.tsx:709 \u2014 the two spans are one implementation copied and then locally edited \u2014 264 tokens are still identical, in the same order in both spans, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/issues.tsx"},"region":{"startLine":386}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f1b7839e0552587fb7e72e774c8bf831fcdccc5eb80d7f76dece6fd5577b7f3"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (42 matched lines \u00D7 2 locations): packages/ui/src/refs.tsx:124 \u00B7 packages/ui/src/releases.tsx:225 \u2014 the two spans are one implementation copied and then locally edited \u2014 157 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/ui/src/refs.tsx"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"5504a4cdd7e246a0a88de6c047ce5ee9802b75d0356bee97c4f5a490c37a3503"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (41 matched lines \u00D7 2 locations): packages/web/app/cli/page.tsx:488 \u00B7 packages/web/app/cli/page.tsx:607 \u2014 the two spans are one implementation copied and then locally edited \u2014 150 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/web/app/cli/page.tsx"},"region":{"startLine":488}}}],"partialFingerprints":{"codehealthFindingId/v1":"b83ab5db18afe66e7b047d9c50763bc81e806a334a49c81598f4a61ebaae4aaa"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (41 matched lines \u00D7 2 locations): packages/web/app/diagrams/auth-internals-svg.tsx:85 \u00B7 packages/web/app/diagrams/auth-internals-svg.tsx:208 \u2014 the two spans are one implementation copied and then locally edited \u2014 592 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/web/app/diagrams/auth-internals-svg.tsx"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c6b9f1d39ac7e5a0dc2bca2660ac7754e2c40a177767b528351e321369c90e1"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (38 matched lines \u00D7 2 locations): packages/web/app/blog/[slug]/page.tsx:26 \u00B7 packages/web/app/library/[slug]/page.tsx:58 \u2014 the two spans are one implementation copied and then locally edited \u2014 223 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/web/app/blog/[slug]/page.tsx"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"82bf375dbcf79b5890835e0fa4cd9ba3a2df41ec23a0eddff628cf73a68b0c8e"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (32 lines \u00D7 2 locations): packages/web/components/blog/push-pipeline-visuals.tsx:540 \u00B7 packages/web/components/blog/push-pipeline-visuals.tsx:584 \u2014 both copies are in the same file, so extract the block 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/web/components/blog/push-pipeline-visuals.tsx"},"region":{"startLine":540}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3e5f939ec6f36f2e62b6df32aa8396d57a9007c0b0fd3a2e5014bde82b8184e"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (31 lines \u00D7 2 locations): packages/ui/src/pulls.tsx:1224 \u00B7 packages/ui/src/pulls.tsx:1521 \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/ui/src/pulls.tsx"},"region":{"startLine":1224}}}],"partialFingerprints":{"codehealthFindingId/v1":"7af1ec06d05321719443f372ba3a6c759c723f02ab2506a659672d86e8063717"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (31 lines \u00D7 3 locations): packages/web/app/diagrams/cost-breakdown-svg.tsx:86 \u00B7 packages/web/app/diagrams/cost-breakdown-svg.tsx:127 \u00B7 packages/web/app/diagrams/cost-breakdown-svg.tsx:169 \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":"packages/web/app/diagrams/cost-breakdown-svg.tsx"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"429f6aa5ff2ef347216c9541468b2e4eb2032afce9b124ed946289fdd1b97566"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (30 lines \u00D7 2 locations): packages/web/components/marketing/counter.tsx:35 \u00B7 packages/web/components/marketing/typing-code.tsx:77 \u2014 the 2 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/web/components/marketing/counter.tsx"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"9293ccdd1a530f0442e8d3a6c85d1af7a6bc4790b515c513890857668c000c00"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (29 lines \u00D7 3 locations): packages/web/app/diagrams/cache-hierarchy-svg.tsx:1 \u00B7 packages/web/app/diagrams/cache-service-architecture-svg.tsx:1 \u00B7 packages/web/app/diagrams/cli-push-pipeline-svg.tsx:1 \u2014 the 3 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it. There is one copy in each of 3 separate files rather than several in one place, so check first whether these are sibling modules that each declare their own version of one shape \u2014 one per entity, per provider, per language. Where they are, no single extracted module collapses them: each module still has to be written, and what recurs is the TEMPLATE. The moves that do collapse a template are to generate these modules from the set they enumerate, or to replace the repeated construction with one factory each site calls with its own values \u2014 and where the set is the point, each module pinning one distinct thing, the repetition IS the enumeration and there is nothing to delete."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/web/app/diagrams/cache-hierarchy-svg.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"504d8be62dc7833cb9301618fb0bedac05ba9dc73866f80df57e1e7e191def3b"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 2 locations): packages/ui/src/discussion-labels.tsx:210 \u00B7 packages/ui/src/discussion-labels.tsx:325 \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/ui/src/discussion-labels.tsx"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc60bc9adb3065c46703e292016330632e6756ba9b13b51c4f88281ca71891f1"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 2 locations): packages/web/app/cache/page.tsx:532 \u00B7 packages/web/app/cli/page.tsx:542 \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/web/app/cache/page.tsx"},"region":{"startLine":532}}}],"partialFingerprints":{"codehealthFindingId/v1":"058759992cfa607f9c4b7147b3bf5e78421162c09dea9d52661561e4bbfc7008"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2 locations): packages/ui/src/content-editor.tsx:272 \u00B7 packages/ui/src/content-editor.tsx:552 \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/ui/src/content-editor.tsx"},"region":{"startLine":272}}}],"partialFingerprints":{"codehealthFindingId/v1":"b98a99cd2bed065ddab16a1a4a0e934d02e3e127f1ba493ea46cf586f129bb8d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 3 locations): packages/web/app/diagrams/cache-hierarchy-svg.tsx:76 \u00B7 packages/web/app/diagrams/cache-hierarchy-svg.tsx:158 \u00B7 packages/web/app/diagrams/remote-helper-flow-svg.tsx:104 \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/web/app/diagrams/cache-hierarchy-svg.tsx"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"23d49cdfb1b99a080d889f2df49d08779413df240602e0d9da2775c6ff62a7cf"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2 locations): packages/web/app/diagrams/cache-hierarchy-svg.tsx:191 \u00B7 packages/web/app/diagrams/cache-hierarchy-svg.tsx:272 \u2014 both copies are in the same file, so extract the block 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/web/app/diagrams/cache-hierarchy-svg.tsx"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"15ee1420d7c2f326c510aad9c71e0ef4b6d1cdde50ba1e9d258a77d27cf8a3c8"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2 locations): packages/ui/src/content-editor.tsx:401 \u00B7 packages/ui/src/content-editor.tsx:660 \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/ui/src/content-editor.tsx"},"region":{"startLine":401}}}],"partialFingerprints":{"codehealthFindingId/v1":"004d2a6fbef191620acee70ff20c911ceb175b3cffa94ae474185704c4ff1ff7"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2 locations): packages/web/app/diagrams/cache-hierarchy-svg.tsx:21 \u00B7 packages/web/app/diagrams/cache-service-architecture-svg.tsx:20 \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/web/app/diagrams/cache-hierarchy-svg.tsx"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"47f9d8c9b3d8f46c15e15b5f1b0a354fd224b4d9608917004d1c354bb6c1e029"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 7 locations): packages/web/app/diagrams/cache-hierarchy-svg.tsx:127 \u00B7 packages/web/app/diagrams/cache-hierarchy-svg.tsx:209 \u00B7 packages/web/app/diagrams/cache-service-architecture-svg.tsx:86 \u00B7 packages/web/app/diagrams/cache-service-architecture-svg.tsx:287 \u00B7 \u002B3 more site(s) not listed \u2014 the 3 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/web/app/diagrams/cache-hierarchy-svg.tsx"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f3475d9bc2e11f83eaf278964b3cc6aa4f3f86d8381e73f5e4ab44ae083d0dd"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2 locations): packages/ui/src/content-editor.tsx:487 \u00B7 packages/ui/src/content-editor.tsx:600 \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/ui/src/content-editor.tsx"},"region":{"startLine":487}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac4338c4e704c42efbc3df169baec25451056898e469cdaf41b1d13cf38603cf"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2 locations): packages/web/app/auth/page.tsx:695 \u00B7 packages/web/app/pricing/page.tsx:589 \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/web/app/auth/page.tsx"},"region":{"startLine":695}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d7b5b689ec10654d13a07484c3446657554d00e62a81fc69b54c7dcfe78c877"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2 locations): packages/web/components/blog/cache-visuals.tsx:427 \u00B7 packages/web/components/blog/reconstruction-visuals.tsx:367 \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/web/components/blog/cache-visuals.tsx"},"region":{"startLine":427}}}],"partialFingerprints":{"codehealthFindingId/v1":"56e88873795ddb4eae72af0c3c472efe3501cc254582c2bd659e96bca1e44979"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2 locations): packages/web/app/auth/page.tsx:543 \u00B7 packages/web/app/remote-services/page.tsx:156 \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/web/app/auth/page.tsx"},"region":{"startLine":543}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa49aa155e04f65f1d8e781121c50b1de9b797f52d31c3b2c85d984fdecec957"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2 locations): packages/web/app/cache/page.tsx:423 \u00B7 packages/web/app/cache/page.tsx:573 \u2014 both copies are in the same file, so extract the block 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/web/app/cache/page.tsx"},"region":{"startLine":423}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba8132dc011922d479b714916b0c3c1a3453bf01dfc424c367d47ea4feee1840"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2 locations): packages/ui/src/content-editor.tsx:566 \u00B7 packages/ui/src/content-editor.tsx:670 \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/ui/src/content-editor.tsx"},"region":{"startLine":566}}}],"partialFingerprints":{"codehealthFindingId/v1":"7593de63b89cddd61f6302b3b68a928e389be25d4b610fc93d6cac0cead14070"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2 locations): packages/ui/src/release-api.ts:57 \u00B7 packages/ui/src/release-api.ts:92 \u2014 both copies are in the same file, so extract the block 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/ui/src/release-api.ts"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"16823c7c422a79ef21702748c8c940f856f558f192f6875daf7948614bfb5e05"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2 locations): packages/web/app/diagrams/remote-helper-flow-svg.tsx:10 \u00B7 packages/web/app/landing-svgs.tsx:8 \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/web/app/diagrams/remote-helper-flow-svg.tsx"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"737f9d16fc4d1bcc5c3beddd45f8c4a95d6f93c332a336138c5df4b2c72d9962"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2 locations): packages/web/components/blog/gc-visuals.tsx:508 \u00B7 packages/web/components/blog/lazy-checkout-visuals.tsx:406 \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/web/components/blog/gc-visuals.tsx"},"region":{"startLine":508}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb2626d76e83da87ce9dea78410cd919b740749bd9629d6eeeaf421ee5635285"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 6 locations): packages/web/components/ui/alert.tsx:34 \u00B7 packages/web/components/ui/card.tsx:33 \u00B7 packages/web/components/ui/card.tsx:53 \u00B7 packages/web/components/ui/table.tsx:19 \u00B7 \u002B2 more site(s) not listed \u2014 the 6 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/web/components/ui/alert.tsx"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f7eb87cacfba42715fad1ca5d074910f87915a4c54a030d05971c1b8036daa3"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2 locations): packages/web/components/ui/dropdown-menu.tsx:166 \u00B7 packages/web/components/ui/dropdown-menu.tsx:206 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/web/components/ui/dropdown-menu.tsx"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f33fae6ed697a38364e823b5eb3e81c04e420dda6df990566c4c8f7c39c46fd"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2 locations): packages/ui/src/App.tsx:781 \u00B7 packages/ui/src/App.tsx:842 \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/ui/src/App.tsx"},"region":{"startLine":781}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5810fd6aa56130982edc69ff4cc7b4e8fa7d7ea278cd95e1edaaeb861136991"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2 locations): packages/ui/src/pulls.tsx:1063 \u00B7 packages/ui/src/pulls.tsx:1097 \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/ui/src/pulls.tsx"},"region":{"startLine":1063}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ebb88f91ed0ccaf40166c64a7b655136dc11af05b0e3493096e0455b086030a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2 locations): packages/web/app/cli/page.tsx:569 \u00B7 packages/web/app/cli/page.tsx:644 \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/web/app/cli/page.tsx"},"region":{"startLine":569}}}],"partialFingerprints":{"codehealthFindingId/v1":"da45656f626edeb04bc0b7bc436a45c1a6b3a684c4dfd7d8d2e2ac1bee2b9265"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 9 locations): packages/web/app/diagrams/cache-hierarchy-svg.tsx:237 \u00B7 packages/web/app/diagrams/cache-service-architecture-svg.tsx:60 \u00B7 packages/web/app/diagrams/cache-service-architecture-svg.tsx:154 \u00B7 packages/web/app/diagrams/cache-service-architecture-svg.tsx:217 \u00B7 \u002B5 more site(s) not listed \u2014 the 3 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/web/app/diagrams/cache-hierarchy-svg.tsx"},"region":{"startLine":237}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfd9d3580bffde6d5c2cda372d258f880704940ff35d73264a2c564e0e11163f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2 locations): packages/web/components/marketing/comparison-section.tsx:130 \u00B7 packages/web/components/marketing/comparison-section.tsx:155 \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/web/components/marketing/comparison-section.tsx"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"f43729b2332866c7bcd7f354d23861f784ac8f2e4e50d1874e2c4f6763a0e2c5"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2 locations): packages/ui/src/App.tsx:912 \u00B7 packages/ui/src/App.tsx:928 \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/ui/src/App.tsx"},"region":{"startLine":912}}}],"partialFingerprints":{"codehealthFindingId/v1":"96b440c127a030cd2b5b378bacf3afdb0f26c617543248cbc89af5fa0f97fcfb"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (14 matched lines \u00D7 2 locations): packages/ui/src/browse.tsx:264 \u00B7 packages/ui/src/browse.tsx:339 \u2014 the two spans are one implementation copied and then locally edited \u2014 88 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/ui/src/browse.tsx"},"region":{"startLine":264}}}],"partialFingerprints":{"codehealthFindingId/v1":"626543b548567c591f732b3f3c7c2ed135c5e943c81b2ad9df06258fe319ef68"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2 locations): packages/ui/src/pulls.tsx:512 \u00B7 packages/ui/src/pulls.tsx:526 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pulls.tsx"},"region":{"startLine":512}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bb6b662b4e302b160ee08cfd5dbfa0da067553d9e8972e00ceab2269e697217"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2 locations): packages/web/app/diagrams/auth-flow-svg.tsx:45 \u00B7 packages/web/app/diagrams/auth-internals-svg.tsx:59 \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/web/app/diagrams/auth-flow-svg.tsx"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"745f919cf9555c756a718e9c40d2307e7066ae0002d24defffdf86ecad814894"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2 locations): packages/web/app/landing-page-client.tsx:267 \u00B7 packages/web/app/page.tsx:389 \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/web/app/landing-page-client.tsx"},"region":{"startLine":267}}}],"partialFingerprints":{"codehealthFindingId/v1":"69c8e6703cc94829524baf13415120ba18babd7762f582fef7adf624af1c69b3"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 7 locations): packages/web/components/blog/cache-visuals.tsx:145 \u00B7 packages/web/components/blog/cost-ledger-visual.tsx:120 \u00B7 packages/web/components/blog/gc-visuals.tsx:451 \u00B7 packages/web/components/blog/lazy-checkout-visuals.tsx:94 \u00B7 \u002B3 more site(s) not listed \u2014 the 7 copies are spread across 6 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/web/components/blog/cache-visuals.tsx"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"86d6f5c1113c84a3d97764bfd83da32fd9778659f595a0988133142912e30838"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2 locations): packages/web/components/marketing/hero-decorations.tsx:11 \u00B7 packages/web/components/marketing/testimonials-carousel.tsx:58 \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/web/components/marketing/hero-decorations.tsx"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"8cf9d238daed3fd22c76d514abe6c97ee0b56a959e9e468cd52d237cf88bbc87"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2 locations): packages/ui/src/App.tsx:866 \u00B7 packages/ui/src/App.tsx:882 \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/ui/src/App.tsx"},"region":{"startLine":866}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5d33874b5b517dae5d58a79065cee691721e9cbe00fa614480cdfe603edf388"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2 locations): packages/ui/src/browse.tsx:63 \u00B7 packages/ui/src/browse.tsx:204 \u2014 both copies are in the same file, so extract the block 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/ui/src/browse.tsx"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"efec7d47729ef9543616479381ee2bc6abbcbabe290adb7fba3b7c53a3962054"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2 locations): packages/ui/src/content-editor.tsx:539 \u00B7 packages/ui/src/content-editor.tsx: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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/content-editor.tsx"},"region":{"startLine":539}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa53e3ff5687a053aa76aceb0cff5b4a4ead90a92fbfe6e97eefe99470331b1a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2 locations): packages/ui/src/data-query.ts:143 \u00B7 packages/ui/src/data-query.ts:161 \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/ui/src/data-query.ts"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ba25d82ff32a0a8cbbb62e917b0ba512a93a1108d77f70076bac401cea8b9b8"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2 locations): packages/ui/src/release-form.tsx:305 \u00B7 packages/ui/src/release-form.tsx:523 \u2014 both copies are in the same file, so extract the block 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/ui/src/release-form.tsx"},"region":{"startLine":305}}}],"partialFingerprints":{"codehealthFindingId/v1":"e34ae4b1ad649bceff06a25a7cea322bb57f286ff69c27edd037d191efca642d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2 locations): packages/ui/src/settings.tsx:1121 \u00B7 packages/ui/src/settings.tsx:1196 \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/ui/src/settings.tsx"},"region":{"startLine":1121}}}],"partialFingerprints":{"codehealthFindingId/v1":"095e692a541344a87651adf521012bcb14c2d7a83574209c1aaa913c1d2c807f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 6 locations): packages/web/app/auth/page.tsx:347 \u00B7 packages/web/app/auth/page.tsx:369 \u00B7 packages/web/app/auth/page.tsx:539 \u00B7 packages/web/app/cache/page.tsx:450 \u00B7 \u002B2 more site(s) not listed \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/web/app/auth/page.tsx"},"region":{"startLine":347}}}],"partialFingerprints":{"codehealthFindingId/v1":"88c6282b83aae6fe5247c2b5b95df2a46ea19bbedf590009879676ba7bb67de9"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 4 locations): packages/web/app/auth/page.tsx:498 \u00B7 packages/web/app/auth/page.tsx:679 \u00B7 packages/web/app/cache/page.tsx:590 \u00B7 packages/web/app/remote-services/page.tsx:142 \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/web/app/auth/page.tsx"},"region":{"startLine":498}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f30758fe8dcf80f6135acda74e2a47e95a63432c3954cf82face04dd2aaddcb"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2 locations): packages/web/app/blog/page.tsx:114 \u00B7 packages/web/app/blog/page.tsx:151 \u2014 both copies are in the same file, so extract the block 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/web/app/blog/page.tsx"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"8da5d14827aa9157a14ce5303a5d4a79d8e540fdaa3b56c9b2b04426e12b0553"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2 locations): packages/web/app/diagrams/hero-architecture-svg.tsx:63 \u00B7 packages/web/app/diagrams/hero-architecture-svg.tsx:108 \u2014 both copies are in the same file, so extract the block 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/web/app/diagrams/hero-architecture-svg.tsx"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"25e6978f63a831ed46ea954599effd47ecd39de3b241470259584c9c05964b03"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2 locations): packages/web/components/blog/blog-process-player.tsx:329 \u00B7 packages/web/components/blog/git-architecture-player.tsx:344 \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/web/components/blog/blog-process-player.tsx"},"region":{"startLine":329}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0f0987ff88a6179e79ff1c2537f290d60824d0e3c5bd6ddad84a9fe007db0dc"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3 locations): packages/ui/src/App.tsx:659 \u00B7 packages/ui/src/settings.tsx:639 \u00B7 packages/ui/src/settings.tsx:806 \u2014 the 3 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/App.tsx"},"region":{"startLine":659}}}],"partialFingerprints":{"codehealthFindingId/v1":"faef1078d570f6d182fb70bdfca071443c708919cff9b8ea27be479f80d60c37"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2 locations): packages/web/app/api/install-ps1/route.ts:5 \u00B7 packages/web/app/api/install/route.ts:5 \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/web/app/api/install-ps1/route.ts"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0f5f97d238dce1a3862403167762ffb8bb36fbcda089d784e5b12340919e727"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2 locations): packages/web/app/cli/page.tsx:639 \u00B7 packages/web/app/remote-services/page.tsx:198 \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/web/app/cli/page.tsx"},"region":{"startLine":639}}}],"partialFingerprints":{"codehealthFindingId/v1":"4aa84f752bb2e995ed6e07229662698f7ec052b7ba58b9765bb412c4d31f937b"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2 locations): packages/web/app/diagrams/use-case-visuals.tsx:109 \u00B7 packages/web/app/diagrams/use-case-visuals.tsx:302 \u2014 both copies are in the same file, so extract the block 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/web/app/diagrams/use-case-visuals.tsx"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"d50ec6f97768d765c17f1f34d758e2a79cf247dc67fe3d6da6016d04ef32239a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2 locations): packages/web/components/blog/blog-diagrams.tsx:114 \u00B7 packages/web/components/blog/blog-diagrams.tsx:310 \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/web/components/blog/blog-diagrams.tsx"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"57549960410af35f9eee10aa47581a20e5775702e6efee391ae7a774ee55190c"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3 locations): packages/web/components/marketing/counter.tsx:55 \u00B7 packages/web/components/marketing/reveal.tsx:42 \u00B7 packages/web/components/marketing/typing-code.tsx:99 \u2014 the 3 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it. There is one copy in each of 3 separate files rather than several in one place, so check first whether these are sibling modules that each declare their own version of one shape \u2014 one per entity, per provider, per language. Where they are, no single extracted module collapses them: each module still has to be written, and what recurs is the TEMPLATE. The moves that do collapse a template are to generate these modules from the set they enumerate, or to replace the repeated construction with one factory each site calls with its own values \u2014 and where the set is the point, each module pinning one distinct thing, the repetition IS the enumeration and there is nothing to delete."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/web/components/marketing/counter.tsx"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"df3bdffde9e04c20f01af1ff44dd94730dcbdb53acb4ce026f1eb244bdfc14c0"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2 locations): packages/web/components/marketing/install-tabs.tsx:151 \u00B7 packages/web/components/marketing/typing-code.tsx:212 \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/web/components/marketing/install-tabs.tsx"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"b05410df38ffedbfd552fe5c056e28918a0fa81fee807084c553d7126da8b794"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (12 matched lines \u00D7 2 locations): packages/web/lib/library.ts:138 \u00B7 packages/web/lib/library.ts:186 \u2014 the two spans are one implementation copied and then locally edited \u2014 67 tokens are still identical, in the same order in both spans, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/web/lib/library.ts"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"d21e9fe53ae5476b476d0357d1eb777edd6e0124111fd39de5182ec73f0d5d9e"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3 locations): packages/ui/src/pulls.tsx:684 \u00B7 packages/ui/src/pulls.tsx:695 \u00B7 packages/ui/src/pulls.tsx:706 \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/ui/src/pulls.tsx"},"region":{"startLine":684}}}],"partialFingerprints":{"codehealthFindingId/v1":"41410d51ffee5fb3039b1cb11c66a8113577ded7b50f0f4213a642ecb3d87641"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): packages/ui/src/content-editor.tsx:590 \u00B7 packages/ui/src/content-editor.tsx:691 \u2014 both copies are in the same file, so extract the block 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/ui/src/content-editor.tsx"},"region":{"startLine":590}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f9dd3f0cf26c637c442a44bd9687112980adee620b85cd7d2f9894da64ee73f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): packages/web/components/library/first-workflow-learning-labs.tsx:330 \u00B7 packages/web/components/library/first-workflow-learning-labs.tsx:642 \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/web/components/library/first-workflow-learning-labs.tsx"},"region":{"startLine":330}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f3f6be626aa65b9fc1781618b679ead006d4126a0b41adc22da4877b00f31d8"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): packages/ui/src/pulls.tsx:365 \u00B7 packages/ui/src/pulls.tsx:1597 \u2014 both copies are in the same file, so extract the block 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/ui/src/pulls.tsx"},"region":{"startLine":365}}}],"partialFingerprints":{"codehealthFindingId/v1":"68f0c6c058c6b26964cf5d32fc3c6bf26cb8b197e036a975b8363b32879ab6bd"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3 locations): packages/ui/src/release-api.ts:89 \u00B7 packages/ui/src/release-api.ts:122 \u00B7 packages/ui/src/release-form.tsx:430 \u2014 the 3 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/release-api.ts"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"274f76e99a6450bc5afa0a1d6bced4bb321512b780c517337a393406312e05fc"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): packages/ui/src/settings.tsx:644 \u00B7 packages/ui/src/settings.tsx:811 \u2014 both copies are in the same file, so extract the block 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/ui/src/settings.tsx"},"region":{"startLine":644}}}],"partialFingerprints":{"codehealthFindingId/v1":"339672c079395b7dd129ba8e402fb050c5f26b991116adca3846a65e003027dc"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3 locations): packages/web/app/cache/page.tsx:329 \u00B7 packages/web/app/cache/page.tsx:342 \u00B7 packages/web/app/cache/page.tsx:355 \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":"packages/web/app/cache/page.tsx"},"region":{"startLine":329}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbd1ee15bd2a980741ef35e9c2395e490dc05f05c3b7d5392b8d1eac1d577f33"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): packages/web/app/cache/page.tsx:700 \u00B7 packages/web/app/cache/page.tsx:713 \u2014 both copies are in the same file, so extract the block 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/web/app/cache/page.tsx"},"region":{"startLine":700}}}],"partialFingerprints":{"codehealthFindingId/v1":"34d2dca187d97f1fa4c9ff69cd2ef4c9243ac6b79c5c46883bbbeec6e74e73c4"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3 locations): packages/web/app/diagrams/auth-internals-svg.tsx:96 \u00B7 packages/web/app/diagrams/auth-internals-svg.tsx:132 \u00B7 packages/web/app/diagrams/auth-internals-svg.tsx:168 \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":"packages/web/app/diagrams/auth-internals-svg.tsx"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"156687e576675864dccc9d4ff3ae841ad745583523d54b18a4a455e0c61ac26f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): packages/web/app/library/[slug]/page.tsx:333 \u00B7 packages/web/app/library/page.tsx:462 \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/web/app/library/[slug]/page.tsx"},"region":{"startLine":333}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e84427097bea1064ddf3e1314870880e11fc3cfa05ba199585e41cde69808fc"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3 locations): packages/web/app/library/[slug]/page.tsx:333 \u00B7 packages/web/app/library/page.tsx:462 \u00B7 packages/web/components/library/library-guide-filter.tsx:228 \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/web/app/library/[slug]/page.tsx"},"region":{"startLine":333}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3df8208506d5199dbcfd13c872b4534e05be4744799f242b928132a613e1235"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3 locations): packages/web/components/blog/lfs-compatibility-visuals.tsx:86 \u00B7 packages/web/components/blog/lfs-compatibility-visuals.tsx:266 \u00B7 packages/web/components/blog/lfs-compatibility-visuals.tsx:433 \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/web/components/blog/lfs-compatibility-visuals.tsx"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"87f5645fc60af1967e29f70f8b53cf5347dbb409c5b8d0a20ca11511853bd52b"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3 locations): packages/web/app/library/[slug]/page.tsx:333 \u00B7 packages/web/app/library/page.tsx:462 \u00B7 packages/web/components/blog/consistency-visuals.tsx:565 \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/web/app/library/[slug]/page.tsx"},"region":{"startLine":333}}}],"partialFingerprints":{"codehealthFindingId/v1":"b737d52ce9a361127018a2ec24dc7c6fc80aebd66df5c6dfaf92abe4379f6bec"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): packages/web/app/sitemap.ts:39 \u00B7 packages/web/app/sitemap.ts:48 \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/web/app/sitemap.ts"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ae7b056023ef6bceeeaaf56cab6e45fd3857ccc1247e484d3f105f53dacb6fa"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 18 locations): packages/web/components/blog/cache-visuals.tsx:154 \u00B7 packages/web/components/blog/cache-visuals.tsx:323 \u00B7 packages/web/components/blog/cache-visuals.tsx:508 \u00B7 packages/web/components/blog/consistency-visuals.tsx:126 \u00B7 \u002B14 more site(s) not listed \u2014 the 18 copies are spread across 10 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/web/components/blog/cache-visuals.tsx"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b9d4052262a8354e0d8f2c314ee86d00671a8b537c7132265eededddd04a007"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (7 matched lines \u00D7 2 locations): packages/ui/src/api.ts:379 \u00B7 packages/ui/src/api.ts:404 \u2014 the two spans are one implementation copied and then locally edited \u2014 68 tokens are still identical, in the same order in both spans, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/api.ts"},"region":{"startLine":379}}}],"partialFingerprints":{"codehealthFindingId/v1":"17243f8a61ddb6075ff3b1daa2f5347a036da372c0b82f7980dab3efc73ec758"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3 locations): packages/ui/src/content-editor.tsx:257 \u00B7 packages/ui/src/content-editor.tsx:537 \u00B7 packages/ui/src/content-editor.tsx:641 \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":"packages/ui/src/content-editor.tsx"},"region":{"startLine":257}}}],"partialFingerprints":{"codehealthFindingId/v1":"c15de21d00111209c54792f8adc5f00ba167f69c94993eb0ad59a43f470bfefc"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3 locations): packages/web/app/diagrams/auth-internals-svg.tsx:106 \u00B7 packages/web/app/diagrams/auth-internals-svg.tsx:142 \u00B7 packages/web/app/diagrams/auth-internals-svg.tsx:178 \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/web/app/diagrams/auth-internals-svg.tsx"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"e73fda2c84953924ba880c4c5d6e5ac6b3db4cc37a4dd8158a58151a7e43dff7"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): packages/web/app/landing-svgs.tsx:61 \u00B7 packages/web/app/landing-svgs.tsx:87 \u2014 both copies are in the same file, so extract the block 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/web/app/landing-svgs.tsx"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"25f0e0e2d19e08b8f204a0f34ebf0d8b3291dbb1fd8a5aadb535d1fca747026f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): packages/ui/src/App.tsx:80 \u00B7 packages/ui/src/App.tsx:86 \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/ui/src/App.tsx"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"f26a33b3b48bcbcafd4f17e97e345e9bbc0cee40ecfbe0fde929c999eef3f0c6"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): packages/ui/src/content-editor.tsx:90 \u00B7 packages/ui/src/repository-markdown.tsx:18 \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/ui/src/content-editor.tsx"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8175a319296207ec1d95ac59f8d3bfcf69b6d73a7b40afb9af5fd9c48879195"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): packages/ui/src/content-editor.tsx:255 \u00B7 packages/ui/src/git-import.tsx:31 \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/ui/src/content-editor.tsx"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"eaaa9426f7a75d8763e4e44f5f1d0e6d826d8112302c62da630a22ca347d5263"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (5 matched lines \u00D7 2 locations): packages/ui/src/data-query.ts:177 \u00B7 packages/ui/src/file-preview-model.ts:206 \u2014 the two spans are one implementation copied and then locally edited \u2014 53 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/data-query.ts"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"0544c353387a8317595e5f9ce0fcb882471efddc137853dd578c1b57c2d9d9b1"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3 locations): packages/ui/src/discussion-labels.tsx:172 \u00B7 packages/ui/src/pdf-preview.tsx:18 \u00B7 packages/ui/src/settings.tsx:932 \u2014 the 3 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it. There is one copy in each of 3 separate files rather than several in one place, so check first whether these are sibling modules that each declare their own version of one shape \u2014 one per entity, per provider, per language. Where they are, no single extracted module collapses them: each module still has to be written, and what recurs is the TEMPLATE. The moves that do collapse a template are to generate these modules from the set they enumerate, or to replace the repeated construction with one factory each site calls with its own values \u2014 and where the set is the point, each module pinning one distinct thing, the repetition IS the enumeration and there is nothing to delete."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/discussion-labels.tsx"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b6ecd7d81b90868ce1a133dbd8cdb381434289cd4123ef4513a9520d3e66472"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): packages/ui/src/file-preview.tsx:94 \u00B7 packages/ui/src/generic-file-preview.tsx:26 \u2014 the 2 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/file-preview.tsx"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"f43cec03dee0f80fb3c1cb0e444294cf841deabe33525150f32a0f4fb24c5504"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3 locations): packages/web/app/diagrams/auth-flow-svg.tsx:65 \u00B7 packages/web/app/diagrams/auth-flow-svg.tsx:97 \u00B7 packages/web/app/diagrams/auth-flow-svg.tsx:111 \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":"packages/web/app/diagrams/auth-flow-svg.tsx"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"18ba28facad3833db9e289f28b0e740c559f7726d792e059def06287173c938b"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3 locations): packages/web/components/blog/blog-process-player.tsx:452 \u00B7 packages/web/components/blog/git-architecture-player.tsx:587 \u00B7 packages/web/components/blog/push-pipeline-visuals.tsx:385 \u2014 the 3 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it. There is one copy in each of 3 separate files rather than several in one place, so check first whether these are sibling modules that each declare their own version of one shape \u2014 one per entity, per provider, per language. Where they are, no single extracted module collapses them: each module still has to be written, and what recurs is the TEMPLATE. The moves that do collapse a template are to generate these modules from the set they enumerate, or to replace the repeated construction with one factory each site calls with its own values \u2014 and where the set is the point, each module pinning one distinct thing, the repetition IS the enumeration and there is nothing to delete."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/web/components/blog/blog-process-player.tsx"},"region":{"startLine":452}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ca2c84a5bbc8abafc2a0ebcfb9180aa64a78fd1935ad34bcbd61fdca6f3413a"}},{"ruleId":"R11","level":"warning","message":{"text":"Boundary violation [package:relative-cross-package]: packages/ui/src/App.tsx:78 reaches into another package with a relative path (../../web/crab.optimized.svg) \u2014 import the package by name instead."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/App.tsx"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"a657eb853cab576bec75a13ffa5213ad0805833b15ef39655826fa0a07d1c22e"}},{"ruleId":"R11","level":"warning","message":{"text":"Boundary violation [package:third-party-deep-import]: packages/ui/src/duckdb-query.ts:2 imports @duckdb/duckdb-wasm/dist/duckdb-mvp.wasm?url, reaching past a declared dependency\u0027s public entry into its build output \u2014 that path is the package\u0027s toolchain layout, not its API, and a minor version bump can relocate it with no semver signal. Import from the package\u0027s documented entry point instead."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/duckdb-query.ts"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"704dc8b51e2e05778d856053b5fdfe6c20adbbaa2bd12c66eabf5283659bcd68"}},{"ruleId":"R11","level":"warning","message":{"text":"Boundary violation [package:third-party-deep-import]: packages/ui/src/duckdb-query.ts:3 imports @duckdb/duckdb-wasm/dist/duckdb-browser-mvp.worker.js?url, reaching past a declared dependency\u0027s public entry into its build output \u2014 that path is the package\u0027s toolchain layout, not its API, and a minor version bump can relocate it with no semver signal. Import from the package\u0027s documented entry point instead."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/duckdb-query.ts"},"region":{"startLine":3}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ed7fd0b85b9a1844c6a40e809bd30d7cec01a7aeef702ae78350ad6288fad42"}},{"ruleId":"R11","level":"warning","message":{"text":"Boundary violation [package:third-party-deep-import]: packages/ui/src/pdf-preview.tsx:8 imports pdfjs-dist/build/pdf.worker.min.mjs?url, reaching past a declared dependency\u0027s public entry into its build output \u2014 that path is the package\u0027s toolchain layout, not its API, and a minor version bump can relocate it with no semver signal. Import from the package\u0027s documented entry point instead."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pdf-preview.tsx"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd50c95ce5f2c482c4a6ed9b6b308dc93c6a7534e1b0741e7b51bcb0cf6c841b"}},{"ruleId":"R11","level":"warning","message":{"text":"Boundary violation [package:third-party-deep-import]: packages/ui/src/sqlite-query.worker.ts:2 imports sql.js/dist/sql-wasm.wasm?url, reaching past a declared dependency\u0027s public entry into its build output \u2014 that path is the package\u0027s toolchain layout, not its API, and a minor version bump can relocate it with no semver signal. Import from the package\u0027s documented entry point instead."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/sqlite-query.worker.ts"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"1711dbd2fc0d4a85ab4c7ea49a9fb44cbbd553d6ce3f0dcfcfbf1a68039f1465"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 60, cognitive 57): (anonymous) has cyclomatic complexity 60 and cognitive complexity 57; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse 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/ui/src/App.tsx"},"region":{"startLine":865}}}],"partialFingerprints":{"codehealthFindingId/v1":"db093f6b8f1a63690c9f164e8ef3fdb4ea481ba760cd766614d0f53e27be84c4"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 50, cognitive 76): (anonymous) has cyclomatic complexity 50 and cognitive complexity 76; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/tests/browser/repository.e2e.ts"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"375115c2e5dfc12ab3ec59a8c81711ca167e80ee9b5a00fc3c12ccc2e3fb6072"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function RepositoryPage (cyclomatic 47, cognitive 41): RepositoryPage has cyclomatic complexity 47 and cognitive complexity 41; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse 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/ui/src/App.tsx"},"region":{"startLine":511}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c2660566776072fc968ff3a3ee159fa2c2a763a0242b05ae17ff9d9bd3ee07a"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 35, cognitive 46): (anonymous) has cyclomatic complexity 35 and cognitive complexity 46; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/tests/browser/pulls.e2e.ts"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"79f75ceace8285f92f0356d2688f2581513bdeb144f7cb850c7d9dfaceba9a2f"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 35, cognitive 29): (anonymous) has cyclomatic complexity 35 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/ui/src/content.tsx"},"region":{"startLine":269}}}],"partialFingerprints":{"codehealthFindingId/v1":"92a806bd5961158dce9f8e3047baaa2f0221a2a5873371fd70a94740f307268f"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function DataWorkbench (cyclomatic 31, cognitive 30): DataWorkbench has cyclomatic complexity 31 and cognitive complexity 30; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/data-workbench.tsx"},"region":{"startLine":301}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2f1f52602123bb8ffd8796f0882d6376ae509066f162d499c8ee73553efe948"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function ReviewThreadCard (cyclomatic 28, cognitive 17): ReviewThreadCard has cyclomatic complexity 28 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/ui/src/pulls.tsx"},"region":{"startLine":1139}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1468a51f49c10905dd0c535aaa0710ddc3b6c91a8c58b7998712242b7f8dacd"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function MergePanel (cyclomatic 25, cognitive 25): MergePanel has cyclomatic complexity 25 and cognitive complexity 25; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pulls.tsx"},"region":{"startLine":1761}}}],"partialFingerprints":{"codehealthFindingId/v1":"f77000a53b41d92164ab80bf0708e33ca5bd9406f82e891e504b54a104d25330"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 22, cognitive 19): (anonymous) has cyclomatic complexity 22 and cognitive complexity 19; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pulls.tsx"},"region":{"startLine":651}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c662f4e1f6677a96c74db1ea4e263ed75ef210adac0041e953ac47852fa8145"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 21, cognitive 35): (anonymous) has cyclomatic complexity 21 and cognitive complexity 35; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/tests/browser/releases.e2e.ts"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c33367ff195097cf337684d03c979eda7781e15967f2cbc0e9631b456ecb271"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function statementBoundary (cyclomatic 21, cognitive 33): statementBoundary has cyclomatic complexity 21 and cognitive complexity 33; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/data-query.ts"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"8648b01d5cf6864d782dbf6d476e82b9997ccbe0a2f0a50b93590bc660a5e00e"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function HeroSection (cyclomatic 21, cognitive 20): HeroSection has cyclomatic complexity 21 and cognitive complexity 20; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/web/components/marketing/hero-section.tsx"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"119cb1cd28d779b2edc7dbfb2e37d47be2ea684ec5973e3e834360bdf87274c6"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function pull (cyclomatic 20, cognitive 18): pull has cyclomatic complexity 20 and cognitive complexity 18; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/tests/browser/pulls.e2e.ts"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"031f34a2dd762043283b00f071c6c428b6c38cf534094c72e49fe3def3a22944"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 20, cognitive 12): (anonymous) has cyclomatic complexity 20 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/web/components/library/knowledge-check.tsx"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c4332db679aa7be579c92d3de2dd4bbe67e28fea3c22530b32123f34d750196"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function App (cyclomatic 17, cognitive 16): App 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/ui/src/App.tsx"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"847bd4bf41ef727d8cf6a582a4e72ecef0b12ea689f830c84a5aedf892da9798"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function GitImport (cyclomatic 17, cognitive 16): GitImport 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/ui/src/git-import.tsx"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f971bc8f4608449a355090707725f9f1b42909e8f1cdad8b5b6b88b6447c232"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function NewRelease (cyclomatic 17, cognitive 14): NewRelease has cyclomatic complexity 17 and cognitive complexity 14; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/release-form.tsx"},"region":{"startLine":375}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f966e31e1fec46dbdcbfc443654c1aee9e41a1f69a3f91fd1c7294e203cf734"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function RefsPage (cyclomatic 16, cognitive 15): RefsPage 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/ui/src/refs.tsx"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"25400e6be726109b41e121cc6e0dcae3447bf95473e84a99204c83a68794d117"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function MemberSettings (cyclomatic 16, cognitive 14): MemberSettings has cyclomatic complexity 16 and cognitive complexity 14; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/settings.tsx"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"5885e208533e64d44674404ac8226b0c6e7201b457cb2367b7630ece0fc613b9"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function IssueDetail (cyclomatic 16, cognitive 13): IssueDetail has cyclomatic complexity 16 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/issues.tsx"},"region":{"startLine":304}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9046d064e91136f904994c143ea75bd21757a2770fb18d9d98581b0d0eca975"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function RevisionPicker (cyclomatic 16, cognitive 12): RevisionPicker has cyclomatic complexity 16 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/revision-picker.tsx"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fb4c455f458fd4139d237708dbec5856dc97c2ad4071db2e53f83426e987c06"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function run (cyclomatic 15, cognitive 17): run has cyclomatic complexity 15 and cognitive complexity 17; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/discussion-mutations.tsx"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec1456c8df5d76399ba07f44b38ceb898bd568754657feb8ff1b76352c5b1d6d"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function repositoryTarget (cyclomatic 15, cognitive 17): repositoryTarget has cyclomatic complexity 15 and cognitive complexity 17; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/repository-markdown.tsx"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d9d617acdc9926c64ce1490e71c25601abd614c1122f3a7e0c657a19db5e293"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function NewPull (cyclomatic 15, cognitive 10): NewPull has cyclomatic complexity 15 and cognitive complexity 10; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pulls.tsx"},"region":{"startLine":462}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9b778d472e8b0b362715eb796d661f1f0fefaaec1b79f20ba27bc303cda8cdb"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function compareCells (cyclomatic 14, cognitive 17): compareCells has cyclomatic complexity 14 and cognitive complexity 17; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/data-explorer.tsx"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fc0f5b8a42a93e27d32f6e4029f0a4410a546eff5d02eded7940de4799a54d3"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function codeSymbolLanguage (cyclomatic 14, cognitive 13): codeSymbolLanguage 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/ui/src/code-symbols.ts"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"5712216a5441e69f8844816a6e7a04d4a79dfe2fd1e108bf7a438a75de9ceb26"}},{"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/ui/src/content.tsx"},"region":{"startLine":974}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2a3e1d6c1387421b03843c0eebbcdaec17f1d0936b6fe41ffbfca74171dc340"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function DefaultBranchSettings (cyclomatic 14, cognitive 9): DefaultBranchSettings has cyclomatic complexity 14 and cognitive complexity 9; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/settings.tsx"},"region":{"startLine":587}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1cad79e5a2cb03cc81ee800f5b15238306e8f7e2d49fdefa7dd096bd730bfc6"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 13, cognitive 19): (anonymous) 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/ui/tests/browser/labels.e2e.ts"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1d8f13412c621251a4eb133073f35f7f1d618716ca32aad4affdd44eda02526"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function clonePath (cyclomatic 13, cognitive 12): clonePath 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/ui/src/git-import-source.ts"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"6646c63e074cc0ac6cd150e5c4ac224e033a8d102a1641a5144f14226c7cfecd"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function RefRow (cyclomatic 13, cognitive 12): RefRow 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/ui/src/refs.tsx"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa64a12af228ae8f6361e7b87dc5170eaebd3ee0360b121cdf0514d43147a6dc"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function RepositoryTree (cyclomatic 13, cognitive 12): RepositoryTree 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/ui/src/tree.tsx"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"c95783548e67671e79bd37c8c9ac9222d2dd9acaa4ec1790e0fbf6c2d15d527d"}},{"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/web/components/blog/git-architecture-player.tsx"},"region":{"startLine":488}}}],"partialFingerprints":{"codehealthFindingId/v1":"134cdb0bb68f5796b9b98201c34bf1381291f5cc542c32c6da5e2fdb41111b38"}},{"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/web/components/blog/git-architecture-player.tsx"},"region":{"startLine":524}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1ef854077c7f6beef1e16ee38c89d6e26a854d06e1927c157bee4200fad7ab1"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function Releases (cyclomatic 13, cognitive 11): Releases 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/ui/src/releases.tsx"},"region":{"startLine":432}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fe571686fb1be81eef87a6d985d9cb5b2b8e5fb79d4aa4d25cbfe2f73db1ff6"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function replaceSelectedLines (cyclomatic 13, cognitive 9): replaceSelectedLines has cyclomatic complexity 13 and cognitive complexity 9; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pull-review-model.ts"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7d30f0ab2da68976822d92197d27a59553181992ac47193f53a5439497704b6"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function containingName (cyclomatic 12, cognitive 33): containingName has cyclomatic complexity 12 and cognitive complexity 33; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/code-symbols.worker.ts"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"30ae57cd95eb63dbe5403ab950c99d0c793728502e854ae7cffc144a13ab3d1d"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function formatMarkdown (cyclomatic 12, cognitive 12): formatMarkdown 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/ui/src/discussion.tsx"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"0afb24ef1b6aed937d4840e4aafea0397d83e229edfe6550e4011358e2007828"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function ArchiveSettings (cyclomatic 12, cognitive 11): ArchiveSettings 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/ui/src/settings.tsx"},"region":{"startLine":776}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb4d3b03475a92aeecf6e23c82ffa772eb4da12aaee11b204b3069527e1a9e18"}},{"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/web/app/pricing/page.tsx"},"region":{"startLine":372}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea72344366452daf7150af3eec6188130b2fb31e28d58c8ed9f8ceba1041eb35"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function GitAccess (cyclomatic 12, cognitive 10): GitAccess 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/ui/src/git-access.tsx"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"4800fed43a0cc64ed18f48b63daac0f392894750af0038ba794b3886c6b6ad54"}},{"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/web/lib/library-guides.ts"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb0f9fe9b379eb2949f42cad1f918e813f1f3da2cef684862621266422fac74a"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function PullReviewThreads (cyclomatic 12, cognitive 9): PullReviewThreads has cyclomatic complexity 12 and cognitive complexity 9; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pulls.tsx"},"region":{"startLine":796}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e27f277d147b1fef6c88537b8ff45167501d98544c05592b9d5f2e23243ea92"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 11, cognitive 19): (anonymous) has cyclomatic complexity 11 and cognitive complexity 19; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/tests/browser/discussion.e2e.ts"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"53ce0eacbc75ac59b91df1c490068a7f1cf6e28de6c6d4186316b6abd04b1fb0"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function checkPage (cyclomatic 11, cognitive 15): checkPage 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/web/scripts/check-links.mjs"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"358a5ccaf6fc395bae7ee222e9b89ab6e52ca097da38ee0afa9ecc97dabfd98b"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function validateCalculatorInput (cyclomatic 11, cognitive 14): validateCalculatorInput 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/web/lib/pricing-calculator.ts"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"53dc4f2a1713f116b5d05b4237619f05edda106a249c8d9a616bee637006e3b5"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function change (cyclomatic 11, cognitive 11): change 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/ui/src/git-access.tsx"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"e75311d1f3133f4faa5e4a0ab1d5cceb63fe0a0b8f7ea46233720931a09722ab"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function CommitPanel (cyclomatic 11, cognitive 10): CommitPanel 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/ui/src/content-editor.tsx"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"a28878b70aacb103efe42fbba4e3ad1e648d57f541278600065dd7037fcb1d90"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function signature (cyclomatic 11, cognitive 10): signature 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/ui/src/generic-file-preview.tsx"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed6d9cbf5f3d2364b8a8b48cd097ac9e55f005bcb08e06033f51c9a3e1236e3c"}},{"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/ui/src/issues.tsx"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"98e7d4eca80fe9a78734e4e9f2a01910f71529aabd72d298d78c579d0e8ff89f"}},{"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/ui/src/pulls.tsx"},"region":{"startLine":1998}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e98be2c37ff27a420566a059bd88050f839a844d419ccfaa440a45e9f97d6e2"}},{"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/ui/tests/browser/repository.e2e.ts"},"region":{"startLine":445}}}],"partialFingerprints":{"codehealthFindingId/v1":"91ba02b86350146283580b463ef6b18eefd64baba846181fa71dc38b03f105d9"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function MountWriterOwnershipLab (cyclomatic 11, cognitive 10): MountWriterOwnershipLab 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/web/components/blog/mount-visuals.tsx"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"60fb78fb843cbad8f2030724853214ab74da55a25cd19f06655fda7347f62775"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function LineRow (cyclomatic 11, cognitive 10): LineRow 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/web/components/marketing/typing-code.tsx"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"8380d51ad79990413361dd1b0e785c7af82bc5220e46483939c83ecff90707a2"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function parseNumpyHeader (cyclomatic 11, cognitive 9): parseNumpyHeader 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/ui/src/file-preview-model.ts"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc3f5092dc572a9033e4eb45ac98ddfe9cecb7f3d8a1c4cfe000cdb77b6148f6"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function ReleaseCard (cyclomatic 11, cognitive 9): ReleaseCard 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/ui/src/releases.tsx"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"9afc005e9e34da5ba9d0b5e049dc0fc988209ba121e9d1b39c3a11393ea73abe"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/ui/src/pulls.tsx: 2190 lines of code: packages/ui/src/pulls.tsx has 2190 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/ui/src/pulls.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"583406b45881a9906f5293c16839d2f51d817039d613ba9189aae13b88ea1c1d"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/ui/src/App.tsx: 1350 lines of code: packages/ui/src/App.tsx has 1350 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/ui/src/App.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9819cc7cb224490d18db0c56e0addc0c637f1ce32c930782260b3bda0e0d6254"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/ui/src/settings.tsx: 1188 lines of code: packages/ui/src/settings.tsx has 1188 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/ui/src/settings.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee3dab076e9a65bef32ce40e599e32f163c8c80c7f740c631a1c5d1b2786ee78"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/ui/src/content.tsx: 1066 lines of code: packages/ui/src/content.tsx has 1066 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/ui/src/content.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"66642daee1ccf2967006787eab9544a91bd2d7ddc6931debfef0eb6dac9f2fb7"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/web/components/blog/push-pipeline-visuals.tsx: 847 lines of code: packages/web/components/blog/push-pipeline-visuals.tsx has 847 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/web/components/blog/push-pipeline-visuals.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2d7075f24a64b0a54ebb6c200c6295e37b7d75576688bc2a6f3e5b871d9c4e4"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/web/components/library/first-workflow-learning-labs.tsx: 810 lines of code: packages/web/components/library/first-workflow-learning-labs.tsx has 810 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/web/components/library/first-workflow-learning-labs.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ad7e89686fc4b427baf60e6864f75a14b28b97c2f53625f57c9609e1cd2e96e"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/ui/src/issues.tsx: 785 lines of code: packages/ui/src/issues.tsx has 785 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/ui/src/issues.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"eef0268f781d568818f4dc7edd5478ac3e0a6f2c47adec72efcd73ae00f73bd0"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/web/app/cache/page.tsx: 730 lines of code: packages/web/app/cache/page.tsx has 730 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/web/app/cache/page.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1d4e86b795ef2060355f90df1a389cb24c76724760e500ca86890fd2c7803ae"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/ui/src/content-editor.tsx: 725 lines of code: packages/ui/src/content-editor.tsx has 725 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/ui/src/content-editor.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b91faa4f3d2301c53bfb9077db26d87c84f3b6be5f869af72dc6009bdea1dfe6"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/ui/src/data-workbench.tsx: 719 lines of code: packages/ui/src/data-workbench.tsx has 719 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/ui/src/data-workbench.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b13f630db231c3681adcccef86dc9f742e651755da45e98bf47a5720d2543a2b"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/web/app/cli/page.tsx: 698 lines of code: packages/web/app/cli/page.tsx has 698 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/web/app/cli/page.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c72bd27702741cf2b97f8300e5c0eb746dd174eb876224425c0c49c308f66428"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/web/app/auth/page.tsx: 691 lines of code: packages/web/app/auth/page.tsx has 691 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/web/app/auth/page.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3807634c4525f2b42f96d3409c7116c17317e0e91c924fede2285cf6c3216a2b"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/web/components/blog/blog-diagrams.tsx: 661 lines of code: packages/web/components/blog/blog-diagrams.tsx has 661 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/web/components/blog/blog-diagrams.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab7a054a769e21e54a518b72236afa8761047621344f1d2435847fb81eb4edff"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/web/app/pricing/page.tsx: 625 lines of code: packages/web/app/pricing/page.tsx has 625 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/web/app/pricing/page.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"aaf5be6f8f63baf3a435fe26d0bed614e81c6c1c3d16be6155e84502962d0923"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/web/app/diagrams/use-case-visuals.tsx: 622 lines of code: packages/web/app/diagrams/use-case-visuals.tsx 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/web/app/diagrams/use-case-visuals.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0934ee93179369389b1b9088dc871e74da834d43877d2041854936af6a8d2882"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/web/components/blog/lazy-checkout-visuals.tsx: 613 lines of code: packages/web/components/blog/lazy-checkout-visuals.tsx has 613 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/web/components/blog/lazy-checkout-visuals.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"62e15770ce76531d82086f63c6412ece78aecc6053ee0cd0cb0c26ad15b86d63"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/web/components/blog/git-architecture-player.tsx: 591 lines of code: packages/web/components/blog/git-architecture-player.tsx has 591 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/web/components/blog/git-architecture-player.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"933f736ac3690cd7ce93d6db39ba87b82e28a693c59c38e8fdafcea8447ff257"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/web/components/library/ml-workflow-visuals.tsx: 590 lines of code: packages/web/components/library/ml-workflow-visuals.tsx has 590 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/web/components/library/ml-workflow-visuals.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a551f89df714c3675a3a86395b9492cb7b81139416cb842d3ff823ba80d43b62"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/web/components/blog/cache-visuals.tsx: 553 lines of code: packages/web/components/blog/cache-visuals.tsx has 553 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/web/components/blog/cache-visuals.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a8b2b8b77ec14b87dfa3fb4612f89e730d9a551b049304499e935b6f2566e71"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/ui/src/file-preview.tsx: 551 lines of code: packages/ui/src/file-preview.tsx has 551 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/file-preview.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"314f185e449bc053e8dfaa8110376ca795f056cea0def4a3b264b778cbfc4d01"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/web/components/blog/consistency-visuals.tsx: 548 lines of code: packages/web/components/blog/consistency-visuals.tsx has 548 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/web/components/blog/consistency-visuals.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"86aaf111a010c4eeedc4e10c3fc6dcc7039c6f7473c1af491bfbe8b432d2698e"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/ui/src/release-form.tsx: 546 lines of code: packages/ui/src/release-form.tsx has 546 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/release-form.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ec5ac3261a823d74e9fdd540fd2400ab996a492c3b3dd593aa3781c73533dbf"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/web/components/blog/reconstruction-visuals.tsx: 543 lines of code: packages/web/components/blog/reconstruction-visuals.tsx has 543 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/web/components/blog/reconstruction-visuals.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a9bec557313ae0093e31904f529e81f5bab297e22b363f2b76155e237e9d847"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/web/components/blog/deduplication-visuals.tsx: 533 lines of code: packages/web/components/blog/deduplication-visuals.tsx has 533 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/web/components/blog/deduplication-visuals.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"22dcafdfe3f7105403eef1b2fa74e8a21d018f1555feb7f41888e6b0394ee5cd"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/web/components/blog/gc-visuals.tsx: 531 lines of code: packages/web/components/blog/gc-visuals.tsx has 531 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/web/components/blog/gc-visuals.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"04454ef84e540be76e241ea7e44be2d6f40ee268abadc13c4fceea5fff26e79a"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/ui/src/releases.tsx: 496 lines of code: packages/ui/src/releases.tsx has 496 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/ui/src/releases.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"479a04f8d9f641199c2921296e5bc2aed31c71512beb6e5529c9a70459215fbf"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/web/components/blog/lfs-compatibility-visuals.tsx: 491 lines of code: packages/web/components/blog/lfs-compatibility-visuals.tsx has 491 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/web/components/blog/lfs-compatibility-visuals.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f974ce0699286f536c13b150392084837b698e0cc0e3aa63ae9a36e8419ce2d"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/web/components/blog/large-file-scale-explorer.tsx: 479 lines of code: packages/web/components/blog/large-file-scale-explorer.tsx 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/web/components/blog/large-file-scale-explorer.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b9f0e94f6da242d2efed9a54c1f9b90b86d10ed6f1be25c6038a0334235996e"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/web/app/use-cases/page.tsx: 478 lines of code: packages/web/app/use-cases/page.tsx has 478 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/web/app/use-cases/page.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5729c5841fd690523f712128e4dd7f762195ebe7a18be88c5e3cc22c1a506e64"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/web/components/blog/blog-process-player.tsx: 475 lines of code: packages/web/components/blog/blog-process-player.tsx has 475 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/web/components/blog/blog-process-player.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c12e8b681053e8da6dae6be5d7197d140918f432840ae9ee1e6f20b3330049d5"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/web/app/library/page.tsx: 463 lines of code: packages/web/app/library/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/web/app/library/page.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"439e3a01887120a158c966b3020f9cae993a69920617a48608a18d2763e2c6db"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/web/app/page.tsx: 445 lines of code: packages/web/app/page.tsx has 445 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/web/app/page.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b67f2bf94da4153a610be61718564b69df99fe019b37fd643b96a59bd2309ce"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/web/components/blog/mount-visuals.tsx: 436 lines of code: packages/web/components/blog/mount-visuals.tsx has 436 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/web/components/blog/mount-visuals.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3bb51c252721768b0c19f71a4f34acacacfca2afb90d0864f5d851dd899f077"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/ui/src/api.ts: 421 lines of code: packages/ui/src/api.ts has 421 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/ui/src/api.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c84fc57ce39dc9c3f4c69fab58c616540ec7d2614d2da20480453c3f776c54fe"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/web/components/blog/blog-detail-diagrams.tsx: 419 lines of code: packages/web/components/blog/blog-detail-diagrams.tsx has 419 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/web/components/blog/blog-detail-diagrams.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"13e5da7b295df3b399491cd427a93062a5474073ae88baa42af75abcfa015734"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/web/app/library/[slug]/page.tsx: 409 lines of code: packages/web/app/library/[slug]/page.tsx has 409 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/web/app/library/[slug]/page.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6da5e4e5a54f49e6f5ba89ba83d601ae8926edfb01d444d235fc2a5c0d3a62bf"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/ui/src/discussion-labels.tsx: 403 lines of code: packages/ui/src/discussion-labels.tsx has 403 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/ui/src/discussion-labels.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f77d16731b9608b416352716f93da4db139321c746bc8bd4e0ace096cf737c95"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/ui/src/tree.tsx: 401 lines of code: packages/ui/src/tree.tsx has 401 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/ui/src/tree.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d2108359d47ea18a1b131d0df4d64702cc92e8998b27ca7a2274b87acb58f0b"}},{"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/web/components/blog/push-pipeline-visuals.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd34641eced00b12f673775c84681e0a963a2a74ccc5ea15e35923caeb9e7062"}},{"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/web/components/library/first-workflow-learning-labs.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6914f00f2c5fa7a80826e612febcaa2925a4c7bcbb883f4ee75f1f0b50b618df"}},{"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/web/app/cache/page.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"daf642fb80e9d606087a475d5d1bd121f74c9c703365abec483990c396a35751"}},{"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/web/app/auth/page.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"809cc1230e8f726c57b177e94dcccdaef6c3b47d62575a70e871284addd7eb51"}},{"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/web/app/cli/page.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c0e31e7b6892d7a42877b504eb3850f84f178b3540179f92787c099604e1f0d"}},{"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/web/components/blog/blog-diagrams.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ca609b5b0eeecafa9f77991e493bb2cf58481c5c1770b0b605a5dada102d8df"}},{"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/web/app/pricing/page.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc30510cbc4a2846e853aa279cae12b6ae157ac76877e3c427696d183edb83ac"}},{"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/web/app/diagrams/use-case-visuals.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa5124c6ec66cf93d63d946b0189a4afb3fdc3fe5f0a859500d878edbdb35ea3"}},{"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/web/components/blog/lazy-checkout-visuals.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"168cf97e5c1e247989987a61a72169bd846ea69406f2e4b1aea004dccd59f422"}},{"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/web/components/blog/git-architecture-player.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"42119ef1a354dca32f00d47989c17153afb3e205f0231865a1b0887551699180"}},{"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/web/components/library/ml-workflow-visuals.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8f5ae5122b367555cc201700322dfd393c6576c84d532a8343b5619f0655eba"}},{"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/web/components/blog/cache-visuals.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"815dc7dfd5de6401db42aaee5fbbb3c5383803c6450174e0a2dcad12736428a3"}},{"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/web/components/blog/consistency-visuals.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"804c05dc52569d7b0f5554ce2e8a9aec474883374e9ea79de2d4f8b162f1a9d6"}},{"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/web/components/blog/reconstruction-visuals.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"801ee404b9f541ae1671626b5bfb160664380a902f72b2a311243e46009e63e8"}},{"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/web/components/blog/deduplication-visuals.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f1199ccd0b04071dde4e26a36f091838facc9aff8774f183904e8277bd6a733"}},{"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/web/components/blog/gc-visuals.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c99e5ccd4b4f93de65c85351b9569a51f3ddd2a303e2324e3aa704391679d8e8"}},{"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/web/components/blog/lfs-compatibility-visuals.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"55b5a8bf132712697bf288bbc56262123e9ba7517b624a493037a979691d52c5"}},{"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/web/components/blog/large-file-scale-explorer.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"03450959efd54ba52357876136b76683554ea2d3025ae4b618c9c308cc670760"}},{"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/web/app/use-cases/page.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f648258285a2f9d8de9731622a2c0bb41d39ba8b498ea65198201e27ee04144"}},{"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/web/app/library/page.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5919c50335bbf3f9263c1f3b7bf915ebc28f0b53dc91c75c5b11348f20ee7b90"}},{"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/web/components/blog/blog-process-player.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6662d1b7d10a864c86f35ca87dd0466d8be56bee6fdc0070834d7eeff9f1aa7"}},{"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/web/app/page.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d36ed5b993f62b2b5f1b1c0cc9db1c28b52961862d2e20b3c0c28727508122e"}},{"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/web/components/blog/mount-visuals.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1939da9508dfcdadccfb0d1f0575d3a5f05bd79b9e913e8b8b8a2c275c8d2925"}},{"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/web/app/library/[slug]/page.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ff93f900ffc4a545d10d601fdc4ddd7a4b2b94e3213bf2121e43b322e66f450"}},{"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/web/components/blog/blog-detail-diagrams.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"af4095b44f6fb4e910d96f12fe84bab497a8ab890e695ecd9e25b61a0ac8e97a"}},{"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/web/components/blog/tiering-visuals.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5b5a51df69dfcd2e250bdf282ba2d5afc556476f3d36abc2a985b2da3e8b078"}},{"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/web/app/terms-of-service/page.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b434081f1293f27a7847eca7be1b262d29e6ff4873cbddff18a7a519dd1a5e4f"}},{"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/web/components/pricing/cost-calculator.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"08f3f441538ccf6795090b85234726a9856436ddb4197d80b877721a7dc6a5e4"}},{"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/web/app/landing-page-client.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2d8ebda9f53ef2cee8e93e4685aadeeb0e0d32178f6af87a457580b8fe02545"}},{"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/web/app/diagrams/cache-service-architecture-svg.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2879a9262593de9320d2501b25ffe5b7e0129daef3894c84663fd6269bb243e7"}},{"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/web/app/diagrams/cache-hierarchy-svg.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c3f6db3c53c21d739bf5407f6b0080fab403add741d89138e7d11dac4fac500"}},{"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/web/app/diagrams/remote-helper-flow-svg.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5cfabdf97c68802b5edfc1046969d86aa23c7758e27347e37fbaf20567089ae5"}},{"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/web/components/library/crab-lfs-direct-storage-lab.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c01d9e6edd960542b24ae1f7da8b112cffd3e67535a73a61ba73bb8db09f783"}},{"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/web/app/privacy/page.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ff0c21c5f3cef778ec49d335f3ac1659af83bc4d6eb8ef94750a2cd1b07c836"}},{"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/web/components/blog/cost-ledger-visual.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1974506b542ae6c55646e49ff90e55d486107f6c2dac572f15cc00e095d444c"}},{"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/web/components/ui/dropdown-menu.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a76264154c2c69db935b4892fc31a4f7e6a8f1857a9bc13a4bc0711c4f432498"}},{"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/web/components/marketing/comparison-section.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"36ef1c0b5d75d6e1d89db569d131dcaaca5f7f317b62c5c772e17239984d3588"}},{"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/web/app/diagrams/auth-internals-svg.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0f11e864d1e9fa0ddccfd7b39d682825fe2efcc43a6554326787f1f6f4c21ba"}},{"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/web/components/library/library-guide-filter.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad36d985d60bd284eda4ecc4f83a401c6eff31600eea80b3755a2f0f2ca1c1b2"}},{"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/web/components/marketing/typing-code.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5be0d284d16a17e8b7f13c4c97b6a0d7df658d3a570018c53f1d936b27bce12"}},{"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/web/components/blog/crab-introduction-workbench.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b938582f73ff07dcf5ae7662ea25fe72d1f42a532be84fa346d51a0b2270159"}},{"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/web/components/library/workflow-command-atlas.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1ffc9ad1266dab3df3ef1c3a90fdb416995416ddd89f7aae93fb0cb7bd80dc0"}},{"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/web/mdx-components.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e14a22b679d01c040a44e27abbe29625de30d830a362f3cbb8d6b9825b4733a"}},{"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/web/app/blog/[slug]/page.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7c0c3fb55bfaa53127bfa8b0d36ed13c47e7c90aee77b267d3a9c57431c2ee6"}},{"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/web/app/remote-services/page.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"80aea55fe6e4cc3d5eb83d002d6bfd73f5edde155161bc0c5bb42ee827abc920"}},{"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/web/components/marketing/testimonials-carousel.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bfb4863c53b831ebb1469d11ffe0b4bf8f7e78e109933eed02537c5bbf6cfdc"}},{"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/web/lib/library.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbba5dbe57f633b3ee1e05d3f3edc94f1620309cd32a24461d9456ce7cb27950"}},{"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/web/app/diagrams/cost-breakdown-svg.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8ec3f91a7c6c11143d96efc6b79d6c54b60daef3d8d4ce732d70d2e82d38d5b"}},{"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/web/lib/pricing-data.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"52d980cbcb86b0753a5a75ed5e54a0111d3b3ee9b4e0a2c399b034ac1cec6163"}},{"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/web/components/marketing/hero-section.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa20d90b0f5b35df45773813be15e2ca30dba2482e438bed4677ddd2e1cbe508"}},{"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/web/components/blog/gc-run-permit.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e1deeec345683c2de1c04321cd6f62dfb1ce543e7964b0ff90814ad9297af72"}},{"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/web/app/landing-svgs.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"56ee9b1c4249d1affb0a0fba61a6764d0190c492a03596ca71547d55c7e742ab"}},{"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/web/components/navigation/mobile-nav.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b3825fecd70310d03e84fb8b8099a7043439e37f7b09d0fbd0102dbd49dc56e"}},{"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/web/components/blog/feature-blog-article.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f63bcfd4b7b3623b08c3e9422d18f32b7a853d2294be5e1567ce6f62181971db"}},{"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/web/app/blog/page.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0995c3276c31befe1bbd1f252ff5220f2238074254d8fb84935fc5f9a43611e5"}},{"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/web/components/library/knowledge-check.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a13ee8d83bf635bfe816976cf7391ecd69651c9622091e720dbfacd62be6c43"}},{"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/web/components/marketing/interactive-cli-sandbox.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fc419a51c32ecc183c57e08fe38ad95c7c99f74cbf99d62237aa625969e4210"}},{"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/web/components/mdx/mermaid.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9747ca081ce327b5aab12da633399bed9e21eda99cafc0b2a6186123ca95683"}},{"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/web/components/marketing/how-it-works.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e2a16fe9a3b565f89935fd9ad0cf533131154104ae70a46d24012c46f2fbec0"}},{"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/web/app/diagrams/cli-push-pipeline-svg.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1991937da466734665c103b5e77fa33e82d8830ef449783d877e0e123cfdd0e2"}},{"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/web/scripts/audit-docs-content.mjs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c87d2cfd7221556f739092ae00034a7112f1124ddc2d1c04517d854edb1d6df"}},{"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/web/components/marketing/install-tabs.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"751cac3e39f5fdf43e48092ec03de188ee2e0e49ccd19c55207890662f4b8c66"}},{"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/web/components/marketing/legal-page.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4de30ab17a04801b0389733921b2e1410afa5922758c24a52e5fd5d1e783cc0"}},{"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/web/components/ui/navigation-menu.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fca20b73656a48e5698afad06c310204ad77ce0d4615075615ebb59ab48307cb"}},{"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/web/app/article-social-image.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3185b317dc8bb7b97e7d7ad9b203dc70d0e305c3d629af701d43e083b2c5f0d"}},{"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/web/app/diagrams/auth-flow-svg.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d8ab00fb1602f68539a281f2972677a963fc60a70b87a5ad6137723276e3f9a"}},{"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/web/lib/pricing-calculator.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"486fe17f881ecddceff5e279c5e913c927e3ae4d3132a720d7306a56830d9964"}},{"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/web/components/blog/feature-article-rail.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"18c4722b51532483d0ba817ead046cc121e7ef57f3d46b0894ad3bdbaec4686c"}},{"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/web/components/library/library-index-content.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bcc878d9519e3396db8194bfe9b8a1350626e894d8a8a7e285a5a515113e7729"}},{"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/web/components/blog/blog-mdx-helpers.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"61d3ac76af5d138cbb023738e802b5aabcbcb929d58cc7b736dbeef8c00a492b"}},{"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/web/app/diagrams/hero-architecture-svg.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1f3af6edfbf6e1df416546a9369a46266caba4d6427010c471ff843c837888d"}},{"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/web/lib/integrations.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b43790ff3c607e2988808e131af025b7ceed3b74a927afcaa7179d4928fadf6c"}},{"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/web/app/about-us/page.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e77ba837458fb3c27311a7d3ffa33a3db637432c3667c41951f488dce53fb44"}},{"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/web/components/marketing/community-section.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c07fd822a6b4d3e3d7b3878bb190074ecf741fd95d5d1d7c2dc57a465669643"}},{"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/web/components/marketing/hero-decorations.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4d1ccf93777cf3604f2b50cb28b0ea85e562a8bab674a7373818983a8fa0309"}},{"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/web/scripts/check-links.mjs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"02a02a61b8e6818db6c2b41689e25680715a4c26f148146a1281522e99d7b6a6"}},{"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/web/app/layout.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2424a4dcc88803dba6ee4468a613bde433b21d2131bdd1f0d3b6258694c6cb1a"}},{"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/web/components/site-footer.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"241f97b5b300ce89373acf916779052f6035b7b36de111e3f2a262a2e57fb70f"}},{"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/web/components/ui/table.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"092995f4a97e340e3fe9a6eba1c02d1d7849e99e189c615c7ef22418c5f95123"}},{"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/web/components/changelog/changelog-entry.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c6b520d203cb1e6d51e6bdaee3680f5728978913b2deb3ba719b83d3520762c"}},{"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/web/lib/library-guides.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac8011c6d375e32a869260250f8e32f15324b634260bb3e79807e02467ca01e4"}},{"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/web/components/marketing/logo-marquee.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"eae1cde6fb1e3f78900e1ad7cc687a935e9160a28ba91dc744ccf2a31d89fae0"}},{"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/web/components/marketing/demo-tabs.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a070003920eb7b66f2b6adcb0729b6187f895c04d6d640338d9a7c77840bd2b0"}},{"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/web/components/marketing/faq-section.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"114b71811c23d29adfa6717050aa84036a452671bead26f0f89b76694a7d183e"}},{"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/web/components/site-header.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f03728c7802a4d8fa1c39dd811d41bd49153b6aaace5a08d0d0d112736d0752"}},{"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/web/components/ui/card.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a9d3777fb3175f947d4005d4fc23edefb4055ab4d2b9ba581bab7b78a286846"}},{"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/web/components/navigation/scroll-header.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c71130759d104275459ec373d1692f2d69a74be38d3c82023ed59c0bdaf1c24a"}},{"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/web/components/marketing/counter.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e1091c2a410494a78c9d9a1ff4eba1a8eec65df2e8826c450578a9d08932355"}},{"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/web/lib/changelog.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba7918ad94061dadfa3571b7f858ba51250ffd76d85e61e1a4421a3ca65efebc"}},{"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/web/components/marketing/comparison-table.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fa80ccd812ab1d82d463fe839f6e57da51cf4f2bef8aa3444846528d6ccdfb3"}},{"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/web/components/integrations/integration-card.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a6bc75f482db2c98f3aea44d0633c56182f6097ad8749ec3f83ca76096f0330"}},{"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/web/components/integrations/integration-filter.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"040695774cc017853b8d8a6620f88537de6506790a2bf62ba71ed6c94f4c8c23"}},{"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/web/components/ui/tabs.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cdf2d822b9df556966b002f2d89629ba3b0f6b9496143f9575ecd93166fa7fc2"}},{"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/web/components/marketing/feature-card.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"16df08ce5dd50d36726bfb80988afa37ee49621e17aa00148b67fdc66a3d163a"}},{"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/web/lib/source.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"11deb49d4e55e72e0541c2971c99eaecab731ff8c8fe66e9c7a5be9ed3b5cee1"}},{"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/web/lib/blog-posts.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"eeeafdeba3f137ac16f70ac0c1fbac3c4dac916e7bc56f4622ac3aa4c04c9d4a"}},{"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/web/components/ui/accordion.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"acbb2a9d80df53b4bfb09a672c065fa325ed05a1fe55c503627b34cd6ab56fec"}},{"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/web/components/ui/alert.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c77f66586b6f9c53e17e631664f6512feb87a175432e973d50f5560f1218682"}},{"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/web/components/marketing/reveal.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9ee3b51a2a0ce8509a9297b1f51e408983a66d5c954c43087756d3a5cb225f3"}},{"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/web/app/changelog/page.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"106dbd404dae2b4d492ae80641f5091935ff68065fd2b85f916f88f69f0078cd"}},{"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/web/components/navigation/mega-menu-products.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"49bc6065604e16ab5747cae6220ca232b2e9f06930da60bfe868d9c39144ffb5"}},{"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/web/components/theme-provider.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"845006528e92addf3edc7081f3d8105168d4e859e983b23e2fddf518f12c1a48"}},{"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/web/app/sitemap.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b0868270e2c99d1b58742f1b21cf1350c4240245eae1215cb37b58489ded9eb"}},{"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/web/components/marketing/current-subject-diagram.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6852dfca9a5f4d75a234792ce79beeb0791c174bc4a6865797dbd64604095099"}},{"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/web/components/navigation/mega-menu.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d5edddf1c4dcb8805f34c662149df1c98d7d07b247558ab97aa32d4ab43c71a"}},{"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/web/app/social-image.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4581da19c8a8f3b1a2befbf92b95d410a3efe7fefe77b501eae14fbd0b12ac41"}},{"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/web/components/marketing/step-flow.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"900a82d342ff67028345ed0ad320e0503630d84f813973e065fde10f919f030a"}},{"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/web/components/library/library-progress.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c3c07da634fc8a93028d4e06c85825464383aae0091f61240ddc38da270f47f"}},{"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/web/components/ui/button.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4c233caf4a0acbd901886fe36469f09c8750312208f37911b80f9e49ee66c71"}},{"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/web/components/marketing/responsive-table-wrapper.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d39d2823f06fd0958dfb5703fde356c881da4f056d34c7051d0435d61db1b34d"}},{"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/web/components/blog/blog-card.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"44c94cc51199bc0d1bb6e6d6258de781c68a5b219c179e629b2816b39e551102"}},{"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/web/components/ui/badge.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"929cbecdbf217582d0a2f5fb5fb8f13bab3af225bd252ee49ee8ec12cb81e754"}},{"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/web/components/blog/related-posts.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d8eade5cd91b911e60760ceb5e798f534d305ada1ef1bc9e1d0758d2f211216"}},{"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/web/components/theme-toggle.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"33c3586ccb148c5bba7648a56e941da09763b1ee5fd88d347c1a2218556e5bd4"}},{"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/web/components/marketing/cta-section.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4ec76de43282a5814d93248f3fa7d796673486ccbd8d1d860a2925e1ab77c0e"}},{"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/web/components/marketing/loading-fallback.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"eae551aabae2f4fcb7ef71812e5654e8b0d92ea998df812b03e5b9217ce88bd7"}},{"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/web/app/integrations/page.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c71610fe57b16aa12b055ccb509cb1885323704865f40b4c9bde715942669b57"}},{"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/web/lib/remark-mermaid.mjs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"07d7348d04fe13b9351662bcd745506a73579f95a857f0ea27ac1c0126c6764b"}},{"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/web/app/manifest.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"72e04ebb1acad5b89cc481b81905dcbcff0472547fb95ef020831d8752d182ca"}},{"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/web/components/navigation/skip-nav-link.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"47d968d2611aefcb1a8ea20d5c793087a491d2060debdcb45730f080e548b346"}},{"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/web/components/marketing/comparison-tooltip.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"facd5a5b09d23213202eef318425cdb4f2cf4f5dc64ae2b61c66f9fbf35a66aa"}},{"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/web/components/navigation/mega-menu-resources.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"465332225f2c0f5a928e1dee6e3795a033869a899cdaf2f858672d804da926b0"}},{"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/web/app/not-found.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b984324bc794a9a398552555d685f87dc289815de0aa57e408aa9f41756588d"}},{"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/web/components/integrations/integration-grid.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f55455f76c1ce1df1564f7cd06bc8f4376eb079da775ffc32d40d92d089ea2a0"}},{"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/web/components/crab-logo.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d8dc7a565fb8d9dd05f878e6982966b1753eaee238de020b3568e9725facf79"}},{"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/web/components/marketing/diagram-box.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"082e11b302187e0ab77c43cd5ed8ef60cf30f999da2b8517047668dbad0f223e"}},{"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/web/components/marketing-layout.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4913c2d0e0cbe9ac38008fbf3e28440e0ebcc6c6d91ca0b9f78b2ae0897b7978"}},{"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/web/app/api/search/route.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a86771e7cac954b8dde383ba6508f1c155bff812b9cd069150708b5bd1d9dbf0"}},{"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/web/app/api/install-ps1/route.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"35099bb1cf54372e1f1bb2731f48e7b7db82963a92ff8f1b78b2fa35d29b6c7e"}},{"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/web/app/api/install/route.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bda75ee5750e8fc4f36fc354abc386d83d3cba108a59945eded12d59e767ff7c"}},{"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/web/app/blog/[slug]/opengraph-image.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"24bc023d37313086ee040fbf2ce8c8ad6afaf70df8ca4f43539697aae39b0e56"}},{"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/web/app/blog/[slug]/twitter-image.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"211d9c267f0b4d89f0e1aad8e3dfc02e9498323eabbd83b78d54765bcdb4b58f"}},{"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/web/app/library/[slug]/opengraph-image.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"819651b5d594311e3a6e9d7d5ae0284ddf1eb1e1d70e2c7a2839770bb72d37df"}},{"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/web/app/library/[slug]/twitter-image.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6485cdd60850dbbc2885f52286b964f25b955e3a7422c9fcc4f4975454fe176f"}},{"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/web/app/robots.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c60cf0c467f98df2d4cf91742b355578606e67ed6d1b76c4a125847aeab38fa7"}},{"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/web/components/structured-data.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"00d8c76b94af837ebca77517d5bec8abecd70127857e619e977b1e42be7f23a3"}},{"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/web/app/opengraph-image.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9982c6210af9c8a9f4a01617b454dcae0cca65db29a19508d809191bf8e76e5d"}},{"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/web/app/twitter-image.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc2baea9aab387326814b0ac179f63c843976a14bdd9cf33ba7d25208291084b"}},{"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/web/app/loading.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"38fe4fb79597bdc5eebd9c95c00ff9e35e248f5efaa1bf16ad1bce6b327be8a8"}},{"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/web/lib/blog-source.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"908a7339b50f8a1b9c09a73fd0015d122b65d20de25967c4f3516eaf686fee81"}},{"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/web/lib/library-source.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1002d0a068905bb833d8eed261cec8f6610b1b56d0d75dd541b731ff0ee1b6da"}},{"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/web/lib/utils.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"61df1488918c6ee16df5055996c1b64d1d997567d99bb99c1751b8e405370d8c"}},{"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/web/app/blog/loading.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9316042967431d05942c00d644e0125660357232a632e13ff939caa575dcb681"}},{"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/web/app/cli/loading.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8f67aa8ce7d0341ce39bb436c3660e5f072603acb943da24b7cc735c58c0c55"}},{"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/web/app/pricing/loading.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"dae139b47f466ef499559634c91fc39463a5588c64a6a26735cbc371edf008f3"}},{"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/web/app/use-cases/loading.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"889d3dfba52c4ebcf1b4601f32bb7e1bf1d187b1513334e60296bb2028bb5af8"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~367 LoC): no import path from any entry point (54 application, 8 tooling, 21 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/web/app/landing-page-client.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"840f8880a0662187b7662399842f3da04b5a1318b65b202039e3ccef906677f3"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~267 LoC): no import path from any entry point (54 application, 8 tooling, 21 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/web/components/ui/dropdown-menu.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"41261f818cba4b9b13983e0fe62e63b78458e0ac59ebb7bee07d04cc7e29f6b6"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~139 LoC): no import path from any entry point (54 application, 8 tooling, 21 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/web/components/marketing/community-section.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0aaed353a73be0e6c8a592724570b356b619f6f84f0d0cdb94119c6286829ce1"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~109 LoC): no import path from any entry point (54 application, 8 tooling, 21 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/web/components/marketing/logo-marquee.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5eab40fcad38d3e0dd2f5ab8644868d30c19ab53611eb0bb33f4bae894dce038"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~76 LoC): no import path from any entry point (54 application, 8 tooling, 21 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/web/components/ui/accordion.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c2a8d9df83273d0e8b7d3a4f006d6374060e2bc9c1dc9e835fdf3ea27a4c3af"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~76 LoC): no import path from any entry point (54 application, 8 tooling, 21 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/web/components/ui/alert.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2ccbbb1a5839b6b15d7072ae3aa5fa1bc7f76c10d2acc5dbb7dbfaca2280047"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~53 LoC): no import path from any entry point (54 application, 8 tooling, 21 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/web/components/blog/blog-card.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"60b1eca0f4dfeb916124667fa575dfa82b486ff32ba2a48a80ec49814ae43916"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~51 LoC): no import path from any entry point (54 application, 8 tooling, 21 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/web/components/blog/related-posts.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e78f76ec6e6368d6d39b7e048397d834fe11ff1ee095f1fabeb46774ad4184a2"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~31 LoC): no import path from any entry point (54 application, 8 tooling, 21 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/web/lib/blog-category-icons.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"22014846ac6678cc049633e80e9691d4b5a173226d8ff044c5fe8318f0700f2e"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~25 LoC): no import path from any entry point (54 application, 8 tooling, 21 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/web/components/navigation/mega-menu-resources.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3722310ef9524ce70802b93b38c0979a7ef3c56491a27dcf579649d6e5d94a6f"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027tableFromValues\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/file-preview-model.ts"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc256b93bc1143b6b3ee5f333be3191a6221c2b50fe136bbdc742c460b51b6fb"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027default\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/web/components/marketing/loading-fallback.tsx"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"de28f8b7ec4c8eeee552b68a7e7012defe3829afd0824cf9ac963f905a8075ed"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027default\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/web/components/mdx/mermaid.tsx"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c4f4ad4e7e8ac5dd2a047b1920c663efa4318540e2b93c13abdf680ec2d2b5b"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027getStorageClass\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/web/lib/pricing-data.ts"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca76487406c6478c6c5561740f04fb17ea61bdf871bc02ba03da3da84798fa89"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027default\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/web/lib/remark-mermaid.mjs"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb2d6f4bae1c2bca9503234bcb2009c4d029b770e15ee7ce88faa2d79f5cd749"}},{"ruleId":"R7","level":"note","message":{"text":"Unused module-local declaration \u0027PRIMARY_FG\u0027: This top-level declaration is not exported and its name occurs nowhere else in its module \u2014 not called, read, typed against, re-exported or named by a string. Nothing outside the module can reach a non-exported binding, so this is the whole search: remove it, or use it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/web/app/diagrams/auth-flow-svg.tsx"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"b96254b278a314a30d8be872f022e9bfa01c5ea42e95e24add2320f6451adaa8"}},{"ruleId":"R8","level":"error","message":{"text":"Unlisted import \u0027unist-util-visit\u0027: Imported but not declared in any reachable package.json \u2014 installs work only by hoisting accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/web/lib/remark-mermaid.mjs"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"6690b19968b018f1290b5c18d3ed5e5abf9b6429dc91324c347e3827bf933186"}},{"ruleId":"R8","level":"error","message":{"text":"Unlisted import \u0027zod\u0027: Imported but not declared in any reachable package.json \u2014 installs work only by hoisting accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/web/source.config.ts"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"7cc4444be1786ddffcd783f93b557ffa94bae3b470a9500826b64e4d51d5c171"}},{"ruleId":"R8","level":"warning","message":{"text":"Unused dependency \u0027@eslint/eslintrc\u0027: Declared in packages/web/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":[{"physicalLocation":{"artifactLocation":{"uri":"packages/web/package.json"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"103456eee71471116d38817e8ccee51011ad7902cf81352929c9f428df854f20"}},{"ruleId":"S1","level":"warning","message":{"text":"Weak hash algorithm: MD5/SHA1 is computed here, and both are collision-broken. If this digest protects anything \u2014 a signature, an integrity or tamper check, a credential, or any value an attacker can influence \u2014 that is a real weakness: use SHA-256\u002B (\u0060sha2::Sha256::digest(\u2026)\u0060) for content integrity, or a KDF (bcrypt/Argon2/scrypt) for password storage. If it only derives a non-security identifier (a cache key, an avatar URL, an ETag), collision resistance carries no security consequence here; make that intent explicit instead \u2014 a non-cryptographic hash such as xxhash or murmurhash says it in code \u2014 since the algorithm alone cannot distinguish the two uses. Where a protocol this code does not own fixes the digest (a k-anonymity range query, a legacy signature format), the protocol decides; say so beside the call."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/git/pack.rs"},"region":{"startLine":1197}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5a59c7872ff9ea25fd0a1cf2478d19419d35aab6464c6401d553ee2b1b9b525"}},{"ruleId":"S1","level":"warning","message":{"text":"Weak hash algorithm: MD5/SHA1 is computed here, and both are collision-broken. If this digest protects anything \u2014 a signature, an integrity or tamper check, a credential, or any value an attacker can influence \u2014 that is a real weakness: use SHA-256\u002B (\u0060sha2::Sha256::digest(\u2026)\u0060) for content integrity, or a KDF (bcrypt/Argon2/scrypt) for password storage. If it only derives a non-security identifier (a cache key, an avatar URL, an ETag), collision resistance carries no security consequence here; make that intent explicit instead \u2014 a non-cryptographic hash such as xxhash or murmurhash says it in code \u2014 since the algorithm alone cannot distinguish the two uses. Where a protocol this code does not own fixes the digest (a k-anonymity range query, a legacy signature format), the protocol decides; say so beside the call."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-git/src/incoming_pack.rs"},"region":{"startLine":522}}}],"partialFingerprints":{"codehealthFindingId/v1":"3098a799aa7aea48c7c383689b914ca06a08ffe99f5930e3754cdd61e7d03e5d"}},{"ruleId":"S1","level":"warning","message":{"text":"Weak hash algorithm: MD5/SHA1 is computed here, and both are collision-broken. If this digest protects anything \u2014 a signature, an integrity or tamper check, a credential, or any value an attacker can influence \u2014 that is a real weakness: use SHA-256\u002B (\u0060sha2::Sha256::digest(\u2026)\u0060) for content integrity, or a KDF (bcrypt/Argon2/scrypt) for password storage. If it only derives a non-security identifier (a cache key, an avatar URL, an ETag), collision resistance carries no security consequence here; make that intent explicit instead \u2014 a non-cryptographic hash such as xxhash or murmurhash says it in code \u2014 since the algorithm alone cannot distinguish the two uses. Where a protocol this code does not own fixes the digest (a k-anonymity range query, a legacy signature format), the protocol decides; say so beside the call."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-git/src/incoming_pack.rs"},"region":{"startLine":554}}}],"partialFingerprints":{"codehealthFindingId/v1":"acb3140f6203c82de3e9ae02c314629d41fbb04b710064ac8649b0eb6bc80ba5"}},{"ruleId":"S1","level":"warning","message":{"text":"Weak hash algorithm: MD5/SHA1 is computed here, and both are collision-broken. If this digest protects anything \u2014 a signature, an integrity or tamper check, a credential, or any value an attacker can influence \u2014 that is a real weakness: use SHA-256\u002B (\u0060sha2::Sha256::digest(\u2026)\u0060) for content integrity, or a KDF (bcrypt/Argon2/scrypt) for password storage. If it only derives a non-security identifier (a cache key, an avatar URL, an ETag), collision resistance carries no security consequence here; make that intent explicit instead \u2014 a non-cryptographic hash such as xxhash or murmurhash says it in code \u2014 since the algorithm alone cannot distinguish the two uses. Where a protocol this code does not own fixes the digest (a k-anonymity range query, a legacy signature format), the protocol decides; say so beside the call."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-git/src/incoming_pack/prepared.rs"},"region":{"startLine":346}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc2faf9a5caf7eaa0347c792bd6ae9b1182f6891c81c352aae06021dd0442e4e"}},{"ruleId":"S1","level":"warning","message":{"text":"Weak hash algorithm: MD5/SHA1 is computed here, and both are collision-broken. If this digest protects anything \u2014 a signature, an integrity or tamper check, a credential, or any value an attacker can influence \u2014 that is a real weakness: use SHA-256\u002B (\u0060sha2::Sha256::digest(\u2026)\u0060) for content integrity, or a KDF (bcrypt/Argon2/scrypt) for password storage. If it only derives a non-security identifier (a cache key, an avatar URL, an ETag), collision resistance carries no security consequence here; make that intent explicit instead \u2014 a non-cryptographic hash such as xxhash or murmurhash says it in code \u2014 since the algorithm alone cannot distinguish the two uses. Where a protocol this code does not own fixes the digest (a k-anonymity range query, a legacy signature format), the protocol decides; say so beside the call."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-git/src/incoming_pack/prepared.rs"},"region":{"startLine":612}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffbeec8471dd71b290508eaba75bf07951c8ea350141e2132b26cd017577de22"}},{"ruleId":"S1","level":"warning","message":{"text":"Weak hash algorithm: MD5/SHA1 is computed here, and both are collision-broken. If this digest protects anything \u2014 a signature, an integrity or tamper check, a credential, or any value an attacker can influence \u2014 that is a real weakness: use SHA-256\u002B (\u0060sha2::Sha256::digest(\u2026)\u0060) for content integrity, or a KDF (bcrypt/Argon2/scrypt) for password storage. If it only derives a non-security identifier (a cache key, an avatar URL, an ETag), collision resistance carries no security consequence here; make that intent explicit instead \u2014 a non-cryptographic hash such as xxhash or murmurhash says it in code \u2014 since the algorithm alone cannot distinguish the two uses. Where a protocol this code does not own fixes the digest (a k-anonymity range query, a legacy signature format), the protocol decides; say so beside the call."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-git/src/pack.rs"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"94754cb50d091cc35dac5df59d7857f550e1981215e01caa4570203ae92fd0dd"}},{"ruleId":"S1","level":"warning","message":{"text":"Weak hash algorithm: MD5/SHA1 is computed here, and both are collision-broken. If this digest protects anything \u2014 a signature, an integrity or tamper check, a credential, or any value an attacker can influence \u2014 that is a real weakness: use SHA-256\u002B (\u0060sha2::Sha256::digest(\u2026)\u0060) for content integrity, or a KDF (bcrypt/Argon2/scrypt) for password storage. If it only derives a non-security identifier (a cache key, an avatar URL, an ETag), collision resistance carries no security consequence here; make that intent explicit instead \u2014 a non-cryptographic hash such as xxhash or murmurhash says it in code \u2014 since the algorithm alone cannot distinguish the two uses. Where a protocol this code does not own fixes the digest (a k-anonymity range query, a legacy signature format), the protocol decides; say so beside the call."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-git/src/pack.rs"},"region":{"startLine":936}}}],"partialFingerprints":{"codehealthFindingId/v1":"c93098cf303b0493d54e7d0ba1868170a200fb9c4d2cf2172021a1dfa4c66f8c"}},{"ruleId":"S1","level":"warning","message":{"text":"Weak hash algorithm: MD5/SHA1 is computed here, and both are collision-broken. If this digest protects anything \u2014 a signature, an integrity or tamper check, a credential, or any value an attacker can influence \u2014 that is a real weakness: use SHA-256\u002B (\u0060sha2::Sha256::digest(\u2026)\u0060) for content integrity, or a KDF (bcrypt/Argon2/scrypt) for password storage. If it only derives a non-security identifier (a cache key, an avatar URL, an ETag), collision resistance carries no security consequence here; make that intent explicit instead \u2014 a non-cryptographic hash such as xxhash or murmurhash says it in code \u2014 since the algorithm alone cannot distinguish the two uses. Where a protocol this code does not own fixes the digest (a k-anonymity range query, a legacy signature format), the protocol decides; say so beside the call."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-git/src/pack_locator.rs"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ff806228da33ca0da3e97f290b62a4410aa80683f0eb6f05ca2b179e153ce2f"}},{"ruleId":"S1","level":"warning","message":{"text":"Weak hash algorithm: MD5/SHA1 is computed here, and both are collision-broken. If this digest protects anything \u2014 a signature, an integrity or tamper check, a credential, or any value an attacker can influence \u2014 that is a real weakness: use SHA-256\u002B (\u0060sha2::Sha256::digest(\u2026)\u0060) for content integrity, or a KDF (bcrypt/Argon2/scrypt) for password storage. If it only derives a non-security identifier (a cache key, an avatar URL, an ETag), collision resistance carries no security consequence here; make that intent explicit instead \u2014 a non-cryptographic hash such as xxhash or murmurhash says it in code \u2014 since the algorithm alone cannot distinguish the two uses. Where a protocol this code does not own fixes the digest (a k-anonymity range query, a legacy signature format), the protocol decides; say so beside the call."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-git/src/pack_locator.rs"},"region":{"startLine":817}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4bd28f4e000b11b0b25859f3fe6cdf3a29119da9e1c1501e78ceeeb4c8128ed"}},{"ruleId":"S1","level":"warning","message":{"text":"Weak hash algorithm: MD5/SHA1 is computed here, and both are collision-broken. If this digest protects anything \u2014 a signature, an integrity or tamper check, a credential, or any value an attacker can influence \u2014 that is a real weakness: use SHA-256\u002B (\u0060sha2::Sha256::digest(\u2026)\u0060) for content integrity, or a KDF (bcrypt/Argon2/scrypt) for password storage. If it only derives a non-security identifier (a cache key, an avatar URL, an ETag), collision resistance carries no security consequence here; make that intent explicit instead \u2014 a non-cryptographic hash such as xxhash or murmurhash says it in code \u2014 since the algorithm alone cannot distinguish the two uses. Where a protocol this code does not own fixes the digest (a k-anonymity range query, a legacy signature format), the protocol decides; say so beside the call."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-git/src/pack_locator.rs"},"region":{"startLine":958}}}],"partialFingerprints":{"codehealthFindingId/v1":"d00ad16ad3b9386fda433355eee1eeca61276ce4cece5b20374ab6149e0d636d"}},{"ruleId":"S1","level":"warning","message":{"text":"Weak hash algorithm: MD5/SHA1 is computed here, and both are collision-broken. If this digest protects anything \u2014 a signature, an integrity or tamper check, a credential, or any value an attacker can influence \u2014 that is a real weakness: use SHA-256\u002B (\u0060sha2::Sha256::digest(\u2026)\u0060) for content integrity, or a KDF (bcrypt/Argon2/scrypt) for password storage. If it only derives a non-security identifier (a cache key, an avatar URL, an ETag), collision resistance carries no security consequence here; make that intent explicit instead \u2014 a non-cryptographic hash such as xxhash or murmurhash says it in code \u2014 since the algorithm alone cannot distinguish the two uses. Where a protocol this code does not own fixes the digest (a k-anonymity range query, a legacy signature format), the protocol decides; say so beside the call."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-git/src/repack.rs"},"region":{"startLine":840}}}],"partialFingerprints":{"codehealthFindingId/v1":"549e35f9301c02f2b94e147b376b825065f649f4d707b37a03f7d4e1b790538f"}},{"ruleId":"S1","level":"warning","message":{"text":"Weak hash algorithm: MD5/SHA1 is computed here, and both are collision-broken. If this digest protects anything \u2014 a signature, an integrity or tamper check, a credential, or any value an attacker can influence \u2014 that is a real weakness: use SHA-256\u002B (\u0060sha2::Sha256::digest(\u2026)\u0060) for content integrity, or a KDF (bcrypt/Argon2/scrypt) for password storage. If it only derives a non-security identifier (a cache key, an avatar URL, an ETag), collision resistance carries no security consequence here; make that intent explicit instead \u2014 a non-cryptographic hash such as xxhash or murmurhash says it in code \u2014 since the algorithm alone cannot distinguish the two uses. Where a protocol this code does not own fixes the digest (a k-anonymity range query, a legacy signature format), the protocol decides; say so beside the call."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-remote-git/src/pack.rs"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"59afb83711e7795f5ebcd4b5efd06285f9eae8b664a48f8bffaec1d753ac34f0"}},{"ruleId":"S1","level":"warning","message":{"text":"Weak hash algorithm: MD5/SHA1 is computed here, and both are collision-broken. If this digest protects anything \u2014 a signature, an integrity or tamper check, a credential, or any value an attacker can influence \u2014 that is a real weakness: use SHA-256\u002B (\u0060sha2::Sha256::digest(\u2026)\u0060) for content integrity, or a KDF (bcrypt/Argon2/scrypt) for password storage. If it only derives a non-security identifier (a cache key, an avatar URL, an ETag), collision resistance carries no security consequence here; make that intent explicit instead \u2014 a non-cryptographic hash such as xxhash or murmurhash says it in code \u2014 since the algorithm alone cannot distinguish the two uses. Where a protocol this code does not own fixes the digest (a k-anonymity range query, a legacy signature format), the protocol decides; say so beside the call."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-remote-git/src/pack.rs"},"region":{"startLine":2743}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9e4edda7a3691a29c82729e10d4442ab9f54b57603a4a099ea7b92588dedd53"}},{"ruleId":"S1","level":"warning","message":{"text":"Weak hash algorithm: MD5/SHA1 is computed here, and both are collision-broken. If this digest protects anything \u2014 a signature, an integrity or tamper check, a credential, or any value an attacker can influence \u2014 that is a real weakness: use SHA-256\u002B (\u0060sha2::Sha256::digest(\u2026)\u0060) for content integrity, or a KDF (bcrypt/Argon2/scrypt) for password storage. If it only derives a non-security identifier (a cache key, an avatar URL, an ETag), collision resistance carries no security consequence here; make that intent explicit instead \u2014 a non-cryptographic hash such as xxhash or murmurhash says it in code \u2014 since the algorithm alone cannot distinguish the two uses. Where a protocol this code does not own fixes the digest (a k-anonymity range query, a legacy signature format), the protocol decides; say so beside the call."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-remote-git/src/reader.rs"},"region":{"startLine":2422}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9480c6509bd85784efeb9ce34b822f09cff10bc0d7dbde07ff6d8423354d32e"}},{"ruleId":"S1","level":"warning","message":{"text":"Weak hash algorithm: MD5/SHA1 is computed here, and both are collision-broken. If this digest protects anything \u2014 a signature, an integrity or tamper check, a credential, or any value an attacker can influence \u2014 that is a real weakness: use SHA-256\u002B (\u0060sha2::Sha256::digest(\u2026)\u0060) for content integrity, or a KDF (bcrypt/Argon2/scrypt) for password storage. If it only derives a non-security identifier (a cache key, an avatar URL, an ETag), collision resistance carries no security consequence here; make that intent explicit instead \u2014 a non-cryptographic hash such as xxhash or murmurhash says it in code \u2014 since the algorithm alone cannot distinguish the two uses. Where a protocol this code does not own fixes the digest (a k-anonymity range query, a legacy signature format), the protocol decides; say so beside the call."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-s3-gateway/src/content.rs"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"affdfda269ff56e55adc904d70c8834ed0ab0cd7f224e77e4fe829aac77ea2bc"}},{"ruleId":"S1","level":"warning","message":{"text":"Weak hash algorithm: MD5/SHA1 is computed here, and both are collision-broken. If this digest protects anything \u2014 a signature, an integrity or tamper check, a credential, or any value an attacker can influence \u2014 that is a real weakness: use SHA-256\u002B (\u0060sha2::Sha256::digest(\u2026)\u0060) for content integrity, or a KDF (bcrypt/Argon2/scrypt) for password storage. If it only derives a non-security identifier (a cache key, an avatar URL, an ETag), collision resistance carries no security consequence here; make that intent explicit instead \u2014 a non-cryptographic hash such as xxhash or murmurhash says it in code \u2014 since the algorithm alone cannot distinguish the two uses. Where a protocol this code does not own fixes the digest (a k-anonymity range query, a legacy signature format), the protocol decides; say so beside the call."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-s3-gateway/src/content.rs"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff936d5aa28713e12aa6dedc32e82db034676ea7c3a44ccc16d4d613e6ee569b"}},{"ruleId":"S1","level":"warning","message":{"text":"Weak hash algorithm: MD5/SHA1 is computed here, and both are collision-broken. If this digest protects anything \u2014 a signature, an integrity or tamper check, a credential, or any value an attacker can influence \u2014 that is a real weakness: use SHA-256\u002B (\u0060sha2::Sha256::digest(\u2026)\u0060) for content integrity, or a KDF (bcrypt/Argon2/scrypt) for password storage. If it only derives a non-security identifier (a cache key, an avatar URL, an ETag), collision resistance carries no security consequence here; make that intent explicit instead \u2014 a non-cryptographic hash such as xxhash or murmurhash says it in code \u2014 since the algorithm alone cannot distinguish the two uses. Where a protocol this code does not own fixes the digest (a k-anonymity range query, a legacy signature format), the protocol decides; say so beside the call."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-s3-gateway/src/gateway.rs"},"region":{"startLine":2558}}}],"partialFingerprints":{"codehealthFindingId/v1":"e07db6e30e8bf41eaafccc30ef592217251846791c2006ad9d0c720f7d1fe37f"}},{"ruleId":"S1","level":"warning","message":{"text":"Weak hash algorithm: MD5/SHA1 is computed here, and both are collision-broken. If this digest protects anything \u2014 a signature, an integrity or tamper check, a credential, or any value an attacker can influence \u2014 that is a real weakness: use SHA-256\u002B (\u0060sha2::Sha256::digest(\u2026)\u0060) for content integrity, or a KDF (bcrypt/Argon2/scrypt) for password storage. If it only derives a non-security identifier (a cache key, an avatar URL, an ETag), collision resistance carries no security consequence here; make that intent explicit instead \u2014 a non-cryptographic hash such as xxhash or murmurhash says it in code \u2014 since the algorithm alone cannot distinguish the two uses. Where a protocol this code does not own fixes the digest (a k-anonymity range query, a legacy signature format), the protocol decides; say so beside the call."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-s3-gateway/src/gateway.rs"},"region":{"startLine":3652}}}],"partialFingerprints":{"codehealthFindingId/v1":"cdc61c8ba3296454993d85b6e74d7982ea5642159f562284e589b6ef87f9189d"}},{"ruleId":"S1","level":"warning","message":{"text":"Weak hash algorithm: MD5/SHA1 is computed here, and both are collision-broken. If this digest protects anything \u2014 a signature, an integrity or tamper check, a credential, or any value an attacker can influence \u2014 that is a real weakness: use SHA-256\u002B (\u0060sha2::Sha256::digest(\u2026)\u0060) for content integrity, or a KDF (bcrypt/Argon2/scrypt) for password storage. If it only derives a non-security identifier (a cache key, an avatar URL, an ETag), collision resistance carries no security consequence here; make that intent explicit instead \u2014 a non-cryptographic hash such as xxhash or murmurhash says it in code \u2014 since the algorithm alone cannot distinguish the two uses. Where a protocol this code does not own fixes the digest (a k-anonymity range query, a legacy signature format), the protocol decides; say so beside the call."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-s3-gateway/src/gateway.rs"},"region":{"startLine":4614}}}],"partialFingerprints":{"codehealthFindingId/v1":"afc2f50a474e9e4197748a9f811a0bdc385770fc1d8d812ceadc450f56d31498"}},{"ruleId":"S1","level":"warning","message":{"text":"Weak hash algorithm: MD5/SHA1 is computed here, and both are collision-broken. If this digest protects anything \u2014 a signature, an integrity or tamper check, a credential, or any value an attacker can influence \u2014 that is a real weakness: use SHA-256\u002B (\u0060sha2::Sha256::digest(\u2026)\u0060) for content integrity, or a KDF (bcrypt/Argon2/scrypt) for password storage. If it only derives a non-security identifier (a cache key, an avatar URL, an ETag), collision resistance carries no security consequence here; make that intent explicit instead \u2014 a non-cryptographic hash such as xxhash or murmurhash says it in code \u2014 since the algorithm alone cannot distinguish the two uses. Where a protocol this code does not own fixes the digest (a k-anonymity range query, a legacy signature format), the protocol decides; say so beside the call."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-s3-gateway/src/gateway.rs"},"region":{"startLine":4635}}}],"partialFingerprints":{"codehealthFindingId/v1":"f348a7c74db44d23fd9f64ba1529e92342368f998f385efa213fc56306f8c246"}},{"ruleId":"S1","level":"warning","message":{"text":"Weak hash algorithm: MD5/SHA1 is computed here, and both are collision-broken. If this digest protects anything \u2014 a signature, an integrity or tamper check, a credential, or any value an attacker can influence \u2014 that is a real weakness: use SHA-256\u002B (\u0060sha2::Sha256::digest(\u2026)\u0060) for content integrity, or a KDF (bcrypt/Argon2/scrypt) for password storage. If it only derives a non-security identifier (a cache key, an avatar URL, an ETag), collision resistance carries no security consequence here; make that intent explicit instead \u2014 a non-cryptographic hash such as xxhash or murmurhash says it in code \u2014 since the algorithm alone cannot distinguish the two uses. Where a protocol this code does not own fixes the digest (a k-anonymity range query, a legacy signature format), the protocol decides; say so beside the call."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-s3-gateway/src/mutation.rs"},"region":{"startLine":2472}}}],"partialFingerprints":{"codehealthFindingId/v1":"50bb50438c2ed6ce78a886635a55b0e4797727739784d87329d4ce1adb4c2b1a"}},{"ruleId":"S1","level":"warning","message":{"text":"Weak hash algorithm: MD5/SHA1 is computed here, and both are collision-broken. If this digest protects anything \u2014 a signature, an integrity or tamper check, a credential, or any value an attacker can influence \u2014 that is a real weakness: use SHA-256\u002B (\u0060sha2::Sha256::digest(\u2026)\u0060) for content integrity, or a KDF (bcrypt/Argon2/scrypt) for password storage. If it only derives a non-security identifier (a cache key, an avatar URL, an ETag), collision resistance carries no security consequence here; make that intent explicit instead \u2014 a non-cryptographic hash such as xxhash or murmurhash says it in code \u2014 since the algorithm alone cannot distinguish the two uses. Where a protocol this code does not own fixes the digest (a k-anonymity range query, a legacy signature format), the protocol decides; say so beside the call."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-workflow/src/dvc_inventory.rs"},"region":{"startLine":2330}}}],"partialFingerprints":{"codehealthFindingId/v1":"2da9862ec5f10792c8196fe1a0ea3a7a8fa9aecf13f8d5ac8cc16d52cee0fbff"}},{"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/web/vercel.json"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e06fe92bb27a90488ccd285743fd257a14e11e5292751fa1a348c593185f5702"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!Number.isSafeInteger(number) || number \u003C= 0\u0060 appears character-identically in 2 files \u2014 packages/ui/src/issues.tsx, packages/ui/src/pulls.tsx. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/issues.tsx"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"73ed0e5404b3ed864299b9f6e72d64b848dfba0e2f66be8a6c5107b1b37e7788"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060repo.access === \u0022write\u0022 \u0026\u0026 !repo.archived\u0060 appears character-identically in 2 files \u2014 packages/ui/src/App.tsx, packages/ui/src/releases.tsx. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/App.tsx"},"region":{"startLine":529}}}],"partialFingerprints":{"codehealthFindingId/v1":"924e26bf4cea547827c9464305e767f0c88058a09d2cc43cd7b8605f362c5d27"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060typeof window === \u0022undefined\u0022 || !window.matchMedia\u0060 appears character-identically in 3 files \u2014 packages/web/components/marketing/counter.tsx, packages/web/components/marketing/hero-decorations.tsx, packages/web/components/marketing/typing-code.tsx. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/web/components/marketing/counter.tsx"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"42beefef705633c5bf83b091c6c4b5f3248b0e0dd70763e7c26447bc269303dc"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060\u0022immutable-write\u0022 in permissions and \u0022read\u0022 in permissions\u0060 appears character-identically in 2 files \u2014 crab/deploy/auth-service/src/providers/aws.py, crab/deploy/auth-service/src/providers/gcp.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":"crab/deploy/auth-service/src/providers/aws.py"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7d16e0bf18a6923c6922d31ed23f1120e9cd900c8149e2212c3e0e53f42b89f"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060\u0022immutable-write\u0022 in permissions and not upload_prefix\u0060 appears character-identically in 3 files \u2014 crab/deploy/auth-service/src/providers/aws.py, crab/deploy/auth-service/src/providers/azure.py, crab/deploy/auth-service/src/providers/gcp.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":"crab/deploy/auth-service/src/providers/aws.py"},"region":{"startLine":221}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f0a965392644b4cff782cc6f9e60a1f1a2b326aff333a0878771a0c562e04b2"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060\u0022non-fast-forward\u0022 in denied_output or \u0022invalid_bundle\u0022 in denied_output\u0060 appears character-identically in 2 files \u2014 crab/deploy/auth-service/scripts/e2e-path-acl-local.py, crab/deploy/auth-service/scripts/e2e-path-acl-rustfs.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":"crab/deploy/auth-service/scripts/e2e-path-acl-local.py"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"40f0f7e07fc1db0909ee7cf4753ae6b7e1985154f213ebb8563194290ef9bb01"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060after_write[\u0022owner\u0022] != after[\u0022owner\u0022] or after_write[\u0022epoch\u0022] != after[\u0022epoch\u0022] or after_write[\u0022root\u0022][\u0022commit_sequence\u0022] \u003C= after[\u0022root\u0022][\u2026\u0060 appears character-identically in 2 files \u2014 crates/crab-http-server/deploy/cell-issue-fleet/qualify_read_replicas.py, crates/crab-http-server/deploy/cell-issue-fleet/qualify_reader_partition.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":"crates/crab-http-server/deploy/cell-issue-fleet/qualify_read_replicas.py"},"region":{"startLine":412}}}],"partialFingerprints":{"codehealthFindingId/v1":"c07e6eeba6947332aeeb647ab33695c43993374c9550c9590f98205259e81635"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060args.skip_build and not args.runtime_source\u0060 appears character-identically in 2 files \u2014 crates/crab-http-server/deploy/cell-issue-fleet/qualify_mode_rollout.py, crates/crab-http-server/deploy/cell-issue-fleet/qualify_read_replicas.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":"crates/crab-http-server/deploy/cell-issue-fleet/qualify_mode_rollout.py"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3ea649c1789167464a1cb974ad42d2c5760d84980bbe0a3842c285ba1ef80d7"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060expected_platform is not None and platform != expected_platform\u0060 appears character-identically in 2 files \u2014 crab/scripts/nfs-evidence-summary.py, crab/scripts/verify-nfs-smoke-report.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":"crab/scripts/nfs-evidence-summary.py"},"region":{"startLine":919}}}],"partialFingerprints":{"codehealthFindingId/v1":"f58c58d34ed524a59283df76a3e992ac763cb1e8f1e670836db4400a834686bc"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060isinstance(value, bool) or not isinstance(value, (int, float))\u0060 appears character-identically in 4 files \u2014 crab/scripts/nfs-evidence-summary.py, crab/scripts/nfs-read-path-bench-report.py, crab/scripts/verify-cache-service-smoke-report.py, crab/scripts/verify-nfs-smoke-report.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":"crab/scripts/nfs-evidence-summary.py"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"63f64bfad61e1c03037c8835a2f4b9cc1cf78538f0fc1b818ab4dbe0c4fa495e"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060isinstance(value, bool) or not isinstance(value, int)\u0060 appears character-identically in 2 files \u2014 crab/scripts/verify-cache-service-smoke-report.py, crab/scripts/verify-nfs-smoke-report.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":"crab/scripts/verify-cache-service-smoke-report.py"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"96a90bee0254a1011d9ddd81b199c989b0f3b163ee65439e2813d4310c531f69"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060not isinstance(run_id, str) or not run_id\u0060 appears character-identically in 3 files \u2014 crab/scripts/nfs-evidence-summary.py, crab/scripts/nfs-read-path-bench-report.py, crab/scripts/verify-nfs-smoke-report.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":"crab/scripts/nfs-evidence-summary.py"},"region":{"startLine":613}}}],"partialFingerprints":{"codehealthFindingId/v1":"e88a73d8ceaa5a63d4fa3575d898ede443e2e0fdc7c015b3e6b289a7116c0e59"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060not normalized or normalized == \u00220\u0022 * 40\u0060 appears character-identically in 2 files \u2014 crab/deploy/auth-service/src/app.py, crab/deploy/auth-service/src/receive_helper.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":"crab/deploy/auth-service/src/app.py"},"region":{"startLine":1411}}}],"partialFingerprints":{"codehealthFindingId/v1":"2601c266cd19aaffa7a034014cefcb30ba83c13fa14672d3371c37f243d94c6a"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060not previous.get(\u0022finished_at\u0022) or config[\u0022name\u0022] != previous[\u0022project\u0022]\u0060 appears character-identically in 2 files \u2014 crates/crab-http-server/deploy/cell-issue-fleet/qualify_reader_first_loss.py, crates/crab-http-server/deploy/cell-issue-fleet/qualify_reader_perf.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":"crates/crab-http-server/deploy/cell-issue-fleet/qualify_reader_first_loss.py"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"970282259948055a9ce18d370bc71a7b6b47095cd56c8ccca930e58064f2318e"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060root.get(\u0022commit_sequence\u0022, -1) \u003C before[\u0022root\u0022][\u0022commit_sequence\u0022] or root.get(\u0022txid\u0022, -1) \u003C before[\u0022root\u0022][\u0022txid\u0022]\u0060 appears character-identically in 2 files \u2014 crates/crab-http-server/deploy/cell-issue-fleet/load.py, crates/crab-http-server/deploy/cell-issue-fleet/qualify.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":"crates/crab-http-server/deploy/cell-issue-fleet/load.py"},"region":{"startLine":550}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea457be57ac83675225c489df1a747500d25e1b79e506ffcbf30a55a5864f52f"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060state[\u0022Running\u0022] or state[\u0022ExitCode\u0022] != 0 or state[\u0022OOMKilled\u0022]\u0060 appears character-identically in 2 files \u2014 crates/crab-http-server/deploy/cell-issue-fleet/qualify_mode_rollout.py, crates/crab-http-server/deploy/cell-issue-fleet/qualify_reader_retention.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":"crates/crab-http-server/deploy/cell-issue-fleet/qualify_mode_rollout.py"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"e96964a0cecbfeb27d316da2deca13bfbbeb45e154505f9fa8cb237ea05703fd"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!content.is_empty() \u0026\u0026 !content.ends_with(\u0027\\n\u0027)\u0060 appears character-identically in 5 files \u2014 crab/src/cmd/adopt.rs, crab/src/cmd/clone.rs, crab/src/cmd/setup.rs, crab/src/cmd/track.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":"crab/src/cmd/adopt.rs"},"region":{"startLine":694}}}],"partialFingerprints":{"codehealthFindingId/v1":"00d6c40d727f810e6260a98a627ef1e053809a97694fcd959786bfb54deb7ade"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!contents.is_empty() \u0026\u0026 !contents.ends_with(\u0027\\n\u0027)\u0060 appears character-identically in 2 files \u2014 crab/src/cmd/exp_queue.rs, crab/src/import/assemble.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":"crab/src/cmd/exp_queue.rs"},"region":{"startLine":1314}}}],"partialFingerprints":{"codehealthFindingId/v1":"7befaf36a6610ab13cf6c92e8b4742c398c58889ed861f890d3514adb7afb8ca"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!existing.is_empty() \u0026\u0026 !existing.ends_with(\u0027\\n\u0027)\u0060 appears character-identically in 3 files \u2014 crab/src/cmd/init.rs, crab/src/import/assemble.rs, crates/crab-workflow/src/gitignore.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":"crab/src/cmd/init.rs"},"region":{"startLine":613}}}],"partialFingerprints":{"codehealthFindingId/v1":"de7a0ef7d0fdb7eda138cbf62c112403259ef800210403ccd947e27a059ae482"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!output.status.success() || value.is_empty()\u0060 appears character-identically in 2 files \u2014 crab/src/import/assemble.rs, crab/src/import/coordinator.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":"crab/src/import/assemble.rs"},"region":{"startLine":476}}}],"partialFingerprints":{"codehealthFindingId/v1":"47123373b3f90ac8431b69baa923cbc24abdc00d90fa55faa4d67bf3c832269b"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!plan.shallow.is_empty() || !plan.unshallow.is_empty()\u0060 appears character-identically in 2 files \u2014 crab/src/git/upload_pack_wire.rs, crates/crab-http-server/src/git.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":"crab/src/git/upload_pack_wire.rs"},"region":{"startLine":1522}}}],"partialFingerprints":{"codehealthFindingId/v1":"9525bf11dc762f73719799a57a82fd8b8a7924dd2672b4322960db87a034a739"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!status.backend_available || !status.checked_drift\u0060 appears character-identically in 3 files \u2014 crab/src/cmd/replica.rs, crab/src/replication/mod.rs, crates/crab-coordination/src/write_coordinator.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":"crab/src/cmd/replica.rs"},"region":{"startLine":11436}}}],"partialFingerprints":{"codehealthFindingId/v1":"442bfa8f47e31b00b6f2e86ed8f99b4e8addef7e07e57a9b4eb9a66ea10a3920"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!t.is_empty() \u0026\u0026 !t.starts_with(\u0027#\u0027) \u0026\u0026 t.contains(\u0022filter=crab\u0022)\u0060 appears character-identically in 5 files \u2014 crab/src/cmd/adopt.rs, crab/src/cmd/clone.rs, crab/src/cmd/init.rs, crab/src/cmd/setup.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":"crab/src/cmd/adopt.rs"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"53a333430571347a9971f39f6a18be794e944591a13133916eff357488d79f30"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!trimmed.is_empty() \u0026\u0026 !trimmed.starts_with(\u0027#\u0027) \u0026\u0026 trimmed.contains(\u0022filter=crab\u0022)\u0060 appears character-identically in 5 files \u2014 crab/src/cmd/add.rs, crab/src/cmd/dehydrate.rs, crab/src/cmd/hydrate.rs, crab/src/cmd/reset.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":"crab/src/cmd/add.rs"},"region":{"startLine":3456}}}],"partialFingerprints":{"codehealthFindingId/v1":"00fcad9a5d6eb1c7166387fe97d10142d036090301dc71907debd0efcef5dbf0"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060actual_hash != expected_hash || actual_size != expected_size\u0060 appears character-identically in 2 files \u2014 crab/src/cmd/data.rs, crates/crab-workflow/src/artifact.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":"crab/src/cmd/data.rs"},"region":{"startLine":1669}}}],"partialFingerprints":{"codehealthFindingId/v1":"13d08d84b5382349e413ee05490bb3fff003c34e1b46b57e1cff91ae54e08022"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060added.is_err() || !added.unwrap().success()\u0060 appears character-identically in 4 files \u2014 crab/src/cmd/dehydrate.rs, crab/src/cmd/du.rs, crab/src/cmd/status.rs, crab/src/lfs/status.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":"crab/src/cmd/dehydrate.rs"},"region":{"startLine":1610}}}],"partialFingerprints":{"codehealthFindingId/v1":"063ca516bdeefd48c7c36331e7a36f64da0736c80570727c12cbe082b6b2c49a"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060after.generation != manifest.generation || after.pack_index_hash != manifest.pack_index_hash\u0060 appears character-identically in 2 files \u2014 crab/src/cmd/metadb.rs, crates/crab-auth-server/src/receive.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":"crab/src/cmd/metadb.rs"},"region":{"startLine":3017}}}],"partialFingerprints":{"codehealthFindingId/v1":"76caa8a41d8949e0ea80fe8fd3106ccb0cba4947a1ffdae3a42919010e5daa73"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060allow_system_ancestor_link \u0026\u0026 normal_components == 1\u0060 appears character-identically in 2 files \u2014 crab/src/cmd/workflow_checkpoint.rs, crates/crab-workflow/src/atomic.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":"crab/src/cmd/workflow_checkpoint.rs"},"region":{"startLine":874}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b583ffd23033e5f9a17bd4a2de8d06a6a61ffe800b5b1394624894a4cac99fd"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060ch.is_ascii_alphanumeric() || ch == \u0027-\u0027 || ch == \u0027_\u0027\u0060 appears character-identically in 2 files \u2014 crab/src/audit.rs, crab/src/replication/mod.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":"crab/src/audit.rs"},"region":{"startLine":245}}}],"partialFingerprints":{"codehealthFindingId/v1":"3481f212ec4e07a58fd04166f545e1f1b32323bcf02892223cf3028e94ef7b73"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060ch.is_ascii_alphanumeric() || ch == \u0027_\u0027 || ch == \u0027-\u0027\u0060 appears character-identically in 2 files \u2014 crates/crab-workflow/src/template/foreach.rs, crates/crab-workflow/src/template/matrix.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/crab-workflow/src/template/foreach.rs"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"69d1535d67a4d4a106a6cf39f05682e195d516217327cea3d76b01a0ef22ec16"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060committed.is_err() || !committed.unwrap().success()\u0060 appears character-identically in 4 files \u2014 crab/src/cmd/dehydrate.rs, crab/src/cmd/du.rs, crab/src/cmd/status.rs, crab/src/lfs/status.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":"crab/src/cmd/dehydrate.rs"},"region":{"startLine":1596}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9780e665a12b177c6a6a3ef1c41e7eeb4226e603d0a27aa73f3a8f714995a7b"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060create \u0026\u0026 error.kind() == io::ErrorKind::NotFound\u0060 appears character-identically in 2 files \u2014 crates/crab-cache/src/private_fs.rs, crates/crab-cache/src/private_fs/windows.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/crab-cache/src/private_fs.rs"},"region":{"startLine":453}}}],"partialFingerprints":{"codehealthFindingId/v1":"68d88a0e9f369818c7738e126d8917e3ae1d7d98348b9f6e5419380391aa87df"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060current.generation != manifest.generation || current.pack_index_hash != manifest.pack_index_hash\u0060 appears character-identically in 2 files \u2014 crab/src/cmd/metadb.rs, crates/crab-auth-server/src/receive.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":"crab/src/cmd/metadb.rs"},"region":{"startLine":2934}}}],"partialFingerprints":{"codehealthFindingId/v1":"16aa443dbba4b6d54538078fce468e59dce0958e5572132abb6c5b0fb32ad5bf"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060current.generation != manifest.generation || current.pack_index_hash != manifest.pack_index_hash || current.git_validation_digest != manifes\u2026\u0060 appears character-identically in 2 files \u2014 crab/src/cmd/metadb.rs, crab/src/git/push.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":"crab/src/cmd/metadb.rs"},"region":{"startLine":3070}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d49b4dd342ee297186b6d4aa04c007f3a0f2c1ff50af6e588c79a3395f5fcd4"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060date_parts.len() != 3 || time_parts.len() != 3\u0060 appears character-identically in 4 files \u2014 crates/crab-auth/src/aws_oidc.rs, crates/crab-auth/src/azure_entra.rs, crates/crab-auth/src/crab_auth_client.rs, crates/crab-auth/src/gcp_federation.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/crab-auth/src/aws_oidc.rs"},"region":{"startLine":303}}}],"partialFingerprints":{"codehealthFindingId/v1":"a121381ddd4d25e1516042048d9b3cd02cfdb0e745ee24423abb44b16c4057f4"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060diff.added.is_empty() \u0026\u0026 diff.removed.is_empty() \u0026\u0026 diff.changed.is_empty() \u0026\u0026 !(opts.include_unchanged \u0026\u0026 !diff.unchanged.is_empty())\u0060 appears character-identically in 2 files \u2014 crab/src/cmd/metrics.rs, crab/src/cmd/params.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":"crab/src/cmd/metrics.rs"},"region":{"startLine":4013}}}],"partialFingerprints":{"codehealthFindingId/v1":"a71f6c5e29bddc27afd8b28326a1328b1b4261f9e32b3f30551151ddad1223c8"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060edit.old_oid.is_none() \u0026\u0026 edit.new_oid.is_none()\u0060 appears character-identically in 2 files \u2014 crates/crab-metadata/src/git_visibility.rs, crates/crab-metadata/src/ref_journal.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/crab-metadata/src/git_visibility.rs"},"region":{"startLine":3196}}}],"partialFingerprints":{"codehealthFindingId/v1":"4914c73c05bd935b9fc539257b395da0f181caa87fc27aa4978b6004d6d62067"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060entry.is_delete_marker || file_hash == DELETE_MARKER_FILE_HASH\u0060 appears character-identically in 2 files \u2014 crab/src/import/assemble.rs, crab/src/import/coordinator.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":"crab/src/import/assemble.rs"},"region":{"startLine":654}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf52e403de979dd4bb0e2e9ac8c84020be851d439f4231fdd18caab4cfa025e3"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060error.kind() == ErrorKind::Cancelled \u0026\u0026 error.cleanup_error().is_none()\u0060 appears character-identically in 2 files \u2014 crates/crab-sdk/src/content/crab.rs, crates/crab-sdk/src/runtime.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/crab-sdk/src/content/crab.rs"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3395a426bc2f76c03d72d9e62d7c1abf31c3384649a1577a3fe6d0c795e1a51"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060f.is_finite() \u0026\u0026 f.fract() == 0.0 \u0026\u0026 f.abs() \u003C 1e16\u0060 appears character-identically in 2 files \u2014 crates/crab-workflow/src/exp_worktree.rs, crates/crab-workflow/src/params.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/crab-workflow/src/exp_worktree.rs"},"region":{"startLine":1587}}}],"partialFingerprints":{"codehealthFindingId/v1":"15b42d74d7ae325adee08db75e30089ef7524f7d8ca5820927f6a00ebfd60b21"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060final_pack.exists() \u0026\u0026 final_idx.exists()\u0060 appears character-identically in 3 files \u2014 crab/src/git/pack.rs, crab/src/read/mod.rs, crates/crab-git/src/pack.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":"crab/src/git/pack.rs"},"region":{"startLine":1347}}}],"partialFingerprints":{"codehealthFindingId/v1":"435565ee3cca8e5886811b1c5f8316c10afda1a8146eda1c2d146ebf8e1a611c"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060first == \u0027_\u0027 || first.is_ascii_alphabetic()\u0060 appears character-identically in 2 files \u2014 crates/crab-workflow/src/exp_worktree.rs, crates/crab-workflow/src/params.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/crab-workflow/src/exp_worktree.rs"},"region":{"startLine":1270}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fbddac62e091baf52793af967ad617b159a27fb3bf33ffece64851334b96626"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060ft.is_socket() || (ft.is_file() \u0026\u0026 meta.len() == 0)\u0060 appears character-identically in 3 files \u2014 crates/crab-vfs/src/coordinator.rs, crates/crab-vfs/src/ipc_server.rs, crates/crab-vfs/src/nfs_control.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/crab-vfs/src/coordinator.rs"},"region":{"startLine":258}}}],"partialFingerprints":{"codehealthFindingId/v1":"7cb5fec878865d21fd8bd6a76a5d39608849cb1d3b33e347502a027be5ba4edc"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060guard.as_ref() \u0026\u0026 Self::is_cached_valid(Some(c))\u0060 appears character-identically in 3 files \u2014 crates/crab-auth/src/aws_oidc.rs, crates/crab-auth/src/azure_entra.rs, crates/crab-auth/src/gcp_federation.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/crab-auth/src/aws_oidc.rs"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf21a517511dab4e2de0c650750c1902e05fefa17353818ccb9b45d5703cde0f"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060input.body.is_none() \u0026\u0026 input.suggested_text.is_none() \u0026\u0026 input.resolved.is_none()\u0060 appears character-identically in 2 files \u2014 crates/crab-http-server/src/cells/repository/pull_review_threads.rs, crates/crab-http-server/src/pulls/review_threads.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/crab-http-server/src/cells/repository/pull_review_threads.rs"},"region":{"startLine":337}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0a906c77d01a18aacd206ebfec0288ef3f527fa9d5cfc0e1ce9cadf81b2d371"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060input.title.is_none() \u0026\u0026 input.body.is_none() \u0026\u0026 input.state.is_none() \u0026\u0026 input.label_ids.is_none() \u0026\u0026 input.assignees.is_none()\u0060 appears character-identically in 2 files \u2014 crates/crab-http-server/src/issues.rs, crates/crab-http-server/src/pulls.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/crab-http-server/src/issues.rs"},"region":{"startLine":435}}}],"partialFingerprints":{"codehealthFindingId/v1":"a36530d0f68b1804e47cfd3fdae462091521513d75194974249afcec51764b24"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060key.trim().is_empty() || key.len() \u003E 64 || key.chars().any(char::is_control) || value.len() \u003E 1024 || value.chars().any(char::is_control)\u0060 appears character-identically in 2 files \u2014 crates/crab-workflow/src/artifact.rs, crates/crab-workflow/src/source.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/crab-workflow/src/artifact.rs"},"region":{"startLine":2143}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d64926d7cf33886f592106638841543f6426208f46f84e5c39204d697eefd96"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060left.chunk_hash == right.chunk_hash \u0026\u0026 left.xorb_hash == right.xorb_hash \u0026\u0026 left.chunk_index == right.chunk_index \u0026\u0026 left.uncompressed_size \u2026\u0060 appears character-identically in 2 files \u2014 crab/src/git/push.rs, crates/crab-staging/src/push_plan.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":"crab/src/git/push.rs"},"region":{"startLine":1550}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a92c613a69b6049c5ae72e8c8ffadbcbc60084bef9655e299e0354de45ebaf8"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060left.issuer == right.issuer \u0026\u0026 left.subject == right.subject\u0060 appears character-identically in 7 files \u2014 crates/crab-http-server/src/cells/repository.rs, crates/crab-http-server/src/cells/repository/pull_review_threads.rs, crates/crab-http-server/src/checks.rs, crates/crab-http-server/src/issues.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/crab-http-server/src/cells/repository.rs"},"region":{"startLine":1219}}}],"partialFingerprints":{"codehealthFindingId/v1":"37ac7afbe2f387c0788a3ff655229951a1ceedcc27377c131c29a7b2eda33b09"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060line.is_empty() || line.starts_with(\u0027#\u0027)\u0060 appears character-identically in 3 files \u2014 crab/src/cmd/doctor.rs, crates/crab-cache-server/src/metrics.rs, crates/crab-workflow/src/hasher.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":"crab/src/cmd/doctor.rs"},"region":{"startLine":1622}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c4566fc003d8a69d6f8596e9d3fb5eb3949043103ee7d24bd621e59a419caa5"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060line.split_once(\u0027 \u0027) \u0026\u0026 name.trim() == ref_name\u0060 appears character-identically in 2 files \u2014 crates/crab-vfs/src/daemon.rs, crates/crab-vfs/src/pipeline.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/crab-vfs/src/daemon.rs"},"region":{"startLine":1886}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d1ade00db3addbfd9c5f6ee10da8922febd3cf647479d4d0bab052ce4245f60"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060line.starts_with(\u0027#\u0027) || line.starts_with(\u0027^\u0027)\u0060 appears character-identically in 2 files \u2014 crates/crab-vfs/src/daemon.rs, crates/crab-vfs/src/pipeline.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/crab-vfs/src/daemon.rs"},"region":{"startLine":1882}}}],"partialFingerprints":{"codehealthFindingId/v1":"4136bd81ae10c32e179a4a9a28283d1652ec71c266c45ab73a57dc9338bf1a49"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060manifest.refs.is_empty() || manifest.pack_index_hash.is_empty()\u0060 appears character-identically in 3 files \u2014 crab/src/cmd/repack.rs, crab/src/git/push.rs, crab/src/replication/mod.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":"crab/src/cmd/repack.rs"},"region":{"startLine":952}}}],"partialFingerprints":{"codehealthFindingId/v1":"8afbcdad17100c0f35d001fd0ee79af10d5f0717cfcd6ff7d887186cf901ee0f"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060meta.hash != placement.chunk_hash || meta.uncompressed_len != placement.uncompressed_size\u0060 appears character-identically in 2 files \u2014 crab/src/git/push.rs, crates/crab-staging/src/push_plan.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":"crab/src/git/push.rs"},"region":{"startLine":693}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4434c7b2213b505b912ffab0e367a80f4b62b36ee67a7bfd80e430130bb1753"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060metadata.file_type().is_symlink() || !metadata.is_dir()\u0060 appears character-identically in 3 files \u2014 crab/src/cmd/exp.rs, crab/src/cmd/migrate.rs, crates/crab-workflow/src/dvc_inventory.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":"crab/src/cmd/exp.rs"},"region":{"startLine":1815}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ca2ad0de1e193da907cafc6686ac167f04e28c84e2c1400074b86a4ffb4733d"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060metadata.file_type().is_symlink() || !metadata.is_file()\u0060 appears character-identically in 7 files \u2014 crab/src/cmd/migrate.rs, crates/crab-workflow/src/artifact.rs, crates/crab-workflow/src/checkpoint.rs, crates/crab-workflow/src/dvc_inventory.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":"crab/src/cmd/migrate.rs"},"region":{"startLine":297}}}],"partialFingerprints":{"codehealthFindingId/v1":"a818834bea33eb83b939a3aa00f82571ade7720409725100d927a04cef736d3e"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060metadata.is_dir() \u0026\u0026 !metadata.file_type().is_symlink()\u0060 appears character-identically in 2 files \u2014 crates/crab-vfs/src/overlay.rs, crates/crab-vfs/src/publish.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/crab-vfs/src/overlay.rs"},"region":{"startLine":1638}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcf252a3ac105c8fa806e43f7589ee67a5782d88d539b381d6e4dd86063a6b81"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060name.contains(\u0022.tmp-\u0022) || name.contains(\u0022.backup-\u0022) || name.contains(\u0022.resume-\u0022) || name.contains(\u0022.pull-\u0022) || name.ends_with(\u0022.lock\u0022)\u0060 appears character-identically in 2 files \u2014 crab/src/cmd/exp.rs, crates/crab-workflow/src/gc.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":"crab/src/cmd/exp.rs"},"region":{"startLine":2021}}}],"partialFingerprints":{"codehealthFindingId/v1":"35c53d702201224f955d05eaf1de366299997a4502a9c2c0bc7979d91a5dc27a"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060name.starts_with(\u0022refs/heads/\u0022) || name.starts_with(\u0022refs/tags/\u0022)\u0060 appears character-identically in 2 files \u2014 crates/crab-auth-server/src/view/git_workspace.rs, crates/crab-sdk/src/local/push/git.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/crab-auth-server/src/view/git_workspace.rs"},"region":{"startLine":221}}}],"partialFingerprints":{"codehealthFindingId/v1":"9865b63ea6346ec180b3aec44391c0941ef91fe8caccd39310a312c23a8e8c9a"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060name_str == \u0022.git\u0022 || name_str == \u0022.crab\u0022\u0060 appears character-identically in 2 files \u2014 crab/src/cmd/clone.rs, crab/src/core/attrs.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":"crab/src/cmd/clone.rs"},"region":{"startLine":1531}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2845c434fbf032ec9118891709ed33d2963ddf2653e9c88bc930f55757d85fe"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060name_str.starts_with(\u0027.\u0027) || name_str == \u0022node_modules\u0022 || name_str == \u0022target\u0022 || name_str == \u0022__pycache__\u0022 || name_str == \u0022venv\u0022\u0060 appears character-identically in 4 files \u2014 crab/src/cmd/adopt.rs, crab/src/cmd/init.rs, crab/src/cmd/setup.rs, crab/src/cmd/unadopt.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":"crab/src/cmd/adopt.rs"},"region":{"startLine":291}}}],"partialFingerprints":{"codehealthFindingId/v1":"afd411f08b32487127db78cf1b15d4eca5016c0429efce36071c9d976c6686ab"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060opts.include_unchanged \u0026\u0026 !diff.unchanged.is_empty()\u0060 appears character-identically in 3 files \u2014 crab/src/cmd/metrics.rs, crab/src/cmd/params.rs, crates/crab-workflow/src/params_runtime.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":"crab/src/cmd/metrics.rs"},"region":{"startLine":4075}}}],"partialFingerprints":{"codehealthFindingId/v1":"c03e2a44b1d055b6a7d0e032f678dfb8ff8eec60f17fc77a59cffaa45d585ec8"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060page.chunks.is_empty() || page.start_occurrence != occurrence\u0060 appears character-identically in 2 files \u2014 crates/crab-sdk/src/client/mutation/native_content.rs, crates/crab-sdk/src/local/push/content.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/crab-sdk/src/client/mutation/native_content.rs"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"811b83318ca32b6f1168c1e587d9d699385bcd06a643948a4d2740ca1964c417"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060params.state.is_some() || params.q.is_some()\u0060 appears character-identically in 2 files \u2014 crates/crab-http-server/src/issues.rs, crates/crab-http-server/src/pulls.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/crab-http-server/src/issues.rs"},"region":{"startLine":528}}}],"partialFingerprints":{"codehealthFindingId/v1":"cdfa05d12df3188197746776579753b6ffd131bfebeb2521bdb593a4648768bd"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060parts.len() \u003C 3 || parts[1] == \u0022missing\u0022\u0060 appears character-identically in 2 files \u2014 crab/src/cmd/lfs/ls_files.rs, crab/src/lfs/prune.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":"crab/src/cmd/lfs/ls_files.rs"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"a821a5e1b3b032ebafe8e4088a0dcbf5a8b27d464cb398b2f44a8f394db8ef76"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060path == \u0022.gitattributes\u0022 || path.ends_with(\u0022/.gitattributes\u0022)\u0060 appears character-identically in 2 files \u2014 crab/src/lfs/migrate.rs, crates/crab-vfs/src/publish.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":"crab/src/lfs/migrate.rs"},"region":{"startLine":1868}}}],"partialFingerprints":{"codehealthFindingId/v1":"32c049a8abe91cf32cb59b819e428d8514dfa206bf2a7911fc19ea4390a75559"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060path.as_os_str().is_empty() || path.is_absolute()\u0060 appears character-identically in 2 files \u2014 crab/src/cmd/exp.rs, crab/src/cmd/status_workflow.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":"crab/src/cmd/exp.rs"},"region":{"startLine":3932}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ce6b60a5ab340d8975b12287e5820bbf042568832c536988f0b1420fcf1c01d"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060path.parent() \u0026\u0026 !parent.as_os_str().is_empty()\u0060 appears character-identically in 3 files \u2014 crab/src/cmd/recover.rs, crates/crab-workflow/src/lockfile.rs, crates/crab-workflow/src/materialize.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":"crab/src/cmd/recover.rs"},"region":{"startLine":3009}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b6fcc3f2ba008c89f6d6c30029358b0b239bafa7356a665135db1be8ee808c5"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060pattern == \u0022*\u0022 || pattern == \u0022**\u0022 || pattern == \u0022**/*\u0022\u0060 appears character-identically in 7 files \u2014 crab/src/cmd/add.rs, crab/src/cmd/dehydrate.rs, crab/src/cmd/du.rs, crab/src/cmd/hydrate.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":"crab/src/cmd/add.rs"},"region":{"startLine":3425}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1df9b67f958682c26d379b4af5c2130ab0596d3d9fc1be42dedbe79452adf95"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060pattern.strip_prefix(\u0027*\u0027) \u0026\u0026 path_str.ends_with(suffix)\u0060 appears character-identically in 6 files \u2014 crab/src/cmd/add.rs, crab/src/cmd/dehydrate.rs, crab/src/cmd/du.rs, crab/src/cmd/hydrate.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":"crab/src/cmd/add.rs"},"region":{"startLine":3428}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f8f5ba559fedddc390fc60d9e7ed1efdc47ca9bda6ab971e8d80b0d2943d5ee"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060pointer.file_hash != expected_hash || pointer.size != expected_size\u0060 appears character-identically in 2 files \u2014 crab/src/git/worktree.rs, crab/src/import/assemble.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":"crab/src/git/worktree.rs"},"region":{"startLine":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d66ecd4b7b75e5ec667d0493a4d6bc24a24aaace6b5925ea35ce2eb40f42d9f"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060pointer.file_hash != verified.file_hash || pointer.size != verified.size\u0060 appears character-identically in 2 files \u2014 crab/src/cache/add_validation.rs, crab/src/cmd/hydrate/execute.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":"crab/src/cache/add_validation.rs"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ea758f67832605e9e276be415021853a4b73e982abe481e95f20cb7cf8b0443"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060range.start != 0 || range.end != meta.size\u0060 appears character-identically in 2 files \u2014 crates/crab-auth-store/src/gateway_store.rs, crates/crab-lfs/src/object_store/origin.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/crab-auth-store/src/gateway_store.rs"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ab121afc9aa6e3fdeab5eb132ace91790602b077c61b095608fc5c3a021b793"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060raw_name.is_empty() || raw_name == \u0022.\u0022 || raw_name == \u0022..\u0022\u0060 appears character-identically in 2 files \u2014 crab/src/cmd/clone.rs, crab/src/cmd/lfs/clone.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":"crab/src/cmd/clone.rs"},"region":{"startLine":783}}}],"partialFingerprints":{"codehealthFindingId/v1":"638b5cd081226b9e9f4fc3107b841c0f860c1afe64b0c0b2770df25d33ccad20"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060record.owner.eq_ignore_ascii_case(owner) \u0026\u0026 record.name.eq_ignore_ascii_case(name)\u0060 appears character-identically in 2 files \u2014 crates/crab-http-server/src/catalog.rs, crates/crab-http-server/src/members.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/crab-http-server/src/catalog.rs"},"region":{"startLine":324}}}],"partialFingerprints":{"codehealthFindingId/v1":"da12df2a234466752e4a9d21cbfc84b23f213e9bbfc69c1a0305a6baa10bec6a"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060ref_name == \u0022HEAD\u0022 \u0026\u0026 repo_root.join(path).is_file()\u0060 appears character-identically in 2 files \u2014 crab/src/cmd/metrics.rs, crab/src/cmd/params.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":"crab/src/cmd/metrics.rs"},"region":{"startLine":3514}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd2561b3a7b1ce2d36d3ac158e9aa7c61c0a6c9099d69a73a2f833fd0fc9d7c9"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060s.files_skipped \u003E 0 || s.files_failed \u003E 0\u0060 appears character-identically in 2 files \u2014 crab/src/cmd/import.rs, crab/src/import/coordinator.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":"crab/src/cmd/import.rs"},"region":{"startLine":377}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bb3c770ba33fb128b15da364a001bdb9cc7d9378dfe2fd7fe57ab87613ef38c"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060s.lfs_resolved \u003E 0 || s.lfs_skipped \u003E 0 || s.lfs_failed \u003E 0\u0060 appears character-identically in 2 files \u2014 crab/src/cmd/import.rs, crab/src/import/coordinator.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":"crab/src/cmd/import.rs"},"region":{"startLine":384}}}],"partialFingerprints":{"codehealthFindingId/v1":"f94954f6730e5a0ddc85e7253996b8467223aaef934d68d5073352240bb0aa13"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060scaled \u003E= 1024.0 \u0026\u0026 idx \u003C UNITS.len() - 1\u0060 appears character-identically in 2 files \u2014 crab/src/cmd/adopt.rs, crab/src/cmd/unadopt.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":"crab/src/cmd/adopt.rs"},"region":{"startLine":768}}}],"partialFingerprints":{"codehealthFindingId/v1":"c561ac98c436d54027cf7e0a6daf872ddc35da4b9e90c1217672f423a6358a04"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060self.crc32.is_none() \u0026\u0026 self.crc32c.is_none() \u0026\u0026 self.crc64nvme.is_none() \u0026\u0026 self.sha1.is_none() \u0026\u0026 self.sha256.is_none()\u0060 appears character-identically in 2 files \u2014 crates/crab-s3-gateway/src/attributes.rs, crates/crab-s3-gateway/src/gateway.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/crab-s3-gateway/src/attributes.rs"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9525202da2c17b4509479590e41974452c21af94f8cff4470f534f681fef621"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060self.entries.len() == 1 \u0026\u0026 self.estimated_bytes \u003E max_estimated_bytes\u0060 appears character-identically in 3 files \u2014 crates/crab-vfs/src/engine.rs, crates/crab-vfs/src/nfs.rs, crates/crab-vfs/src/read_lease_pool.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/crab-vfs/src/engine.rs"},"region":{"startLine":1043}}}],"partialFingerprints":{"codehealthFindingId/v1":"25f666411948400acc4febcbc530272cba56551d89df5e521b08885e06d8feb2"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060self.entries.len() \u003E max_entries || self.estimated_bytes \u003E max_estimated_bytes\u0060 appears character-identically in 3 files \u2014 crates/crab-vfs/src/engine.rs, crates/crab-vfs/src/nfs.rs, crates/crab-vfs/src/read_lease_pool.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/crab-vfs/src/engine.rs"},"region":{"startLine":1042}}}],"partialFingerprints":{"codehealthFindingId/v1":"4141eca45b2e6cb635ec8ba47c97e97457d65f239c29f07558f1a663fe2dd3b9"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060status == reqwest::StatusCode::UNAUTHORIZED || status == reqwest::StatusCode::FORBIDDEN\u0060 appears character-identically in 2 files \u2014 crab/src/cmd/doctor.rs, crates/crab-cache/src/active_probe.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":"crab/src/cmd/doctor.rs"},"region":{"startLine":1965}}}],"partialFingerprints":{"codehealthFindingId/v1":"f47a138310a8f1f27bbbab6f2b20d13c76c84ef1fd8aed1fe229ecaaf545c103"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060tail.starts_with(\u0027:\u0027) || tail.starts_with(\u0027(\u0027)\u0060 appears character-identically in 2 files \u2014 crates/crab-workflow/src/exp_worktree.rs, crates/crab-workflow/src/params.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/crab-workflow/src/exp_worktree.rs"},"region":{"startLine":1197}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5c633d1caac2a69ef3030aba7c5f45730b0749accfd9ebf033e7fee1162ab2f"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060target.tenant() != self.identity.tenant() || target.application() != self.identity.application()\u0060 appears character-identically in 2 files \u2014 crates/crab-http-server/src/cells/router.rs, crates/crab-http-server/src/peer/client.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/crab-http-server/src/cells/router.rs"},"region":{"startLine":453}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6c6567a0325eed19931246237eb2ca0c4ca8c7fa6f27d7cb1e035bad2ac5a6b"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060to.form == UrlForm::Raw \u0026\u0026 from.cloud != to.cloud\u0060 appears character-identically in 2 files \u2014 crab/src/cmd/import.rs, crab/src/import/coordinator.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":"crab/src/cmd/import.rs"},"region":{"startLine":262}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7f2ec02cec9be40df0fe92bc0c907e8046b39abaee5606ec57054b99eed00e7"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060trimmed.is_empty() || trimmed.starts_with(\u0027#\u0027)\u0060 appears character-identically in 6 files \u2014 crab/src/cmd/why.rs, crab/src/git/clean.rs, crab/src/lfs/track.rs, crates/crab-workflow/src/exp_worktree.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":"crab/src/cmd/why.rs"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"223e62d35ca2402f8bf155cfe1d6925bfcae084729d84e6c6c019d896dd1763a"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060value \u003E= 1024.0 \u0026\u0026 unit \u003C UNITS.len() - 1\u0060 appears character-identically in 2 files \u2014 crab/src/cmd/worktree.rs, crates/crab-cache-server/src/preflight.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":"crab/src/cmd/worktree.rs"},"region":{"startLine":917}}}],"partialFingerprints":{"codehealthFindingId/v1":"d189f06da954f1bac0090e2ee60fcdc6da144ae3f414e244a008ba633c178f7b"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060value.is_empty() || value.len() \u003E 16_384 || value.chars().any(char::is_control)\u0060 appears character-identically in 2 files \u2014 crates/crab-auth/src/managed/client.rs, crates/crab-auth/src/managed/transfer.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/crab-auth/src/managed/client.rs"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"b382e3de0e0f5960ba665e1be613a6c78db891723d9c81552fe04e1e57ec5c0d"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060value.len() \u003E maximum || value.contains(\u0027\\0\u0027) || (required \u0026\u0026 value.trim().is_empty())\u0060 appears character-identically in 2 files \u2014 crates/crab-http-server/src/cells/repository/checks.rs, crates/crab-http-server/src/checks.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/crab-http-server/src/cells/repository/checks.rs"},"region":{"startLine":710}}}],"partialFingerprints":{"codehealthFindingId/v1":"30772adb767e05fd0fa6aed22fa52a1997897d95bf8a5be535a5e621d13cd5c5"}},{"ruleId":"X15","level":"warning","message":{"text":"Length read from the parsed input is spent without ever being bounded: \u0060num_chunks\u0060 is read from the bytes being parsed at line 522 (\u0060u32::from_le_bytes\u0060), then used to size a \u0060Vec::with_capacity\u0060 at line 557 \u2014 and nowhere in its scope is \u0060num_chunks\u0060 compared to anything, clamped, or bounded against the input that remains. Whoever wrote those bytes therefore chooses the allocation directly: it reserves the whole length before a single byte of the payload is known to exist, so a 32-bit length asks for up to 4 GiB, and an allocation the allocator refuses aborts the process with \u0060memory allocation of \u2026 bytes failed\u0060 \u2014 an abort, not a panic, so no \u0060catch_unwind\u0060 intercepts it and the whole process dies; a 64-bit length past \u0060isize::MAX\u0060 panics with \u0060capacity overflow\u0060 instead, out of a parser whose failure path was written for malformed input, not for hostile input. Bound \u0060num_chunks\u0060 against the bytes actually remaining and a maximum the format allows before allocating."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/git/push.rs"},"region":{"startLine":557}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e366ea25dc9b5423c2081c53f4973a17c5204940abfc6d2d5fddf11ca2672a5"}},{"ruleId":"X17","level":"warning","message":{"text":"Recursive walk over a caller-supplied document has no depth cap: \u0060load_vars\u0060 is public, takes a document from its caller (line 118) and hands it to \u0060merge_var_value\u0060, which recurses at line 311 through \u0060merge_var_mapping\u0060 and back with a piece of the document (and at line 324) \u2014 and nowhere in the walk is a depth or nesting counter compared with a bound. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller\u0027s document \u2014 not this code \u2014 decides how deep the stack goes. When a Rust thread runs out of stack it is not unwound: the runtime reports the overflow and aborts the process, so \u0060catch_unwind\u0060 does not stop it and every other request the process serves dies with it (spawned threads, a Tokio worker included, get 2 MiB by default). serde_json and serde_yaml stop parsing at 128 levels only on their default path; a value from \u0060disable_recursion_limit\u0060, from another format or parser, or built in code carries whatever nesting it was given. Thread a depth argument through \u0060merge_var_value\u0060 and reject the value past a fixed maximum, or rewrite the descent with an explicit stack."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-workflow/src/template/context.rs"},"region":{"startLine":311}}}],"partialFingerprints":{"codehealthFindingId/v1":"41f6c3e4f66582a7f7ee6b49eb6c5df250b56b2b9c39bcf0cb5b09932c62f0b6"}},{"ruleId":"X17","level":"warning","message":{"text":"Recursive walk over a caller-supplied document has no depth cap: \u0060expand_matrix\u0060 is public, takes a document from its caller (line 46) and hands it to \u0060substitute_template\u0060, which recurses at line 235 through \u0060substitute_command_template\u0060 and back with a piece of the document (and at line 239, line 241, line 250, line 269) \u2014 and nowhere in the walk is a depth or nesting counter compared with a bound. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller\u0027s document \u2014 not this code \u2014 decides how deep the stack goes. When a Rust thread runs out of stack it is not unwound: the runtime reports the overflow and aborts the process, so \u0060catch_unwind\u0060 does not stop it and every other request the process serves dies with it (spawned threads, a Tokio worker included, get 2 MiB by default). serde_json and serde_yaml stop parsing at 128 levels only on their default path; a value from \u0060disable_recursion_limit\u0060, from another format or parser, or built in code carries whatever nesting it was given. Thread a depth argument through \u0060substitute_template\u0060 and reject the value past a fixed maximum, or rewrite the descent with an explicit stack."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-workflow/src/template/matrix.rs"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"91c9720c77d5fcc128eecca0433603fc6aa3820a47c9ef5b9de27979500380c1"}},{"ruleId":"X17","level":"warning","message":{"text":"Recursive walk over a caller-supplied document has no depth cap: \u0060with_operation\u0060 is public and takes a \u0060Error\u0060 as its receiver from its caller, and it calls itself at line 80 with a piece of the document \u2014 and nowhere in the walk is a depth or nesting counter compared with a bound. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller\u0027s document \u2014 not this code \u2014 decides how deep the stack goes. When a Rust thread runs out of stack it is not unwound: the runtime reports the overflow and aborts the process, so \u0060catch_unwind\u0060 does not stop it and every other request the process serves dies with it (spawned threads, a Tokio worker included, get 2 MiB by default). serde_json and serde_yaml stop parsing at 128 levels only on their default path; a value from \u0060disable_recursion_limit\u0060, from another format or parser, or built in code carries whatever nesting it was given. Thread a depth argument through \u0060with_operation\u0060 and reject the value past a fixed maximum, or rewrite the descent with an explicit stack."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-sdk/src/error.rs"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"54f7ddb691179b066c5f4998ba954689323bf24ea8518d883e83be33cbd8545f"}},{"ruleId":"X17","level":"warning","message":{"text":"Recursive walk over a caller-supplied document has no depth cap: \u0060after_interruption\u0060 is public and takes a \u0060Error\u0060 as its receiver from its caller, and it calls itself at line 475 with a piece of the document \u2014 and nowhere in the walk is a depth or nesting counter compared with a bound. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller\u0027s document \u2014 not this code \u2014 decides how deep the stack goes. When a Rust thread runs out of stack it is not unwound: the runtime reports the overflow and aborts the process, so \u0060catch_unwind\u0060 does not stop it and every other request the process serves dies with it (spawned threads, a Tokio worker included, get 2 MiB by default). serde_json and serde_yaml stop parsing at 128 levels only on their default path; a value from \u0060disable_recursion_limit\u0060, from another format or parser, or built in code carries whatever nesting it was given. Thread a depth argument through \u0060after_interruption\u0060 and reject the value past a fixed maximum, or rewrite the descent with an explicit stack."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-remote-git/src/error.rs"},"region":{"startLine":475}}}],"partialFingerprints":{"codehealthFindingId/v1":"43ab1f2733de2b516c8cd84a3f0062525c5d258d4e47daf1c2ee0bb4900d9bcb"}},{"ruleId":"X17","level":"warning","message":{"text":"Recursive walk over a caller-supplied document has no depth cap: \u0060fmt\u0060 is public and takes a \u0060GeneratedPackLeaseError\u0060 as its receiver from its caller, and it calls itself at line 203 with a piece of the document \u2014 and nowhere in the walk is a depth or nesting counter compared with a bound. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller\u0027s document \u2014 not this code \u2014 decides how deep the stack goes. When a Rust thread runs out of stack it is not unwound: the runtime reports the overflow and aborts the process, so \u0060catch_unwind\u0060 does not stop it and every other request the process serves dies with it (spawned threads, a Tokio worker included, get 2 MiB by default). serde_json and serde_yaml stop parsing at 128 levels only on their default path; a value from \u0060disable_recursion_limit\u0060, from another format or parser, or built in code carries whatever nesting it was given. Thread a depth argument through \u0060fmt\u0060 and reject the value past a fixed maximum, or rewrite the descent with an explicit stack."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-remote-git/src/pack.rs"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2605550518323a018672c217474cdf2703f32b9bbda5c67257b895ff909acbf"}},{"ruleId":"X17","level":"warning","message":{"text":"Recursive walk over a caller-supplied document has no depth cap: \u0060latest\u0060 is public and takes a \u0060PathStateIndex\u0060 as its receiver from its caller, and it calls itself at line 75 with a piece of the document \u2014 and nowhere in the walk is a depth or nesting counter compared with a bound. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller\u0027s document \u2014 not this code \u2014 decides how deep the stack goes. When a Rust thread runs out of stack it is not unwound: the runtime reports the overflow and aborts the process, so \u0060catch_unwind\u0060 does not stop it and every other request the process serves dies with it (spawned threads, a Tokio worker included, get 2 MiB by default). serde_json and serde_yaml stop parsing at 128 levels only on their default path; a value from \u0060disable_recursion_limit\u0060, from another format or parser, or built in code carries whatever nesting it was given. Thread a depth argument through \u0060latest\u0060 and reject the value past a fixed maximum, or rewrite the descent with an explicit stack."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-remote-git/src/path_state.rs"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"34de134550b269c2fa03edc16df5b839a5bf179c08ed00b8aad325022d472c84"}},{"ruleId":"X17","level":"warning","message":{"text":"Recursive walk over a caller-supplied document has no depth cap: \u0060spawn_blocking\u0060 is public and takes a \u0060RemoteGitRuntime\u0060 as its receiver from its caller, and it calls itself at line 449 with a piece of the document \u2014 and nowhere in the walk is a depth or nesting counter compared with a bound. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller\u0027s document \u2014 not this code \u2014 decides how deep the stack goes. When a Rust thread runs out of stack it is not unwound: the runtime reports the overflow and aborts the process, so \u0060catch_unwind\u0060 does not stop it and every other request the process serves dies with it (spawned threads, a Tokio worker included, get 2 MiB by default). serde_json and serde_yaml stop parsing at 128 levels only on their default path; a value from \u0060disable_recursion_limit\u0060, from another format or parser, or built in code carries whatever nesting it was given. Thread a depth argument through \u0060spawn_blocking\u0060 and reject the value past a fixed maximum, or rewrite the descent with an explicit stack."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-remote-git/src/runtime.rs"},"region":{"startLine":449}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b5afd76be0e3e4f51afa740fe6f4ee9e3a885bb52eca53ab79120a03d89e7a5"}},{"ruleId":"X17","level":"warning","message":{"text":"Recursive walk over a caller-supplied document has no depth cap: \u0060charge\u0060 is public and takes a \u0060SharedBudget\u0060 as its receiver from its caller, and it calls itself at line 155 with a piece of the document \u2014 and nowhere in the walk is a depth or nesting counter compared with a bound. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller\u0027s document \u2014 not this code \u2014 decides how deep the stack goes. When a Rust thread runs out of stack it is not unwound: the runtime reports the overflow and aborts the process, so \u0060catch_unwind\u0060 does not stop it and every other request the process serves dies with it (spawned threads, a Tokio worker included, get 2 MiB by default). serde_json and serde_yaml stop parsing at 128 levels only on their default path; a value from \u0060disable_recursion_limit\u0060, from another format or parser, or built in code carries whatever nesting it was given. Thread a depth argument through \u0060charge\u0060 and reject the value past a fixed maximum, or rewrite the descent with an explicit stack."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-remote-git/src/budget/shared.rs"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f05499d8cf97eeb8068543f49884a686567f498ca9c7368a085e51b31f7fd0a"}},{"ruleId":"X17","level":"warning","message":{"text":"Recursive walk over a caller-supplied document has no depth cap: \u0060insert\u0060 is public and takes a \u0060TreeEdits\u0060 as its receiver from its caller, and it calls itself at line 173 with a piece of the document \u2014 and nowhere in the walk is a depth or nesting counter compared with a bound. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller\u0027s document \u2014 not this code \u2014 decides how deep the stack goes. When a Rust thread runs out of stack it is not unwound: the runtime reports the overflow and aborts the process, so \u0060catch_unwind\u0060 does not stop it and every other request the process serves dies with it (spawned threads, a Tokio worker included, get 2 MiB by default). serde_json and serde_yaml stop parsing at 128 levels only on their default path; a value from \u0060disable_recursion_limit\u0060, from another format or parser, or built in code carries whatever nesting it was given. Thread a depth argument through \u0060insert\u0060 and reject the value past a fixed maximum, or rewrite the descent with an explicit stack."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-remote/src/objects.rs"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebcc8dcde450645b48870561c31c7eb02e1cefc4b51ca545706c2452d2e2d119"}},{"ruleId":"X17","level":"warning","message":{"text":"Recursive walk over a caller-supplied document has no depth cap: \u0060apply_to_empty\u0060 is public, takes a document from its caller (line 198) and hands it to \u0060build\u0060, which calls itself at line 264 with a piece of the document \u2014 and nowhere in the walk is a depth or nesting counter compared with a bound. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller\u0027s document \u2014 not this code \u2014 decides how deep the stack goes. When a Rust thread runs out of stack it is not unwound: the runtime reports the overflow and aborts the process, so \u0060catch_unwind\u0060 does not stop it and every other request the process serves dies with it (spawned threads, a Tokio worker included, get 2 MiB by default). serde_json and serde_yaml stop parsing at 128 levels only on their default path; a value from \u0060disable_recursion_limit\u0060, from another format or parser, or built in code carries whatever nesting it was given. Thread a depth argument through \u0060build\u0060 and reject the value past a fixed maximum, or rewrite the descent with an explicit stack."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-remote/src/objects.rs"},"region":{"startLine":264}}}],"partialFingerprints":{"codehealthFindingId/v1":"d648c60e06299dec653d25098192ebcb247ce621ce798a590c57b6f64b1e366e"}},{"ruleId":"X17","level":"warning","message":{"text":"Recursive walk over a caller-supplied document has no depth cap: \u0060canonical_spec\u0060 is public and takes a \u0060UploadPackFilter\u0060 as its receiver from its caller, and it calls itself at line 295 with a piece of the document \u2014 and nowhere in the walk is a depth or nesting counter compared with a bound. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller\u0027s document \u2014 not this code \u2014 decides how deep the stack goes. When a Rust thread runs out of stack it is not unwound: the runtime reports the overflow and aborts the process, so \u0060catch_unwind\u0060 does not stop it and every other request the process serves dies with it (spawned threads, a Tokio worker included, get 2 MiB by default). serde_json and serde_yaml stop parsing at 128 levels only on their default path; a value from \u0060disable_recursion_limit\u0060, from another format or parser, or built in code carries whatever nesting it was given. Thread a depth argument through \u0060canonical_spec\u0060 and reject the value past a fixed maximum, or rewrite the descent with an explicit stack."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-read/src/upload_pack.rs"},"region":{"startLine":295}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc885eae60f5af7274fca9f7d671649a9a781a4c1a2b9212541fd3de647dc19c"}},{"ruleId":"X17","level":"warning","message":{"text":"Recursive walk over a caller-supplied document has no depth cap: \u0060is_catalog_exact\u0060 is public and takes a \u0060UploadPackFilter\u0060 as its receiver from its caller, and it calls itself at line 317 with a piece of the document \u2014 and nowhere in the walk is a depth or nesting counter compared with a bound. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller\u0027s document \u2014 not this code \u2014 decides how deep the stack goes. When a Rust thread runs out of stack it is not unwound: the runtime reports the overflow and aborts the process, so \u0060catch_unwind\u0060 does not stop it and every other request the process serves dies with it (spawned threads, a Tokio worker included, get 2 MiB by default). serde_json and serde_yaml stop parsing at 128 levels only on their default path; a value from \u0060disable_recursion_limit\u0060, from another format or parser, or built in code carries whatever nesting it was given. Thread a depth argument through \u0060is_catalog_exact\u0060 and reject the value past a fixed maximum, or rewrite the descent with an explicit stack."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-read/src/upload_pack.rs"},"region":{"startLine":317}}}],"partialFingerprints":{"codehealthFindingId/v1":"6932715f865b646bef70493e04282a27287b9283a37aba41769c050cfb70c37d"}},{"ruleId":"X17","level":"warning","message":{"text":"Recursive walk over a caller-supplied document has no depth cap: \u0060managed_openapi_breaking_changes\u0060 is public, takes a document from its caller (line 549) and hands it to \u0060compare_schema\u0060, which calls itself at line 717 with a piece of the document (and at line 727, line 746) \u2014 and nowhere in the walk is a depth or nesting counter compared with a bound. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller\u0027s document \u2014 not this code \u2014 decides how deep the stack goes. When a Rust thread runs out of stack it is not unwound: the runtime reports the overflow and aborts the process, so \u0060catch_unwind\u0060 does not stop it and every other request the process serves dies with it (spawned threads, a Tokio worker included, get 2 MiB by default). serde_json and serde_yaml stop parsing at 128 levels only on their default path; a value from \u0060disable_recursion_limit\u0060, from another format or parser, or built in code carries whatever nesting it was given. Thread a depth argument through \u0060compare_schema\u0060 and reject the value past a fixed maximum, or rewrite the descent with an explicit stack."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-auth/src/managed/openapi.rs"},"region":{"startLine":717}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a0c0b917f1dfc44788f46a6979124a64dcfc0d801cfa6a71b9a5cf6e6caebc9"}},{"ruleId":"X17","level":"warning","message":{"text":"Recursive walk over a caller-supplied document has no depth cap: \u0060redact_details\u0060 is public, takes a document from its caller (line 152) and hands it to \u0060redact_value\u0060, which calls itself at line 164 with a piece of the document (and at line 170) \u2014 and nowhere in the walk is a depth or nesting counter compared with a bound. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller\u0027s document \u2014 not this code \u2014 decides how deep the stack goes. When a Rust thread runs out of stack it is not unwound: the runtime reports the overflow and aborts the process, so \u0060catch_unwind\u0060 does not stop it and every other request the process serves dies with it (spawned threads, a Tokio worker included, get 2 MiB by default). serde_json and serde_yaml stop parsing at 128 levels only on their default path; a value from \u0060disable_recursion_limit\u0060, from another format or parser, or built in code carries whatever nesting it was given. Thread a depth argument through \u0060redact_value\u0060 and reject the value past a fixed maximum, or rewrite the descent with an explicit stack."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/audit.rs"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbed3f4f632aeed24be924e9e758296c2d5d93ebfbe20c583deb3eca95f66fa6"}},{"ruleId":"X17","level":"warning","message":{"text":"Recursive walk over a caller-supplied document has no depth cap: \u0060retry_class\u0060 is public and takes \u0060err: \u0026CrabError\u0060 from its caller, and it calls itself at line 59 with a piece of the document (and at line 81, line 82) \u2014 and nowhere in the walk is a depth or nesting counter compared with a bound. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller\u0027s document \u2014 not this code \u2014 decides how deep the stack goes. When a Rust thread runs out of stack it is not unwound: the runtime reports the overflow and aborts the process, so \u0060catch_unwind\u0060 does not stop it and every other request the process serves dies with it (spawned threads, a Tokio worker included, get 2 MiB by default). serde_json and serde_yaml stop parsing at 128 levels only on their default path; a value from \u0060disable_recursion_limit\u0060, from another format or parser, or built in code carries whatever nesting it was given. Thread a depth argument through \u0060retry_class\u0060 and reject the value past a fixed maximum, or rewrite the descent with an explicit stack."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/storage/retry.rs"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"e71104fe2ed7fbe997d507b7c2265cec170ad4e7bf963cfdecbe93999686600f"}},{"ruleId":"X17","level":"warning","message":{"text":"Recursive walk over a caller-supplied document has no depth cap: \u0060storage_scope\u0060 is public and takes a \u0060Store\u0060 as its receiver from its caller, and it calls itself at line 331 with a piece of the document (and at line 406) \u2014 and nowhere in the walk is a depth or nesting counter compared with a bound. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller\u0027s document \u2014 not this code \u2014 decides how deep the stack goes. When a Rust thread runs out of stack it is not unwound: the runtime reports the overflow and aborts the process, so \u0060catch_unwind\u0060 does not stop it and every other request the process serves dies with it (spawned threads, a Tokio worker included, get 2 MiB by default). serde_json and serde_yaml stop parsing at 128 levels only on their default path; a value from \u0060disable_recursion_limit\u0060, from another format or parser, or built in code carries whatever nesting it was given. Thread a depth argument through \u0060storage_scope\u0060 and reject the value past a fixed maximum, or rewrite the descent with an explicit stack."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/storage/store.rs"},"region":{"startLine":331}}}],"partialFingerprints":{"codehealthFindingId/v1":"53d3b7d2da1851c8f783ab19cee939da5065fd2a8117f515cdba87b69ee584de"}},{"ruleId":"X17","level":"warning","message":{"text":"Recursive walk over a caller-supplied document has no depth cap: \u0060with_bucket_identity\u0060 is public and takes a \u0060Store\u0060 as its receiver from its caller, and it calls itself at line 367 with a piece of the document \u2014 and nowhere in the walk is a depth or nesting counter compared with a bound. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller\u0027s document \u2014 not this code \u2014 decides how deep the stack goes. When a Rust thread runs out of stack it is not unwound: the runtime reports the overflow and aborts the process, so \u0060catch_unwind\u0060 does not stop it and every other request the process serves dies with it (spawned threads, a Tokio worker included, get 2 MiB by default). serde_json and serde_yaml stop parsing at 128 levels only on their default path; a value from \u0060disable_recursion_limit\u0060, from another format or parser, or built in code carries whatever nesting it was given. Thread a depth argument through \u0060with_bucket_identity\u0060 and reject the value past a fixed maximum, or rewrite the descent with an explicit stack."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/storage/store.rs"},"region":{"startLine":367}}}],"partialFingerprints":{"codehealthFindingId/v1":"65033583e34e5ab0994739dcc74129cc118fdce0898f5ee7df0dc719024e8035"}},{"ruleId":"X17","level":"warning","message":{"text":"Recursive walk over a caller-supplied document has no depth cap: \u0060with_target_identity\u0060 is public and takes a \u0060Store\u0060 as its receiver from its caller, and it calls itself at line 373 with a piece of the document \u2014 and nowhere in the walk is a depth or nesting counter compared with a bound. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller\u0027s document \u2014 not this code \u2014 decides how deep the stack goes. When a Rust thread runs out of stack it is not unwound: the runtime reports the overflow and aborts the process, so \u0060catch_unwind\u0060 does not stop it and every other request the process serves dies with it (spawned threads, a Tokio worker included, get 2 MiB by default). serde_json and serde_yaml stop parsing at 128 levels only on their default path; a value from \u0060disable_recursion_limit\u0060, from another format or parser, or built in code carries whatever nesting it was given. Thread a depth argument through \u0060with_target_identity\u0060 and reject the value past a fixed maximum, or rewrite the descent with an explicit stack."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/storage/store.rs"},"region":{"startLine":373}}}],"partialFingerprints":{"codehealthFindingId/v1":"6696adc4188aa1c14722fa8e46a9a72446c7e3a3eabba75b6ad7fba04c7bb452"}},{"ruleId":"X17","level":"warning","message":{"text":"Recursive walk over a caller-supplied document has no depth cap: \u0060with_signer\u0060 is public and takes a \u0060Store\u0060 as its receiver from its caller, and it calls itself at line 379 with a piece of the document \u2014 and nowhere in the walk is a depth or nesting counter compared with a bound. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller\u0027s document \u2014 not this code \u2014 decides how deep the stack goes. When a Rust thread runs out of stack it is not unwound: the runtime reports the overflow and aborts the process, so \u0060catch_unwind\u0060 does not stop it and every other request the process serves dies with it (spawned threads, a Tokio worker included, get 2 MiB by default). serde_json and serde_yaml stop parsing at 128 levels only on their default path; a value from \u0060disable_recursion_limit\u0060, from another format or parser, or built in code carries whatever nesting it was given. Thread a depth argument through \u0060with_signer\u0060 and reject the value past a fixed maximum, or rewrite the descent with an explicit stack."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/storage/store.rs"},"region":{"startLine":379}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1f75b98e281348d92070e7b695c3d2b8d56edc6b9305095a7063e2d6d5a58b6"}},{"ruleId":"X17","level":"warning","message":{"text":"Recursive walk over a caller-supplied document has no depth cap: \u0060with_multipart\u0060 is public and takes a \u0060Store\u0060 as its receiver from its caller, and it calls itself at line 389 with a piece of the document \u2014 and nowhere in the walk is a depth or nesting counter compared with a bound. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller\u0027s document \u2014 not this code \u2014 decides how deep the stack goes. When a Rust thread runs out of stack it is not unwound: the runtime reports the overflow and aborts the process, so \u0060catch_unwind\u0060 does not stop it and every other request the process serves dies with it (spawned threads, a Tokio worker included, get 2 MiB by default). serde_json and serde_yaml stop parsing at 128 levels only on their default path; a value from \u0060disable_recursion_limit\u0060, from another format or parser, or built in code carries whatever nesting it was given. Thread a depth argument through \u0060with_multipart\u0060 and reject the value past a fixed maximum, or rewrite the descent with an explicit stack."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/storage/store.rs"},"region":{"startLine":389}}}],"partialFingerprints":{"codehealthFindingId/v1":"e036b474a0728cb12a51cca36ae55f769669b40451fc045014a567115ea21251"}},{"ruleId":"X17","level":"warning","message":{"text":"Recursive walk over a caller-supplied document has no depth cap: \u0060has_resumable_multipart\u0060 is public and takes a \u0060Store\u0060 as its receiver from its caller, and it calls itself at line 395 with a piece of the document \u2014 and nowhere in the walk is a depth or nesting counter compared with a bound. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller\u0027s document \u2014 not this code \u2014 decides how deep the stack goes. When a Rust thread runs out of stack it is not unwound: the runtime reports the overflow and aborts the process, so \u0060catch_unwind\u0060 does not stop it and every other request the process serves dies with it (spawned threads, a Tokio worker included, get 2 MiB by default). serde_json and serde_yaml stop parsing at 128 levels only on their default path; a value from \u0060disable_recursion_limit\u0060, from another format or parser, or built in code carries whatever nesting it was given. Thread a depth argument through \u0060has_resumable_multipart\u0060 and reject the value past a fixed maximum, or rewrite the descent with an explicit stack."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/storage/store.rs"},"region":{"startLine":395}}}],"partialFingerprints":{"codehealthFindingId/v1":"bba92d783c7bb1f564069eaae5e4264cc47008d3f7c1dda20c97d6bf9eff2c0b"}},{"ruleId":"X17","level":"warning","message":{"text":"Recursive walk over a caller-supplied document has no depth cap: \u0060with_storage_scope\u0060 is public and takes a \u0060Store\u0060 as its receiver from its caller, and it calls itself at line 400 with a piece of the document \u2014 and nowhere in the walk is a depth or nesting counter compared with a bound. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller\u0027s document \u2014 not this code \u2014 decides how deep the stack goes. When a Rust thread runs out of stack it is not unwound: the runtime reports the overflow and aborts the process, so \u0060catch_unwind\u0060 does not stop it and every other request the process serves dies with it (spawned threads, a Tokio worker included, get 2 MiB by default). serde_json and serde_yaml stop parsing at 128 levels only on their default path; a value from \u0060disable_recursion_limit\u0060, from another format or parser, or built in code carries whatever nesting it was given. Thread a depth argument through \u0060with_storage_scope\u0060 and reject the value past a fixed maximum, or rewrite the descent with an explicit stack."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/storage/store.rs"},"region":{"startLine":400}}}],"partialFingerprints":{"codehealthFindingId/v1":"e459414942bc77983978b5b055557498ba8f0623cd30ee83b390666c2a222df9"}},{"ruleId":"X17","level":"warning","message":{"text":"Recursive walk over a caller-supplied document has no depth cap: \u0060with_read_routes\u0060 is public and takes a \u0060Store\u0060 as its receiver from its caller, and it calls itself at line 411 with a piece of the document \u2014 and nowhere in the walk is a depth or nesting counter compared with a bound. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller\u0027s document \u2014 not this code \u2014 decides how deep the stack goes. When a Rust thread runs out of stack it is not unwound: the runtime reports the overflow and aborts the process, so \u0060catch_unwind\u0060 does not stop it and every other request the process serves dies with it (spawned threads, a Tokio worker included, get 2 MiB by default). serde_json and serde_yaml stop parsing at 128 levels only on their default path; a value from \u0060disable_recursion_limit\u0060, from another format or parser, or built in code carries whatever nesting it was given. Thread a depth argument through \u0060with_read_routes\u0060 and reject the value past a fixed maximum, or rewrite the descent with an explicit stack."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/storage/store.rs"},"region":{"startLine":411}}}],"partialFingerprints":{"codehealthFindingId/v1":"d572048e0d527f9e4a29126f5dcea402271cfb4b8f0fced763720e42784ad5e4"}},{"ruleId":"X17","level":"warning","message":{"text":"Recursive walk over a caller-supplied document has no depth cap: \u0060with_read_byte_observer\u0060 is public and takes a \u0060Store\u0060 as its receiver from its caller, and it calls itself at line 417 with a piece of the document \u2014 and nowhere in the walk is a depth or nesting counter compared with a bound. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller\u0027s document \u2014 not this code \u2014 decides how deep the stack goes. When a Rust thread runs out of stack it is not unwound: the runtime reports the overflow and aborts the process, so \u0060catch_unwind\u0060 does not stop it and every other request the process serves dies with it (spawned threads, a Tokio worker included, get 2 MiB by default). serde_json and serde_yaml stop parsing at 128 levels only on their default path; a value from \u0060disable_recursion_limit\u0060, from another format or parser, or built in code carries whatever nesting it was given. Thread a depth argument through \u0060with_read_byte_observer\u0060 and reject the value past a fixed maximum, or rewrite the descent with an explicit stack."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/storage/store.rs"},"region":{"startLine":417}}}],"partialFingerprints":{"codehealthFindingId/v1":"58e1f9a85d6a7799eda43865559b6271663c7d4d37e888212316cb38aafea2f4"}},{"ruleId":"X17","level":"warning","message":{"text":"Recursive walk over a caller-supplied document has no depth cap: \u0060with_staging_writes\u0060 is public and takes a \u0060Store\u0060 as its receiver from its caller, and it calls itself at line 423 with a piece of the document \u2014 and nowhere in the walk is a depth or nesting counter compared with a bound. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller\u0027s document \u2014 not this code \u2014 decides how deep the stack goes. When a Rust thread runs out of stack it is not unwound: the runtime reports the overflow and aborts the process, so \u0060catch_unwind\u0060 does not stop it and every other request the process serves dies with it (spawned threads, a Tokio worker included, get 2 MiB by default). serde_json and serde_yaml stop parsing at 128 levels only on their default path; a value from \u0060disable_recursion_limit\u0060, from another format or parser, or built in code carries whatever nesting it was given. Thread a depth argument through \u0060with_staging_writes\u0060 and reject the value past a fixed maximum, or rewrite the descent with an explicit stack."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/storage/store.rs"},"region":{"startLine":423}}}],"partialFingerprints":{"codehealthFindingId/v1":"65a0d00dc69b54679d0a8c1d7f664d312c564f4570011f83a02d01813d0cd9dd"}},{"ruleId":"X17","level":"warning","message":{"text":"Recursive walk over a caller-supplied document has no depth cap: \u0060with_staging_write_store\u0060 is public and takes a \u0060Store\u0060 as its receiver from its caller, and it calls itself at line 435 with a piece of the document \u2014 and nowhere in the walk is a depth or nesting counter compared with a bound. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller\u0027s document \u2014 not this code \u2014 decides how deep the stack goes. When a Rust thread runs out of stack it is not unwound: the runtime reports the overflow and aborts the process, so \u0060catch_unwind\u0060 does not stop it and every other request the process serves dies with it (spawned threads, a Tokio worker included, get 2 MiB by default). serde_json and serde_yaml stop parsing at 128 levels only on their default path; a value from \u0060disable_recursion_limit\u0060, from another format or parser, or built in code carries whatever nesting it was given. Thread a depth argument through \u0060with_staging_write_store\u0060 and reject the value past a fixed maximum, or rewrite the descent with an explicit stack."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/storage/store.rs"},"region":{"startLine":435}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ccc9fafacf27738419a65c839f51405d270f9e436e2fd5cbd9b2709928bf9d9"}},{"ruleId":"X17","level":"warning","message":{"text":"Recursive walk over a caller-supplied document has no depth cap: \u0060staging_write_prefix\u0060 is public and takes a \u0060Store\u0060 as its receiver from its caller, and it calls itself at line 441 with a piece of the document \u2014 and nowhere in the walk is a depth or nesting counter compared with a bound. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller\u0027s document \u2014 not this code \u2014 decides how deep the stack goes. When a Rust thread runs out of stack it is not unwound: the runtime reports the overflow and aborts the process, so \u0060catch_unwind\u0060 does not stop it and every other request the process serves dies with it (spawned threads, a Tokio worker included, get 2 MiB by default). serde_json and serde_yaml stop parsing at 128 levels only on their default path; a value from \u0060disable_recursion_limit\u0060, from another format or parser, or built in code carries whatever nesting it was given. Thread a depth argument through \u0060staging_write_prefix\u0060 and reject the value past a fixed maximum, or rewrite the descent with an explicit stack."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/storage/store.rs"},"region":{"startLine":441}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d1e671cce50a2d3e79424e6088582229a74e59f5fcb03c317ed9a317c9fdb9b"}},{"ruleId":"X17","level":"warning","message":{"text":"Recursive walk over a caller-supplied document has no depth cap: \u0060staged_writes\u0060 is public and takes a \u0060Store\u0060 as its receiver from its caller, and it calls itself at line 446 with a piece of the document \u2014 and nowhere in the walk is a depth or nesting counter compared with a bound. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller\u0027s document \u2014 not this code \u2014 decides how deep the stack goes. When a Rust thread runs out of stack it is not unwound: the runtime reports the overflow and aborts the process, so \u0060catch_unwind\u0060 does not stop it and every other request the process serves dies with it (spawned threads, a Tokio worker included, get 2 MiB by default). serde_json and serde_yaml stop parsing at 128 levels only on their default path; a value from \u0060disable_recursion_limit\u0060, from another format or parser, or built in code carries whatever nesting it was given. Thread a depth argument through \u0060staged_writes\u0060 and reject the value past a fixed maximum, or rewrite the descent with an explicit stack."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/storage/store.rs"},"region":{"startLine":446}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d2fbbf1e8fb02faf2e48c15d42247ca72a44373cec05951b7530a04f5c41443"}},{"ruleId":"X17","level":"warning","message":{"text":"Recursive walk over a caller-supplied document has no depth cap: \u0060flush_staged_writes\u0060 is public and takes a \u0060Store\u0060 as its receiver from its caller, and it calls itself at line 450 with a piece of the document \u2014 and nowhere in the walk is a depth or nesting counter compared with a bound. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller\u0027s document \u2014 not this code \u2014 decides how deep the stack goes. When a Rust thread runs out of stack it is not unwound: the runtime reports the overflow and aborts the process, so \u0060catch_unwind\u0060 does not stop it and every other request the process serves dies with it (spawned threads, a Tokio worker included, get 2 MiB by default). serde_json and serde_yaml stop parsing at 128 levels only on their default path; a value from \u0060disable_recursion_limit\u0060, from another format or parser, or built in code carries whatever nesting it was given. Thread a depth argument through \u0060flush_staged_writes\u0060 and reject the value past a fixed maximum, or rewrite the descent with an explicit stack."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/storage/store.rs"},"region":{"startLine":450}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c85e4babe029b09d65e5ecb02d9181712e4c5ba71d1d5994038ce921032fd02"}},{"ruleId":"X17","level":"warning","message":{"text":"Recursive walk over a caller-supplied document has no depth cap: \u0060flush_staging_object\u0060 is public and takes a \u0060Store\u0060 as its receiver from its caller, and it calls itself at line 454 with a piece of the document \u2014 and nowhere in the walk is a depth or nesting counter compared with a bound. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller\u0027s document \u2014 not this code \u2014 decides how deep the stack goes. When a Rust thread runs out of stack it is not unwound: the runtime reports the overflow and aborts the process, so \u0060catch_unwind\u0060 does not stop it and every other request the process serves dies with it (spawned threads, a Tokio worker included, get 2 MiB by default). serde_json and serde_yaml stop parsing at 128 levels only on their default path; a value from \u0060disable_recursion_limit\u0060, from another format or parser, or built in code carries whatever nesting it was given. Thread a depth argument through \u0060flush_staging_object\u0060 and reject the value past a fixed maximum, or rewrite the descent with an explicit stack."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/storage/store.rs"},"region":{"startLine":454}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c43b1da28b5c26b2cca897347bf96ed715e297ee29274ae9dee859cb7e7fb67"}},{"ruleId":"X17","level":"warning","message":{"text":"Recursive walk over a caller-supplied document has no depth cap: \u0060bucket_identity\u0060 is public and takes a \u0060Store\u0060 as its receiver from its caller, and it calls itself at line 459 with a piece of the document \u2014 and nowhere in the walk is a depth or nesting counter compared with a bound. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller\u0027s document \u2014 not this code \u2014 decides how deep the stack goes. When a Rust thread runs out of stack it is not unwound: the runtime reports the overflow and aborts the process, so \u0060catch_unwind\u0060 does not stop it and every other request the process serves dies with it (spawned threads, a Tokio worker included, get 2 MiB by default). serde_json and serde_yaml stop parsing at 128 levels only on their default path; a value from \u0060disable_recursion_limit\u0060, from another format or parser, or built in code carries whatever nesting it was given. Thread a depth argument through \u0060bucket_identity\u0060 and reject the value past a fixed maximum, or rewrite the descent with an explicit stack."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/storage/store.rs"},"region":{"startLine":459}}}],"partialFingerprints":{"codehealthFindingId/v1":"4407c870ec67de1fc1964fcadd81d209cde200a6f0c8505492191b6939270594"}},{"ruleId":"X17","level":"warning","message":{"text":"Recursive walk over a caller-supplied document has no depth cap: \u0060inner\u0060 is public and takes a \u0060Store\u0060 as its receiver from its caller, and it calls itself at line 464 with a piece of the document \u2014 and nowhere in the walk is a depth or nesting counter compared with a bound. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller\u0027s document \u2014 not this code \u2014 decides how deep the stack goes. When a Rust thread runs out of stack it is not unwound: the runtime reports the overflow and aborts the process, so \u0060catch_unwind\u0060 does not stop it and every other request the process serves dies with it (spawned threads, a Tokio worker included, get 2 MiB by default). serde_json and serde_yaml stop parsing at 128 levels only on their default path; a value from \u0060disable_recursion_limit\u0060, from another format or parser, or built in code carries whatever nesting it was given. Thread a depth argument through \u0060inner\u0060 and reject the value past a fixed maximum, or rewrite the descent with an explicit stack."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/storage/store.rs"},"region":{"startLine":464}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c0a32753cf0bb830d97f4d089f41a7e9629cf97ba2baf6ef456f09df1b5965f"}},{"ruleId":"X17","level":"warning","message":{"text":"Recursive walk over a caller-supplied document has no depth cap: \u0060put\u0060 is public and takes a \u0060Store\u0060 as its receiver from its caller, and it calls itself at line 468 with a piece of the document \u2014 and nowhere in the walk is a depth or nesting counter compared with a bound. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller\u0027s document \u2014 not this code \u2014 decides how deep the stack goes. When a Rust thread runs out of stack it is not unwound: the runtime reports the overflow and aborts the process, so \u0060catch_unwind\u0060 does not stop it and every other request the process serves dies with it (spawned threads, a Tokio worker included, get 2 MiB by default). serde_json and serde_yaml stop parsing at 128 levels only on their default path; a value from \u0060disable_recursion_limit\u0060, from another format or parser, or built in code carries whatever nesting it was given. Thread a depth argument through \u0060put\u0060 and reject the value past a fixed maximum, or rewrite the descent with an explicit stack."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/storage/store.rs"},"region":{"startLine":468}}}],"partialFingerprints":{"codehealthFindingId/v1":"e323d3a81817cc12907dfd3463c21b447b50e1578112af1cae111eb393724eb3"}},{"ruleId":"X17","level":"warning","message":{"text":"Recursive walk over a caller-supplied document has no depth cap: \u0060put_if_absent\u0060 is public and takes a \u0060Store\u0060 as its receiver from its caller, and it calls itself at line 473 with a piece of the document \u2014 and nowhere in the walk is a depth or nesting counter compared with a bound. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller\u0027s document \u2014 not this code \u2014 decides how deep the stack goes. When a Rust thread runs out of stack it is not unwound: the runtime reports the overflow and aborts the process, so \u0060catch_unwind\u0060 does not stop it and every other request the process serves dies with it (spawned threads, a Tokio worker included, get 2 MiB by default). serde_json and serde_yaml stop parsing at 128 levels only on their default path; a value from \u0060disable_recursion_limit\u0060, from another format or parser, or built in code carries whatever nesting it was given. Thread a depth argument through \u0060put_if_absent\u0060 and reject the value past a fixed maximum, or rewrite the descent with an explicit stack."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/storage/store.rs"},"region":{"startLine":473}}}],"partialFingerprints":{"codehealthFindingId/v1":"63d6766659ad5a672ac696287ddfd23c6e36bcfe008882f61b8d331cee8098de"}},{"ruleId":"X17","level":"warning","message":{"text":"Recursive walk over a caller-supplied document has no depth cap: \u0060create_strict\u0060 is public and takes a \u0060Store\u0060 as its receiver from its caller, and it calls itself at line 480 with a piece of the document \u2014 and nowhere in the walk is a depth or nesting counter compared with a bound. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller\u0027s document \u2014 not this code \u2014 decides how deep the stack goes. When a Rust thread runs out of stack it is not unwound: the runtime reports the overflow and aborts the process, so \u0060catch_unwind\u0060 does not stop it and every other request the process serves dies with it (spawned threads, a Tokio worker included, get 2 MiB by default). serde_json and serde_yaml stop parsing at 128 levels only on their default path; a value from \u0060disable_recursion_limit\u0060, from another format or parser, or built in code carries whatever nesting it was given. Thread a depth argument through \u0060create_strict\u0060 and reject the value past a fixed maximum, or rewrite the descent with an explicit stack."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/storage/store.rs"},"region":{"startLine":480}}}],"partialFingerprints":{"codehealthFindingId/v1":"859b8cffd49b1de4233e3e74b6c62a003a4d1c24ac642b44a403fd275ae4304d"}},{"ruleId":"X17","level":"warning","message":{"text":"Recursive walk over a caller-supplied document has no depth cap: \u0060create_strict_with_etag\u0060 is public and takes a \u0060Store\u0060 as its receiver from its caller, and it calls itself at line 487 with a piece of the document \u2014 and nowhere in the walk is a depth or nesting counter compared with a bound. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller\u0027s document \u2014 not this code \u2014 decides how deep the stack goes. When a Rust thread runs out of stack it is not unwound: the runtime reports the overflow and aborts the process, so \u0060catch_unwind\u0060 does not stop it and every other request the process serves dies with it (spawned threads, a Tokio worker included, get 2 MiB by default). serde_json and serde_yaml stop parsing at 128 levels only on their default path; a value from \u0060disable_recursion_limit\u0060, from another format or parser, or built in code carries whatever nesting it was given. Thread a depth argument through \u0060create_strict_with_etag\u0060 and reject the value past a fixed maximum, or rewrite the descent with an explicit stack."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/storage/store.rs"},"region":{"startLine":487}}}],"partialFingerprints":{"codehealthFindingId/v1":"eff3172c20d65b9488b50d769e0f09435347ec5afa9a9cbb3433427d4b8b0653"}},{"ruleId":"X17","level":"warning","message":{"text":"Recursive walk over a caller-supplied document has no depth cap: \u0060put_overwrite\u0060 is public and takes a \u0060Store\u0060 as its receiver from its caller, and it calls itself at line 494 with a piece of the document \u2014 and nowhere in the walk is a depth or nesting counter compared with a bound. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller\u0027s document \u2014 not this code \u2014 decides how deep the stack goes. When a Rust thread runs out of stack it is not unwound: the runtime reports the overflow and aborts the process, so \u0060catch_unwind\u0060 does not stop it and every other request the process serves dies with it (spawned threads, a Tokio worker included, get 2 MiB by default). serde_json and serde_yaml stop parsing at 128 levels only on their default path; a value from \u0060disable_recursion_limit\u0060, from another format or parser, or built in code carries whatever nesting it was given. Thread a depth argument through \u0060put_overwrite\u0060 and reject the value past a fixed maximum, or rewrite the descent with an explicit stack."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/storage/store.rs"},"region":{"startLine":494}}}],"partialFingerprints":{"codehealthFindingId/v1":"d63b4b2105b4429bba4cb3aa7b9099c192ea8d5431258bbd1822b7206c78b3ab"}},{"ruleId":"X17","level":"warning","message":{"text":"Recursive walk over a caller-supplied document has no depth cap: \u0060update\u0060 is public and takes a \u0060Store\u0060 as its receiver from its caller, and it calls itself at line 501 with a piece of the document \u2014 and nowhere in the walk is a depth or nesting counter compared with a bound. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller\u0027s document \u2014 not this code \u2014 decides how deep the stack goes. When a Rust thread runs out of stack it is not unwound: the runtime reports the overflow and aborts the process, so \u0060catch_unwind\u0060 does not stop it and every other request the process serves dies with it (spawned threads, a Tokio worker included, get 2 MiB by default). serde_json and serde_yaml stop parsing at 128 levels only on their default path; a value from \u0060disable_recursion_limit\u0060, from another format or parser, or built in code carries whatever nesting it was given. Thread a depth argument through \u0060update\u0060 and reject the value past a fixed maximum, or rewrite the descent with an explicit stack."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/storage/store.rs"},"region":{"startLine":501}}}],"partialFingerprints":{"codehealthFindingId/v1":"d30af22564c9fb3c69bd0402da6c82baef947afdda55c4e5326a6266198ed9dc"}},{"ruleId":"X17","level":"warning","message":{"text":"Recursive walk over a caller-supplied document has no depth cap: \u0060put_exact\u0060 is public and takes a \u0060Store\u0060 as its receiver from its caller, and it calls itself at line 508 with a piece of the document \u2014 and nowhere in the walk is a depth or nesting counter compared with a bound. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller\u0027s document \u2014 not this code \u2014 decides how deep the stack goes. When a Rust thread runs out of stack it is not unwound: the runtime reports the overflow and aborts the process, so \u0060catch_unwind\u0060 does not stop it and every other request the process serves dies with it (spawned threads, a Tokio worker included, get 2 MiB by default). serde_json and serde_yaml stop parsing at 128 levels only on their default path; a value from \u0060disable_recursion_limit\u0060, from another format or parser, or built in code carries whatever nesting it was given. Thread a depth argument through \u0060put_exact\u0060 and reject the value past a fixed maximum, or rewrite the descent with an explicit stack."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/storage/store.rs"},"region":{"startLine":508}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fa9feffdd199c39c3430d5338e80312628af30911160a5d17670169931e27d6"}},{"ruleId":"X17","level":"warning","message":{"text":"Recursive walk over a caller-supplied document has no depth cap: \u0060get_with_etag\u0060 is public and takes a \u0060Store\u0060 as its receiver from its caller, and it calls itself at line 515 with a piece of the document \u2014 and nowhere in the walk is a depth or nesting counter compared with a bound. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller\u0027s document \u2014 not this code \u2014 decides how deep the stack goes. When a Rust thread runs out of stack it is not unwound: the runtime reports the overflow and aborts the process, so \u0060catch_unwind\u0060 does not stop it and every other request the process serves dies with it (spawned threads, a Tokio worker included, get 2 MiB by default). serde_json and serde_yaml stop parsing at 128 levels only on their default path; a value from \u0060disable_recursion_limit\u0060, from another format or parser, or built in code carries whatever nesting it was given. Thread a depth argument through \u0060get_with_etag\u0060 and reject the value past a fixed maximum, or rewrite the descent with an explicit stack."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/storage/store.rs"},"region":{"startLine":515}}}],"partialFingerprints":{"codehealthFindingId/v1":"613e820230c7d5cb684630f52943dce59e457c7f58c6edac25032399d4b4877a"}},{"ruleId":"X17","level":"warning","message":{"text":"Recursive walk over a caller-supplied document has no depth cap: \u0060get_with_etag_bounded\u0060 is public and takes a \u0060Store\u0060 as its receiver from its caller, and it calls itself at line 526 with a piece of the document \u2014 and nowhere in the walk is a depth or nesting counter compared with a bound. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller\u0027s document \u2014 not this code \u2014 decides how deep the stack goes. When a Rust thread runs out of stack it is not unwound: the runtime reports the overflow and aborts the process, so \u0060catch_unwind\u0060 does not stop it and every other request the process serves dies with it (spawned threads, a Tokio worker included, get 2 MiB by default). serde_json and serde_yaml stop parsing at 128 levels only on their default path; a value from \u0060disable_recursion_limit\u0060, from another format or parser, or built in code carries whatever nesting it was given. Thread a depth argument through \u0060get_with_etag_bounded\u0060 and reject the value past a fixed maximum, or rewrite the descent with an explicit stack."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/storage/store.rs"},"region":{"startLine":526}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a8a132f3c977cd595553a11f50f474ee605563641de50fc207b65cebaa2896b"}},{"ruleId":"X17","level":"warning","message":{"text":"Recursive walk over a caller-supplied document has no depth cap: \u0060download_to_path\u0060 is public and takes a \u0060Store\u0060 as its receiver from its caller, and it calls itself at line 533 with a piece of the document \u2014 and nowhere in the walk is a depth or nesting counter compared with a bound. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller\u0027s document \u2014 not this code \u2014 decides how deep the stack goes. When a Rust thread runs out of stack it is not unwound: the runtime reports the overflow and aborts the process, so \u0060catch_unwind\u0060 does not stop it and every other request the process serves dies with it (spawned threads, a Tokio worker included, get 2 MiB by default). serde_json and serde_yaml stop parsing at 128 levels only on their default path; a value from \u0060disable_recursion_limit\u0060, from another format or parser, or built in code carries whatever nesting it was given. Thread a depth argument through \u0060download_to_path\u0060 and reject the value past a fixed maximum, or rewrite the descent with an explicit stack."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/storage/store.rs"},"region":{"startLine":533}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d43ceaa278b3c68d460ca4372227a4767863def434d63d61771490b9fdd683d"}},{"ruleId":"X17","level":"warning","message":{"text":"Recursive walk over a caller-supplied document has no depth cap: \u0060download_to_path_bounded\u0060 is public and takes a \u0060Store\u0060 as its receiver from its caller, and it calls itself at line 545 with a piece of the document \u2014 and nowhere in the walk is a depth or nesting counter compared with a bound. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller\u0027s document \u2014 not this code \u2014 decides how deep the stack goes. When a Rust thread runs out of stack it is not unwound: the runtime reports the overflow and aborts the process, so \u0060catch_unwind\u0060 does not stop it and every other request the process serves dies with it (spawned threads, a Tokio worker included, get 2 MiB by default). serde_json and serde_yaml stop parsing at 128 levels only on their default path; a value from \u0060disable_recursion_limit\u0060, from another format or parser, or built in code carries whatever nesting it was given. Thread a depth argument through \u0060download_to_path_bounded\u0060 and reject the value past a fixed maximum, or rewrite the descent with an explicit stack."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/storage/store.rs"},"region":{"startLine":545}}}],"partialFingerprints":{"codehealthFindingId/v1":"28baad3086744a3699bf2d0de83088b2eb2940b64b40dae40d16e2bae403e26f"}},{"ruleId":"X17","level":"warning","message":{"text":"Recursive walk over a caller-supplied document has no depth cap: \u0060stream_to_writer\u0060 is public and takes a \u0060Store\u0060 as its receiver from its caller, and it calls itself at line 555 with a piece of the document \u2014 and nowhere in the walk is a depth or nesting counter compared with a bound. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller\u0027s document \u2014 not this code \u2014 decides how deep the stack goes. When a Rust thread runs out of stack it is not unwound: the runtime reports the overflow and aborts the process, so \u0060catch_unwind\u0060 does not stop it and every other request the process serves dies with it (spawned threads, a Tokio worker included, get 2 MiB by default). serde_json and serde_yaml stop parsing at 128 levels only on their default path; a value from \u0060disable_recursion_limit\u0060, from another format or parser, or built in code carries whatever nesting it was given. Thread a depth argument through \u0060stream_to_writer\u0060 and reject the value past a fixed maximum, or rewrite the descent with an explicit stack."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/storage/store.rs"},"region":{"startLine":555}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bffd3bf4fa44470c57406dc5501a06acb08fc0b720a565457ecae0bb7cbdeae"}},{"ruleId":"X17","level":"warning","message":{"text":"Recursive walk over a caller-supplied document has no depth cap: \u0060verify\u0060 is public and takes a \u0060Store\u0060 as its receiver from its caller, and it calls itself at line 562 with a piece of the document \u2014 and nowhere in the walk is a depth or nesting counter compared with a bound. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller\u0027s document \u2014 not this code \u2014 decides how deep the stack goes. When a Rust thread runs out of stack it is not unwound: the runtime reports the overflow and aborts the process, so \u0060catch_unwind\u0060 does not stop it and every other request the process serves dies with it (spawned threads, a Tokio worker included, get 2 MiB by default). serde_json and serde_yaml stop parsing at 128 levels only on their default path; a value from \u0060disable_recursion_limit\u0060, from another format or parser, or built in code carries whatever nesting it was given. Thread a depth argument through \u0060verify\u0060 and reject the value past a fixed maximum, or rewrite the descent with an explicit stack."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/storage/store.rs"},"region":{"startLine":562}}}],"partialFingerprints":{"codehealthFindingId/v1":"877a2d7c1676afeccfc0392f438fa51d5fedf1ae2e554848041b60cc1c8d5e46"}},{"ruleId":"X17","level":"warning","message":{"text":"Recursive walk over a caller-supplied document has no depth cap: \u0060verify_size_and_hash\u0060 is public and takes a \u0060Store\u0060 as its receiver from its caller, and it calls itself at line 574 with a piece of the document \u2014 and nowhere in the walk is a depth or nesting counter compared with a bound. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller\u0027s document \u2014 not this code \u2014 decides how deep the stack goes. When a Rust thread runs out of stack it is not unwound: the runtime reports the overflow and aborts the process, so \u0060catch_unwind\u0060 does not stop it and every other request the process serves dies with it (spawned threads, a Tokio worker included, get 2 MiB by default). serde_json and serde_yaml stop parsing at 128 levels only on their default path; a value from \u0060disable_recursion_limit\u0060, from another format or parser, or built in code carries whatever nesting it was given. Thread a depth argument through \u0060verify_size_and_hash\u0060 and reject the value past a fixed maximum, or rewrite the descent with an explicit stack."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/storage/store.rs"},"region":{"startLine":574}}}],"partialFingerprints":{"codehealthFindingId/v1":"3446232b38cd993ce1611bdadbc9003748fc2143b1cb19013247a52fadf1719e"}},{"ruleId":"X17","level":"warning","message":{"text":"Recursive walk over a caller-supplied document has no depth cap: \u0060verify_written_size_and_hash\u0060 is public and takes a \u0060Store\u0060 as its receiver from its caller, and it calls itself at line 586 with a piece of the document \u2014 and nowhere in the walk is a depth or nesting counter compared with a bound. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller\u0027s document \u2014 not this code \u2014 decides how deep the stack goes. When a Rust thread runs out of stack it is not unwound: the runtime reports the overflow and aborts the process, so \u0060catch_unwind\u0060 does not stop it and every other request the process serves dies with it (spawned threads, a Tokio worker included, get 2 MiB by default). serde_json and serde_yaml stop parsing at 128 levels only on their default path; a value from \u0060disable_recursion_limit\u0060, from another format or parser, or built in code carries whatever nesting it was given. Thread a depth argument through \u0060verify_written_size_and_hash\u0060 and reject the value past a fixed maximum, or rewrite the descent with an explicit stack."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/storage/store.rs"},"region":{"startLine":586}}}],"partialFingerprints":{"codehealthFindingId/v1":"570a9d34a53e0a3a8a223442361a097305956efb7e36ea5930b28849c7db573a"}},{"ruleId":"X17","level":"warning","message":{"text":"Recursive walk over a caller-supplied document has no depth cap: \u0060verify_written_size_and_hash_with_meta\u0060 is public and takes a \u0060Store\u0060 as its receiver from its caller, and it calls itself at line 598 with a piece of the document \u2014 and nowhere in the walk is a depth or nesting counter compared with a bound. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller\u0027s document \u2014 not this code \u2014 decides how deep the stack goes. When a Rust thread runs out of stack it is not unwound: the runtime reports the overflow and aborts the process, so \u0060catch_unwind\u0060 does not stop it and every other request the process serves dies with it (spawned threads, a Tokio worker included, get 2 MiB by default). serde_json and serde_yaml stop parsing at 128 levels only on their default path; a value from \u0060disable_recursion_limit\u0060, from another format or parser, or built in code carries whatever nesting it was given. Thread a depth argument through \u0060verify_written_size_and_hash_with_meta\u0060 and reject the value past a fixed maximum, or rewrite the descent with an explicit stack."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/storage/store.rs"},"region":{"startLine":598}}}],"partialFingerprints":{"codehealthFindingId/v1":"75b57a84388fc4b0768135730247be8d9ba24b0d533b6072e6ceceb916c7da3a"}},{"ruleId":"X17","level":"warning","message":{"text":"Recursive walk over a caller-supplied document has no depth cap: \u0060head\u0060 is public and takes a \u0060Store\u0060 as its receiver from its caller, and it calls itself at line 604 with a piece of the document \u2014 and nowhere in the walk is a depth or nesting counter compared with a bound. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller\u0027s document \u2014 not this code \u2014 decides how deep the stack goes. When a Rust thread runs out of stack it is not unwound: the runtime reports the overflow and aborts the process, so \u0060catch_unwind\u0060 does not stop it and every other request the process serves dies with it (spawned threads, a Tokio worker included, get 2 MiB by default). serde_json and serde_yaml stop parsing at 128 levels only on their default path; a value from \u0060disable_recursion_limit\u0060, from another format or parser, or built in code carries whatever nesting it was given. Thread a depth argument through \u0060head\u0060 and reject the value past a fixed maximum, or rewrite the descent with an explicit stack."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/storage/store.rs"},"region":{"startLine":604}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc678a138f5b1f7754e57d76b8b02f23708aa2427c4bebaf64603d0b678c77c8"}},{"ruleId":"X17","level":"warning","message":{"text":"Recursive walk over a caller-supplied document has no depth cap: \u0060range_get\u0060 is public and takes a \u0060Store\u0060 as its receiver from its caller, and it calls itself at line 609 with a piece of the document \u2014 and nowhere in the walk is a depth or nesting counter compared with a bound. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller\u0027s document \u2014 not this code \u2014 decides how deep the stack goes. When a Rust thread runs out of stack it is not unwound: the runtime reports the overflow and aborts the process, so \u0060catch_unwind\u0060 does not stop it and every other request the process serves dies with it (spawned threads, a Tokio worker included, get 2 MiB by default). serde_json and serde_yaml stop parsing at 128 levels only on their default path; a value from \u0060disable_recursion_limit\u0060, from another format or parser, or built in code carries whatever nesting it was given. Thread a depth argument through \u0060range_get\u0060 and reject the value past a fixed maximum, or rewrite the descent with an explicit stack."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/storage/store.rs"},"region":{"startLine":609}}}],"partialFingerprints":{"codehealthFindingId/v1":"405e61a17c12fc6f31d7b6a4e3e2d68e95e2f29486e7097b6243dcc8d8e90b0b"}},{"ruleId":"X17","level":"warning","message":{"text":"Recursive walk over a caller-supplied document has no depth cap: \u0060delete\u0060 is public and takes a \u0060Store\u0060 as its receiver from its caller, and it calls itself at line 615 with a piece of the document \u2014 and nowhere in the walk is a depth or nesting counter compared with a bound. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller\u0027s document \u2014 not this code \u2014 decides how deep the stack goes. When a Rust thread runs out of stack it is not unwound: the runtime reports the overflow and aborts the process, so \u0060catch_unwind\u0060 does not stop it and every other request the process serves dies with it (spawned threads, a Tokio worker included, get 2 MiB by default). serde_json and serde_yaml stop parsing at 128 levels only on their default path; a value from \u0060disable_recursion_limit\u0060, from another format or parser, or built in code carries whatever nesting it was given. Thread a depth argument through \u0060delete\u0060 and reject the value past a fixed maximum, or rewrite the descent with an explicit stack."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/storage/store.rs"},"region":{"startLine":615}}}],"partialFingerprints":{"codehealthFindingId/v1":"6349f0353c3c3e904d36e42bf69ead43bafd0f20bf9bfa8380c9c7ddd2479d49"}},{"ruleId":"X17","level":"warning","message":{"text":"Recursive walk over a caller-supplied document has no depth cap: \u0060copy\u0060 is public and takes a \u0060Store\u0060 as its receiver from its caller, and it calls itself at line 619 with a piece of the document \u2014 and nowhere in the walk is a depth or nesting counter compared with a bound. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller\u0027s document \u2014 not this code \u2014 decides how deep the stack goes. When a Rust thread runs out of stack it is not unwound: the runtime reports the overflow and aborts the process, so \u0060catch_unwind\u0060 does not stop it and every other request the process serves dies with it (spawned threads, a Tokio worker included, get 2 MiB by default). serde_json and serde_yaml stop parsing at 128 levels only on their default path; a value from \u0060disable_recursion_limit\u0060, from another format or parser, or built in code carries whatever nesting it was given. Thread a depth argument through \u0060copy\u0060 and reject the value past a fixed maximum, or rewrite the descent with an explicit stack."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/storage/store.rs"},"region":{"startLine":619}}}],"partialFingerprints":{"codehealthFindingId/v1":"098d52f1aad6832274ca30b398300c15b5dc789a10857ecd28c1dff59b75e399"}},{"ruleId":"X17","level":"warning","message":{"text":"Recursive walk over a caller-supplied document has no depth cap: \u0060copy_if_not_exists\u0060 is public and takes a \u0060Store\u0060 as its receiver from its caller, and it calls itself at line 624 with a piece of the document \u2014 and nowhere in the walk is a depth or nesting counter compared with a bound. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller\u0027s document \u2014 not this code \u2014 decides how deep the stack goes. When a Rust thread runs out of stack it is not unwound: the runtime reports the overflow and aborts the process, so \u0060catch_unwind\u0060 does not stop it and every other request the process serves dies with it (spawned threads, a Tokio worker included, get 2 MiB by default). serde_json and serde_yaml stop parsing at 128 levels only on their default path; a value from \u0060disable_recursion_limit\u0060, from another format or parser, or built in code carries whatever nesting it was given. Thread a depth argument through \u0060copy_if_not_exists\u0060 and reject the value past a fixed maximum, or rewrite the descent with an explicit stack."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/storage/store.rs"},"region":{"startLine":624}}}],"partialFingerprints":{"codehealthFindingId/v1":"d810d23de70adcf1e74c536a09d071a92fe7d7808f09be543a015b60697bb4da"}},{"ruleId":"X17","level":"warning","message":{"text":"Recursive walk over a caller-supplied document has no depth cap: \u0060promote_staged_content_addressed_object\u0060 is public and takes a \u0060Store\u0060 as its receiver from its caller, and it calls itself at line 637 with a piece of the document \u2014 and nowhere in the walk is a depth or nesting counter compared with a bound. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller\u0027s document \u2014 not this code \u2014 decides how deep the stack goes. When a Rust thread runs out of stack it is not unwound: the runtime reports the overflow and aborts the process, so \u0060catch_unwind\u0060 does not stop it and every other request the process serves dies with it (spawned threads, a Tokio worker included, get 2 MiB by default). serde_json and serde_yaml stop parsing at 128 levels only on their default path; a value from \u0060disable_recursion_limit\u0060, from another format or parser, or built in code carries whatever nesting it was given. Thread a depth argument through \u0060promote_staged_content_addressed_object\u0060 and reject the value past a fixed maximum, or rewrite the descent with an explicit stack."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/storage/store.rs"},"region":{"startLine":637}}}],"partialFingerprints":{"codehealthFindingId/v1":"89f58fd7da6c4f31c576658f9ac78ca06f54e0cd915bf821d44ad386aa1a83c7"}},{"ruleId":"X17","level":"warning","message":{"text":"Recursive walk over a caller-supplied document has no depth cap: \u0060create_multipart_upload\u0060 is public and takes a \u0060Store\u0060 as its receiver from its caller, and it calls itself at line 649 with a piece of the document \u2014 and nowhere in the walk is a depth or nesting counter compared with a bound. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller\u0027s document \u2014 not this code \u2014 decides how deep the stack goes. When a Rust thread runs out of stack it is not unwound: the runtime reports the overflow and aborts the process, so \u0060catch_unwind\u0060 does not stop it and every other request the process serves dies with it (spawned threads, a Tokio worker included, get 2 MiB by default). serde_json and serde_yaml stop parsing at 128 levels only on their default path; a value from \u0060disable_recursion_limit\u0060, from another format or parser, or built in code carries whatever nesting it was given. Thread a depth argument through \u0060create_multipart_upload\u0060 and reject the value past a fixed maximum, or rewrite the descent with an explicit stack."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/storage/store.rs"},"region":{"startLine":649}}}],"partialFingerprints":{"codehealthFindingId/v1":"1474f7d024b8de1f469ed94bb518fdcbbae196b1970e6f423364c6065f9208e0"}},{"ruleId":"X17","level":"warning","message":{"text":"Recursive walk over a caller-supplied document has no depth cap: \u0060delete_prefix\u0060 is public and takes a \u0060Store\u0060 as its receiver from its caller, and it calls itself at line 656 with a piece of the document \u2014 and nowhere in the walk is a depth or nesting counter compared with a bound. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller\u0027s document \u2014 not this code \u2014 decides how deep the stack goes. When a Rust thread runs out of stack it is not unwound: the runtime reports the overflow and aborts the process, so \u0060catch_unwind\u0060 does not stop it and every other request the process serves dies with it (spawned threads, a Tokio worker included, get 2 MiB by default). serde_json and serde_yaml stop parsing at 128 levels only on their default path; a value from \u0060disable_recursion_limit\u0060, from another format or parser, or built in code carries whatever nesting it was given. Thread a depth argument through \u0060delete_prefix\u0060 and reject the value past a fixed maximum, or rewrite the descent with an explicit stack."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/storage/store.rs"},"region":{"startLine":656}}}],"partialFingerprints":{"codehealthFindingId/v1":"4dda498156ac501de5257aa0c71b4fa7d7bec5046adfb3cef9ed321d8821b74e"}},{"ruleId":"X17","level":"warning","message":{"text":"Recursive walk over a caller-supplied document has no depth cap: \u0060list_prefix\u0060 is public and takes a \u0060Store\u0060 as its receiver from its caller, and it calls itself at line 663 with a piece of the document \u2014 and nowhere in the walk is a depth or nesting counter compared with a bound. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller\u0027s document \u2014 not this code \u2014 decides how deep the stack goes. When a Rust thread runs out of stack it is not unwound: the runtime reports the overflow and aborts the process, so \u0060catch_unwind\u0060 does not stop it and every other request the process serves dies with it (spawned threads, a Tokio worker included, get 2 MiB by default). serde_json and serde_yaml stop parsing at 128 levels only on their default path; a value from \u0060disable_recursion_limit\u0060, from another format or parser, or built in code carries whatever nesting it was given. Thread a depth argument through \u0060list_prefix\u0060 and reject the value past a fixed maximum, or rewrite the descent with an explicit stack."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/storage/store.rs"},"region":{"startLine":663}}}],"partialFingerprints":{"codehealthFindingId/v1":"82cc1c36d78d0843ecafac7edac5599321770d0758f777fb6b46c409634c1f66"}},{"ruleId":"X17","level":"warning","message":{"text":"Recursive walk over a caller-supplied document has no depth cap: \u0060put_multipart_retry\u0060 is public and takes a \u0060Store\u0060 as its receiver from its caller, and it calls itself at line 677 with a piece of the document \u2014 and nowhere in the walk is a depth or nesting counter compared with a bound. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller\u0027s document \u2014 not this code \u2014 decides how deep the stack goes. When a Rust thread runs out of stack it is not unwound: the runtime reports the overflow and aborts the process, so \u0060catch_unwind\u0060 does not stop it and every other request the process serves dies with it (spawned threads, a Tokio worker included, get 2 MiB by default). serde_json and serde_yaml stop parsing at 128 levels only on their default path; a value from \u0060disable_recursion_limit\u0060, from another format or parser, or built in code carries whatever nesting it was given. Thread a depth argument through \u0060put_multipart_retry\u0060 and reject the value past a fixed maximum, or rewrite the descent with an explicit stack."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/storage/store.rs"},"region":{"startLine":677}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6659a371329a76a11975bb45fb2ccde1060afc3c3829035f55d493df95c42c5"}},{"ruleId":"X17","level":"warning","message":{"text":"Recursive walk over a caller-supplied document has no depth cap: \u0060put_multipart_file_retry\u0060 is public and takes a \u0060Store\u0060 as its receiver from its caller, and it calls itself at line 721 with a piece of the document \u2014 and nowhere in the walk is a depth or nesting counter compared with a bound. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller\u0027s document \u2014 not this code \u2014 decides how deep the stack goes. When a Rust thread runs out of stack it is not unwound: the runtime reports the overflow and aborts the process, so \u0060catch_unwind\u0060 does not stop it and every other request the process serves dies with it (spawned threads, a Tokio worker included, get 2 MiB by default). serde_json and serde_yaml stop parsing at 128 levels only on their default path; a value from \u0060disable_recursion_limit\u0060, from another format or parser, or built in code carries whatever nesting it was given. Thread a depth argument through \u0060put_multipart_file_retry\u0060 and reject the value past a fixed maximum, or rewrite the descent with an explicit stack."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/storage/store.rs"},"region":{"startLine":721}}}],"partialFingerprints":{"codehealthFindingId/v1":"cdea163bf92277d84287ed103f116c7838a3367e155aaf3ef64cbe73680e4d68"}},{"ruleId":"X17","level":"warning","message":{"text":"Recursive walk over a caller-supplied document has no depth cap: \u0060put_multipart_file_resumable\u0060 is public and takes a \u0060Store\u0060 as its receiver from its caller, and it calls itself at line 748 with a piece of the document \u2014 and nowhere in the walk is a depth or nesting counter compared with a bound. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller\u0027s document \u2014 not this code \u2014 decides how deep the stack goes. When a Rust thread runs out of stack it is not unwound: the runtime reports the overflow and aborts the process, so \u0060catch_unwind\u0060 does not stop it and every other request the process serves dies with it (spawned threads, a Tokio worker included, get 2 MiB by default). serde_json and serde_yaml stop parsing at 128 levels only on their default path; a value from \u0060disable_recursion_limit\u0060, from another format or parser, or built in code carries whatever nesting it was given. Thread a depth argument through \u0060put_multipart_file_resumable\u0060 and reject the value past a fixed maximum, or rewrite the descent with an explicit stack."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/storage/store.rs"},"region":{"startLine":748}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb0065fd65a46d8807d534e83e645d33b50013048f01b00421185c9f26804fe6"}},{"ruleId":"X17","level":"warning","message":{"text":"Recursive walk over a caller-supplied document has no depth cap: \u0060multipart_target\u0060 is public and takes a \u0060Store\u0060 as its receiver from its caller, and it calls itself at line 768 with a piece of the document \u2014 and nowhere in the walk is a depth or nesting counter compared with a bound. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller\u0027s document \u2014 not this code \u2014 decides how deep the stack goes. When a Rust thread runs out of stack it is not unwound: the runtime reports the overflow and aborts the process, so \u0060catch_unwind\u0060 does not stop it and every other request the process serves dies with it (spawned threads, a Tokio worker included, get 2 MiB by default). serde_json and serde_yaml stop parsing at 128 levels only on their default path; a value from \u0060disable_recursion_limit\u0060, from another format or parser, or built in code carries whatever nesting it was given. Thread a depth argument through \u0060multipart_target\u0060 and reject the value past a fixed maximum, or rewrite the descent with an explicit stack."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/storage/store.rs"},"region":{"startLine":768}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a341e3913ca60cada39d33cd1613a769e8436db9d5e3fe05fe319059c4cb976"}},{"ruleId":"X17","level":"warning","message":{"text":"Recursive walk over a caller-supplied document has no depth cap: \u0060abort_explicit_multipart\u0060 is public and takes a \u0060Store\u0060 as its receiver from its caller, and it calls itself at line 773 with a piece of the document \u2014 and nowhere in the walk is a depth or nesting counter compared with a bound. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller\u0027s document \u2014 not this code \u2014 decides how deep the stack goes. When a Rust thread runs out of stack it is not unwound: the runtime reports the overflow and aborts the process, so \u0060catch_unwind\u0060 does not stop it and every other request the process serves dies with it (spawned threads, a Tokio worker included, get 2 MiB by default). serde_json and serde_yaml stop parsing at 128 levels only on their default path; a value from \u0060disable_recursion_limit\u0060, from another format or parser, or built in code carries whatever nesting it was given. Thread a depth argument through \u0060abort_explicit_multipart\u0060 and reject the value past a fixed maximum, or rewrite the descent with an explicit stack."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/storage/store.rs"},"region":{"startLine":773}}}],"partialFingerprints":{"codehealthFindingId/v1":"160bc57742b418492c13f7ffbf93c804518249be82e2e0ec628a475a39c74541"}},{"ruleId":"X17","level":"warning","message":{"text":"Recursive walk over a caller-supplied document has no depth cap: \u0060signed_url\u0060 is public and takes a \u0060Store\u0060 as its receiver from its caller, and it calls itself at line 850 with a piece of the document \u2014 and nowhere in the walk is a depth or nesting counter compared with a bound. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller\u0027s document \u2014 not this code \u2014 decides how deep the stack goes. When a Rust thread runs out of stack it is not unwound: the runtime reports the overflow and aborts the process, so \u0060catch_unwind\u0060 does not stop it and every other request the process serves dies with it (spawned threads, a Tokio worker included, get 2 MiB by default). serde_json and serde_yaml stop parsing at 128 levels only on their default path; a value from \u0060disable_recursion_limit\u0060, from another format or parser, or built in code carries whatever nesting it was given. Thread a depth argument through \u0060signed_url\u0060 and reject the value past a fixed maximum, or rewrite the descent with an explicit stack."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/storage/store.rs"},"region":{"startLine":850}}}],"partialFingerprints":{"codehealthFindingId/v1":"22cdd0fca7139911a11ab5147ab143cad4b879345b305ce98ddfc63e67ac32a5"}},{"ruleId":"X17","level":"warning","message":{"text":"Recursive walk over a caller-supplied document has no depth cap: \u0060get\u0060 is public and takes a \u0060Db\u0060 as its receiver from its caller, and it calls itself at line 514 with a piece of the document (and at line 515) \u2014 and nowhere in the walk is a depth or nesting counter compared with a bound. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller\u0027s document \u2014 not this code \u2014 decides how deep the stack goes. When a Rust thread runs out of stack it is not unwound: the runtime reports the overflow and aborts the process, so \u0060catch_unwind\u0060 does not stop it and every other request the process serves dies with it (spawned threads, a Tokio worker included, get 2 MiB by default). serde_json and serde_yaml stop parsing at 128 levels only on their default path; a value from \u0060disable_recursion_limit\u0060, from another format or parser, or built in code carries whatever nesting it was given. Thread a depth argument through \u0060get\u0060 and reject the value past a fixed maximum, or rewrite the descent with an explicit stack."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/metadata/metadb/db.rs"},"region":{"startLine":514}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9cab3748df27670daa083a3156ce51787e41fc9c512321b7b123d7061cc3619"}},{"ruleId":"X17","level":"warning","message":{"text":"Recursive walk over a caller-supplied document has no depth cap: \u0060flush\u0060 is public and takes a \u0060Db\u0060 as its receiver from its caller, and it calls itself at line 748 with a piece of the document \u2014 and nowhere in the walk is a depth or nesting counter compared with a bound. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller\u0027s document \u2014 not this code \u2014 decides how deep the stack goes. When a Rust thread runs out of stack it is not unwound: the runtime reports the overflow and aborts the process, so \u0060catch_unwind\u0060 does not stop it and every other request the process serves dies with it (spawned threads, a Tokio worker included, get 2 MiB by default). serde_json and serde_yaml stop parsing at 128 levels only on their default path; a value from \u0060disable_recursion_limit\u0060, from another format or parser, or built in code carries whatever nesting it was given. Thread a depth argument through \u0060flush\u0060 and reject the value past a fixed maximum, or rewrite the descent with an explicit stack."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/metadata/metadb/db.rs"},"region":{"startLine":748}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b3b3486c39aacceba85a335d196842d20926057c33e1ff9bf5e697084004e92"}},{"ruleId":"X17","level":"warning","message":{"text":"Recursive walk over a caller-supplied document has no depth cap: \u0060scan\u0060 is public and takes a \u0060Db\u0060 as its receiver from its caller, and it calls itself at line 796 with a piece of the document (and at line 797) \u2014 and nowhere in the walk is a depth or nesting counter compared with a bound. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller\u0027s document \u2014 not this code \u2014 decides how deep the stack goes. When a Rust thread runs out of stack it is not unwound: the runtime reports the overflow and aborts the process, so \u0060catch_unwind\u0060 does not stop it and every other request the process serves dies with it (spawned threads, a Tokio worker included, get 2 MiB by default). serde_json and serde_yaml stop parsing at 128 levels only on their default path; a value from \u0060disable_recursion_limit\u0060, from another format or parser, or built in code carries whatever nesting it was given. Thread a depth argument through \u0060scan\u0060 and reject the value past a fixed maximum, or rewrite the descent with an explicit stack."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/metadata/metadb/db.rs"},"region":{"startLine":796}}}],"partialFingerprints":{"codehealthFindingId/v1":"c036a31ac92416c8fd208c016bbeb4c46a7f0fa0dc622df192dab2b553d2cb18"}},{"ruleId":"X17","level":"warning","message":{"text":"Recursive walk over a caller-supplied document has no depth cap: \u0060scan_prefix\u0060 is public and takes a \u0060Db\u0060 as its receiver from its caller, and it calls itself at line 818 with a piece of the document (and at line 819) \u2014 and nowhere in the walk is a depth or nesting counter compared with a bound. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller\u0027s document \u2014 not this code \u2014 decides how deep the stack goes. When a Rust thread runs out of stack it is not unwound: the runtime reports the overflow and aborts the process, so \u0060catch_unwind\u0060 does not stop it and every other request the process serves dies with it (spawned threads, a Tokio worker included, get 2 MiB by default). serde_json and serde_yaml stop parsing at 128 levels only on their default path; a value from \u0060disable_recursion_limit\u0060, from another format or parser, or built in code carries whatever nesting it was given. Thread a depth argument through \u0060scan_prefix\u0060 and reject the value past a fixed maximum, or rewrite the descent with an explicit stack."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/metadata/metadb/db.rs"},"region":{"startLine":818}}}],"partialFingerprints":{"codehealthFindingId/v1":"4514d873a522c58f88c00857002891a7008d05e4c12fcb16702f22aa701aa9e4"}},{"ruleId":"X17","level":"warning","message":{"text":"Recursive walk over a caller-supplied document has no depth cap: \u0060close\u0060 is public and takes a \u0060Db\u0060 as its receiver from its caller, and it calls itself at line 843 with a piece of the document (and at line 851) \u2014 and nowhere in the walk is a depth or nesting counter compared with a bound. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller\u0027s document \u2014 not this code \u2014 decides how deep the stack goes. When a Rust thread runs out of stack it is not unwound: the runtime reports the overflow and aborts the process, so \u0060catch_unwind\u0060 does not stop it and every other request the process serves dies with it (spawned threads, a Tokio worker included, get 2 MiB by default). serde_json and serde_yaml stop parsing at 128 levels only on their default path; a value from \u0060disable_recursion_limit\u0060, from another format or parser, or built in code carries whatever nesting it was given. Thread a depth argument through \u0060close\u0060 and reject the value past a fixed maximum, or rewrite the descent with an explicit stack."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/metadata/metadb/db.rs"},"region":{"startLine":843}}}],"partialFingerprints":{"codehealthFindingId/v1":"2cecf0e3ffcedbbc711fda36c29479b39feb04a1375ca5d91951aeaafff41ef1"}},{"ruleId":"X17","level":"warning","message":{"text":"Recursive walk over a caller-supplied document has no depth cap: \u0060matches\u0060 is public and takes a \u0060PatternFilter\u0060 as its receiver from its caller, and it calls itself at line 348 with a piece of the document \u2014 and nowhere in the walk is a depth or nesting counter compared with a bound. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller\u0027s document \u2014 not this code \u2014 decides how deep the stack goes. When a Rust thread runs out of stack it is not unwound: the runtime reports the overflow and aborts the process, so \u0060catch_unwind\u0060 does not stop it and every other request the process serves dies with it (spawned threads, a Tokio worker included, get 2 MiB by default). serde_json and serde_yaml stop parsing at 128 levels only on their default path; a value from \u0060disable_recursion_limit\u0060, from another format or parser, or built in code carries whatever nesting it was given. Thread a depth argument through \u0060matches\u0060 and reject the value past a fixed maximum, or rewrite the descent with an explicit stack."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/lfs/batch.rs"},"region":{"startLine":348}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3de8731bff15a739dffc9e02c3bdc9669ae218a8046a895d5067cba74d00d7f"}},{"ruleId":"X17","level":"warning","message":{"text":"Recursive walk over a caller-supplied document has no depth cap: \u0060resolve_batch\u0060 is public and takes a \u0060TermResolver\u0060 as its receiver from its caller, and it calls itself at line 47 with a piece of the document \u2014 and nowhere in the walk is a depth or nesting counter compared with a bound. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller\u0027s document \u2014 not this code \u2014 decides how deep the stack goes. When a Rust thread runs out of stack it is not unwound: the runtime reports the overflow and aborts the process, so \u0060catch_unwind\u0060 does not stop it and every other request the process serves dies with it (spawned threads, a Tokio worker included, get 2 MiB by default). serde_json and serde_yaml stop parsing at 128 levels only on their default path; a value from \u0060disable_recursion_limit\u0060, from another format or parser, or built in code carries whatever nesting it was given. Thread a depth argument through \u0060resolve_batch\u0060 and reject the value past a fixed maximum, or rewrite the descent with an explicit stack."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/diff/term_resolver.rs"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"7431cab978cd1e2ddb06ca4cb810e34896c1bff8419821e0a59f947b539f3341"}},{"ruleId":"X17","level":"warning","message":{"text":"Recursive walk over a caller-supplied document has no depth cap: \u0060resolve_sequences_batch\u0060 is public and takes a \u0060TermResolver\u0060 as its receiver from its caller, and it calls itself at line 60 with a piece of the document \u2014 and nowhere in the walk is a depth or nesting counter compared with a bound. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller\u0027s document \u2014 not this code \u2014 decides how deep the stack goes. When a Rust thread runs out of stack it is not unwound: the runtime reports the overflow and aborts the process, so \u0060catch_unwind\u0060 does not stop it and every other request the process serves dies with it (spawned threads, a Tokio worker included, get 2 MiB by default). serde_json and serde_yaml stop parsing at 128 levels only on their default path; a value from \u0060disable_recursion_limit\u0060, from another format or parser, or built in code carries whatever nesting it was given. Thread a depth argument through \u0060resolve_sequences_batch\u0060 and reject the value past a fixed maximum, or rewrite the descent with an explicit stack."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/diff/term_resolver.rs"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"eba33142801662d566ea4c06997c62a0a31d36faf8c873f10fb39c28e5849b9a"}},{"ruleId":"X17","level":"warning","message":{"text":"Recursive walk over a caller-supplied document has no depth cap: \u0060exit_code\u0060 is public and takes a \u0060CrabError\u0060 as its receiver from its caller, and it calls itself at line 2259 with a piece of the document (and at line 2260) \u2014 and nowhere in the walk is a depth or nesting counter compared with a bound. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller\u0027s document \u2014 not this code \u2014 decides how deep the stack goes. When a Rust thread runs out of stack it is not unwound: the runtime reports the overflow and aborts the process, so \u0060catch_unwind\u0060 does not stop it and every other request the process serves dies with it (spawned threads, a Tokio worker included, get 2 MiB by default). serde_json and serde_yaml stop parsing at 128 levels only on their default path; a value from \u0060disable_recursion_limit\u0060, from another format or parser, or built in code carries whatever nesting it was given. Thread a depth argument through \u0060exit_code\u0060 and reject the value past a fixed maximum, or rewrite the descent with an explicit stack."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/core/error.rs"},"region":{"startLine":2259}}}],"partialFingerprints":{"codehealthFindingId/v1":"2788d3661239e944660b03ba471ee2cc080cefe96873a73ba46310c27c831377"}},{"ruleId":"X17","level":"warning","message":{"text":"Recursive walk over a caller-supplied document has no depth cap: \u0060code\u0060 is public and takes a \u0060CrabError\u0060 as its receiver from its caller, and it calls itself at line 2464 with a piece of the document (and at line 2465) \u2014 and nowhere in the walk is a depth or nesting counter compared with a bound. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller\u0027s document \u2014 not this code \u2014 decides how deep the stack goes. When a Rust thread runs out of stack it is not unwound: the runtime reports the overflow and aborts the process, so \u0060catch_unwind\u0060 does not stop it and every other request the process serves dies with it (spawned threads, a Tokio worker included, get 2 MiB by default). serde_json and serde_yaml stop parsing at 128 levels only on their default path; a value from \u0060disable_recursion_limit\u0060, from another format or parser, or built in code carries whatever nesting it was given. Thread a depth argument through \u0060code\u0060 and reject the value past a fixed maximum, or rewrite the descent with an explicit stack."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/core/error.rs"},"region":{"startLine":2464}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6d67a437080ae424791dcc8255cfc99b40bcc6b6d33523ae100838503369d62"}},{"ruleId":"X17","level":"warning","message":{"text":"Recursive walk over a caller-supplied document has no depth cap: \u0060category\u0060 is public and takes a \u0060CrabError\u0060 as its receiver from its caller, and it calls itself at line 2644 with a piece of the document (and at line 2645) \u2014 and nowhere in the walk is a depth or nesting counter compared with a bound. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller\u0027s document \u2014 not this code \u2014 decides how deep the stack goes. When a Rust thread runs out of stack it is not unwound: the runtime reports the overflow and aborts the process, so \u0060catch_unwind\u0060 does not stop it and every other request the process serves dies with it (spawned threads, a Tokio worker included, get 2 MiB by default). serde_json and serde_yaml stop parsing at 128 levels only on their default path; a value from \u0060disable_recursion_limit\u0060, from another format or parser, or built in code carries whatever nesting it was given. Thread a depth argument through \u0060category\u0060 and reject the value past a fixed maximum, or rewrite the descent with an explicit stack."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/core/error.rs"},"region":{"startLine":2644}}}],"partialFingerprints":{"codehealthFindingId/v1":"a12775b031712b2b998739561a732447ee1293adc96971f07508f2273627f22b"}},{"ruleId":"X17","level":"warning","message":{"text":"Recursive walk over a caller-supplied document has no depth cap: \u0060is_retryable\u0060 is public and takes a \u0060CrabError\u0060 as its receiver from its caller, and it calls itself at line 2871 with a piece of the document (and at line 2872) \u2014 and nowhere in the walk is a depth or nesting counter compared with a bound. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller\u0027s document \u2014 not this code \u2014 decides how deep the stack goes. When a Rust thread runs out of stack it is not unwound: the runtime reports the overflow and aborts the process, so \u0060catch_unwind\u0060 does not stop it and every other request the process serves dies with it (spawned threads, a Tokio worker included, get 2 MiB by default). serde_json and serde_yaml stop parsing at 128 levels only on their default path; a value from \u0060disable_recursion_limit\u0060, from another format or parser, or built in code carries whatever nesting it was given. Thread a depth argument through \u0060is_retryable\u0060 and reject the value past a fixed maximum, or rewrite the descent with an explicit stack."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/core/error.rs"},"region":{"startLine":2871}}}],"partialFingerprints":{"codehealthFindingId/v1":"a80f8f477b185f0593c16f786faf60436a62e0ccd36aeb7d4e278f19362c38e8"}},{"ruleId":"X17","level":"warning","message":{"text":"Recursive walk over a caller-supplied document has no depth cap: \u0060details_json\u0060 is public and takes a \u0060CrabError\u0060 as its receiver from its caller, and it calls itself at line 3041 with a piece of the document (and at line 3044) \u2014 and nowhere in the walk is a depth or nesting counter compared with a bound. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller\u0027s document \u2014 not this code \u2014 decides how deep the stack goes. When a Rust thread runs out of stack it is not unwound: the runtime reports the overflow and aborts the process, so \u0060catch_unwind\u0060 does not stop it and every other request the process serves dies with it (spawned threads, a Tokio worker included, get 2 MiB by default). serde_json and serde_yaml stop parsing at 128 levels only on their default path; a value from \u0060disable_recursion_limit\u0060, from another format or parser, or built in code carries whatever nesting it was given. Thread a depth argument through \u0060details_json\u0060 and reject the value past a fixed maximum, or rewrite the descent with an explicit stack."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/core/error.rs"},"region":{"startLine":3041}}}],"partialFingerprints":{"codehealthFindingId/v1":"9afcc5c30f43749bb8bcc027e39f41c91badd9f5e4745ed55c38739defa371b4"}},{"ruleId":"X17","level":"warning","message":{"text":"Recursive walk over a caller-supplied document has no depth cap: \u0060hint\u0060 is public and takes a \u0060CrabError\u0060 as its receiver from its caller, and it calls itself at line 3842 with a piece of the document (and at line 3843) \u2014 and nowhere in the walk is a depth or nesting counter compared with a bound. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller\u0027s document \u2014 not this code \u2014 decides how deep the stack goes. When a Rust thread runs out of stack it is not unwound: the runtime reports the overflow and aborts the process, so \u0060catch_unwind\u0060 does not stop it and every other request the process serves dies with it (spawned threads, a Tokio worker included, get 2 MiB by default). serde_json and serde_yaml stop parsing at 128 levels only on their default path; a value from \u0060disable_recursion_limit\u0060, from another format or parser, or built in code carries whatever nesting it was given. Thread a depth argument through \u0060hint\u0060 and reject the value past a fixed maximum, or rewrite the descent with an explicit stack."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/core/error.rs"},"region":{"startLine":3842}}}],"partialFingerprints":{"codehealthFindingId/v1":"100db78a1ede469e4ad87a9f744b94f159ecb4458fa721c2b135c280cf224c9c"}},{"ruleId":"X17","level":"warning","message":{"text":"Recursive walk over a caller-supplied document has no depth cap: \u0060docs_anchor\u0060 is public and takes a \u0060CrabError\u0060 as its receiver from its caller, and it calls itself at line 3873 with a piece of the document (and at line 3874) \u2014 and nowhere in the walk is a depth or nesting counter compared with a bound. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller\u0027s document \u2014 not this code \u2014 decides how deep the stack goes. When a Rust thread runs out of stack it is not unwound: the runtime reports the overflow and aborts the process, so \u0060catch_unwind\u0060 does not stop it and every other request the process serves dies with it (spawned threads, a Tokio worker included, get 2 MiB by default). serde_json and serde_yaml stop parsing at 128 levels only on their default path; a value from \u0060disable_recursion_limit\u0060, from another format or parser, or built in code carries whatever nesting it was given. Thread a depth argument through \u0060docs_anchor\u0060 and reject the value past a fixed maximum, or rewrite the descent with an explicit stack."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/core/error.rs"},"region":{"startLine":3873}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe5f3c5ce7473ea8c10997ad0ca508d13bd1df536a166e66e5ed19af9d403f48"}},{"ruleId":"X17","level":"warning","message":{"text":"Recursive walk over a caller-supplied document has no depth cap: \u0060error_code\u0060 is public and takes \u0060err: \u0026CrabError\u0060 from its caller, and it calls itself at line 1399 with a piece of the document \u2014 and nowhere in the walk is a depth or nesting counter compared with a bound. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller\u0027s document \u2014 not this code \u2014 decides how deep the stack goes. When a Rust thread runs out of stack it is not unwound: the runtime reports the overflow and aborts the process, so \u0060catch_unwind\u0060 does not stop it and every other request the process serves dies with it (spawned threads, a Tokio worker included, get 2 MiB by default). serde_json and serde_yaml stop parsing at 128 levels only on their default path; a value from \u0060disable_recursion_limit\u0060, from another format or parser, or built in code carries whatever nesting it was given. Thread a depth argument through \u0060error_code\u0060 and reject the value past a fixed maximum, or rewrite the descent with an explicit stack."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/core/error_catalog.rs"},"region":{"startLine":1399}}}],"partialFingerprints":{"codehealthFindingId/v1":"a82f40dfda58c2544a734ec73ef612dd82db42b631f0a6f30cb97f91e3953cb3"}},{"ruleId":"X17","level":"warning","message":{"text":"Recursive walk over a caller-supplied document has no depth cap: \u0060reject_secret_values\u0060 is public and takes \u0060value: Any\u0060 from its caller, and it calls itself at line 99 (\u0060reject_secret_values\u0060) with a piece of \u0060value\u0060 (and at line 102) \u2014 and nowhere in \u0060reject_secret_values\u0060 is there a depth parameter, a descent counter, or any other cap. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller\u0027s document \u2014 not this code \u2014 decides how deep the stack goes. Python\u0027s parsers accept far more nesting than its stack allows: \u0060json.loads\u0060 turns 3,000 bytes of brackets into 1,500 levels and \u0060xml.etree.ElementTree\u0060 parses tens of thousands, while a walk like this one raises \u0060RecursionError\u0060 once it passes the interpreter\u0027s default limit of 1,000 frames. Wherever that exception lands, the work fails: a request errors, and outside any \u0060try\u0060 the worker or the program exits with it. Raising \u0060sys.setrecursionlimit\u0060 only moves the number the document has to beat. Thread a depth argument through \u0060reject_secret_values\u0060 and reject the value past a fixed maximum, or rewrite the descent with an explicit stack."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/scripts/verify-large-repo-rustfs-report.py"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"60457afd716bb4427ca166f02bceea126fa1835e279db86e7201f44b80a4e7c3"}},{"ruleId":"X17","level":"warning","message":{"text":"Recursive walk over a caller-supplied document has no depth cap: \u0060check_retained_control_endpoints_redacted\u0060 is public and takes \u0060value: Any\u0060 from its caller, and it calls itself at line 270 (\u0060check_retained_control_endpoints_redacted\u0060) with a piece of \u0060value\u0060 (and at line 275) \u2014 and nowhere in \u0060check_retained_control_endpoints_redacted\u0060 is there a depth parameter, a descent counter, or any other cap. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller\u0027s document \u2014 not this code \u2014 decides how deep the stack goes. Python\u0027s parsers accept far more nesting than its stack allows: \u0060json.loads\u0060 turns 3,000 bytes of brackets into 1,500 levels and \u0060xml.etree.ElementTree\u0060 parses tens of thousands, while a walk like this one raises \u0060RecursionError\u0060 once it passes the interpreter\u0027s default limit of 1,000 frames. Wherever that exception lands, the work fails: a request errors, and outside any \u0060try\u0060 the worker or the program exits with it. Raising \u0060sys.setrecursionlimit\u0060 only moves the number the document has to beat. Thread a depth argument through \u0060check_retained_control_endpoints_redacted\u0060 and reject the value past a fixed maximum, or rewrite the descent with an explicit stack."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/scripts/verify-nfs-smoke-report.py"},"region":{"startLine":270}}}],"partialFingerprints":{"codehealthFindingId/v1":"7669c41ccda063e8866c9c5c31f87bd5822fc4a4ec90a28aaef4fc26e6d8b060"}},{"ruleId":"X18","level":"warning","message":{"text":"Explicit release owed and not made on every path: \u0060file_index_lookup\u0060 (line 124) is a \u0060SharedFileIndexLookup\u0060 this function owns and never releases: no \u0060close()\u0060 on any path, and it is not handed on. Rust drops it at the end of the scope, and \u0060SharedFileIndexLookup\u0060 has no \u0060Drop\u0060, so what it holds is only completed by that call and is lost without it. Release it where the work ends."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-read/src/term_resolver.rs"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"6bb7f0f434fde227134a17c46cb771ec3c49184a4660242ef035cb4603ab602b"}},{"ruleId":"X18","level":"warning","message":{"text":"Explicit release owed and not made on every path: \u0060file_index_lookup\u0060 (line 271) is a \u0060SharedFileIndexLookup\u0060 this function owns and never releases: no \u0060close()\u0060 on any path, and it is not handed on. Rust drops it at the end of the scope, and \u0060SharedFileIndexLookup\u0060 has no \u0060Drop\u0060, so what it holds is only completed by that call and is lost without it. Release it where the work ends."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-read/src/term_resolver.rs"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc87336b1576c798403e59e0cc866d5353d50a5c2a170820d033242244217020"}},{"ruleId":"X18","level":"warning","message":{"text":"Explicit release owed and not made on every path: \u0060ticket\u0060 (line 49) is a \u0060FixedSlotAdmissionTicket\u0060 released by \u0060release()\u0060 only on the path that reaches line 58; the \u0060return\u0060 on line 58 leaves before that with a success value, and on that path \u0060FixedSlotAdmissionTicket\u0060 has no \u0060Drop\u0060, so what it holds is only completed by that call and is lost without it. Release it before that \u0060return\u0060 too (or return an error there, if the early exit is a failure)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-http-server/src/transfer_admission.rs"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b7ccc3634e4bfa2b7de5f6bf1c72090c2257024dda9d34d3c7ae8b2a7242ed8"}},{"ruleId":"X18","level":"warning","message":{"text":"Raw handle taken from an owned value and never reclaimed: \u0060file.into_raw_fd()\u0060 (line 761) gives up ownership in exchange for a raw handle \u2014 the value\u0027s \u0060Drop\u0060 will no longer run \u2014 and the pointer it returns is thrown away on the spot, so nothing can ever hand it back. The memory or descriptor stays allocated until the process ends, once per call. Pair the hand-out with its reclaim (a \u0060free\u0060 function that rebuilds the owner with \u0060from_raw\u0060 and drops it), or keep the owning value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-cache/src/private_fs.rs"},"region":{"startLine":761}}}],"partialFingerprints":{"codehealthFindingId/v1":"66890a118b70e31b89ac349fc1976515276d91b39864c3eea80e2cf7fdeb2539"}},{"ruleId":"X18","level":"warning","message":{"text":"Owned value\u0027s release suppressed and never restored: \u0060std::mem::forget(connection)\u0060 (line 70) takes \u0060connection\u0060 out of Rust\u0027s ownership: its \u0060Drop\u0060 never runs, so whatever it holds \u2014 a descriptor, a socket, a buffer, a lock \u2014 is never given back, and nothing can give it back later because the value is gone. Let it drop (or call its explicit close) where its work ends; if the handle must outlive this function, turn it into a raw handle with \u0060into_raw\u0060/\u0060into_raw_fd\u0060 and reclaim it with the matching \u0060from_raw\u0060 when the owner is done."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-cache/src/private_fs/platform/database.rs"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"1af9503c5b91d5cd9d0d7681b788ab92a8931e5a5c349573ec844714d4bfdaa5"}},{"ruleId":"X18","level":"warning","message":{"text":"Explicit release owed and not made on every path: \u0060journal\u0060 (line 198) is a \u0060Journal\u0060 this function owns and never releases: no \u0060close()\u0060 or \u0060drop_file()\u0060 on any path, and it is not handed on. Rust drops it at the end of the scope, and \u0060Journal\u0060 has no \u0060Drop\u0060, so what it holds is only completed by that call and is lost without it. Release it where the work ends."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/import/coordinator.rs"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"118e25f90d10e612b4344d22f75cec03906eb6e81744d1a66326b2f8f72a9500"}},{"ruleId":"X18","level":"warning","message":{"text":"Explicit release owed and not made on every path: \u0060journal\u0060 (line 1855) is a \u0060Journal\u0060 this function owns and never releases: no \u0060close()\u0060 or \u0060drop_file()\u0060 on any path, and it is not handed on. Rust drops it at the end of the scope, and \u0060Journal\u0060 has no \u0060Drop\u0060, so what it holds is only completed by that call and is lost without it. Release it where the work ends."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/import/coordinator.rs"},"region":{"startLine":1855}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a9efdedbaced80be5e0771968b43a5db453171df6129dd32231ef250fd7955c"}},{"ruleId":"X18","level":"warning","message":{"text":"Explicit release owed and not made on every path: \u0060journal\u0060 (line 698) is a \u0060Journal\u0060 this function owns and never releases: no \u0060close()\u0060 or \u0060drop_file()\u0060 on any path, and it is not handed on. Rust drops it at the end of the scope, and \u0060Journal\u0060 has no \u0060Drop\u0060, so what it holds is only completed by that call and is lost without it. Release it where the work ends."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/cmd/run.rs"},"region":{"startLine":698}}}],"partialFingerprints":{"codehealthFindingId/v1":"d153ff48bd61a2a1a9e3acbf23ffb4a67bcc3f1432fc0bb01dae7d4dca424fd4"}},{"ruleId":"X18","level":"warning","message":{"text":"Explicit release owed and not made on every path: \u0060journal\u0060 (line 1370) is a \u0060Journal\u0060 this function owns and never releases: no \u0060close()\u0060 or \u0060drop_file()\u0060 on any path, and it is not handed on. Rust drops it at the end of the scope, and \u0060Journal\u0060 has no \u0060Drop\u0060, so what it holds is only completed by that call and is lost without it. Release it where the work ends."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/cmd/run.rs"},"region":{"startLine":1370}}}],"partialFingerprints":{"codehealthFindingId/v1":"1510c1a323003ab4bf585457e23d39cbc821bdd11e6f1604d008097ea6394ccb"}},{"ruleId":"X18","level":"warning","message":{"text":"Explicit release owed and not made on every path: \u0060journal\u0060 (line 1506) is a \u0060Journal\u0060 this function owns and never releases: no \u0060close()\u0060 or \u0060drop_file()\u0060 on any path, and it is not handed on. Rust drops it at the end of the scope, and \u0060Journal\u0060 has no \u0060Drop\u0060, so what it holds is only completed by that call and is lost without it. Release it where the work ends."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/cmd/run.rs"},"region":{"startLine":1506}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b066dda4931c758e36d62724a73e8aebee719dc4685ed4e1ff8c6e2a0d855d1"}},{"ruleId":"X18","level":"warning","message":{"text":"Explicit release owed and not made on every path: \u0060journal\u0060 (line 2147) is a \u0060Journal\u0060 this function owns and never releases: no \u0060close()\u0060 or \u0060drop_file()\u0060 on any path, and it is not handed on. Rust drops it at the end of the scope, and \u0060Journal\u0060 has no \u0060Drop\u0060, so what it holds is only completed by that call and is lost without it. Release it where the work ends."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/cmd/run.rs"},"region":{"startLine":2147}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e5b37f8e8370567c03395482eed04f9729452d30af4c6e2aa6b3c07674f3c79"}},{"ruleId":"X18","level":"warning","message":{"text":"Explicit release owed and not made on every path: \u0060journal\u0060 (line 4782) is a \u0060Journal\u0060 this function owns and never releases: no \u0060close()\u0060 or \u0060drop_file()\u0060 on any path, and it is not handed on. Rust drops it at the end of the scope, and \u0060Journal\u0060 has no \u0060Drop\u0060, so what it holds is only completed by that call and is lost without it. Release it where the work ends."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/cmd/run.rs"},"region":{"startLine":4782}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8190d535fc17f7419f0b503c1fccb1218141e418b0d97c4e0c77a2c444d4df2"}},{"ruleId":"X18","level":"warning","message":{"text":"Explicit release owed and not made on every path: \u0060journal\u0060 (line 254) is a \u0060Journal\u0060 this function owns and never releases: no \u0060close()\u0060 or \u0060drop_file()\u0060 on any path, and it is not handed on. Rust drops it at the end of the scope, and \u0060Journal\u0060 has no \u0060Drop\u0060, so what it holds is only completed by that call and is lost without it. Release it where the work ends."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/cmd/workflow_journal.rs"},"region":{"startLine":254}}}],"partialFingerprints":{"codehealthFindingId/v1":"84043b8d6c414c250601506cce54326eec9ac410ac9dca8dd818043a74f73032"}},{"ruleId":"X2","level":"note","message":{"text":"Not all async functions that make a request accept an AbortSignal: Only 5/9 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: starCount: \u0060starCount\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/web/components/site-header.tsx"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c1eeb108b08af139b6570328aa822ba1cb65c38752738ca828bad55fc149b80"}},{"ruleId":"X2","level":"warning","message":{"text":"Async function without AbortSignal: loadArrowSource: \u0060loadArrowSource\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/ui/src/duckdb-query.ts"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"739d0ebfe4f440ba203e773ebe00a75b6f0c3e0f7166ebe0e3ea84e71e5fa6d1"}},{"ruleId":"X2","level":"warning","message":{"text":"Async function without AbortSignal: mutateRelease: \u0060mutateRelease\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/ui/src/release-api.ts"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8cf0427f85eb9297f878c0cc8ed55694411a665e9104aa9078108e467f486ca"}},{"ruleId":"X2","level":"warning","message":{"text":"Async function without AbortSignal: changeContent: \u0060changeContent\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/ui/src/content-editor.tsx"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"9eb675de10bbe0a4e3756ffd0c65318dff5de8d0aaebc53e65dee194b2f3d76e"}},{"ruleId":"X25","level":"warning","message":{"text":"Configuration option is only ever logged: \u0060DeviceAuthResponse.user_code\u0060 is offered as a configuration-file option, so whoever configures the program can set it \u2014 but the only production code that touches it writes it to a log or the terminal. A test asserts that it parses, which proves the key is read from the input, not that it does anything. Every value supplied for it is silently ignored. Consult it where it was meant to take effect \u2014 or, if it genuinely does nothing, remove it (or mark it deprecated and say so in its documentation) so the configuration stops advertising a setting that changes nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/auth/oidc.rs"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"da0429970751a5992f583f32e4a71927b0a576c124a64ae7c0091aebad85a5cb"}},{"ruleId":"X25","level":"warning","message":{"text":"Configuration option is only ever logged: \u0060DeviceAuthResponse.verification_uri\u0060 is offered as a configuration-file option, so whoever configures the program can set it \u2014 but the only production code that touches it writes it to a log or the terminal. Every value supplied for it is silently ignored. Consult it where it was meant to take effect \u2014 or, if it genuinely does nothing, remove it (or mark it deprecated and say so in its documentation) so the configuration stops advertising a setting that changes nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/auth/oidc.rs"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"931f581bafffce0d4a55e28caba0b4c228942e4f10ad6608e0ea2031b3e3ada5"}},{"ruleId":"X25","level":"warning","message":{"text":"Configuration option is read nowhere: \u0060ShowArgs.no_pager\u0060 is offered as a command-line argument option, so whoever configures the program can set it \u2014 but no production code reads it. A test asserts that it parses, which proves the key is read from the input, not that it does anything. Every value supplied for it is silently ignored. Consult it where it was meant to take effect \u2014 or, if it genuinely does nothing, remove it (or mark it deprecated and say so in its documentation) so the configuration stops advertising a setting that changes nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/cmd/exp.rs"},"region":{"startLine":458}}}],"partialFingerprints":{"codehealthFindingId/v1":"512380f7428c2e783d62ef2ce9e79505c69fb8b013c20d34167568d5840bb361"}},{"ruleId":"X25","level":"warning","message":{"text":"Configuration option is read nowhere: \u0060ImportArgs.estimate\u0060 is offered as a command-line argument option, so whoever configures the program can set it \u2014 but no production code reads it. Every value supplied for it is silently ignored. Consult it where it was meant to take effect \u2014 or, if it genuinely does nothing, remove it (or mark it deprecated and say so in its documentation) so the configuration stops advertising a setting that changes nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/cmd/import.rs"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"a18e4e1b5c60c405b485e71a0af9deb3486f767dda5daf61d9c97c5f20f8e818"}},{"ruleId":"X25","level":"warning","message":{"text":"Configuration option is read nowhere: \u0060ImportArgs.source_profile\u0060 is offered as a command-line argument option, so whoever configures the program can set it \u2014 but no production code reads it. Every value supplied for it is silently ignored. Consult it where it was meant to take effect \u2014 or, if it genuinely does nothing, remove it (or mark it deprecated and say so in its documentation) so the configuration stops advertising a setting that changes nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/cmd/import.rs"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c831a32c172702182605b5db7c1d431ce7e633ac7881530217b2c77a7f48c48"}},{"ruleId":"X25","level":"warning","message":{"text":"Configuration option is read nowhere: \u0060ImportArgs.target_profile\u0060 is offered as a command-line argument option, so whoever configures the program can set it \u2014 but no production code reads it. Every value supplied for it is silently ignored. Consult it where it was meant to take effect \u2014 or, if it genuinely does nothing, remove it (or mark it deprecated and say so in its documentation) so the configuration stops advertising a setting that changes nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/cmd/import.rs"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"172455a3e942d208dd5330bfb7df43a295bc9193fd2de0cdf2fdfaecb35f444b"}},{"ruleId":"X25","level":"warning","message":{"text":"Configuration option is read nowhere: \u0060LfsExtCmd::List.names\u0060 is offered as a command-line argument option, so whoever configures the program can set it \u2014 but no production code reads it. Every value supplied for it is silently ignored. Consult it where it was meant to take effect \u2014 or, if it genuinely does nothing, remove it (or mark it deprecated and say so in its documentation) so the configuration stops advertising a setting that changes nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/cmd/lfs/mod.rs"},"region":{"startLine":687}}}],"partialFingerprints":{"codehealthFindingId/v1":"6025ad26f89c611d802370f345789ae5decdcf2c88e4355498baa1ae18ac8ab8"}},{"ruleId":"X25","level":"warning","message":{"text":"Configuration option is only ever logged: \u0060ShowArgs.higher_is_better\u0060 is offered as a command-line argument option, so whoever configures the program can set it \u2014 but the only production code that touches it writes it to a log or the terminal. Every value supplied for it is silently ignored. Consult it where it was meant to take effect \u2014 or, if it genuinely does nothing, remove it (or mark it deprecated and say so in its documentation) so the configuration stops advertising a setting that changes nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/cmd/metrics.rs"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"de018e37bef2d7eeb586025a0b1c4dba283bbcbf600d287c2d27b815a9b2779f"}},{"ruleId":"X25","level":"warning","message":{"text":"Configuration option is only ever logged: \u0060DiffArgs.higher_is_better\u0060 is offered as a command-line argument option, so whoever configures the program can set it \u2014 but the only production code that touches it writes it to a log or the terminal. Every value supplied for it is silently ignored. Consult it where it was meant to take effect \u2014 or, if it genuinely does nothing, remove it (or mark it deprecated and say so in its documentation) so the configuration stops advertising a setting that changes nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/cmd/metrics.rs"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba23b7017fa007421fbe7bb6d5295aa3cf5f96d71157196dfd4161fb38d48fec"}},{"ruleId":"X25","level":"warning","message":{"text":"Configuration option is read nowhere: \u0060VerifyArgs.exhaustive\u0060 is offered as a command-line argument option, so whoever configures the program can set it \u2014 but no production code reads it. A test asserts that it parses, which proves the key is read from the input, not that it does anything. Every value supplied for it is silently ignored. Consult it where it was meant to take effect \u2014 or, if it genuinely does nothing, remove it (or mark it deprecated and say so in its documentation) so the configuration stops advertising a setting that changes nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/cmd/replica.rs"},"region":{"startLine":268}}}],"partialFingerprints":{"codehealthFindingId/v1":"a050c322e7c7986ec22d2dd58b89700c17ce35003aecd3b044aacee8420bef86"}},{"ruleId":"X25","level":"warning","message":{"text":"Configuration option is read nowhere: \u0060ConfigOverlay.hydra\u0060 is offered as a configuration-file option, so whoever configures the program can set it \u2014 but no production code reads it. Every value supplied for it is silently ignored. Consult it where it was meant to take effect \u2014 or, if it genuinely does nothing, remove it (or mark it deprecated and say so in its documentation) so the configuration stops advertising a setting that changes nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/core/config.rs"},"region":{"startLine":1446}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6347b906972842173d0cd582449ff7d491f6a9d1aed08170a66e65ceb85e835"}},{"ruleId":"X25","level":"warning","message":{"text":"Configuration option is read nowhere: \u0060Cli.log_level\u0060 is offered as a command-line argument option, so whoever configures the program can set it \u2014 but no production code reads it. Every value supplied for it is silently ignored. Consult it where it was meant to take effect \u2014 or, if it genuinely does nothing, remove it (or mark it deprecated and say so in its documentation) so the configuration stops advertising a setting that changes nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/main.rs"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"37611d7dc9dd89259bcdf68a3f0bb74ddff4422cb3a72a785fe70ee6bb17f019"}},{"ruleId":"X25","level":"warning","message":{"text":"Configuration option is read nowhere: \u0060Cmd::Clone.no_lazy\u0060 is offered as a command-line argument option, so whoever configures the program can set it \u2014 but no production code reads it. Every value supplied for it is silently ignored. Consult it where it was meant to take effect \u2014 or, if it genuinely does nothing, remove it (or mark it deprecated and say so in its documentation) so the configuration stops advertising a setting that changes nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/main.rs"},"region":{"startLine":218}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e36386a9e076b12fb46a0c141657df83f99e1adb8a98bcc5e6e7d03061bd46e"}},{"ruleId":"X25","level":"warning","message":{"text":"Configuration option is read nowhere: \u0060Cmd::Doctor.support_bundle\u0060 is offered as a command-line argument option, so whoever configures the program can set it \u2014 but no production code reads it. Every value supplied for it is silently ignored. Consult it where it was meant to take effect \u2014 or, if it genuinely does nothing, remove it (or mark it deprecated and say so in its documentation) so the configuration stops advertising a setting that changes nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/main.rs"},"region":{"startLine":308}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e22bde443ec1c60d42956ad90a742c731fe3a07c424c15e188dcabf4d36a768"}},{"ruleId":"X25","level":"warning","message":{"text":"Configuration option is read nowhere: \u0060Cmd::Doctor.cache_service_active_probe\u0060 is offered as a command-line argument option, so whoever configures the program can set it \u2014 but no production code reads it. Every value supplied for it is silently ignored. Consult it where it was meant to take effect \u2014 or, if it genuinely does nothing, remove it (or mark it deprecated and say so in its documentation) so the configuration stops advertising a setting that changes nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/main.rs"},"region":{"startLine":311}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e8354bad1ceef95551ecc3dd7b76b8b15059390e276f986961d7878699f0c9a"}},{"ruleId":"X25","level":"warning","message":{"text":"Configuration option is read nowhere: \u0060Cmd::Track.list\u0060 is offered as a command-line argument option, so whoever configures the program can set it \u2014 but no production code reads it. Every value supplied for it is silently ignored. Consult it where it was meant to take effect \u2014 or, if it genuinely does nothing, remove it (or mark it deprecated and say so in its documentation) so the configuration stops advertising a setting that changes nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/main.rs"},"region":{"startLine":345}}}],"partialFingerprints":{"codehealthFindingId/v1":"96be3e095a49658082c8853d3ad2ba7de04e2ba2c81650aafcb402fee9fa098c"}},{"ruleId":"X25","level":"warning","message":{"text":"Configuration option is read nowhere: \u0060Cmd::Gc.deregister\u0060 is offered as a command-line argument option, so whoever configures the program can set it \u2014 but no production code reads it. Every value supplied for it is silently ignored. Consult it where it was meant to take effect \u2014 or, if it genuinely does nothing, remove it (or mark it deprecated and say so in its documentation) so the configuration stops advertising a setting that changes nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/main.rs"},"region":{"startLine":392}}}],"partialFingerprints":{"codehealthFindingId/v1":"49153b13056c8517961a11a1bb0fc7ce5fbeedde98e5cc7106b984417bf572f9"}},{"ruleId":"X25","level":"warning","message":{"text":"Configuration option is read nowhere: \u0060Cmd::Gc.repair_registry\u0060 is offered as a command-line argument option, so whoever configures the program can set it \u2014 but no production code reads it. Every value supplied for it is silently ignored. Consult it where it was meant to take effect \u2014 or, if it genuinely does nothing, remove it (or mark it deprecated and say so in its documentation) so the configuration stops advertising a setting that changes nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/main.rs"},"region":{"startLine":395}}}],"partialFingerprints":{"codehealthFindingId/v1":"34cc1af51ed62f9852d9d16aa63d8954f86cba94d57f80f9db192fd017eb7f53"}},{"ruleId":"X25","level":"warning","message":{"text":"Configuration option is read nowhere: \u0060Cmd::Gc.repair_closures\u0060 is offered as a command-line argument option, so whoever configures the program can set it \u2014 but no production code reads it. Every value supplied for it is silently ignored. Consult it where it was meant to take effect \u2014 or, if it genuinely does nothing, remove it (or mark it deprecated and say so in its documentation) so the configuration stops advertising a setting that changes nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/main.rs"},"region":{"startLine":398}}}],"partialFingerprints":{"codehealthFindingId/v1":"cca845785949544ac5bfa59e0bff58e2b79a88d441bcb3839fd6658dc16603de"}},{"ruleId":"X25","level":"warning","message":{"text":"Configuration option is read nowhere: \u0060Cmd::Completions.install\u0060 is offered as a command-line argument option, so whoever configures the program can set it \u2014 but no production code reads it. Every value supplied for it is silently ignored. Consult it where it was meant to take effect \u2014 or, if it genuinely does nothing, remove it (or mark it deprecated and say so in its documentation) so the configuration stops advertising a setting that changes nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/main.rs"},"region":{"startLine":500}}}],"partialFingerprints":{"codehealthFindingId/v1":"705637e7ffc9c486bacad19a9e3871863938266832524b481c8ff1285bc7df44"}},{"ruleId":"X25","level":"warning","message":{"text":"Configuration option is read nowhere: \u0060Cmd::Hydrate.ignore_sparse\u0060 is offered as a command-line argument option, so whoever configures the program can set it \u2014 but no production code reads it. Every value supplied for it is silently ignored. Consult it where it was meant to take effect \u2014 or, if it genuinely does nothing, remove it (or mark it deprecated and say so in its documentation) so the configuration stops advertising a setting that changes nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/main.rs"},"region":{"startLine":579}}}],"partialFingerprints":{"codehealthFindingId/v1":"9cb524675f7c91b780a2a7699a99657e463923a32ff27a896c5e680e0b2a270b"}},{"ruleId":"X25","level":"warning","message":{"text":"Configuration option is read nowhere: \u0060Cmd::Hydrate.clear_speculation\u0060 is offered as a command-line argument option, so whoever configures the program can set it \u2014 but no production code reads it. Every value supplied for it is silently ignored. Consult it where it was meant to take effect \u2014 or, if it genuinely does nothing, remove it (or mark it deprecated and say so in its documentation) so the configuration stops advertising a setting that changes nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/main.rs"},"region":{"startLine":607}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4094113327832e14aa269f7fa3015ba9b3d89f073033e2fde7b2fefcf63de82"}},{"ruleId":"X25","level":"warning","message":{"text":"Configuration option is read nowhere: \u0060Cmd::DiffDriver.old_mode\u0060 is offered as a command-line argument option, so whoever configures the program can set it \u2014 but no production code reads it. Every value supplied for it is silently ignored. Consult it where it was meant to take effect \u2014 or, if it genuinely does nothing, remove it (or mark it deprecated and say so in its documentation) so the configuration stops advertising a setting that changes nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/main.rs"},"region":{"startLine":663}}}],"partialFingerprints":{"codehealthFindingId/v1":"edb698f8060ee474578ed77197ae0117eca20967ad4986e2bc6ff3f568778c59"}},{"ruleId":"X25","level":"warning","message":{"text":"Configuration option is read nowhere: \u0060Cmd::DiffDriver.new_mode\u0060 is offered as a command-line argument option, so whoever configures the program can set it \u2014 but no production code reads it. Every value supplied for it is silently ignored. Consult it where it was meant to take effect \u2014 or, if it genuinely does nothing, remove it (or mark it deprecated and say so in its documentation) so the configuration stops advertising a setting that changes nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/main.rs"},"region":{"startLine":669}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6aaf1f3d00f5693fed14f1a38342abaa07de63e498b3aca4c59b2277c8c11aa"}},{"ruleId":"X25","level":"warning","message":{"text":"Configuration option is read nowhere: \u0060Cmd::Daemon.hydration_concurrency\u0060 is offered as a command-line argument option, so whoever configures the program can set it \u2014 but no production code reads it. Every value supplied for it is silently ignored. Consult it where it was meant to take effect \u2014 or, if it genuinely does nothing, remove it (or mark it deprecated and say so in its documentation) so the configuration stops advertising a setting that changes nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/main.rs"},"region":{"startLine":1069}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f017616b71f43e3beb0d277adb51bf473eb90f0e660be1f7a2ef3fece9f35df"}},{"ruleId":"X25","level":"warning","message":{"text":"Configuration option is read nowhere: \u0060MountCmd::Status.live_only\u0060 is offered as a command-line argument option, so whoever configures the program can set it \u2014 but no production code reads it. Every value supplied for it is silently ignored. Consult it where it was meant to take effect \u2014 or, if it genuinely does nothing, remove it (or mark it deprecated and say so in its documentation) so the configuration stops advertising a setting that changes nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/main.rs"},"region":{"startLine":1712}}}],"partialFingerprints":{"codehealthFindingId/v1":"376195c4f3c4350b9934b4582201d38e92ecce2b87a40bed652fe4ba448d9cf0"}},{"ruleId":"X25","level":"warning","message":{"text":"Configuration option is read nowhere: \u0060MountCmd::Status.dirty\u0060 is offered as a command-line argument option, so whoever configures the program can set it \u2014 but no production code reads it. Every value supplied for it is silently ignored. Consult it where it was meant to take effect \u2014 or, if it genuinely does nothing, remove it (or mark it deprecated and say so in its documentation) so the configuration stops advertising a setting that changes nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/main.rs"},"region":{"startLine":1718}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b4e0b97e1d3d792a5be87a8bd64c90a3b4ea62a4af8708d1437fd4f5e30cd79"}},{"ruleId":"X25","level":"warning","message":{"text":"Configuration option is read nowhere: \u0060MigrateCmd::GcFence.quiesced\u0060 is offered as a command-line argument option, so whoever configures the program can set it \u2014 but no production code reads it. Every value supplied for it is silently ignored. Consult it where it was meant to take effect \u2014 or, if it genuinely does nothing, remove it (or mark it deprecated and say so in its documentation) so the configuration stops advertising a setting that changes nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/main.rs"},"region":{"startLine":2011}}}],"partialFingerprints":{"codehealthFindingId/v1":"6224588de9228b58c5b2df9eb44fbb03df0fa19708301ffab31cf8086b29869c"}},{"ruleId":"X25","level":"warning","message":{"text":"Configuration option is read nowhere: \u0060RawConfig.logging\u0060 is offered as a configuration-file option, so whoever configures the program can set it \u2014 but no production code reads it. Every value supplied for it is silently ignored. Consult it where it was meant to take effect \u2014 or, if it genuinely does nothing, remove it (or mark it deprecated and say so in its documentation) so the configuration stops advertising a setting that changes nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-cache-server/src/config.rs"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"2552ece053801fccf0d8b7e28cf9fa9b5cda2252ffbbb4d27bf0d14bfb882b7b"}},{"ruleId":"X25","level":"warning","message":{"text":"Configuration option is read nowhere: \u0060CellReleaseCommand::Activate.minimum_eligible_nodes\u0060 is offered as a command-line argument option, so whoever configures the program can set it \u2014 but no production code reads it. Every value supplied for it is silently ignored. Consult it where it was meant to take effect \u2014 or, if it genuinely does nothing, remove it (or mark it deprecated and say so in its documentation) so the configuration stops advertising a setting that changes nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-http-server/src/main.rs"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2f1e801ca344e36dc1bb555b440dca66442ae6bf6d859eceeb90d3ed17e3091"}},{"ruleId":"X25","level":"warning","message":{"text":"Configuration option is read nowhere: \u0060CellReleaseCommand::Activate.retention_grace_hours\u0060 is offered as a command-line argument option, so whoever configures the program can set it \u2014 but no production code reads it. Every value supplied for it is silently ignored. Consult it where it was meant to take effect \u2014 or, if it genuinely does nothing, remove it (or mark it deprecated and say so in its documentation) so the configuration stops advertising a setting that changes nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-http-server/src/main.rs"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d20018d7e816a384dedfec40052863a21d501fa35fd71f309ffc736c4f4ca65"}},{"ruleId":"X25","level":"warning","message":{"text":"Configuration option is read nowhere: \u0060CellReleaseCommand::Activate.retention_max_deletes\u0060 is offered as a command-line argument option, so whoever configures the program can set it \u2014 but no production code reads it. Every value supplied for it is silently ignored. Consult it where it was meant to take effect \u2014 or, if it genuinely does nothing, remove it (or mark it deprecated and say so in its documentation) so the configuration stops advertising a setting that changes nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-http-server/src/main.rs"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"117a265b116c09feb31c19d3f0f99c1040da81007240ca0ef916dfb95cc4ec65"}},{"ruleId":"X25","level":"warning","message":{"text":"Configuration option is read nowhere: \u0060CellBackupCommand::Create.pin\u0060 is offered as a command-line argument option, so whoever configures the program can set it \u2014 but no production code reads it. Every value supplied for it is silently ignored. Consult it where it was meant to take effect \u2014 or, if it genuinely does nothing, remove it (or mark it deprecated and say so in its documentation) so the configuration stops advertising a setting that changes nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-http-server/src/main.rs"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"8935f4e1c9a9dfe816178b2a1ebacf8fd750db437f77514b822896178810f491"}},{"ruleId":"X25","level":"warning","message":{"text":"Configuration option is read nowhere: \u0060CellBackupCommand::Verify.pin\u0060 is offered as a command-line argument option, so whoever configures the program can set it \u2014 but no production code reads it. Every value supplied for it is silently ignored. Consult it where it was meant to take effect \u2014 or, if it genuinely does nothing, remove it (or mark it deprecated and say so in its documentation) so the configuration stops advertising a setting that changes nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-http-server/src/main.rs"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bfc9d99f52796622c7ac8bdc49bf8d56b6c69424997823598691f299f1aebac"}},{"ruleId":"X25","level":"warning","message":{"text":"Configuration option is read nowhere: \u0060CellBackupCommand::Restore.pin\u0060 is offered as a command-line argument option, so whoever configures the program can set it \u2014 but no production code reads it. Every value supplied for it is silently ignored. Consult it where it was meant to take effect \u2014 or, if it genuinely does nothing, remove it (or mark it deprecated and say so in its documentation) so the configuration stops advertising a setting that changes nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-http-server/src/main.rs"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec54a66f3b234c66f666ac7f05f48f1715dd4585e1cfec68295af58ad9444074"}},{"ruleId":"X25","level":"warning","message":{"text":"Configuration option is read nowhere: \u0060CellBackupCommand::Restore.destination_prefix\u0060 is offered as a command-line argument option, so whoever configures the program can set it \u2014 but no production code reads it. Every value supplied for it is silently ignored. Consult it where it was meant to take effect \u2014 or, if it genuinely does nothing, remove it (or mark it deprecated and say so in its documentation) so the configuration stops advertising a setting that changes nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-http-server/src/main.rs"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f26cd6219b297b06d898d56e49c4ef722e010464f6b2b705e56f0260b14ac15"}},{"ruleId":"X25","level":"warning","message":{"text":"Configuration option is only ever logged: \u0060NfsMountLifecycleStatus.server_bind_ms\u0060 is offered as a configuration-file option, so whoever configures the program can set it \u2014 but the only production code that touches it writes it to a log or the terminal. A test asserts that it parses, which proves the key is read from the input, not that it does anything. Every value supplied for it is silently ignored. Consult it where it was meant to take effect \u2014 or, if it genuinely does nothing, remove it (or mark it deprecated and say so in its documentation) so the configuration stops advertising a setting that changes nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-vfs/src/nfs_control.rs"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"d47e71b053298cf1b1e55659fcd06f711b46e71bc5bc37c5c9994261af238db1"}},{"ruleId":"X25","level":"warning","message":{"text":"Configuration option is only ever logged: \u0060NfsMountLifecycleStatus.native_mount_ms\u0060 is offered as a configuration-file option, so whoever configures the program can set it \u2014 but the only production code that touches it writes it to a log or the terminal. A test asserts that it parses, which proves the key is read from the input, not that it does anything. Every value supplied for it is silently ignored. Consult it where it was meant to take effect \u2014 or, if it genuinely does nothing, remove it (or mark it deprecated and say so in its documentation) so the configuration stops advertising a setting that changes nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-vfs/src/nfs_control.rs"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d92e0a6d4bb13d5425fa271ae4d36b6e6855d2c8a05295c5b1a8d102e105277"}},{"ruleId":"X25","level":"warning","message":{"text":"Configuration option is only ever logged: \u0060NfsMountLifecycleStatus.startup_ms\u0060 is offered as a configuration-file option, so whoever configures the program can set it \u2014 but the only production code that touches it writes it to a log or the terminal. A test asserts that it parses, which proves the key is read from the input, not that it does anything. Every value supplied for it is silently ignored. Consult it where it was meant to take effect \u2014 or, if it genuinely does nothing, remove it (or mark it deprecated and say so in its documentation) so the configuration stops advertising a setting that changes nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-vfs/src/nfs_control.rs"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"b42f9728b371c8b3743ba368a16a836a81216fa452e1f770175ef4d2154f6659"}},{"ruleId":"X25","level":"warning","message":{"text":"Configuration option is read nowhere: \u0060MountPipelineBuilder.refresh_interval\u0060 is offered as a builder setter option, so whoever configures the program can set it \u2014 but no production code reads it. A test asserts that it parses, which proves the key is read from the input, not that it does anything. Every value supplied for it is silently ignored. Consult it where it was meant to take effect \u2014 or, if it genuinely does nothing, remove it (or mark it deprecated and say so in its documentation) so the configuration stops advertising a setting that changes nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-vfs/src/pipeline.rs"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"c650c637ffe726aff06b8bb62028d10369a837b70be0ef06a2f8ab0b01fb9bab"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 79 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-write/src/lib.rs"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"6785417cd1368326dc7f27133d65517d95fdbc248870faf55949ba8b4caa67a0"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 304 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/speculation/access_db.rs"},"region":{"startLine":304}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d8ca84b72829d8a9669a00f9ca33fbdb2c4778cdb1beea7a6e562cc6839e1c0"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 311 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/speculation/access_db.rs"},"region":{"startLine":311}}}],"partialFingerprints":{"codehealthFindingId/v1":"24be4ccc041879862d92fdf02a36fb367b34e8ec87d2c547690dbd7350fafcd2"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 312 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/speculation/access_db.rs"},"region":{"startLine":312}}}],"partialFingerprints":{"codehealthFindingId/v1":"8eaf4e8e7ed6e9762033c44d9c09b6661b644ef622574195f6671d3574c8157d"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 152 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/lfs/lock.rs"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"9126b617c5dc12bbfd35447e694a54f580cb9cbe6597c39821fa4b050eb854f7"}},{"ruleId":"X5","level":"warning","message":{"text":"Symbol treated as nullable, then dereferenced unguarded: \u0060TcpListener::bind(\u0022127.0.0.1:0\u0022)\u0060 can be absent \u2014 it is an \u0060Option\u0060 or \u0060Result\u0060, which is why it is forced \u2014 and \u0060.unwrap()\u0060 in \u0060serve_http_body_n\u0060 forces it with nothing on this path excluding \u0060None\u0060/\u0060Err\u0060: no \u0060if let\u0060 or \u0060match\u0060 arm that matched it present, no \u0060let \u2026 else\u0060, no \u0060is_some()\u0060/\u0060is_ok()\u0060 test (or \u0060is_none()\u0060/\u0060is_err()\u0060 test that leaves), no \u0060assert!\u0060 of it, and for a lookup no proof the key or index exists. This line panics the first time the value is not there. Handle the absent case where it arises: propagate it with \u0060?\u0060, branch on it with \u0060if let\u0060 / \u0060match\u0060 / \u0060let \u2026 else\u0060, or give it a default (\u0060unwrap_or\u0060, \u0060unwrap_or_default\u0060, \u0060unwrap_or_else\u0060)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-workflow/src/stage_runtime.rs"},"region":{"startLine":771}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d5ad68db4aea7b4b12b43588bd6bf0bffe57096f419e3a5e0ad5ca19a944327"}},{"ruleId":"X5","level":"warning","message":{"text":"Symbol treated as nullable, then dereferenced unguarded: \u0060listener.local_addr()\u0060 can be absent \u2014 it is an \u0060Option\u0060 or \u0060Result\u0060, which is why it is forced \u2014 and \u0060.unwrap()\u0060 in \u0060serve_http_body_n\u0060 forces it with nothing on this path excluding \u0060None\u0060/\u0060Err\u0060: no \u0060if let\u0060 or \u0060match\u0060 arm that matched it present, no \u0060let \u2026 else\u0060, no \u0060is_some()\u0060/\u0060is_ok()\u0060 test (or \u0060is_none()\u0060/\u0060is_err()\u0060 test that leaves), no \u0060assert!\u0060 of it, and for a lookup no proof the key or index exists. This line panics the first time the value is not there. Handle the absent case where it arises: propagate it with \u0060?\u0060, branch on it with \u0060if let\u0060 / \u0060match\u0060 / \u0060let \u2026 else\u0060, or give it a default (\u0060unwrap_or\u0060, \u0060unwrap_or_default\u0060, \u0060unwrap_or_else\u0060)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-workflow/src/stage_runtime.rs"},"region":{"startLine":772}}}],"partialFingerprints":{"codehealthFindingId/v1":"5000f92b42bcfcbad0b3643e4e9044d9c31b4c934a2f7074bdb9f7d65a909c1e"}},{"ruleId":"X5","level":"warning","message":{"text":"Symbol treated as nullable, then dereferenced unguarded: \u0060listener.accept()\u0060 can be absent \u2014 it is an \u0060Option\u0060 or \u0060Result\u0060, which is why it is forced \u2014 and \u0060.unwrap()\u0060 in \u0060serve_http_body_n\u0060 forces it with nothing on this path excluding \u0060None\u0060/\u0060Err\u0060: no \u0060if let\u0060 or \u0060match\u0060 arm that matched it present, no \u0060let \u2026 else\u0060, no \u0060is_some()\u0060/\u0060is_ok()\u0060 test (or \u0060is_none()\u0060/\u0060is_err()\u0060 test that leaves), no \u0060assert!\u0060 of it, and for a lookup no proof the key or index exists. This line panics the first time the value is not there. Handle the absent case where it arises: propagate it with \u0060?\u0060, branch on it with \u0060if let\u0060 / \u0060match\u0060 / \u0060let \u2026 else\u0060, or give it a default (\u0060unwrap_or\u0060, \u0060unwrap_or_default\u0060, \u0060unwrap_or_else\u0060)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-workflow/src/stage_runtime.rs"},"region":{"startLine":775}}}],"partialFingerprints":{"codehealthFindingId/v1":"70d6bde40386248862648b107726705b41654ecdca147dd0f80d9120a1b00907"}},{"ruleId":"X5","level":"warning","message":{"text":"Symbol treated as nullable, then dereferenced unguarded: \u0060stream.write_all(head.as_bytes())\u0060 can be absent \u2014 it is an \u0060Option\u0060 or \u0060Result\u0060, which is why it is forced \u2014 and \u0060.unwrap()\u0060 in \u0060serve_http_body_n\u0060 forces it with nothing on this path excluding \u0060None\u0060/\u0060Err\u0060: no \u0060if let\u0060 or \u0060match\u0060 arm that matched it present, no \u0060let \u2026 else\u0060, no \u0060is_some()\u0060/\u0060is_ok()\u0060 test (or \u0060is_none()\u0060/\u0060is_err()\u0060 test that leaves), no \u0060assert!\u0060 of it, and for a lookup no proof the key or index exists. This line panics the first time the value is not there. Handle the absent case where it arises: propagate it with \u0060?\u0060, branch on it with \u0060if let\u0060 / \u0060match\u0060 / \u0060let \u2026 else\u0060, or give it a default (\u0060unwrap_or\u0060, \u0060unwrap_or_default\u0060, \u0060unwrap_or_else\u0060)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-workflow/src/stage_runtime.rs"},"region":{"startLine":782}}}],"partialFingerprints":{"codehealthFindingId/v1":"b22be8f56d9725026393b0550a7406edee0ed7e36624d02ea7120bd7ed420e30"}},{"ruleId":"X5","level":"warning","message":{"text":"Symbol treated as nullable, then dereferenced unguarded: \u0060stream.write_all(body)\u0060 can be absent \u2014 it is an \u0060Option\u0060 or \u0060Result\u0060, which is why it is forced \u2014 and \u0060.unwrap()\u0060 in \u0060serve_http_body_n\u0060 forces it with nothing on this path excluding \u0060None\u0060/\u0060Err\u0060: no \u0060if let\u0060 or \u0060match\u0060 arm that matched it present, no \u0060let \u2026 else\u0060, no \u0060is_some()\u0060/\u0060is_ok()\u0060 test (or \u0060is_none()\u0060/\u0060is_err()\u0060 test that leaves), no \u0060assert!\u0060 of it, and for a lookup no proof the key or index exists. This line panics the first time the value is not there. Handle the absent case where it arises: propagate it with \u0060?\u0060, branch on it with \u0060if let\u0060 / \u0060match\u0060 / \u0060let \u2026 else\u0060, or give it a default (\u0060unwrap_or\u0060, \u0060unwrap_or_default\u0060, \u0060unwrap_or_else\u0060)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-workflow/src/stage_runtime.rs"},"region":{"startLine":783}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf7698597e877fc55e6ca3fa5e0707c2d3af7d38e95a67d624e2e329295004c3"}},{"ruleId":"X5","level":"warning","message":{"text":"Symbol treated as nullable, then dereferenced unguarded: \u0060TcpListener::bind(\u0022127.0.0.1:0\u0022)\u0060 can be absent \u2014 it is an \u0060Option\u0060 or \u0060Result\u0060, which is why it is forced \u2014 and \u0060.unwrap()\u0060 in \u0060serve_http_body_with_etag\u0060 forces it with nothing on this path excluding \u0060None\u0060/\u0060Err\u0060: no \u0060if let\u0060 or \u0060match\u0060 arm that matched it present, no \u0060let \u2026 else\u0060, no \u0060is_some()\u0060/\u0060is_ok()\u0060 test (or \u0060is_none()\u0060/\u0060is_err()\u0060 test that leaves), no \u0060assert!\u0060 of it, and for a lookup no proof the key or index exists. This line panics the first time the value is not there. Handle the absent case where it arises: propagate it with \u0060?\u0060, branch on it with \u0060if let\u0060 / \u0060match\u0060 / \u0060let \u2026 else\u0060, or give it a default (\u0060unwrap_or\u0060, \u0060unwrap_or_default\u0060, \u0060unwrap_or_else\u0060)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-workflow/src/stage_runtime.rs"},"region":{"startLine":794}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9b21e3a1ad5859cb7c5231c2746d8b534752c5bc5fc82fba27f628e1aff2e18"}},{"ruleId":"X5","level":"warning","message":{"text":"Symbol treated as nullable, then dereferenced unguarded: \u0060listener.local_addr()\u0060 can be absent \u2014 it is an \u0060Option\u0060 or \u0060Result\u0060, which is why it is forced \u2014 and \u0060.unwrap()\u0060 in \u0060serve_http_body_with_etag\u0060 forces it with nothing on this path excluding \u0060None\u0060/\u0060Err\u0060: no \u0060if let\u0060 or \u0060match\u0060 arm that matched it present, no \u0060let \u2026 else\u0060, no \u0060is_some()\u0060/\u0060is_ok()\u0060 test (or \u0060is_none()\u0060/\u0060is_err()\u0060 test that leaves), no \u0060assert!\u0060 of it, and for a lookup no proof the key or index exists. This line panics the first time the value is not there. Handle the absent case where it arises: propagate it with \u0060?\u0060, branch on it with \u0060if let\u0060 / \u0060match\u0060 / \u0060let \u2026 else\u0060, or give it a default (\u0060unwrap_or\u0060, \u0060unwrap_or_default\u0060, \u0060unwrap_or_else\u0060)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-workflow/src/stage_runtime.rs"},"region":{"startLine":795}}}],"partialFingerprints":{"codehealthFindingId/v1":"099edbe1a9b026bc0bf87e3bb4cdd4950b3b0f9215751fade6e58165432b68d5"}},{"ruleId":"X5","level":"warning","message":{"text":"Symbol treated as nullable, then dereferenced unguarded: \u0060listener.accept()\u0060 can be absent \u2014 it is an \u0060Option\u0060 or \u0060Result\u0060, which is why it is forced \u2014 and \u0060.unwrap()\u0060 in \u0060serve_http_body_with_etag\u0060 forces it with nothing on this path excluding \u0060None\u0060/\u0060Err\u0060: no \u0060if let\u0060 or \u0060match\u0060 arm that matched it present, no \u0060let \u2026 else\u0060, no \u0060is_some()\u0060/\u0060is_ok()\u0060 test (or \u0060is_none()\u0060/\u0060is_err()\u0060 test that leaves), no \u0060assert!\u0060 of it, and for a lookup no proof the key or index exists. This line panics the first time the value is not there. Handle the absent case where it arises: propagate it with \u0060?\u0060, branch on it with \u0060if let\u0060 / \u0060match\u0060 / \u0060let \u2026 else\u0060, or give it a default (\u0060unwrap_or\u0060, \u0060unwrap_or_default\u0060, \u0060unwrap_or_else\u0060)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-workflow/src/stage_runtime.rs"},"region":{"startLine":800}}}],"partialFingerprints":{"codehealthFindingId/v1":"354e88e5825fb88511d613b699cd983d04603b225acb9e0f14818803cbcf30d4"}},{"ruleId":"X5","level":"warning","message":{"text":"Symbol treated as nullable, then dereferenced unguarded: \u0060stream.write_all(head.as_bytes())\u0060 can be absent \u2014 it is an \u0060Option\u0060 or \u0060Result\u0060, which is why it is forced \u2014 and \u0060.unwrap()\u0060 in \u0060serve_http_body_with_etag\u0060 forces it with nothing on this path excluding \u0060None\u0060/\u0060Err\u0060: no \u0060if let\u0060 or \u0060match\u0060 arm that matched it present, no \u0060let \u2026 else\u0060, no \u0060is_some()\u0060/\u0060is_ok()\u0060 test (or \u0060is_none()\u0060/\u0060is_err()\u0060 test that leaves), no \u0060assert!\u0060 of it, and for a lookup no proof the key or index exists. This line panics the first time the value is not there. Handle the absent case where it arises: propagate it with \u0060?\u0060, branch on it with \u0060if let\u0060 / \u0060match\u0060 / \u0060let \u2026 else\u0060, or give it a default (\u0060unwrap_or\u0060, \u0060unwrap_or_default\u0060, \u0060unwrap_or_else\u0060)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-workflow/src/stage_runtime.rs"},"region":{"startLine":809}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbdccd897a5070c147116d3786b318ff279e455ffaf40d0d6a09d74fc9fa59ee"}},{"ruleId":"X5","level":"warning","message":{"text":"Symbol treated as nullable, then dereferenced unguarded: \u0060stream.write_all(body)\u0060 can be absent \u2014 it is an \u0060Option\u0060 or \u0060Result\u0060, which is why it is forced \u2014 and \u0060.unwrap()\u0060 in \u0060serve_http_body_with_etag\u0060 forces it with nothing on this path excluding \u0060None\u0060/\u0060Err\u0060: no \u0060if let\u0060 or \u0060match\u0060 arm that matched it present, no \u0060let \u2026 else\u0060, no \u0060is_some()\u0060/\u0060is_ok()\u0060 test (or \u0060is_none()\u0060/\u0060is_err()\u0060 test that leaves), no \u0060assert!\u0060 of it, and for a lookup no proof the key or index exists. This line panics the first time the value is not there. Handle the absent case where it arises: propagate it with \u0060?\u0060, branch on it with \u0060if let\u0060 / \u0060match\u0060 / \u0060let \u2026 else\u0060, or give it a default (\u0060unwrap_or\u0060, \u0060unwrap_or_default\u0060, \u0060unwrap_or_else\u0060)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-workflow/src/stage_runtime.rs"},"region":{"startLine":811}}}],"partialFingerprints":{"codehealthFindingId/v1":"1aedb755f7b4acf0d3e8b97ebda5e696e140aeaf8a832807552daa465d67d510"}},{"ruleId":"X5","level":"warning","message":{"text":"Symbol treated as nullable, then dereferenced unguarded: \u0060\u0060 can be absent \u2014 it is an \u0060Option\u0060 or \u0060Result\u0060, which is why it is forced \u2014 and \u0060.unwrap()\u0060 in \u0060response\u0060 forces it with nothing on this path excluding \u0060None\u0060/\u0060Err\u0060: no \u0060if let\u0060 or \u0060match\u0060 arm that matched it present, no \u0060let \u2026 else\u0060, no \u0060is_some()\u0060/\u0060is_ok()\u0060 test (or \u0060is_none()\u0060/\u0060is_err()\u0060 test that leaves), no \u0060assert!\u0060 of it, and for a lookup no proof the key or index exists. This line panics the first time the value is not there. Handle the absent case where it arises: propagate it with \u0060?\u0060, branch on it with \u0060if let\u0060 / \u0060match\u0060 / \u0060let \u2026 else\u0060, or give it a default (\u0060unwrap_or\u0060, \u0060unwrap_or_default\u0060, \u0060unwrap_or_else\u0060)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-cache/src/cache_client/completed_body.rs"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"569e8ebeeb20711ae1ace014ce567f93d88613d92208083dbcbe137bbf373121"}},{"ruleId":"X5","level":"warning","message":{"text":"Symbol treated as nullable, then dereferenced unguarded: \u0060listener.local_addr()\u0060 can be absent \u2014 it is an \u0060Option\u0060 or \u0060Result\u0060, which is why it is forced \u2014 and \u0060.unwrap()\u0060 in \u0060response\u0060 forces it with nothing on this path excluding \u0060None\u0060/\u0060Err\u0060: no \u0060if let\u0060 or \u0060match\u0060 arm that matched it present, no \u0060let \u2026 else\u0060, no \u0060is_some()\u0060/\u0060is_ok()\u0060 test (or \u0060is_none()\u0060/\u0060is_err()\u0060 test that leaves), no \u0060assert!\u0060 of it, and for a lookup no proof the key or index exists. This line panics the first time the value is not there. Handle the absent case where it arises: propagate it with \u0060?\u0060, branch on it with \u0060if let\u0060 / \u0060match\u0060 / \u0060let \u2026 else\u0060, or give it a default (\u0060unwrap_or\u0060, \u0060unwrap_or_default\u0060, \u0060unwrap_or_else\u0060)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-cache/src/cache_client/completed_body.rs"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"24144c39b4c7818714aeac146af057e71fdbf964a19fd966c0c5aac2600b91eb"}},{"ruleId":"X5","level":"warning","message":{"text":"Symbol treated as nullable, then dereferenced unguarded: \u0060\u0060 can be absent \u2014 it is an \u0060Option\u0060 or \u0060Result\u0060, which is why it is forced \u2014 and \u0060.unwrap()\u0060 in \u0060response\u0060 forces it with nothing on this path excluding \u0060None\u0060/\u0060Err\u0060: no \u0060if let\u0060 or \u0060match\u0060 arm that matched it present, no \u0060let \u2026 else\u0060, no \u0060is_some()\u0060/\u0060is_ok()\u0060 test (or \u0060is_none()\u0060/\u0060is_err()\u0060 test that leaves), no \u0060assert!\u0060 of it, and for a lookup no proof the key or index exists. This line panics the first time the value is not there. Handle the absent case where it arises: propagate it with \u0060?\u0060, branch on it with \u0060if let\u0060 / \u0060match\u0060 / \u0060let \u2026 else\u0060, or give it a default (\u0060unwrap_or\u0060, \u0060unwrap_or_default\u0060, \u0060unwrap_or_else\u0060)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-cache/src/cache_client/completed_body.rs"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ae8f25e23d1b7911f36936e0a0228b73d3954ef76ad3b48e64ff40306fa37dc"}},{"ruleId":"X5","level":"warning","message":{"text":"Symbol treated as nullable, then dereferenced unguarded: \u0060\u0060 can be absent \u2014 it is an \u0060Option\u0060 or \u0060Result\u0060, which is why it is forced \u2014 and \u0060.unwrap()\u0060 in \u0060response\u0060 forces it with nothing on this path excluding \u0060None\u0060/\u0060Err\u0060: no \u0060if let\u0060 or \u0060match\u0060 arm that matched it present, no \u0060let \u2026 else\u0060, no \u0060is_some()\u0060/\u0060is_ok()\u0060 test (or \u0060is_none()\u0060/\u0060is_err()\u0060 test that leaves), no \u0060assert!\u0060 of it, and for a lookup no proof the key or index exists. This line panics the first time the value is not there. Handle the absent case where it arises: propagate it with \u0060?\u0060, branch on it with \u0060if let\u0060 / \u0060match\u0060 / \u0060let \u2026 else\u0060, or give it a default (\u0060unwrap_or\u0060, \u0060unwrap_or_default\u0060, \u0060unwrap_or_else\u0060)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-cache/src/cache_client/completed_body.rs"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b1232f68f58c2120e02fe9494934066a5bf3da1c9967830036b387aacc93637"}},{"ruleId":"X5","level":"warning","message":{"text":"Symbol treated as nullable, then dereferenced unguarded: \u0060\u0060 can be absent \u2014 it is an \u0060Option\u0060 or \u0060Result\u0060, which is why it is forced \u2014 and \u0060.unwrap()\u0060 in \u0060response\u0060 forces it with nothing on this path excluding \u0060None\u0060/\u0060Err\u0060: no \u0060if let\u0060 or \u0060match\u0060 arm that matched it present, no \u0060let \u2026 else\u0060, no \u0060is_some()\u0060/\u0060is_ok()\u0060 test (or \u0060is_none()\u0060/\u0060is_err()\u0060 test that leaves), no \u0060assert!\u0060 of it, and for a lookup no proof the key or index exists. This line panics the first time the value is not there. Handle the absent case where it arises: propagate it with \u0060?\u0060, branch on it with \u0060if let\u0060 / \u0060match\u0060 / \u0060let \u2026 else\u0060, or give it a default (\u0060unwrap_or\u0060, \u0060unwrap_or_default\u0060, \u0060unwrap_or_else\u0060)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-cache/src/cache_client/completed_body.rs"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"3533a15446512cb82cbb7995ac42024b3c39eb23f586ab1602883ca2cec1c571"}},{"ruleId":"X5","level":"warning","message":{"text":"Symbol treated as nullable, then dereferenced unguarded: \u0060\u0060 can be absent \u2014 it is an \u0060Option\u0060 or \u0060Result\u0060, which is why it is forced \u2014 and \u0060.unwrap()\u0060 in \u0060response\u0060 forces it with nothing on this path excluding \u0060None\u0060/\u0060Err\u0060: no \u0060if let\u0060 or \u0060match\u0060 arm that matched it present, no \u0060let \u2026 else\u0060, no \u0060is_some()\u0060/\u0060is_ok()\u0060 test (or \u0060is_none()\u0060/\u0060is_err()\u0060 test that leaves), no \u0060assert!\u0060 of it, and for a lookup no proof the key or index exists. This line panics the first time the value is not there. Handle the absent case where it arises: propagate it with \u0060?\u0060, branch on it with \u0060if let\u0060 / \u0060match\u0060 / \u0060let \u2026 else\u0060, or give it a default (\u0060unwrap_or\u0060, \u0060unwrap_or_default\u0060, \u0060unwrap_or_else\u0060)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-cache/src/cache_client/completed_body.rs"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"165e7b7f3dddc4296df595d823a1331d0367c1ee89ec7d7b9c4dcb4ac9cca962"}},{"ruleId":"X5","level":"warning","message":{"text":"Symbol treated as nullable, then dereferenced unguarded: \u0060CacheClient::new(\u0026format!(\u0022http://{address}\u0022),\u0026CacheServiceAuth::None,None,None,None,)\u0060 can be absent \u2014 it is an \u0060Option\u0060 or \u0060Result\u0060, which is why it is forced \u2014 and \u0060.unwrap()\u0060 in \u0060response\u0060 forces it with nothing on this path excluding \u0060None\u0060/\u0060Err\u0060: no \u0060if let\u0060 or \u0060match\u0060 arm that matched it present, no \u0060let \u2026 else\u0060, no \u0060is_some()\u0060/\u0060is_ok()\u0060 test (or \u0060is_none()\u0060/\u0060is_err()\u0060 test that leaves), no \u0060assert!\u0060 of it, and for a lookup no proof the key or index exists. This line panics the first time the value is not there. Handle the absent case where it arises: propagate it with \u0060?\u0060, branch on it with \u0060if let\u0060 / \u0060match\u0060 / \u0060let \u2026 else\u0060, or give it a default (\u0060unwrap_or\u0060, \u0060unwrap_or_default\u0060, \u0060unwrap_or_else\u0060)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-cache/src/cache_client/completed_body.rs"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdba27da8a024c022155c2242b85affc44e4f37a9f50150b552f5c0d6cb43040"}},{"ruleId":"X5","level":"warning","message":{"text":"Symbol treated as nullable, then dereferenced unguarded: \u0060\u0060 can be absent \u2014 it is an \u0060Option\u0060 or \u0060Result\u0060, which is why it is forced \u2014 and \u0060.unwrap()\u0060 in \u0060response\u0060 forces it with nothing on this path excluding \u0060None\u0060/\u0060Err\u0060: no \u0060if let\u0060 or \u0060match\u0060 arm that matched it present, no \u0060let \u2026 else\u0060, no \u0060is_some()\u0060/\u0060is_ok()\u0060 test (or \u0060is_none()\u0060/\u0060is_err()\u0060 test that leaves), no \u0060assert!\u0060 of it, and for a lookup no proof the key or index exists. This line panics the first time the value is not there. Handle the absent case where it arises: propagate it with \u0060?\u0060, branch on it with \u0060if let\u0060 / \u0060match\u0060 / \u0060let \u2026 else\u0060, or give it a default (\u0060unwrap_or\u0060, \u0060unwrap_or_default\u0060, \u0060unwrap_or_else\u0060)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-cache/src/cache_client/completed_body.rs"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"115242ee1885bec5a72ea734717f62fd9b689bcc825f7d50146ec52626090490"}},{"ruleId":"X5","level":"warning","message":{"text":"Symbol treated as nullable, then dereferenced unguarded: \u0060.unwrap()\u0060 can be absent \u2014 it is an \u0060Option\u0060 or \u0060Result\u0060, which is why it is forced \u2014 and \u0060.unwrap()\u0060 in \u0060response\u0060 forces it with nothing on this path excluding \u0060None\u0060/\u0060Err\u0060: no \u0060if let\u0060 or \u0060match\u0060 arm that matched it present, no \u0060let \u2026 else\u0060, no \u0060is_some()\u0060/\u0060is_ok()\u0060 test (or \u0060is_none()\u0060/\u0060is_err()\u0060 test that leaves), no \u0060assert!\u0060 of it, and for a lookup no proof the key or index exists. This line panics the first time the value is not there. Handle the absent case where it arises: propagate it with \u0060?\u0060, branch on it with \u0060if let\u0060 / \u0060match\u0060 / \u0060let \u2026 else\u0060, or give it a default (\u0060unwrap_or\u0060, \u0060unwrap_or_default\u0060, \u0060unwrap_or_else\u0060)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-cache/src/cache_client/completed_body.rs"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f457ec812c9d87efc14fb26048d4ef1a1b03e0da4fd25faa8fa3fbfa07d61d1"}},{"ruleId":"X5","level":"warning","message":{"text":"Symbol treated as nullable, then dereferenced unguarded: \u0060\u0060 can be absent \u2014 it is an \u0060Option\u0060 or \u0060Result\u0060, which is why it is forced \u2014 and \u0060.unwrap()\u0060 in \u0060response\u0060 forces it with nothing on this path excluding \u0060None\u0060/\u0060Err\u0060: no \u0060if let\u0060 or \u0060match\u0060 arm that matched it present, no \u0060let \u2026 else\u0060, no \u0060is_some()\u0060/\u0060is_ok()\u0060 test (or \u0060is_none()\u0060/\u0060is_err()\u0060 test that leaves), no \u0060assert!\u0060 of it, and for a lookup no proof the key or index exists. This line panics the first time the value is not there. Handle the absent case where it arises: propagate it with \u0060?\u0060, branch on it with \u0060if let\u0060 / \u0060match\u0060 / \u0060let \u2026 else\u0060, or give it a default (\u0060unwrap_or\u0060, \u0060unwrap_or_default\u0060, \u0060unwrap_or_else\u0060)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-cache/src/cache_client/completed_body.rs"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"45eb9bec3ecdfd26711f3eccbf14271c1f238f88395f8f7f8759216926276b67"}},{"ruleId":"X5","level":"warning","message":{"text":"Symbol treated as nullable, then dereferenced unguarded: \u0060CacheCatalog::read_only_stats(cache.root())\u0060 can be absent \u2014 it is an \u0060Option\u0060 or \u0060Result\u0060, which is why it is forced \u2014 and \u0060.unwrap()\u0060 in \u0060reserved\u0060 forces it with nothing on this path excluding \u0060None\u0060/\u0060Err\u0060: no \u0060if let\u0060 or \u0060match\u0060 arm that matched it present, no \u0060let \u2026 else\u0060, no \u0060is_some()\u0060/\u0060is_ok()\u0060 test (or \u0060is_none()\u0060/\u0060is_err()\u0060 test that leaves), no \u0060assert!\u0060 of it, and for a lookup no proof the key or index exists. This line panics the first time the value is not there. Handle the absent case where it arises: propagate it with \u0060?\u0060, branch on it with \u0060if let\u0060 / \u0060match\u0060 / \u0060let \u2026 else\u0060, or give it a default (\u0060unwrap_or\u0060, \u0060unwrap_or_default\u0060, \u0060unwrap_or_else\u0060)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/crab-cache/src/cache_client/completed_body.rs"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"42a0eec98faba2dfa7feb4fb956ed6baa6b14399b48bd16776d627c4aa5b4feb"}},{"ruleId":"X5","level":"warning","message":{"text":"Symbol treated as nullable, then dereferenced unguarded: \u0060gix_config::File::from_str(text)\u0060 can be absent \u2014 it is an \u0060Option\u0060 or \u0060Result\u0060, which is why it is forced \u2014 and \u0060.expect()\u0060 in \u0060cfg\u0060 forces it with nothing on this path excluding \u0060None\u0060/\u0060Err\u0060: no \u0060if let\u0060 or \u0060match\u0060 arm that matched it present, no \u0060let \u2026 else\u0060, no \u0060is_some()\u0060/\u0060is_ok()\u0060 test (or \u0060is_none()\u0060/\u0060is_err()\u0060 test that leaves), no \u0060assert!\u0060 of it, and for a lookup no proof the key or index exists. This line panics the first time the value is not there. Handle the absent case where it arises: propagate it with \u0060?\u0060, branch on it with \u0060if let\u0060 / \u0060match\u0060 / \u0060let \u2026 else\u0060, or give it a default (\u0060unwrap_or\u0060, \u0060unwrap_or_default\u0060, \u0060unwrap_or_else\u0060)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/auth/gix_credentials_adapter.rs"},"region":{"startLine":281}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9f9f495ddaa2826e800eca58a15883cb644bd7951db72a86bde7bec1c30eb69"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on parse failure: \u0060redact_url\u0060 returns \u0060\u0027\u003Credacted-url\u003E\u0027\u0060 when \u0060ValueError\u0060 is raised, with no log or raise \u2014 a malformed value silently becomes that default. Log the input or fail validation. 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":"crab/scripts/e2e/run_lfs_qualification.py"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"eadec71fbd615ade289444df631a767c2a198802dac73a9bf31e87535b13d12a"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on parse failure: \u0060process_tree_rss_bytes\u0060 returns \u00600\u0060 when \u0060(OSError, StopIteration, ValueError, IndexError)\u0060 is raised, with no log or raise \u2014 a malformed value silently becomes that default. Log the input or fail validation. 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":"crab/scripts/e2e/run_protocol_v2_partial_clone_rustfs_smoke.py"},"region":{"startLine":366}}}],"partialFingerprints":{"codehealthFindingId/v1":"74360ff76de7620ccbae16b7933e4a790c9fc908f12264680ddb5497fe7aa307"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on Err: \u0060to_json\u0060 turns every \u0060Err\u0060 into \u0060\u0022{}\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":"crab/src/optimize/xorbs/profile.rs"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"272171bb1bbda3ede94817ea682b93a1a3a974795e2475ca6c8c9632f399181c"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on Err: \u0060crab_binary_path\u0060 turns every \u0060Err\u0060 into \u0060\u0022crab\u0022.to_owned()\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":"crab/src/cmd/init.rs"},"region":{"startLine":869}}}],"partialFingerprints":{"codehealthFindingId/v1":"db06ae033495f6ba0fb5dee2fe86ba721bdb52993b06dbff1315b20bc7c24515"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on Err: \u0060sorted_error_logs\u0060 turns every \u0060Err\u0060 into \u0060Ok(Vec::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":"crab/src/cmd/lfs/logs.rs"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"39fe12462da55132b4e504f181e78d94c108e0ed1029688c92c9532964bacdab"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on Err: \u0060walkdir_size\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":"crab/src/cmd/mount.rs"},"region":{"startLine":3426}}}],"partialFingerprints":{"codehealthFindingId/v1":"da9800a3e89974e91c79a23ba222e45d551206b5dea75e2761dc0cf3c99ea594"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on Err: \u0060manifest_connectivity_frontier\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":"crab/src/git/push.rs"},"region":{"startLine":1997}}}],"partialFingerprints":{"codehealthFindingId/v1":"82ad283e8cc5e141913d2974956b96cb8ddade1b4e1a5fc7c4abfb63bdd89937"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on Err: \u0060locally_available_remote_tips\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":"crab/src/lfs/publication.rs"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"8acc40835b5b0bd6cffc6e8663bceb09eeb2b72c02c0937845993d96f8ee584f"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on Err: \u0060diff_index_head_via_gix\u0060 turns every \u0060Err\u0060 into \u0060Ok(Vec::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":"crab/src/lfs/status.rs"},"region":{"startLine":307}}}],"partialFingerprints":{"codehealthFindingId/v1":"b38e99f52a2bcc35c3f9dd97788788155421b5087f8d588a59c9ec5f7b04df7c"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on Err: \u0060diff_files_via_gix\u0060 turns every \u0060Err\u0060 into \u0060Ok(Vec::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":"crab/src/lfs/status.rs"},"region":{"startLine":480}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd54e67d770b014d2006d4417a0365e9c7f22f68d54adccfec434c4db27ec31b"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on Err: \u0060read_replica_event_summary_from_path\u0060 turns every \u0060Err\u0060 into \u0060ReplicaEventSummary::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":"crab/src/replication/mod.rs"},"region":{"startLine":9410}}}],"partialFingerprints":{"codehealthFindingId/v1":"daa9179cc6b2e10eda727d31618e810d5a1ffd1c12cefc7d9e57c33aff1298c0"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on Err: \u0060redact_url_value\u0060 turns every \u0060Err\u0060 into \u0060\u0022configured-redacted\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/crab-cache-server/src/onboarding.rs"},"region":{"startLine":904}}}],"partialFingerprints":{"codehealthFindingId/v1":"79c4adb4b3dfd69fa50d69fa898499822e256b713fd079e213921762c3f655c1"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on Err: \u0060redact_url\u0060 turns every \u0060Err\u0060 into \u0060\u0022\u003Cinvalid-url\u003E\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/crab-cache-server/src/preflight.rs"},"region":{"startLine":679}}}],"partialFingerprints":{"codehealthFindingId/v1":"49d25a14d76ced671cbe7e37a77cefa5e560524a7d1032ab6c8a7e3703cf5c2e"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on Err: \u0060staged_writes\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/crab-storage/src/store.rs"},"region":{"startLine":455}}}],"partialFingerprints":{"codehealthFindingId/v1":"4425de6f70202e31f432c89c7cf9d8ede25998e26b7ae1b37ea9bd6ac1fb0cf6"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on Err: \u0060contexts\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/crab-storage/src/transport_read_admission.rs"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f42d6655c990038de8a82d4f5ea6059b6894b39a454c89a1f843fdca608b211"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on Err: \u0060list_by_prefix\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/crab-vfs/src/overlay.rs"},"region":{"startLine":802}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d992f51fa55603eb1e67f26a977f3f3cdd9a36787356a48481374b0c7050b9b"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on Err: \u0060list_children_page\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/crab-vfs/src/overlay.rs"},"region":{"startLine":814}}}],"partialFingerprints":{"codehealthFindingId/v1":"56eb09e5605d4864e2b8f198a686d3babc84686fe97ca3d9ef08ab4208dbaa23"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on Err: \u0060crab_binary_path\u0060 turns every \u0060Err\u0060 into \u0060\u0022crab\u0022.to_owned()\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/crab-vfs/src/executable.rs"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"26c1b58385a34b59d79325ff1cbcae8082ecbfe796a8fa505df197c79a23357a"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on Err: \u0060cache_checked_payload\u0060 turns every \u0060Err\u0060 into \u0060\u0022{}\u0022.to_owned()\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/crab-workflow/src/executor.rs"},"region":{"startLine":1997}}}],"partialFingerprints":{"codehealthFindingId/v1":"225039b9b9689b251bb81703501badd73eb3a01125f1abc1199f28a8507da08c"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on Err: \u0060running_payload\u0060 turns every \u0060Err\u0060 into \u0060\u0022{}\u0022.to_owned()\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/crab-workflow/src/executor.rs"},"region":{"startLine":2011}}}],"partialFingerprints":{"codehealthFindingId/v1":"e887dad23a48a17320a7b240e1d27d31e0e0fd0f759f2516c17c3838ff3c002f"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on Err: \u0060hashed_payload\u0060 turns every \u0060Err\u0060 into \u0060\u0022{}\u0022.to_owned()\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/crab-workflow/src/executor.rs"},"region":{"startLine":2037}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc4682273451fe108b4fe665a7f9fe5ba21b883b56e48d463d9f978b794ee3df"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on Err: \u0060entry_written_payload\u0060 turns every \u0060Err\u0060 into \u0060\u0022{}\u0022.to_owned()\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/crab-workflow/src/executor.rs"},"region":{"startLine":2048}}}],"partialFingerprints":{"codehealthFindingId/v1":"574fc69cc65c22dc3a0a37b4a9cc1dfb7534044a82243fc8526852594d822cf4"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on Err: \u0060committed_payload\u0060 turns every \u0060Err\u0060 into \u0060\u0022{}\u0022.to_owned()\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/crab-workflow/src/executor.rs"},"region":{"startLine":2057}}}],"partialFingerprints":{"codehealthFindingId/v1":"e088ef070ab8652c96604137d38022c0e830b84e520b1ce8dda47efd0a028734"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on Err: \u0060redacted_url_subject\u0060 turns every \u0060Err\u0060 into \u0060\u0022\u003Credacted-url\u003E\u0022.to_owned()\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/crab-workflow/src/stage_runtime.rs"},"region":{"startLine":288}}}],"partialFingerprints":{"codehealthFindingId/v1":"935b868f73a0d2ed37f245c0c9724c318be72d44235a8579a129f3acf63e0042"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on Err: \u0060uncovered_locator_object_rows\u0060 turns every \u0060Err\u0060 into \u0060true\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/crab-write/src/generation.rs"},"region":{"startLine":1008}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a75a9ccde4c541cc0fab18e7973340499b1b95b3375395bcfb47879e1dcfc0d"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060readHistory\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/ui/src/data-workbench.tsx"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"a58cd3c0d39422370e16e7100c81b2961d7cec03126db979306b57f8618e0bfa"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060countWordsFromMdxFile\u0060 swallows every exception into \u0060return 200\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/web/lib/mdx-reading-time.ts"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"62612d5a743a95bb8493d10a62c77e9e10eab7a4812760324fe4d184df3a0586"}},{"ruleId":"X9","level":"note","message":{"text":"Subsumed condition operand: \u0060json.contains(\u00222300.00\u0022)\u0060 can never decide this \u0060||\u0060 \u2014 every value satisfying \u0060json.contains(\u00222300.00\u0022)\u0060 also satisfies \u0060json.contains(\u00222300\u0022)\u0060, so the \u0060||\u0060 chain is already decided by the latter. The expression is equivalent to the chain without it, which means it is wider than it reads. Delete the dead operand, or narrow the surviving one if IT is the accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crab/src/cost/report.rs"},"region":{"startLine":347}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ece2600e7820a75a776379c694f8b91b25af3a5460550eb96a08fc369b06884"}}],"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-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-250","guid":"52ee12e8-390a-7351-b1e6-388afa694e54","name":"CWE-250","shortDescription":{"text":"CWE-250"},"helpUri":"https://cwe.mitre.org/data/definitions/250.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-502","guid":"f7d3b296-aac0-5c5a-b706-e07faba26c36","name":"Deserialization of Untrusted Data","shortDescription":{"text":"Deserialization of Untrusted Data"},"helpUri":"https://cwe.mitre.org/data/definitions/502.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-778","guid":"58944737-c935-8a57-9195-e7b7e640597e","name":"Insufficient Logging","shortDescription":{"text":"Insufficient Logging"},"helpUri":"https://cwe.mitre.org/data/definitions/778.html"},{"id":"CWE-78","guid":"2e31ceaf-c7ae-2e5e-9661-cfb1362789cf","name":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/78.html"},{"id":"CWE-79","guid":"fd45580b-e8c4-fc5e-8c2f-aa8fab0b4dbf","name":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)","shortDescription":{"text":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/79.html"},{"id":"CWE-798","guid":"5e8f057d-fee3-995a-a0cb-9fc5b0d174d1","name":"Use of Hard-coded Credentials","shortDescription":{"text":"Use of Hard-coded Credentials"},"helpUri":"https://cwe.mitre.org/data/definitions/798.html"},{"id":"CWE-829","guid":"13c33925-97fb-5a5e-b40c-56d328b8a4d7","name":"Inclusion of Functionality from Untrusted Control Sphere","shortDescription":{"text":"Inclusion of Functionality from Untrusted Control Sphere"},"helpUri":"https://cwe.mitre.org/data/definitions/829.html"},{"id":"CWE-89","guid":"6d08fdad-37eb-c150-bbf0-d7d946863407","name":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/89.html"},{"id":"CWE-937","guid":"16f316ae-415c-b354-a59b-1f7905f756e9","name":"Using Components with Known Vulnerabilities","shortDescription":{"text":"Using Components with Known Vulnerabilities"},"helpUri":"https://cwe.mitre.org/data/definitions/937.html"},{"id":"CWE-939","guid":"12397742-f2c4-8254-8012-482c3356c551","name":"CWE-939","shortDescription":{"text":"CWE-939"},"helpUri":"https://cwe.mitre.org/data/definitions/939.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/"},{"id":"A09:2025","guid":"78892bc9-3c98-495d-881c-8af1390d643c","name":"Security Logging \u0026 Alerting Failures","shortDescription":{"text":"Security Logging \u0026 Alerting Failures"},"helpUri":"https://top10.owasp.org/2025/A09_2025-Security_Logging_and_Alerting_Failures/"}]},{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35","organization":"OWASP Foundation","informationUri":"https://owasp.org/www-project-top-10-ci-cd-security-risks/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10 CI/CD Security Risks."},"taxa":[{"id":"CICD-SEC-3","guid":"458c83a6-ebf7-cf55-8cc3-b4d949bbf271","name":"Dependency Chain Abuse","shortDescription":{"text":"Dependency Chain Abuse"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-03-Dependency-Chain-Abuse"},{"id":"CICD-SEC-5","guid":"cc7f4610-8859-e654-9029-d5f97d992220","name":"Insufficient PBAC (Pipeline-Based Access Controls)","shortDescription":{"text":"Insufficient PBAC (Pipeline-Based Access Controls)"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-05-Insufficient-PBAC"},{"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"}]}],"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":326,"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."]}]}