{"$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":"D9","name":"Test Distribution","shortDescription":{"text":"Test Distribution"},"helpUri":"https://codehealth.canine.dev/dimensions/D9"},{"id":"D11","name":"Test Reliability","shortDescription":{"text":"Test Reliability"},"helpUri":"https://codehealth.canine.dev/dimensions/D11"},{"id":"D13","name":"Secret Scanning","shortDescription":{"text":"Secret Scanning"},"helpUri":"https://codehealth.canine.dev/dimensions/D13","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"]}},{"id":"D15","name":"Churn \u00D7 Complexity Hotspots","shortDescription":{"text":"Churn \u00D7 Complexity Hotspots"},"helpUri":"https://codehealth.canine.dev/dimensions/D15"},{"id":"D16","name":"Bus Factor","shortDescription":{"text":"Bus Factor"},"helpUri":"https://codehealth.canine.dev/dimensions/D16"},{"id":"D17","name":"Explicit Debt","shortDescription":{"text":"Explicit Debt"},"helpUri":"https://codehealth.canine.dev/dimensions/D17"},{"id":"D19","name":"Documentation Quality","shortDescription":{"text":"Documentation Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D19"},{"id":"D20","name":"ADR Quality","shortDescription":{"text":"ADR Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D20"},{"id":"D21","name":"Naming Consistency","shortDescription":{"text":"Naming Consistency"},"helpUri":"https://codehealth.canine.dev/dimensions/D21"},{"id":"D22","name":"Internal API Consistency","shortDescription":{"text":"Internal API Consistency"},"helpUri":"https://codehealth.canine.dev/dimensions/D22"},{"id":"D26","name":"Project Cohesion","shortDescription":{"text":"Project Cohesion"},"helpUri":"https://codehealth.canine.dev/dimensions/D26"},{"id":"D28","name":"Secrets (history)","shortDescription":{"text":"Secrets (history)"},"helpUri":"https://codehealth.canine.dev/dimensions/D28","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"]}},{"id":"D29","name":"Static Analysis (SAST)","shortDescription":{"text":"Static Analysis (SAST)"},"helpUri":"https://codehealth.canine.dev/dimensions/D29","relationships":[{"target":{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-94","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-77","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-79","CWE-89","CWE-78","CWE-94","CWE-77"]}},{"id":"D30","name":"Dependency Vulnerabilities","shortDescription":{"text":"Dependency Vulnerabilities"},"helpUri":"https://codehealth.canine.dev/dimensions/D30","relationships":[{"target":{"id":"CWE-1395","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-937","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1395","CWE-937"]}},{"id":"D34","name":"Knowledge Freshness","shortDescription":{"text":"Knowledge Freshness"},"helpUri":"https://codehealth.canine.dev/dimensions/D34"},{"id":"D35","name":"Change Coupling","shortDescription":{"text":"Change Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D35"},{"id":"D36","name":"Supply-chain Provenance \u0026 Signing","shortDescription":{"text":"Supply-chain Provenance \u0026 Signing"},"helpUri":"https://codehealth.canine.dev/dimensions/D36","relationships":[{"target":{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-494","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1357","CWE-494"]}},{"id":"D43","name":"Malicious Dependencies","shortDescription":{"text":"Malicious Dependencies"},"helpUri":"https://codehealth.canine.dev/dimensions/D43","relationships":[{"target":{"id":"CWE-506","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-506"]}},{"id":"D44","name":"Platform End-of-Life","shortDescription":{"text":"Platform End-of-Life"},"helpUri":"https://codehealth.canine.dev/dimensions/D44"},{"id":"AX10","name":"Code composition","shortDescription":{"text":"Code composition"},"helpUri":"https://codehealth.canine.dev/dimensions/AX10"},{"id":"AX3","name":"Project dependency cycles","shortDescription":{"text":"Project dependency cycles"},"helpUri":"https://codehealth.canine.dev/dimensions/AX3"},{"id":"AX5","name":"Architecture \u0026 structure","shortDescription":{"text":"Architecture \u0026 structure"},"helpUri":"https://codehealth.canine.dev/dimensions/AX5"},{"id":"AX7","name":"Slice cohesion","shortDescription":{"text":"Slice cohesion"},"helpUri":"https://codehealth.canine.dev/dimensions/AX7"},{"id":"AX9","name":"CQS / query purity","shortDescription":{"text":"CQS / query purity"},"helpUri":"https://codehealth.canine.dev/dimensions/AX9"},{"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":"P12","name":"CI test-gate honesty","shortDescription":{"text":"CI test-gate honesty"},"helpUri":"https://codehealth.canine.dev/dimensions/P12"},{"id":"P2","name":"Observability","shortDescription":{"text":"Observability"},"helpUri":"https://codehealth.canine.dev/dimensions/P2"},{"id":"P3","name":"Security \u0026 performance tooling","shortDescription":{"text":"Security \u0026 performance tooling"},"helpUri":"https://codehealth.canine.dev/dimensions/P3"},{"id":"P4","name":"Deployment \u0026 Rollback","shortDescription":{"text":"Deployment \u0026 Rollback"},"helpUri":"https://codehealth.canine.dev/dimensions/P4"},{"id":"P6","name":"Release Hygiene","shortDescription":{"text":"Release Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/P6"},{"id":"X9","name":"Subsumed condition operand","shortDescription":{"text":"Subsumed condition operand"},"helpUri":"https://codehealth.canine.dev/dimensions/X9"}]}},"results":[{"ruleId":"D1","level":"warning","message":{"text":"Parser::parse (cyclomatic 61): Parser::parse has cyclomatic complexity 61 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"clap_builder/src/parser/parser.rs"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b45d3ac4c4bb34d454ca0ba52642ecdaffc7330ca3aa43c1f6d36208ff1a0ee"}},{"ruleId":"D1","level":"warning","message":{"text":"Parser::react (cyclomatic 45): Parser::react 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":"clap_builder/src/parser/parser.rs"},"region":{"startLine":1141}}}],"partialFingerprints":{"codehealthFindingId/v1":"6df0b109fcbb410aa68876a38993a79e8a4f4f9ee9f4669fb50d62161c1e7a7c"}},{"ruleId":"D1","level":"warning","message":{"text":"clap_derive::utils::doc_comments::markdown::parse_markdown (cyclomatic 38): clap_derive::utils::doc_comments::markdown::parse_markdown 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":"clap_derive/src/utils/doc_comments.rs"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd526a9094c0e90048455f53c13773b3f819cd925195886ef658a6c834aee7ac"}},{"ruleId":"D1","level":"warning","message":{"text":"clap_builder::builder::debug_asserts::assert_app (cyclomatic 37): clap_builder::builder::debug_asserts::assert_app has cyclomatic complexity 37 (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":"clap_builder/src/builder/debug_asserts.rs"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"529413e768859b93d95d686f6e0c645f96ff2a57fdfa13bf42e00aaa84c73208"}},{"ruleId":"D1","level":"warning","message":{"text":"clap_builder::error::format::write_dynamic_context (cyclomatic 33): clap_builder::error::format::write_dynamic_context 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":"clap_builder/src/error/format.rs"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9161778cc5d1817678428b2c66a14f2e71f74dfe8a93bc974e2b7e9804e3b36"}},{"ruleId":"D1","level":"warning","message":{"text":"clap_builder::builder::debug_asserts::_verify_positionals (cyclomatic 26): clap_builder::builder::debug_asserts::_verify_positionals 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":"clap_builder/src/builder/debug_asserts.rs"},"region":{"startLine":508}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b47da75217988cccb1f2777219c579d7c2e3a65395997256fb8b987b3d63c5e"}},{"ruleId":"D1","level":"warning","message":{"text":"clap_complete::aot::shells::fish::gen_fish_inner (cyclomatic 26): clap_complete::aot::shells::fish::gen_fish_inner 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":"clap_complete/src/aot/shells/fish.rs"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a6a7a7215a7a2a8d0c483265612c85eea00cd97856d5a48b628b02f3445ce77"}},{"ruleId":"D1","level":"warning","message":{"text":"Usage::write_args (cyclomatic 25): Usage::write_args 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":"clap_builder/src/output/usage.rs"},"region":{"startLine":254}}}],"partialFingerprints":{"codehealthFindingId/v1":"aec922719aa1a8b75945b56b15dc54e4dd6290b0d83d25e28229e1eca95fb7ca"}},{"ruleId":"D1","level":"warning","message":{"text":"clap_builder::builder::debug_asserts::assert_arg_flags (cyclomatic 25): clap_builder::builder::debug_asserts::assert_arg_flags 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":"clap_builder/src/builder/debug_asserts.rs"},"region":{"startLine":804}}}],"partialFingerprints":{"codehealthFindingId/v1":"63dd4ede6b1ee3299769e14249ad2b57137fe84a90cc54c5d3a399145cb6699f"}},{"ruleId":"D1","level":"warning","message":{"text":"Command::_build_self (cyclomatic 24): Command::_build_self 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":"clap_builder/src/builder/command.rs"},"region":{"startLine":4397}}}],"partialFingerprints":{"codehealthFindingId/v1":"33ad40ee2d97c6943103ac227f93400cf72c6cf7b0797cc171dfb8797afdc1f2"}},{"ruleId":"D1","level":"warning","message":{"text":"Validator::validate_required (cyclomatic 23): Validator::validate_required 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":"clap_builder/src/parser/validator.rs"},"region":{"startLine":221}}}],"partialFingerprints":{"codehealthFindingId/v1":"79830567df9836edf1cfeb4228e33e281b4522c41e7e280f73a5e6b3e8d82773"}},{"ruleId":"D1","level":"warning","message":{"text":"clap_complete::engine::complete::complete (cyclomatic 21): clap_complete::engine::complete::complete 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":"clap_complete/src/engine/complete.rs"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"78b728105c7e2d5281186c6bcdee4123be7939ef48318b52f5056d22ebf615e5"}},{"ruleId":"D1","level":"warning","message":{"text":"clap_mangen::render::options (cyclomatic 19): clap_mangen::render::options 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":"clap_mangen/src/render.rs"},"region":{"startLine":221}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d687752b03e53b254f19f14da302664e3b7a8410c12f5d585e4e1606ed4ef4d"}},{"ruleId":"D1","level":"warning","message":{"text":"Usage::get_required_usage_from (cyclomatic 18): Usage::get_required_usage_from 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":"clap_builder/src/output/usage.rs"},"region":{"startLine":378}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce3af5fc25a5f46e5e968f14d702225987d5dcb991d7411833f7859d6df06dd2"}},{"ruleId":"D1","level":"warning","message":{"text":"clap_complete::aot::shells::elvish::generate_inner (cyclomatic 17): clap_complete::aot::shells::elvish::generate_inner has cyclomatic complexity 17 (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":"clap_complete/src/aot/shells/elvish.rs"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"932dbd5f50ce8825786fda5bdd570e0f46b20fae19bca83b923e1dbf7be47037"}},{"ruleId":"D2","level":"warning","message":{"text":"Parser::parse (cognitive 119): Parser::parse has cognitive complexity 119 (threshold 15). Drivers by points: if/else 37 (86 pts), match/switch 4 (15 pts), boolean chains 14, loops 2 (4 pts) (nesting depth added 62). 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":"clap_builder/src/parser/parser.rs"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ef71f57b5d7dbeab644b9ffc4194840a991b6f108895ece5a0ec8c85cad7989"}},{"ruleId":"D2","level":"warning","message":{"text":"clap_builder::builder::debug_asserts::assert_app (cognitive 67): clap_builder::builder::debug_asserts::assert_app has cognitive complexity 67 (threshold 15). Drivers by points: loops 19 (34 pts), if/else 15 (31 pts), boolean chains 2 (nesting depth added 31). 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":"clap_builder/src/builder/debug_asserts.rs"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"17480a6e5e7c844eb68891e5f44bfb7805dc4fbccfc831b7552988f13451b451"}},{"ruleId":"D2","level":"warning","message":{"text":"clap_builder::error::format::write_dynamic_context (cognitive 58): clap_builder::error::format::write_dynamic_context has cognitive complexity 58 (threshold 15). Drivers by points: if/else 29 (47 pts), loops 2 (7 pts), match/switch 2 (4 pts) (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":"clap_builder/src/error/format.rs"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed50c0445847596666dd4511b6bbc5c99fb47de029075007b4de71b1259b3e07"}},{"ruleId":"D2","level":"warning","message":{"text":"Parser::react (cognitive 56): Parser::react has cognitive complexity 56 (threshold 15). Drivers by points: if/else 21 (36 pts), boolean chains 13, match/switch 3 (4 pts), loops 1 (3 pts) (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"clap_builder/src/parser/parser.rs"},"region":{"startLine":1141}}}],"partialFingerprints":{"codehealthFindingId/v1":"42c5bfdb7321bf60997db90179f1672f146b799baf4da399ada138291840a9d0"}},{"ruleId":"D2","level":"warning","message":{"text":"Usage::write_args (cognitive 52): Usage::write_args has cognitive complexity 52 (threshold 15). Drivers by points: if/else 20 (38 pts), loops 8 (11 pts), match/switch 1 (2 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":"clap_builder/src/output/usage.rs"},"region":{"startLine":254}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ffec1d3f133553b26b329622b7cbeb75848ea20825d75255fbde2fb0c603391"}},{"ruleId":"D2","level":"warning","message":{"text":"clap_complete::aot::shells::fish::gen_fish_inner (cognitive 48): clap_complete::aot::shells::fish::gen_fish_inner has cognitive complexity 48 (threshold 15). Drivers by points: if/else 12 (23 pts), loops 11 (23 pts), match/switch 1 (2 pts) (nesting depth added 24). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"clap_complete/src/aot/shells/fish.rs"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"f78bc315fd9db8370ef1e5a21f0ce7d46e6fb049f0e99f4673c1e7d03c60e5b4"}},{"ruleId":"D2","level":"warning","message":{"text":"Command::_build_self (cognitive 44): Command::_build_self has cognitive complexity 44 (threshold 15). Drivers by points: if/else 17 (31 pts), loops 3 (7 pts), boolean chains 6 (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":"clap_builder/src/builder/command.rs"},"region":{"startLine":4397}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f17be68396d9f20daeac74fd423d63a69bde4df496e07b5cccf8a3a8919b51e"}},{"ruleId":"D2","level":"warning","message":{"text":"clap_complete::engine::complete::complete (cognitive 44): clap_complete::engine::complete::complete has cognitive complexity 44 (threshold 15). Drivers by points: if/else 17 (36 pts), match/switch 2 (6 pts), boolean chains 1, loops 1 (nesting depth added 23). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"clap_complete/src/engine/complete.rs"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5fec9ccf4e584858dcb8463fe4f23cab2ad76491e0f406f8e09cacb19b8d0af"}},{"ruleId":"D2","level":"warning","message":{"text":"Usage::get_required_usage_from (cognitive 43): Usage::get_required_usage_from has cognitive complexity 43 (threshold 15). Drivers by points: if/else 15 (34 pts), loops 5 (6 pts), match/switch 1 (2 pts), boolean chains 1 (nesting depth added 21). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"clap_builder/src/output/usage.rs"},"region":{"startLine":378}}}],"partialFingerprints":{"codehealthFindingId/v1":"03463928474ac3c0912d6d435e05734e7fcfa6902b3afebd31ef3128125f1adc"}},{"ruleId":"D2","level":"warning","message":{"text":"Command::_build_bin_names_internal (cognitive 42): Command::_build_bin_names_internal has cognitive complexity 42 (threshold 15). Drivers by points: if/else 16 (36 pts), loops 2 (5 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":"clap_builder/src/builder/command.rs"},"region":{"startLine":4580}}}],"partialFingerprints":{"codehealthFindingId/v1":"1cbeb3924faa9726a770d0ba65c47e38359113cc283da4ac2609021bb763e5e1"}},{"ruleId":"D2","level":"warning","message":{"text":"Validator::validate_required (cognitive 41): Validator::validate_required has cognitive complexity 41 (threshold 15). Drivers by points: if/else 13 (30 pts), loops 4 (6 pts), boolean chains 5 (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":"clap_builder/src/parser/validator.rs"},"region":{"startLine":221}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b3a5408437a9394e8b29c82c580a7d83da3bffc86db505955124b913c025d87"}},{"ruleId":"D2","level":"warning","message":{"text":"clap_builder::builder::debug_asserts::_verify_positionals (cognitive 41): clap_builder::builder::debug_asserts::_verify_positionals has cognitive complexity 41 (threshold 15). Drivers by points: if/else 15 (25 pts), boolean chains 11, loops 3 (5 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":"clap_builder/src/builder/debug_asserts.rs"},"region":{"startLine":508}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3c7ecb3d7dd15d9f9331c81a4f7b2a240e77a87be02d7407da31162df8a1fa3"}},{"ruleId":"D2","level":"warning","message":{"text":"clap_builder::builder::debug_asserts::assert_arg_flags (cognitive 40): clap_builder::builder::debug_asserts::assert_arg_flags has cognitive complexity 40 (threshold 15). Drivers by points: if/else 24 (40 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":"clap_builder/src/builder/debug_asserts.rs"},"region":{"startLine":804}}}],"partialFingerprints":{"codehealthFindingId/v1":"224f20c70a4f5d63957eed592e850c8f7c4c542df58749699f651ac28924a819"}},{"ruleId":"D2","level":"warning","message":{"text":"clap_mangen::render::options (cognitive 39): clap_mangen::render::options has cognitive complexity 39 (threshold 15). Drivers by points: if/else 12 (30 pts), loops 3 (6 pts), match/switch 1 (2 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":"clap_mangen/src/render.rs"},"region":{"startLine":221}}}],"partialFingerprints":{"codehealthFindingId/v1":"154235c29058236756a1823ad8710e92c3f6503d375eed7b17f75751f633f132"}},{"ruleId":"D2","level":"warning","message":{"text":"clap_complete::engine::complete::complete_option (cognitive 37): clap_complete::engine::complete::complete_option has cognitive complexity 37 (threshold 15). Drivers by points: if/else 20 (37 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":"clap_complete/src/engine/complete.rs"},"region":{"startLine":246}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2da3331a498e20b7cbbc903fda121747a5d698c6be9d40ff4a65a2024063e07"}},{"ruleId":"D2","level":"warning","message":{"text":"Parser::add_default_value (cognitive 31): Parser::add_default_value has cognitive complexity 31 (threshold 15). Drivers by points: if/else 11 (23 pts), match/switch 1 (5 pts), loops 1 (3 pts) (nesting depth added 18). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"clap_builder/src/parser/parser.rs"},"region":{"startLine":1455}}}],"partialFingerprints":{"codehealthFindingId/v1":"50350b146c5a8884b99cdfa1fbf76d8ba7941fd2ab01cae227efa7a4b8bbc39a"}},{"ruleId":"D2","level":"warning","message":{"text":"clap_complete::aot::shells::elvish::generate_inner (cognitive 31): clap_complete::aot::shells::elvish::generate_inner has cognitive complexity 31 (threshold 15). Drivers by points: loops 11 (21 pts), if/else 6 (10 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":"clap_complete/src/aot/shells/elvish.rs"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"baa8866ffa4b56fd598e1c054d17f2450f9fd5469abc713e7115d724a96d46c4"}},{"ruleId":"D2","level":"warning","message":{"text":"Parser::parse_short_arg (cognitive 27): Parser::parse_short_arg has cognitive complexity 27 (threshold 15). Drivers by points: if/else 10 (18 pts), match/switch 2 (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":"clap_builder/src/parser/parser.rs"},"region":{"startLine":882}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f045330e028ceea559465e6a50562069bf78b00cb4b3e8b6a77b7a2733c21f0"}},{"ruleId":"D2","level":"warning","message":{"text":"Arg::_build (cognitive 26): Arg::_build has cognitive complexity 26 (threshold 15). Drivers by points: if/else 15 (25 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":"clap_builder/src/builder/arg.rs"},"region":{"startLine":4578}}}],"partialFingerprints":{"codehealthFindingId/v1":"a330a225519b83803cf4c8b3eeea309d8ec27c8aa575c9fb9aad235884ab0930"}},{"ruleId":"D2","level":"warning","message":{"text":"clap_complete_nushell::append_argument (cognitive 26): clap_complete_nushell::append_argument has cognitive complexity 26 (threshold 15). Drivers by points: loops 4 (12 pts), if/else 5 (9 pts), match/switch 3 (5 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":"clap_complete_nushell/src/lib.rs"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"825ac491a5c6865c0cf1224971d0969cd74b46b24c86ecac0a78eb4a3038bdda"}},{"ruleId":"D2","level":"warning","message":{"text":"clap_complete::engine::custom::complete_path (cognitive 22): clap_complete::engine::custom::complete_path has cognitive complexity 22 (threshold 15). Drivers by points: if/else 10 (16 pts), match/switch 2 (4 pts), boolean chains 1, loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"clap_complete/src/engine/custom.rs"},"region":{"startLine":327}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1b2a9c749d08e23c179557208634366cf23c7fd1e671ba2362581671b53ea2c"}},{"ruleId":"D2","level":"warning","message":{"text":"clap_complete::aot::shells::zsh::write_flags_of (cognitive 22): clap_complete::aot::shells::zsh::write_flags_of has cognitive complexity 22 (threshold 15). Drivers by points: if/else 6 (13 pts), loops 3 (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":"clap_complete/src/aot/shells/zsh.rs"},"region":{"startLine":546}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1c8a58bd780b83185807234446a2d59ef3196ab56cb210cb0cb50646c6f0c93"}},{"ruleId":"D2","level":"warning","message":{"text":"Command::try_get_matches_from_mut (cognitive 21): Command::try_get_matches_from_mut has cognitive complexity 21 (threshold 15). Drivers by points: if/else 8 (21 pts) (nesting depth added 13). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"clap_builder/src/builder/command.rs"},"region":{"startLine":861}}}],"partialFingerprints":{"codehealthFindingId/v1":"01c56d07a81c7ecca1f4a76d5a29a5d0433376917492cacbcc55f0ee3c2a8257"}},{"ruleId":"D2","level":"warning","message":{"text":"Parser::parse_long_arg (cognitive 21): Parser::parse_long_arg has cognitive complexity 21 (threshold 15). Drivers by points: if/else 14 (18 pts), boolean chains 2, 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":"clap_builder/src/parser/parser.rs"},"region":{"startLine":763}}}],"partialFingerprints":{"codehealthFindingId/v1":"3db466bc68ad52564a34d0c0a05ebe87ef421ed4e7408b4bd5013cb2b7dc3512"}},{"ruleId":"D2","level":"warning","message":{"text":"clap_complete::aot::shells::bash::option_details_for_path (cognitive 21): clap_complete::aot::shells::bash::option_details_for_path 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":"clap_complete/src/aot/shells/bash.rs"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"a83e620d39cf9b11e54682ae11db87d0299389f1200978ea140c959ba518f69b"}},{"ruleId":"D2","level":"warning","message":{"text":"clap_derive::utils::doc_comments::markdown::parse_markdown (cognitive 21): clap_derive::utils::doc_comments::markdown::parse_markdown has cognitive complexity 21 (threshold 15). Drivers by points: if/else 6 (15 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":"clap_derive/src/utils/doc_comments.rs"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f02ff53560c8208b45fa681a947906d663e6c63dfb428f1ec90b499c45ee52c"}},{"ruleId":"D2","level":"warning","message":{"text":"RichFormatter::format_error (cognitive 20): RichFormatter::format_error has cognitive complexity 20 (threshold 15). Drivers by points: if/else 13 (18 pts), loops 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":"clap_builder/src/error/format.rs"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ab4ed05cc7519247a6737d901d0a714696d659948173a2fa6f374964403f618"}},{"ruleId":"D2","level":"warning","message":{"text":"clap_complete::aot::shells::zsh::write_opts_of (cognitive 20): clap_complete::aot::shells::zsh::write_opts_of has cognitive complexity 20 (threshold 15). Drivers by points: if/else 4 (7 pts), loops 3 (7 pts), match/switch 3 (6 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"clap_complete/src/aot/shells/zsh.rs"},"region":{"startLine":457}}}],"partialFingerprints":{"codehealthFindingId/v1":"103f9fe3417f1ce3b9211702d1001bb2571377d028da24f431828fee6fb1975c"}},{"ruleId":"D2","level":"warning","message":{"text":"clap_complete::engine::complete::complete_arg (cognitive 19): clap_complete::engine::complete::complete_arg has cognitive complexity 19 (threshold 15). Drivers by points: if/else 10 (16 pts), boolean chains 1, 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":"clap_complete/src/engine/complete.rs"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fd7f29c7fcc8f93b7c298842e2202965309ef2107eafc8a20d15e9a16aa44d3"}},{"ruleId":"D2","level":"warning","message":{"text":"LineWrapper::wrap (cognitive 18): LineWrapper::wrap has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (16 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":"clap_builder/src/output/textwrap/wrap_algorithms.rs"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"11895db7741fb09a6521eb7090ff722d81a7ed6a270eedd317acd81f3119e1d7"}},{"ruleId":"D2","level":"warning","message":{"text":"clap_complete::engine::complete::parse_positional (cognitive 18): clap_complete::engine::complete::parse_positional 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":"clap_complete/src/engine/complete.rs"},"region":{"startLine":658}}}],"partialFingerprints":{"codehealthFindingId/v1":"e82d5b12aff3909c12df0c8a51eba4a004a118374c45e9c012885496bc71fb62"}},{"ruleId":"D2","level":"warning","message":{"text":"Arg::render_arg_val (cognitive 17): Arg::render_arg_val has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10 (13 pts), boolean chains 3, 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":"clap_builder/src/builder/arg.rs"},"region":{"startLine":4707}}}],"partialFingerprints":{"codehealthFindingId/v1":"574b1fbc09103561f3d8ba28764f90439feed3cb39165906e8f9a74f2946f8b2"}},{"ruleId":"D2","level":"warning","message":{"text":"Command::unroll_arg_requires (cognitive 17): Command::unroll_arg_requires has cognitive complexity 17 (threshold 15). Drivers by points: if/else 4 (13 pts), loops 2 (4 pts) (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"clap_builder/src/builder/command.rs"},"region":{"startLine":5087}}}],"partialFingerprints":{"codehealthFindingId/v1":"01051ca8902b1aeb930460671ac38d7bb44494bcc21b7d511e2850788b449a50"}},{"ruleId":"D2","level":"warning","message":{"text":"clap_mangen::render::synopsis (cognitive 17): clap_mangen::render::synopsis has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (10 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":"clap_mangen/src/render.rs"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ec96f53eea140f1ea98c868f80bdc9dcfcb6a2aa2d1469185c0959edf97b3f4"}},{"ruleId":"D2","level":"warning","message":{"text":"Usage::needs_options_tag (cognitive 16): Usage::needs_options_tag has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (9 pts), loops 2 (3 pts), boolean chains 2, 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":"clap_builder/src/output/usage.rs"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"731f27c974cb861c01500b43c891547a5b60988dcbdfa9d84cb70239d0479a68"}},{"ruleId":"D2","level":"warning","message":{"text":"Parser::possible_subcommand (cognitive 16): Parser::possible_subcommand has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (15 pts), boolean chains 1 (nesting depth added 9). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"clap_builder/src/parser/parser.rs"},"region":{"startLine":584}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6ae85713db495a5f34c1bf7757e4ca306939811e856b9f6c447fa87ac3400ae"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Command: TooManyMethods \u2014 227 methods. The bar is 30 methods; this is 197 over it, 7.57\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":"clap_builder/src/builder/command.rs"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"ead0c3d378a6d6e4a689e3553c7db78620966ae6b30e57087b438cc1b91c29be"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Arg: TooManyMethods \u2014 135 methods. The bar is 30 methods; this is 105 over it, 4.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":"clap_builder/src/builder/arg.rs"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"3aa77255e3912b2df382ecaa67586ddc7cd052382b8a07cf9d7680f86b12746a"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: Command: ClassTooLong \u2014 1427 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 227 methods, 11 blocks, lines 74-5256. The bar is 400 significant lines; this is 1027 over it, 3.57\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":"clap_builder/src/builder/command.rs"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"5cc5e65d86fcdaf177033a82f0ebb0c26f665e90e635f696377bc99e958c1f80"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: builder/command.rs: FileTooLong \u2014 1625 significant 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: Command (11 blocks, 74-5256). The bar is 500 significant lines; this is 1125 over it, 3.25\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"clap_builder/src/builder/command.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d36e73a1a4acfa3fc2a48f7ddef538bc2e9a302d0c3665114317c2ff8d5511a"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Parser.parse: MethodTooLong \u2014 parse runs 288 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 188 over it, 2.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":"clap_builder/src/parser/parser.rs"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9484a92837b22ba8a26df10ccdb4e87c525b939f71fdd839cd126b3d225ce82"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: Parser: ClassTooLong \u2014 1093 significant 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, 4 blocks, lines 23-1633. The bar is 400 significant lines; this is 693 over it, 2.73\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":"clap_builder/src/parser/parser.rs"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"359adac11357e4733aa2f993aec8af1c99040401cf088927ebadad043a0bb5a9"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: clap_builder::builder::debug_asserts::assert_app: FunctionTooLong \u2014 clap_builder::builder::debug_asserts::assert_app runs 257 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 157 over it, 2.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":"clap_builder/src/builder/debug_asserts.rs"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"08058eda104d23200d2e65e1bf2188d873bf786110d36994cadd2e7081b1542d"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: Arg: ClassTooLong \u2014 944 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 135 methods, 13 blocks, lines 60-4838. The bar is 400 significant lines; this is 544 over it, 2.36\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"clap_builder/src/builder/arg.rs"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6a00727083547c26964fbdf24a44357aad4a81d00f4826ec021b28100de58c0"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: builder/value_parser.rs: FileTooLong \u2014 1143 significant 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 643 over it, 2.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":"clap_builder/src/builder/value_parser.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8dddab9d1632c559679c1abde4a15e03e2728197d0dca705ba32527085c86098"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: parser/parser.rs: FileTooLong \u2014 1142 significant 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 96% of them inside a single declaration: Parser (4 blocks, 23-1633). The bar is 500 significant lines; this is 642 over it, 2.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":"clap_builder/src/parser/parser.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"038fd1402bcff19fe4a014201afae42a84b3c3154ef38060c3665e95a283803a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: builder/arg.rs: FileTooLong \u2014 972 significant 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 97% of them inside a single declaration: Arg (13 blocks, 60-4838). The bar is 500 significant lines; this is 472 over it, 1.94\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":"clap_builder/src/builder/arg.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3072174f5ac82bde8519cde27222a2eec44e9e21ad4d1b9a27e11cce54de7212"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: clap_builder::error::format::write_dynamic_context: FunctionTooLong \u2014 clap_builder::error::format::write_dynamic_context 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":"clap_builder/src/error/format.rs"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d00590607a8b42bee41f72cbd004e6a55fc172a6169be64c4ab81357270ca59"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Error: TooManyMethods \u2014 45 methods. The bar is 30 methods; this is 15 over it, 1.50\u00D7 the bar. Most of these members implement error.Error (45 of 45 members), so moving them onto a smaller type would remove them from that contract rather than reduce it. To reduce it, split the contract instead: give each cohesive group of operations its own smaller interface and its own implementing type. Where the contract has to stay whole, move the work behind these members into collaborator types, so what is left here is a forward per member rather than a responsibility per member."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"clap_builder/src/error/mod.rs"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"38ee99828b6d21f0a3001e9cbc948a639c27b3780762f58c49ddfd388f632b5e"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Parser.react: MethodTooLong \u2014 react runs 136 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 36 over it, 1.36\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"clap_builder/src/parser/parser.rs"},"region":{"startLine":1141}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5cf59f8bcfe9b7ff478c8f0303f336fc6936f4787456f628a1daeae46f8d6a1"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: clap_derive::utils::doc_comments::markdown::parse_markdown: FunctionTooLong \u2014 clap_derive::utils::doc_comments::markdown::parse_markdown 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":"clap_derive/src/utils/doc_comments.rs"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"2704ac91f15a28910ac167b73c60da468be9d1d02c5b30f0ea9b626ff5c072c9"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ArgMatches: TooManyMethods \u2014 38 methods. The bar is 30 methods; this is 8 over it, 1.27\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"clap_builder/src/parser/matches/arg_matches.rs"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"05816aa1379fd70947985779b3189b9631b64543499143e29952ad31da5ed5d7"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFields: Command: TooManyFields \u2014 36 stored fields beside 227 methods. The bar is 30 stored fields; this is 6 over it, 1.20\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":"clap_builder/src/builder/command.rs"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ed7d7524ab8cdd8882d653ace15b4535e053229b32ba6364b5d5367df021f83"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: clap_builder::builder::debug_asserts::_verify_positionals: FunctionTooLong \u2014 clap_builder::builder::debug_asserts::_verify_positionals 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":"clap_builder/src/builder/debug_asserts.rs"},"region":{"startLine":508}}}],"partialFingerprints":{"codehealthFindingId/v1":"64d66dfa85d7067fc7f19f2bfb748b6d3ab6ad66f20f90b081e017a1860dafcf"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: matches/arg_matches.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":"clap_builder/src/parser/matches/arg_matches.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"82110f597ded05bf403e7e34509de265da3425443981b7958c6aafa54799b32d"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: Error: ClassTooLong \u2014 431 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 45 methods, 7 blocks, lines 60-854. The bar is 400 significant lines; this is 31 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":"clap_builder/src/error/mod.rs"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"1af5af23f7c4b0ba4cd70070777d9f1f6cbda6bad31770adbe826bf0b2dde3f2"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: error/mod.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), about 81% of them inside a single declaration: Error (7 blocks, 60-854). The bar is 500 significant lines; this is 32 over it, 1.06\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"clap_builder/src/error/mod.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"abf855841c4916dc8795480fadda4063b694b7a7cf77f759b90a87b6385cc6c8"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: builder/debug_asserts.rs: FileTooLong \u2014 531 significant 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 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":"clap_builder/src/builder/debug_asserts.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5823d717f06215d1fc32c6beb736f86cf26667e52ddeeecb603bbe5669046ede"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: engine/complete.rs: FileTooLong \u2014 511 significant 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 11 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":"clap_complete/src/engine/complete.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c37090aeaf56df3cf06399b1b86c0a55f92ca6bfbf77423971ee33d87a1d4da"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): clap_derive/src/derives/args.rs:63-171 | clap_derive/src/derives/into_app.rs:73-117 | clap_derive/src/derives/subcommand.rs:51-142 | clap_derive/src/derives/value_enum.rs:41-80 \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":"clap_derive/src/derives/args.rs"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce0baa00bad84f36040d1103d1bf04d83f3fb5bb1d2230c6110a271633ee8558"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (45 lines \u00D7 2): clap_builder/src/builder/value_parser.rs:1331-1375 | clap_builder/src/builder/value_parser.rs:1530-1574 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"clap_builder/src/builder/value_parser.rs"},"region":{"startLine":1331}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9020184a3ded8347b987a81362c7883073ede795bd2e4de07a86f1d4e487ffa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (37 lines \u00D7 2): clap_builder/src/builder/value_parser.rs:1419-1455 | clap_builder/src/builder/value_parser.rs:1618-1654 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"clap_builder/src/builder/value_parser.rs"},"region":{"startLine":1419}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b36a3ec775dc782d8a2527568ff646923f7fb4198dac1b9208f376bb72c9bf3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (31 lines \u00D7 2): clap_derive/src/derives/args.rs:584-614 | clap_derive/src/derives/args.rs:617-647 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"clap_derive/src/derives/args.rs"},"region":{"startLine":584}}}],"partialFingerprints":{"codehealthFindingId/v1":"faa464eb2d217e2a2e7aad58d3c47a1057a091b6ec4f95f413378e27450106d9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): clap_builder/src/error/mod.rs:384-404 | clap_builder/src/error/mod.rs:412-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"clap_builder/src/error/mod.rs"},"region":{"startLine":384}}}],"partialFingerprints":{"codehealthFindingId/v1":"e052160c921174168c07121fc3e31c9910323e7c36039c2f9530448f459c0004"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 4): clap_derive/src/derives/args.rs:90-106 | clap_derive/src/derives/into_app.rs:79-95 | clap_derive/src/derives/subcommand.rs:70-86 | clap_derive/src/derives/value_enum.rs:53-69 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"clap_derive/src/derives/args.rs"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"97be663befa661e84811382e76676aaacb482e984a86c005f24a345951fb12c0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): clap_complete/src/aot/shells/fish.rs:131-147 | clap_complete/src/aot/shells/fish.rs:156-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"clap_complete/src/aot/shells/fish.rs"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bd8e5dd498764e2dbe0127a840a25465af3545fc683ab757ed2389337d5ada4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): clap_complete/src/aot/shells/elvish.rs:87-102 | clap_complete/src/aot/shells/elvish.rs:105-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"clap_complete/src/aot/shells/elvish.rs"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"831afcf0c4dedcc06a38fa5824c8074546cac9ad8f3a02b45609fdb343ecae16"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): clap_complete/src/env/shells.rs:231-246 | clap_complete/src/env/shells.rs:381-396 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"clap_complete/src/env/shells.rs"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"863bbe5f85d18dd53d6711b66480e9bed736626a632e5cd8d4d66c6633461f9a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): clap_derive/src/item.rs:570-585 | clap_derive/src/item.rs:698-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":"clap_derive/src/item.rs"},"region":{"startLine":570}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e7dd3b4ee2a47a9368ace72bb3f0c8aa9e2530826b7278bdc1d3a7cbd7dd64a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 2): clap_builder/src/parser/parser.rs:174-187 | clap_builder/src/parser/parser.rs:257-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":"clap_builder/src/parser/parser.rs"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"a463cefb708a6bd9ae23e15234e07553cbff85fc52ef19a055b409c760fe65d4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): clap_derive/src/derives/args.rs:291-305 | clap_derive/src/derives/args.rs:308-322 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"clap_derive/src/derives/args.rs"},"region":{"startLine":291}}}],"partialFingerprints":{"codehealthFindingId/v1":"e17bed6aa28df13b4a7c96c9ad200fb6ba38b59dd4bb29e4b13d8554da67a296"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 2): clap_builder/src/builder/command.rs:4498-4509 | clap_builder/src/builder/command.rs:4584-4596 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"clap_builder/src/builder/command.rs"},"region":{"startLine":4498}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c44ec96301236e12c7c4d83afaab28da4295faaf445388db0c61b506a2efe68"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): clap_builder/src/builder/command.rs:4516-4528 | clap_builder/src/builder/command.rs:4613-4625 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"clap_builder/src/builder/command.rs"},"region":{"startLine":4516}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec0d1fce655e9d92cf03a23b6cf9693daf577e92661f447ab7814e436c00c4e2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): clap_derive/src/item.rs:631-643 | clap_derive/src/item.rs:759-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":"clap_derive/src/item.rs"},"region":{"startLine":631}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb1a872144a3d2eef494f930909fafcb7cdb9a397686d544efcf74e6532a0471"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): clap_builder/src/parser/parser.rs:1208-1219 | clap_builder/src/parser/parser.rs:1251-1262 | clap_builder/src/parser/parser.rs:1272-1283 \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":"clap_builder/src/parser/parser.rs"},"region":{"startLine":1208}}}],"partialFingerprints":{"codehealthFindingId/v1":"3084e3ba0f46037bc64026cd3159de5b7e518a4e7d65071bb36dd98864226d4e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): clap_builder/src/output/help_template.rs:1106-1117 | clap_mangen/src/render.rs:515-526 \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":"clap_builder/src/output/help_template.rs"},"region":{"startLine":1106}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e9aa3ff340c4a6e4660311f6d0d82cbdab22f62c00f424391f1ff05ea4be425"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): clap_complete/src/aot/shells/elvish.rs:72-83 | clap_complete/src/aot/shells/powershell.rs:80-91 \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":"clap_complete/src/aot/shells/elvish.rs"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"21bc46a075a298136c6383a1c7011e33dc796be8f624cbbd2a3888a85d6b65fa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): clap_derive/src/derives/parser.rs:69-80 | clap_derive/src/derives/subcommand.rs:30-41 \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":"clap_derive/src/derives/parser.rs"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"84876729bab1a2deeb7db0edc449e4c111e33407696e8ad5992d78d24f2ed491"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): clap_builder/src/builder/value_parser.rs:1382-1392 | clap_builder/src/builder/value_parser.rs:1581-1591 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"clap_builder/src/builder/value_parser.rs"},"region":{"startLine":1382}}}],"partialFingerprints":{"codehealthFindingId/v1":"72327ed74ab527ed0c6b7d0e9264c2b40ca23148e7a2110d6f628422a43fc24d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201311 lines \u00D7 2): clap_builder/src/parser/parser.rs:1216-1226 | clap_builder/src/parser/parser.rs:1235-1243 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"clap_builder/src/parser/parser.rs"},"region":{"startLine":1216}}}],"partialFingerprints":{"codehealthFindingId/v1":"4727fff9aeb7503f7e6496b205988d57e32c1238c2bf802359bd3f20d1cb70b6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): clap_derive/src/derives/args.rs:43-53 | clap_derive/src/derives/parser.rs:56-66 \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":"clap_derive/src/derives/args.rs"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"b46f696ff6d150616900935957fdd24eff85be0f37c3dde90e11a8a1e50ef18c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): clap_complete/src/engine/complete.rs:257-266 | clap_complete/src/engine/complete.rs:269-278 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"clap_complete/src/engine/complete.rs"},"region":{"startLine":257}}}],"partialFingerprints":{"codehealthFindingId/v1":"16b19111bacd7779fc99a696ae287507a6a8f23cc77333a2bd1a505795658e52"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): clap_derive/src/item.rs:141-150 | clap_derive/src/item.rs:187-196 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"clap_derive/src/item.rs"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"b495b7f268813d07197615a56b7af3230869d4b9589c99bb75df33adcbead9e6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20139 lines \u00D7 4): clap_derive/src/item.rs:364-372 | clap_derive/src/item.rs:377-385 | clap_derive/src/item.rs:389-394 | clap_derive/src/item.rs:398-406 \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":"clap_derive/src/item.rs"},"region":{"startLine":364}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b4935e12da6558b6fb29255eb22335240b199d7d5402e5e9c642defbdc0d805"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): clap_builder/src/error/format.rs:277-285 | clap_builder/src/error/format.rs:314-322 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"clap_builder/src/error/format.rs"},"region":{"startLine":277}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b7b35f38ac7a6d90e797f2d3748df7594f2fbc27b8cf1d4320a81fe5e123797"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): clap_builder/src/error/format.rs:297-305 | clap_builder/src/error/format.rs:337-345 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"clap_builder/src/error/format.rs"},"region":{"startLine":297}}}],"partialFingerprints":{"codehealthFindingId/v1":"1aac0713fbf4259af0d0bb38400204d6491e3ee6c1e72a721835a4787882ce23"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): clap_complete/src/aot/shells/bash.rs:209-217 | clap_complete/src/aot/shells/bash.rs:242-250 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"clap_complete/src/aot/shells/bash.rs"},"region":{"startLine":209}}}],"partialFingerprints":{"codehealthFindingId/v1":"44a62da960a352d430387f9db6e622f9608a51be689c6da5a6e091ccd4dd80f1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): clap_builder/src/error/mod.rs:724-731 | clap_builder/src/error/mod.rs:778-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":"clap_builder/src/error/mod.rs"},"region":{"startLine":724}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ee3c68bae416c67f68931f617f5b040a23226dff2e8e91ded02e0b52fa1fa20"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): clap_builder/src/output/help_template.rs:747-754 | clap_builder/src/output/help_template.rs:1063-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":"clap_builder/src/output/help_template.rs"},"region":{"startLine":747}}}],"partialFingerprints":{"codehealthFindingId/v1":"341d30e9cf9990ba36f4655e7e297059788422133362f9fb2fdca7288f1758d1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): clap_builder/src/parser/validator.rs:169-176 | clap_builder/src/parser/validator.rs:414-421 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"clap_builder/src/parser/validator.rs"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2f3abd61d52078fd34f5f0674afa9612c21198d6ba766e78db16bc9c773647e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): clap_derive/src/item.rs:586-593 | clap_derive/src/item.rs:714-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"clap_derive/src/item.rs"},"region":{"startLine":586}}}],"partialFingerprints":{"codehealthFindingId/v1":"152d92a3cb7761ff6d7be72dc5774249f8e0c1ab135ed9f604dfc12b635fd0b9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): clap_derive/src/item.rs:1469-1476 | clap_derive/src/item.rs:1491-1498 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"clap_derive/src/item.rs"},"region":{"startLine":1469}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb58d3bc2279a35e7547ecd28cfa1ab9dd50c9891ba1bc9ff3cb07526edef1b4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): clap_derive/src/derives/args.rs:64-71 | clap_derive/src/derives/subcommand.rs:52-59 \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":"clap_derive/src/derives/args.rs"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"4eff9c987f395013bf47ee39704cac988b5fb50a8eea0d23f632f23b768475b6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): clap_derive/src/derives/subcommand.rs:394-401 | clap_derive/src/derives/subcommand.rs:602-609 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"clap_derive/src/derives/subcommand.rs"},"region":{"startLine":394}}}],"partialFingerprints":{"codehealthFindingId/v1":"4dfaee8d2948f1f9bd8674eb9d829739f62d59f94c08d357b7caf10b9beaaa4e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): clap_derive/src/derives/args.rs:34-41 | clap_derive/src/derives/parser.rs:47-54 \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":"clap_derive/src/derives/args.rs"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"86df17221f4c9fdcdec109309e2e1e9dc0bbb369fbe53ee47b01274014aced20"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): clap_builder/src/error/format.rs:46-52 | clap_builder/src/error/format.rs:76-82 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"clap_builder/src/error/format.rs"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"aab74a77dcded896e46ed13c8910ee1647b954f45e80afa968cc773f39fabe84"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): clap_builder/src/parser/parser.rs:1201-1207 | clap_builder/src/parser/parser.rs:1228-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"clap_builder/src/parser/parser.rs"},"region":{"startLine":1201}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd27ed18f834fccadb1c13a821291f401032c1712a34b9e29b2ce8ed28e8f904"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (4\u20137 lines \u00D7 3): clap_complete/src/env/shells.rs:94-100 | clap_complete/src/env/shells.rs:188-194 | clap_complete/src/env/shells.rs:485-488 \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":"clap_complete/src/env/shells.rs"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd2e359dc2de0b0161200c00c3bef0b84395a8b470b45ace5ff2cb3ac314b484"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): clap_complete/src/env/shells.rs:257-263 | clap_complete/src/env/shells.rs:281-287 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"clap_complete/src/env/shells.rs"},"region":{"startLine":257}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8e9ca4be6a9f04442387791bd4767ca7dea398462f2429a52b3335df66b9be9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20137 lines \u00D7 2): clap_mangen/src/render.rs:86-92 | clap_mangen/src/render.rs:287-292 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"clap_mangen/src/render.rs"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"507b9eb60a8476d662638d7b2b129f122740e6308ab8e5a0fa8066742c9e7e4b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): clap_derive/src/item.rs:642-649 | clap_derive/src/item.rs:663-668 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"clap_derive/src/item.rs"},"region":{"startLine":642}}}],"partialFingerprints":{"codehealthFindingId/v1":"035426e4a9b788d391064bfbc15123ebfcb2a2986730cd10a2f9a22188e99d97"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): clap_derive/src/item.rs:770-777 | clap_derive/src/item.rs:791-796 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"clap_derive/src/item.rs"},"region":{"startLine":770}}}],"partialFingerprints":{"codehealthFindingId/v1":"46ea3049fabc6c324c4327dce985046364bb070a715cbe3521edb0f1f7d66284"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): clap_derive/src/item.rs:58-62 | clap_derive/src/item.rs:79-83 | clap_derive/src/item.rs:96-100 \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":"clap_derive/src/item.rs"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"82a0bde05042645bb7ef1c045080bdd77fd7d2b7400988bade589a25b8e0511c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): clap_derive/src/item.rs:65-69 | clap_derive/src/item.rs:103-107 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"clap_derive/src/item.rs"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb0d7736aad743b878e41bdbc7c59e00dfe8dec3e238d5308744aea0eaf270f4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): clap_derive/src/item.rs:657-661 | clap_derive/src/item.rs:674-678 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"clap_derive/src/item.rs"},"region":{"startLine":657}}}],"partialFingerprints":{"codehealthFindingId/v1":"30809e2c82032800a5c13c75d8110c6fbfae49879714144652e7cc8957271e3b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): clap_derive/src/item.rs:785-789 | clap_derive/src/item.rs:802-806 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"clap_derive/src/item.rs"},"region":{"startLine":785}}}],"partialFingerprints":{"codehealthFindingId/v1":"eddfb26a8f9c224b1a7ff9cd64ca263a97d75453f7494f57e55f149339910015"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): clap_derive/src/derives/subcommand.rs:381-385 | clap_derive/src/derives/subcommand.rs:589-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":"clap_derive/src/derives/subcommand.rs"},"region":{"startLine":381}}}],"partialFingerprints":{"codehealthFindingId/v1":"140e51440667b4757ccec08b67b805532d12ce7a1dc4b2db174d492e95bef5cd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (62 lines \u00D7 2): clap_builder/src/builder/app_settings.rs:10-87 | clap_builder/src/builder/arg_settings.rs:8-69 \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":"clap_builder/src/builder/app_settings.rs"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"f78815d100ea75d7ad8260f7ac9a09e6654b82670cc6466a8991f9b924506b6b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): clap_builder/src/builder/arg.rs:254-261 | clap_builder/src/builder/command.rs:2691-2698 \u2014 before extracting anything, compare \u0060clap_builder/src/builder/arg.rs\u0060 and \u0060clap_builder/src/builder/command.rs\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 58 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":"clap_builder/src/builder/arg.rs"},"region":{"startLine":254}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fe69a496f418af8d658c1ce7298564bcad7a6186d5e95facdf7b2612174cd04"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): clap_builder/src/builder/arg.rs:317-321 | clap_builder/src/builder/command.rs:2793-2797 \u2014 before extracting anything, compare \u0060clap_builder/src/builder/arg.rs\u0060 and \u0060clap_builder/src/builder/command.rs\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 58 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":"clap_builder/src/builder/arg.rs"},"region":{"startLine":317}}}],"partialFingerprints":{"codehealthFindingId/v1":"513be00b6ecfcc7cb7d221a3ab5ec91fb762a1826db27e53e9cd164f1e32f1e2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): clap_builder/src/builder/arg.rs:375-382 | clap_builder/src/builder/command.rs:2893-2900 \u2014 before extracting anything, compare \u0060clap_builder/src/builder/arg.rs\u0060 and \u0060clap_builder/src/builder/command.rs\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 58 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":"clap_builder/src/builder/arg.rs"},"region":{"startLine":375}}}],"partialFingerprints":{"codehealthFindingId/v1":"ceb0367835cdaedda323c64992f7b4c471fa33ee72ebb1e06586f8b74453ff28"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): clap_builder/src/builder/arg.rs:435-439 | clap_builder/src/builder/command.rs:3000-3004 \u2014 before extracting anything, compare \u0060clap_builder/src/builder/arg.rs\u0060 and \u0060clap_builder/src/builder/command.rs\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 58 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":"clap_builder/src/builder/arg.rs"},"region":{"startLine":435}}}],"partialFingerprints":{"codehealthFindingId/v1":"53efa2cbcd052e4cb83d533e1c0456481d90c5329af022444a159625d80a7d30"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): clap_builder/src/builder/arg.rs:4007-4014 | clap_builder/src/builder/arg_group.rs:457-464 \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":"clap_builder/src/builder/arg.rs"},"region":{"startLine":4007}}}],"partialFingerprints":{"codehealthFindingId/v1":"85e61a480faeb589385be277c66c42795a768f92304716a248f30f79f62ac11c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): clap_builder/src/builder/os_str.rs:133-138 | clap_builder/src/builder/str.rs:82-87 | clap_builder/src/builder/styled_str.rs:190-195 \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":"clap_builder/src/builder/os_str.rs"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"88003bd2d0ae90e0aa50c785b7abff152b5f180e82baed0c0088ac866fee14ec"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): clap_builder/src/util/color.rs:81-88 | clap_complete/src/aot/shells/shell.rs:40-47 \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":"clap_builder/src/util/color.rs"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"c36a9f14f207ad73dbcfb6c5142f8264a846c667c3bedb4a8c79fa9ac5ced37a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): clap_builder/src/builder/arg.rs:284-292 | clap_builder/src/builder/command.rs:2718-2726 \u2014 before extracting anything, compare \u0060clap_builder/src/builder/arg.rs\u0060 and \u0060clap_builder/src/builder/command.rs\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 58 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":"clap_builder/src/builder/arg.rs"},"region":{"startLine":284}}}],"partialFingerprints":{"codehealthFindingId/v1":"77278d211396dbfc04001e1c8ee2c57d796e86df18233ea76cb25ffd11dff308"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): clap_builder/src/builder/arg.rs:346-352 | clap_builder/src/builder/command.rs:2820-2826 \u2014 before extracting anything, compare \u0060clap_builder/src/builder/arg.rs\u0060 and \u0060clap_builder/src/builder/command.rs\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 58 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":"clap_builder/src/builder/arg.rs"},"region":{"startLine":346}}}],"partialFingerprints":{"codehealthFindingId/v1":"504bff790d246aa86ca7f799729b1068367eb333e2390e6b673f0124b18c353c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): clap_builder/src/builder/arg.rs:404-412 | clap_builder/src/builder/command.rs:2923-2931 \u2014 before extracting anything, compare \u0060clap_builder/src/builder/arg.rs\u0060 and \u0060clap_builder/src/builder/command.rs\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 58 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":"clap_builder/src/builder/arg.rs"},"region":{"startLine":404}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc42ba3c51b8796b442b0db680d6dbc4c8f1533158736d2d0608c56b7df374ee"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): clap_builder/src/builder/arg.rs:461-467 | clap_builder/src/builder/command.rs:3023-3029 \u2014 before extracting anything, compare \u0060clap_builder/src/builder/arg.rs\u0060 and \u0060clap_builder/src/builder/command.rs\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 58 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":"clap_builder/src/builder/arg.rs"},"region":{"startLine":461}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4b55e062cebba87d8320ca8d1f89874441e1c23dc769efeb98b91cbc0d0ed93"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 4): clap_builder/src/builder/arg.rs:2892-2899 | clap_builder/src/builder/arg_group.rs:137-144 | clap_builder/src/builder/arg_group.rs:360-367 | clap_builder/src/builder/possible_value.rs:134-141 \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":"clap_builder/src/builder/arg.rs"},"region":{"startLine":2892}}}],"partialFingerprints":{"codehealthFindingId/v1":"709bb823f8f03cfecd5626529d37b427d4036148160d298d7d58bd778b2be811"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): clap_complete/src/aot/shells/elvish.rs:132-148 | clap_complete/src/aot/shells/powershell.rs:113-130 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"clap_complete/src/aot/shells/elvish.rs"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f873d525c1814d651386981982424b3540c8915c6eb1300615553a026fb9eac"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): clap_derive/src/item.rs:613-627 | clap_derive/src/item.rs:741-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":"clap_derive/src/item.rs"},"region":{"startLine":613}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d876e9c8f2bd3f7fe86f1ed7343e62eebe37daf0f996a76674c458c4c5e2927"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): clap_builder/src/output/usage.rs:273-286 | clap_builder/src/output/usage.rs:411-424 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"clap_builder/src/output/usage.rs"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"92f0b4513c13df58f28a7a73485707e5811ba0cf9d715e95dd488548498a5536"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): clap_builder/src/error/mod.rs:498-508 | clap_builder/src/error/mod.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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"clap_builder/src/error/mod.rs"},"region":{"startLine":498}}}],"partialFingerprints":{"codehealthFindingId/v1":"391808a9102813601a5a2e30c1f9d12183e716a57b6d3e77dde8ce3bcf37058d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): clap_derive/src/item.rs:522-529 | clap_derive/src/item.rs:544-549 | clap_derive/src/item.rs:552-557 \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":"clap_derive/src/item.rs"},"region":{"startLine":522}}}],"partialFingerprints":{"codehealthFindingId/v1":"cea1e63c080311b0397d143cfc6022d0454956665bafad32f7b90d2dc67f9903"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): clap_complete/src/aot/shells/bash.rs:187-192 | clap_complete/src/aot/shells/bash.rs:220-225 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"clap_complete/src/aot/shells/bash.rs"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c72026a366f62514983b12923470de35f213f501474412ef75e9ae30b3b97cc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): clap_complete/src/env/shells.rs:180-184 | clap_complete/src/env/shells.rs:474-478 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"clap_complete/src/env/shells.rs"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2ea86f307da0206e35974b7f20fbebe6a99f0a2f5ada6f97ccf958f5073e5ac"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): clap_derive/src/derives/subcommand.rs:525-529 | clap_derive/src/derives/subcommand.rs:645-649 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"clap_derive/src/derives/subcommand.rs"},"region":{"startLine":525}}}],"partialFingerprints":{"codehealthFindingId/v1":"55956478caf7e398483564ffa0b741e2eb45a933563efcdabfd714b3b00c1836"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: clap_lex: clap_lex: abstractness 0.25, instability 0.00, distance 0.75 \u2014 zone of pain \u2014 concrete and depended on by 2 project(s), so it\u0027s rigid to change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"8199a0b1cb7bfe152b558852331350fa29ad3ae914bbfc0b52817e89510a8bd6"}},{"ruleId":"D9","level":"note","message":{"text":"Inverted test pyramid: Only 8 % of tests are unit tests (129 unit vs 1482 integration, 0 BDD); a broader unit base gives faster, more localised feedback."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"3fc0c6fc621cd18b83a2d2c03ea6976b61fb4769f62dc21043f0af4cad912d10"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: clap_derive/src/attr.rs: clap_derive/src/attr.rs changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 30 in ClapAttr::parse at line 103. 1 of those changes was a fix/bug commit, and the other 2 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-06-28..2026-09-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-28 20:58:32 -05:00\u0027 --until=\u00272026-09-26 20:58:32 -05:00\u0027 --full-history --no-merges -- clap_derive/src/attr.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":"clap_derive/src/attr.rs"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"8cd7c12d1ce788e95cd89fb67fe4d811ee98bdcf82dc885f2f74e157c13420ed"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #1: If anonymized user #1 becomes unavailable, 12 significant file(s) lose their only recent owner: clap_builder/src/builder/arg_group.rs, clap_builder/src/error/kind.rs, src/_derive/_tutorial.rs, clap_lex/src/ext.rs, clap_builder/src/parser/arg_matcher.rs, clap_builder/src/parser/matches/matched_arg.rs, src/_concepts.rs, src/lib.rs (\u002B4 more). Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"473308de932113b75acb691b3e0551fe0fd0a81adab2319a9ca08e40989477af"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: this check should be recursive \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":"clap_builder/src/builder/debug_asserts.rs"},"region":{"startLine":698}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e347f891606cbe5ea3d805007789727219328fe0774f24fda30c4fc12f4b729"}},{"ruleId":"D17","level":"warning","message":{"text":"HackComment: // HACK: Don\u0027t check for flags to make the derive easier \u2014 a workaround marked in source: record what it is compensating for and what would allow its removal (the upstream fix, the API it is waiting on, the invariant it restores), so the next reader can judge whether it is still needed rather than rediscovering why it is there."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"clap_builder/src/builder/debug_asserts.rs"},"region":{"startLine":764}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b3e1d9101792734ebf8c78a6f79a4093eaaba3fc3b5396e9ef4701425b4662b"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: This could probably have been an iterator \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":"clap_builder/src/builder/command.rs"},"region":{"startLine":4036}}}],"partialFingerprints":{"codehealthFindingId/v1":"e875852802fd455b7ccaa5fa2774ba6b21a7b7e6a392dbe4e2a335834ef59dda"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: This could probably have been an iterator \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":"clap_builder/src/builder/command.rs"},"region":{"startLine":4070}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e18befa1671c8393e04f65b4b3d70e24af2e352d73f29ae86806b2be520bf6a"}},{"ruleId":"D17","level":"warning","message":{"text":"HackComment: // HACK: we should use \u0060Self::add\u0060 and \u0060Self::remove\u0060 to type-check that \u0060ArgExt\u0060 is used \u2014 a workaround marked in source: record what it is compensating for and what would allow its removal (the upstream fix, the API it is waiting on, the invariant it restores), so the next reader can judge whether it is still needed rather than rediscovering why it is there."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"clap_builder/src/builder/arg.rs"},"region":{"startLine":1393}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f9c4f191ef7a547cac50d11c181b8c193851667407b8097de339f7f519cb28d"}},{"ruleId":"D17","level":"warning","message":{"text":"HackComment: // HACK: we should use \u0060Self::add\u0060 and \u0060Self::remove\u0060 to type-check that \u0060ArgExt\u0060 is used \u2014 a workaround marked in source: record what it is compensating for and what would allow its removal (the upstream fix, the API it is waiting on, the invariant it restores), so the next reader can judge whether it is still needed rather than rediscovering why it is there."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"clap_builder/src/builder/arg.rs"},"region":{"startLine":4373}}}],"partialFingerprints":{"codehealthFindingId/v1":"43d230dcddedd05fbe40ba4682871f671374ce447315d206015c8f2a41b8de84"}},{"ruleId":"D17","level":"warning","message":{"text":"HackComment: // HACK: for rust 1.64 (1.68 doesn\u0027t need this since this is in lib.rs) \u2014 a workaround marked in source: record what it is compensating for and what would allow its removal (the upstream fix, the API it is waiting on, the invariant it restores), so the next reader can judge whether it is still needed rather than rediscovering why it is there."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"clap_builder/src/output/help_template.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c086969ad9cd6ce13a0dbbd8471e1e76b390fe18f9b40e100ff1166e653680b"}},{"ruleId":"D17","level":"warning","message":{"text":"HackComment: // HACK: maintain indexes between parsers \u2014 a workaround marked in source: record what it is compensating for and what would allow its removal (the upstream fix, the API it is waiting on, the invariant it restores), so the next reader can judge whether it is still needed rather than rediscovering why it is there."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"clap_builder/src/parser/parser.rs"},"region":{"startLine":738}}}],"partialFingerprints":{"codehealthFindingId/v1":"42de7bd91f6cba3da807667ee75328175658be338cc1251fd4cb98a77213ab94"}},{"ruleId":"D17","level":"warning","message":{"text":"HackComment: // HACK: Assuming subcommands are only nested less than 3 levels as more than that is \u2014 a workaround marked in source: record what it is compensating for and what would allow its removal (the upstream fix, the API it is waiting on, the invariant it restores), so the next reader can judge whether it is still needed rather than rediscovering why it is there."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"clap_complete/src/aot/shells/fish.rs"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"e28bfe6b3aada785482e4f94bef0d7cab19faf26159509a0ab12cc67cef79ee7"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Multicall support \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":"clap_complete/src/engine/complete.rs"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"df7c0a49f80c17fb6d3da932bba446c15a29e2479d61d53460fbd5d0b439f5ec"}},{"ruleId":"D17","level":"warning","message":{"text":"HackComment: // HACK: Assuming knowledge of is_stdio \u2014 a workaround marked in source: record what it is compensating for and what would allow its removal (the upstream fix, the API it is waiting on, the invariant it restores), so the next reader can judge whether it is still needed rather than rediscovering why it is there."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"clap_complete/src/engine/complete.rs"},"region":{"startLine":268}}}],"partialFingerprints":{"codehealthFindingId/v1":"1af3e5c1f6d6144328bbb3df1f66401f9603526dabb38a582b2cc8b6902fcaee"}},{"ruleId":"D17","level":"warning","message":{"text":"HackComment: // HACK: Assuming knowledge of is_escape \u2014 a workaround marked in source: record what it is compensating for and what would allow its removal (the upstream fix, the API it is waiting on, the invariant it restores), so the next reader can judge whether it is still needed rather than rediscovering why it is there."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"clap_complete/src/engine/complete.rs"},"region":{"startLine":283}}}],"partialFingerprints":{"codehealthFindingId/v1":"976ba619d81ff48c0994abf83716b8ca1266a90c8afa2e22bfd03b69283d440e"}},{"ruleId":"D17","level":"warning","message":{"text":"HackComment: // HACK: this cannot handle in-word \u0027[TAB]\u0027 \u2014 a workaround marked in source: record what it is compensating for and what would allow its removal (the upstream fix, the API it is waiting on, the invariant it restores), so the next reader can judge whether it is still needed rather than rediscovering why it is there."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"clap_complete/tests/testsuite/engine.rs"},"region":{"startLine":1545}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2cb82e8568daec07775c662a93eb14401e29462ab438cb6fbb21dbe8e2d0f5a"}},{"ruleId":"D17","level":"warning","message":{"text":"HackComment: // HACK: elvish prints and clears this message when a completer takes too long which is \u2014 a workaround marked in source: record what it is compensating for and what would allow its removal (the upstream fix, the API it is waiting on, the invariant it restores), so the next reader can judge whether it is still needed rather than rediscovering why it is there."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"clap_complete/tests/testsuite/common.rs"},"region":{"startLine":462}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b1f79e4ba95f2eb68081daa6e67c991a69eb9edbc174e5a21439b1b3b71d935"}},{"ruleId":"D17","level":"warning","message":{"text":"HackComment: // HACK: elvish prints and clears this message when a completer takes too long which is \u2014 a workaround marked in source: record what it is compensating for and what would allow its removal (the upstream fix, the API it is waiting on, the invariant it restores), so the next reader can judge whether it is still needed rather than rediscovering why it is there."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"clap_complete_nushell/tests/common.rs"},"region":{"startLine":447}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb9269f2f474c11a543950735da29a0ae7659f0ebdab86e198dbd29e595a15aa"}},{"ruleId":"D17","level":"warning","message":{"text":"HackComment: // HACK: At least on CI, the prompt override is not working \u2014 a workaround marked in source: record what it is compensating for and what would allow its removal (the upstream fix, the API it is waiting on, the invariant it restores), so the next reader can judge whether it is still needed rather than rediscovering why it is there."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"clap_complete/tests/testsuite/common.rs"},"region":{"startLine":505}}}],"partialFingerprints":{"codehealthFindingId/v1":"7225b1e397f554062ee26a24020a9ae62a8424eac8654b9ec134c6ef70561d71"}},{"ruleId":"D17","level":"warning","message":{"text":"HackComment: // HACK: At least on CI, the prompt override is not working \u2014 a workaround marked in source: record what it is compensating for and what would allow its removal (the upstream fix, the API it is waiting on, the invariant it restores), so the next reader can judge whether it is still needed rather than rediscovering why it is there."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"clap_complete_nushell/tests/common.rs"},"region":{"startLine":490}}}],"partialFingerprints":{"codehealthFindingId/v1":"1130a0c42b4d4a2226ab29a8a424fa614465fade5ad9e6451658a87015871efc"}},{"ruleId":"D17","level":"warning","message":{"text":"HackComment: // HACK: Validation isn\u0027t ready yet for nested arg groups, so just don\u0027t populate the group in \u2014 a workaround marked in source: record what it is compensating for and what would allow its removal (the upstream fix, the API it is waiting on, the invariant it restores), so the next reader can judge whether it is still needed rather than rediscovering why it is there."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"clap_derive/src/derives/args.rs"},"region":{"startLine":409}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f2f4f01cf2c3834de6a4558440c278beea4167176b770968ac9c1fa9f015e10"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO If we decide not to support any colors, we can replace this with \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":"clap_derive/src/utils/doc_comments.rs"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"e09f175d356df98a1f5c8fdb22ec33e3c675dca8070549d9e3819647590dbc4b"}},{"ruleId":"D20","level":"note","message":{"text":"No ADRs found: No ADRs found. No recognised ADR directory (\u0060docs/adr/\u0060, \u0060docs/decisions/\u0060, \u0060adr/\u0060, \u0060docs/rfcs/\u0060, an \u0060ADR0001/\u0060 folder, or their siblings) exists anywhere in this tree. What was searched, so you can tell an empty log from a search that missed one: every directory under the tree (build output, dependencies and VCS metadata excepted), for a document that is either any non-index page inside a recognised ADR directory, whatever its name and however deeply nested (\u0060docs/adr/use-postgres.md\u0060, \u0060docs/adr/2024/0001-x.md\u0060); or a file anywhere whose name is ADR-shaped (\u00600001-use-postgres.md\u0060, \u0060adr-012-caching.md\u0060); or, when neither turned anything up, a document carrying the decision-record signature (an \u0022Architecture Decision Record\u0022 heading, or Status / Context / Decision / Consequences as section headings). A decision log that clears none of these \u2014 unnumbered files outside any recognised directory, without those headings \u2014 is not seen by this check and this row is then wrong. If that is your case, say so rather than renaming anything; otherwise, consider recording architectural decisions in \u0060docs/adr/\u0060."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"d2bea044ff79d7d275f5a91a6e2f548586178eaf480274c33960ad020c854631"}},{"ruleId":"D22","level":"warning","message":{"text":"Redundant/Confusing naming for argument count configuration. \u0060number_of_values\u0060 takes a single \u0060usize\u0060 (count), while \u0060num_args\u0060 takes a \u0060ValueRange\u0060 (min/max). In clap, these often map to the same underlying CLI flag (\u0060--num-args\u0060), but the API exposes two distinct methods with different semantics and input types, leading to confusion about which to use for simple fixed counts vs ranges.: Deprecate \u0060number_of_values\u0060 in favor of \u0060num_args\u0060 with a convenience method or builder pattern for fixed counts, or clearly document that \u0060num_args\u0060 is the canonical method for all count-related configurations. (signatures: Arg.number_of_values(qty: usize): Self | Arg.num_args(qty: impl IntoResettable\u003CValueRange\u003E): Self)"},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"b4c80ae2e9e6c24d5a8d98ae388ad978ad1639cc5a83e0e731f846b5dfda8ca2"}},{"ruleId":"D22","level":"warning","message":{"text":"Inconsistent naming and return types for parsing operations. \u0060get_matches\u0060 returns \u0060ArgMatches\u0060 directly (panicking on error), while \u0060try_get_matches\u0060 returns \u0060ClapResult\u0060. Furthermore, \u0060get_matches\u0060 has no \u0060from\u0060 variant for custom iterators, forcing users to use \u0060try_get_matches_from\u0060 or convert iterators manually. The naming convention mixes \u0027get\u0027 (blocking/panicking) and \u0027try\u0027 (result-returning) inconsistently across input sources.: Standardize on \u0060try_parse\u0060/\u0060parse\u0060 or \u0060get_matches\u0060/\u0060try_get_matches\u0060 with consistent \u0060from\u0060 variants for all input sources. Ensure that if \u0060get_matches\u0060 exists, \u0060get_matches_from\u0060 also exists for consistency. (signatures: Command.get_matches(): ArgMatches | Command.get_matches_mut(): ArgMatches | Command.try_get_matches(): ClapResult | Command.try_get_matches_from(itr: I): ClapResult | Command.try_get_matches_from_mut(itr: I): ClapResult)"},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"bf62de3203c8ec21a6a3683ee90ed074cd3d5d76b92ce0d9ba63fb1fccad222b"}},{"ruleId":"D22","level":"warning","message":{"text":"Highly redundant and confusing getter methods for aliases. There are multiple methods to retrieve aliases with overlapping semantics (visible vs all, short vs long, combined). The return types are inconsistent (\u0060char\u0060 vs \u0060str\u0060 vs \u0060impl Iterator\u0060), suggesting internal implementation details are leaking or the API is unstable. Specifically, \u0060get_visible_short_aliases\u0060 and \u0060get_all_short_aliases\u0060 returning \u0060char\u0060 (singular) is suspicious for a list of aliases.: Unify alias retrieval into a single method \u0060get_aliases(filter: AliasFilter)\u0060 or separate clearly into \u0060get_short_aliases()\u0060 and \u0060get_long_aliases()\u0060 returning iterators, removing the redundant \u0027visible\u0027 vs \u0027all\u0027 getters if they can be filtered by the caller. (signatures: Arg.get_visible_short_aliases(): char | Arg.get_all_short_aliases(): char | Arg.get_short_and_visible_aliases(): char | Arg.get_visible_aliases(): str | Arg.get_all_aliases(): str | Arg.get_long_and_visible_aliases(): str | Arg.get_aliases(): str)"},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"8d6043e95bfeffb8ec46fb04675ff77a06c518ce834a361c4d9d3707cfbb74ec"}},{"ruleId":"D22","level":"warning","message":{"text":"Inconsistent naming for subcommand lookup. \u0060Command\u0060 uses \u0060find_subcommand\u0060, whereas \u0060Arg\u0060 uses \u0060get_id\u0060, \u0060get_help\u0060, etc. More importantly, \u0060find_subcommand\u0060 returns \u0060Self\u0060 (the subcommand itself), which is inconsistent with \u0060get_arguments\u0060 which returns an iterator. If it returns \u0060Self\u0060, it should likely be \u0060get_subcommand\u0060 to match the \u0060get_*\u0060 pattern for retrieval, or \u0060find_*\u0060 should return an \u0060Option\u003CSelf\u003E\u0060 to indicate failure, which is the standard Rust pattern for \u0027find\u0027 operations.: Rename \u0060find_subcommand\u0060 to \u0060get_subcommand\u0060 and return \u0060Option\u003CSelf\u003E\u0060 to align with Rust conventions and the \u0060get_*\u0060 naming scheme used elsewhere in the API. (signatures: Command.find_subcommand(name: impl AsRef\u003COsStr\u003E): Self | Command.find_subcommand_mut(name: impl AsRef\u003COsStr\u003E): Self)"},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"d6f6bf6ce22cd25546373c38f5fb83730b3a9d97bb65b29c0a1c33d47118168a"}},{"ruleId":"D22","level":"warning","message":{"text":"Redundant \u0060_os\u0060 suffixed methods for default values. \u0060default_value\u0060 and \u0060default_value_os\u0060 appear to do the same thing, as do their plural variants. Since \u0060OsStr\u0060 is the native OS string type in Rust, and \u0060Into\u003COsStr\u003E\u0060 is accepted by both, the distinction is unclear and likely unnecessary, adding API surface without clear benefit.: Remove the \u0060_os\u0060 suffixed variants and keep only \u0060default_value\u0060 and \u0060default_values\u0060, relying on type inference and \u0060Into\u0060 traits to handle string types. (signatures: Arg.default_value(val: impl IntoResettable\u003COsStr\u003E): Self | Arg.default_value_os(val: impl Into\u003COsStr\u003E): Self | Arg.default_values(vals: impl IntoIterator\u003CItem = impl Into\u003COsStr\u003E\u003E): Self | Arg.default_values_os(vals: impl IntoIterator\u003CItem = impl Into\u003COsStr\u003E\u003E): Self)"},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"31ff1910257354bee19f9c10b0a81918906befc625e37b26b0b44b6940e963cf"}},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"482e3b19efd040fb2215efbc5e65f5b9996234817368c5a9198eb89910e46231"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"e9e2c75d2fefa94504a6443bd33d31210eecfcc19eda5a718aaf21e504742ebf"},"properties":{"dependency":{"package":"openssl","version":"0.10.64","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","RUSTSEC-2024-0357","RUSTSEC-2025-0004","RUSTSEC-2025-0022"],"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":"657ace3acf26c9413dc3c0e66543851b9a135570e9158e02053edf661d88afca"},"properties":{"dependency":{"package":"uucore","version":"0.0.27","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"128358c6a0903fed65c80eb3771827ca450b908b209c67fdff6f0cc988a54969"},"properties":{"dependency":{"package":"uu_cp","version":"0.0.23","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"29893d3a3e305da437cc83ee22a1371122931c4170a4efca5bd1b42e190a502c"},"properties":{"dependency":{"package":"idna","version":"0.5.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","RUSTSEC-2024-0421"],"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":"a5fbbccd4a995e54051ac6da7441d2adab6778825918bb499131f39a3dc4f20a"},"properties":{"dependency":{"package":"crossbeam-channel","version":"0.5.13","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","RUSTSEC-2025-0024","TROVE-2025-013"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"85ffa314d77812277deab31fb2264e02366c4034561614d82315c198cb6bb99e"},"properties":{"dependency":{"package":"time","version":"0.3.36","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","RUSTSEC-2026-0009"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"f48cf8c9f415048128045caa118a1e03769d0b4fe18d7f036c2f3766e3e8d8fb"},"properties":{"dependency":{"package":"instant","version":"0.1.13","advisory":"RUSTSEC-2024-0384","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":"1a1e503af806e767f14c170c32073931de1d4295405a897beef69c919a99a60d"},"properties":{"dependency":{"package":"adler","version":"1.0.2","advisory":"RUSTSEC-2025-0056","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":"610868c659b2bc4a0ea5bd7cebeddb1d8961b8ebb7c9f31dcc75e07badfe1d8f"},"properties":{"dependency":{"package":"unic-char-range","version":"0.9.0","advisory":"RUSTSEC-2025-0075","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":"9a9761ad8cbbcee9fd4b4bb09fc1e6e6977230d7588402bc8497b52c5027e99e"},"properties":{"dependency":{"package":"unic-common","version":"0.9.0","advisory":"RUSTSEC-2025-0080","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":"d3f6b0dc7d0843f1539cb8274e739376fd4b1be6c39d73c3f6b7e78cb5af4d8b"},"properties":{"dependency":{"package":"unic-char-property","version":"0.9.0","advisory":"RUSTSEC-2025-0081","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":"b4071a3abdc28a8dc6f1f6cd188aff2e864bcf5be3ec3a756029a36597e4ae38"},"properties":{"dependency":{"package":"unic-emoji-char","version":"0.9.0","advisory":"RUSTSEC-2025-0090","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":"b269e07aa3d9bfb90d59d794c0e6a0b7849b288910031fdd0fe253514c3af463"},"properties":{"dependency":{"package":"unic-ucd-version","version":"0.9.0","advisory":"RUSTSEC-2025-0098","reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"705e8761c5e609601c0419d94a8bad1aeb6aee434f48ec4660c92e8bf534c9de"},"properties":{"dependency":{"package":"number_prefix","version":"0.4.0","advisory":"RUSTSEC-2025-0119","reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"d469c4cdd0b2892278c4ee90c01a5a8ea4872a98733c483777e04c904cfebdfc"},"properties":{"dependency":{"package":"proc-macro-error2","version":"2.0.1","advisory":"RUSTSEC-2026-0173","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.3","advisory":"RUSTSEC-2026-0002","aliases":["[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"d44a25813d8a9e18eb42fa5350a972c298292d454155c6472f091bfb670363df"},"properties":{"dependency":{"package":"rand","version":"0.8.5","advisory":"RUSTSEC-2026-0097","aliases":["[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"422864efbc32ee020d94634a443edac9d818b90faf02ac96d91c4d66ffa4da37"},"properties":{"dependency":{"package":"lru","version":"0.12.3","advisory":"RUSTSEC-2026-0253","reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"5585c48a8c4ed670247ebaa40a533d385248c4e49079fee700e7b93cbab137a9"},"properties":{"dependency":{"package":"quick-xml","version":"0.30.0","advisory":"RUSTSEC-2026-0194","aliases":["RUSTSEC-2026-0195"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"c4a0c58aca13bc848c37d4c3d5bcb90f8e046f8df5b386f5a3743d0625ad8dae"},"properties":{"dependency":{"package":"crossbeam-epoch","version":"0.9.18","advisory":"RUSTSEC-2026-0204","reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"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":"e4a7ec86b8abb5b970592ef1924edc838dbbaa10a2c8d009aa19ab1b9e0680d8"},"properties":{"dependency":{"package":"uu_mktemp","version":"0.0.23","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"bbcfcf3632b4d93d0b12682534f3fcf051b77db9674c85e363e38d581c9e4c70"},"properties":{"dependency":{"package":"uu_mkdir","version":"0.0.23","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: _tutorial.rs \u2194 _tutorial.rs: \u0060src/_derive/_tutorial.rs\u0060 and \u0060src/_tutorial.rs\u0060 change together 71% of the time (10 of the 14 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency \u2014 the edge is real but nothing declares it. Read the pair before acting: if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE \u2014 the registration is the link, and it is meant not to be an import \u2014 and the thing to add is a comment on each side naming the other, not a merge; if they simply belong together, co-locate them; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 10 shared commits counted here, the most recent 3 are \u0060c74cfbe7\u0060 docs(tutorial): Explicitly cover required vs optional; \u006008a9b969\u0060 docs(tutorial): Clarify option/positional difference; \u00602b8d21ae\u0060 docs(tutorial): Move default before subcommand \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/_derive/_tutorial.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"41a4de6a72701b75b8f7fe6f7d193b2d5570d66dd494d319bfa077e3ddc884a3"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: arg.rs \u2194 kind.rs: \u0060clap_builder/src/builder/arg.rs\u0060 and \u0060clap_builder/src/error/kind.rs\u0060 change together 52% of the time (14 of the 27 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency \u2014 the edge is real but nothing declares it. Read the pair before acting: if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE \u2014 the registration is the link, and it is meant not to be an import \u2014 and the thing to add is a comment on each side naming the other, not a merge; if they simply belong together, co-locate them; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 14 shared commits counted here, the most recent 3 are \u0060a89f3e69\u0060 docs: Fix link; \u00605d0fbb47\u0060 doc: Clean up cfgs (at that commit the files were still \u0060src/builder/arg.rs\u0060 and \u0060src/error/kind.rs\u0060); \u00600664c6db\u0060 fix!: Remove Arg::use_value_delimiter in favor of Arg::value_delimiter (at that commit the files were still \u0060src/builder/arg.rs\u0060 and \u0060src/error/kind.rs\u0060) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"clap_builder/src/builder/arg.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c18d47ba3ea41d33b00fff5335553d643c4302daa935b176e746d29245fffb40"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: command.rs \u2194 _features.rs: \u0060clap_builder/src/builder/command.rs\u0060 and \u0060src/_features.rs\u0060 change together 50% of the time (6 of the 12 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency \u2014 the edge is real but nothing declares it. Read the pair before acting: if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE \u2014 the registration is the link, and it is meant not to be an import \u2014 and the thing to add is a comment on each side naming the other, not a merge; if they simply belong together, co-locate them; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 6 shared commits counted here, the most recent 3 are \u006099f1fa6b\u0060 docs: Cross-link color control to Command::styles; \u0060eb53db89\u0060 feat(help): Stabilize styling support; \u0060015f88b2\u0060 feat(help): Allow customizing terminal styling \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"clap_builder/src/builder/command.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f80a82afd27cb2347b944205d71288d535a5a3de631dc4bf35349870cbccf0e1"}},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"1b213f6eedd4b140d0bc37bdf1496f72811a643f34064f12518b32e9e83bcfc7"}},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"0e17f71490e4d120a48b2b2881ab866c93b272bef2febb673a3e8e42b2c288ab"}},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"eb00976a698a5d68999b7ee6d27206fd374e916853e7ff1ead5eed42386f043f"}},{"ruleId":"D36","level":"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":"4f1e7684f8281bd255ddef97105c7055c2ebae06964c8745716b83e174debe83"}},{"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":"c593d4dbd23724f337bfb8d2c1653812f143ae255bd9b59d4b3e9c37779fa6f4"}},{"ruleId":"M1","level":"note","message":{"text":"Thin README: The root README is 91 words, against a bar of 120. Of the three newcomer-critical sections this check looks for by heading, it found no a build/run or getting-started section, no a testing section, no an architecture or project-map section. Sections are matched on HEADING text only, so material written under a heading this check does not recognise \u2014 or with no heading at all \u2014 is not seen and this row may understate what the document covers."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"5fc8f78bec0b6b3daab9d9139ba49b687f61b54f8310b64c159df9616f47e38e"}},{"ruleId":"M2","level":"note","message":{"text":"No ADRs: No Architecture Decision Records found \u2014 no conventional ADR directory, no numbered \u0060NNNN-title\u0060 documents in any markup this check reads, and nothing ADR-shaped by content. Design rationale recorded elsewhere (a design-notes tree, a mailing list, pull-request discussion) is not visible to this check and is not re-findable per decision, so a future maintainer cannot ask why one choice was made and get an answer."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"670b3d6e36a756d63097d0dfbf90afd5fc761308800b9354894a07c3f4e4aa14"}},{"ruleId":"M2","level":"note","message":{"text":"No architecture diagram/doc: No C4/Structurizr/PlantUML/Mermaid/Graphviz/D2 diagram, no drawn diagram named for the architecture, no file named \u0060architecture\u0060 or \u0060design\u0060 in any markup this check reads, and nothing in the README, docs or contributor guides that announces the shape \u2014 no \u0060## Architecture\u0060 heading, no \u0022architecture overview\u0022/\u0022high-level design\u0022 phrasing, no \u0022the architecture is \u2026\u0022 introduction, no guided code tour. A shape laid out in prose that never names itself as the architecture is not visible to this check, and neither is one kept outside the repository, so this row reports the absence of a re-findable shape document \u2014 not evidence that nobody wrote the shape down."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"0c190e7c159d1850ee706c3ac4486e151e8a4fe169de4bf61436b9f399654f06"}},{"ruleId":"P12","level":"warning","message":{"text":"Coverage collected but not gated: CI collects a coverage report but no step enforces a minimum \u2014 coverage could halve and CI stays green. Add a step that fails the build when coverage drops below a floor (your coverage tool\u0027s minimum-threshold flag, or a coverage-gate action) so the number guards something. What was searched, so you can tell an absence from a miss: this repository\u0027s CI files AND its coverage configuration \u2014 the well-known coverage and test-runner config files, read at the repository root and inside workspace package directories two levels down, so a floor declared beside the tests rather than in the pipeline is credited \u2014 matched against the threshold settings this check knows by name. A floor set in your coverage service\u0027s web UI rather than in a committed file, or under a setting whose name is not one of those, is not seen here."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"7f63c06044cf998d9a0698692df30d8873e29bc9b0c98ee829255017c1193d33"}},{"ruleId":"P2","level":"note","message":{"text":"Logging is not universal: Only 2/3 runnable modules use logging (modules with no entry point or server are excluded \u2014 they are libraries a runnable module hosts). Silent: \u0060.\u0060."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"91a94e21d6d4d0e6a2003f94505b0b02b157176f0b24c4820f3f82b4447a97fe"}}],"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-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-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-494","guid":"b8a65e0d-e459-4a55-a931-fc1136482375","name":"Download of Code Without Integrity Check","shortDescription":{"text":"Download of Code Without Integrity Check"},"helpUri":"https://cwe.mitre.org/data/definitions/494.html"},{"id":"CWE-506","guid":"401d6455-56e3-0552-9a39-f77461673e3f","name":"CWE-506","shortDescription":{"text":"CWE-506"},"helpUri":"https://cwe.mitre.org/data/definitions/506.html"},{"id":"CWE-77","guid":"332c8ade-6612-9f56-a06b-d8d90b1a8750","name":"Command Injection","shortDescription":{"text":"Command Injection"},"helpUri":"https://cwe.mitre.org/data/definitions/77.html"},{"id":"CWE-78","guid":"2e31ceaf-c7ae-2e5e-9661-cfb1362789cf","name":"OS Command Injection","shortDescription":{"text":"OS Command Injection"},"helpUri":"https://cwe.mitre.org/data/definitions/78.html"},{"id":"CWE-79","guid":"fd45580b-e8c4-fc5e-8c2f-aa8fab0b4dbf","name":"Cross-site Scripting (XSS)","shortDescription":{"text":"Cross-site Scripting (XSS)"},"helpUri":"https://cwe.mitre.org/data/definitions/79.html"},{"id":"CWE-798","guid":"5e8f057d-fee3-995a-a0cb-9fc5b0d174d1","name":"Use of Hard-coded Credentials","shortDescription":{"text":"Use of Hard-coded Credentials"},"helpUri":"https://cwe.mitre.org/data/definitions/798.html"},{"id":"CWE-829","guid":"13c33925-97fb-5a5e-b40c-56d328b8a4d7","name":"CWE-829","shortDescription":{"text":"CWE-829"},"helpUri":"https://cwe.mitre.org/data/definitions/829.html"},{"id":"CWE-89","guid":"6d08fdad-37eb-c150-bbf0-d7d946863407","name":"SQL Injection","shortDescription":{"text":"SQL Injection"},"helpUri":"https://cwe.mitre.org/data/definitions/89.html"},{"id":"CWE-937","guid":"16f316ae-415c-b354-a59b-1f7905f756e9","name":"Using Components with Known Vulnerabilities","shortDescription":{"text":"Using Components with Known Vulnerabilities"},"helpUri":"https://cwe.mitre.org/data/definitions/937.html"},{"id":"CWE-94","guid":"75e7f50c-6c2f-dd52-bf40-bf6c52b861fd","name":"Code Injection","shortDescription":{"text":"Code Injection"},"helpUri":"https://cwe.mitre.org/data/definitions/94.html"}]}],"properties":{"codehealthPublication":{"public":true,"notice":"This is the PUBLIC form of this artifact. Findings are listed in full, but the details of SECURITY findings \u2014 which rule fired, in which file, on which line, and how to fix it \u2014 are deliberately withheld, and any secret-scanner results are excluded entirely. Where detail is absent here it was REMOVED FOR PUBLICATION; it is not missing from the analysis. The complete artifact is available from the repository owner.","securityFindingsRedacted":28,"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."]}]}