{"$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":"D6","name":"Cohesion (LCOM4)","shortDescription":{"text":"Cohesion (LCOM4)"},"helpUri":"https://codehealth.canine.dev/dimensions/D6"},{"id":"D12","name":"Dependency Hygiene","shortDescription":{"text":"Dependency Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/D12"},{"id":"D13","name":"Secret Scanning","shortDescription":{"text":"Secret Scanning"},"helpUri":"https://codehealth.canine.dev/dimensions/D13","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D14","name":"License Compliance","shortDescription":{"text":"License Compliance"},"helpUri":"https://codehealth.canine.dev/dimensions/D14"},{"id":"D15","name":"Churn \u00D7 Complexity Hotspots","shortDescription":{"text":"Churn \u00D7 Complexity Hotspots"},"helpUri":"https://codehealth.canine.dev/dimensions/D15"},{"id":"D16","name":"Bus Factor","shortDescription":{"text":"Bus Factor"},"helpUri":"https://codehealth.canine.dev/dimensions/D16"},{"id":"D17","name":"Explicit Debt","shortDescription":{"text":"Explicit Debt"},"helpUri":"https://codehealth.canine.dev/dimensions/D17"},{"id":"D19","name":"Documentation Quality","shortDescription":{"text":"Documentation Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D19"},{"id":"D20","name":"ADR Quality","shortDescription":{"text":"ADR Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D20"},{"id":"D28","name":"Secrets (history)","shortDescription":{"text":"Secrets (history)"},"helpUri":"https://codehealth.canine.dev/dimensions/D28","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D29","name":"Static Analysis (SAST)","shortDescription":{"text":"Static Analysis (SAST)"},"helpUri":"https://codehealth.canine.dev/dimensions/D29","relationships":[{"target":{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-94","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-77","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-79","CWE-89","CWE-78","CWE-94","CWE-77"],"owasp":"A05:2025"}},{"id":"D30","name":"Dependency Vulnerabilities","shortDescription":{"text":"Dependency Vulnerabilities"},"helpUri":"https://codehealth.canine.dev/dimensions/D30","relationships":[{"target":{"id":"CWE-1395","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-937","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1395","CWE-937"],"owasp":"A03:2025"}},{"id":"D34","name":"Knowledge Freshness","shortDescription":{"text":"Knowledge Freshness"},"helpUri":"https://codehealth.canine.dev/dimensions/D34"},{"id":"D35","name":"Change Coupling","shortDescription":{"text":"Change Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D35"},{"id":"D36","name":"Supply-chain Provenance \u0026 Signing","shortDescription":{"text":"Supply-chain Provenance \u0026 Signing"},"helpUri":"https://codehealth.canine.dev/dimensions/D36","relationships":[{"target":{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-494","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1357","CWE-494"],"owasp":"A03:2025"}},{"id":"D43","name":"Malicious Dependencies","shortDescription":{"text":"Malicious Dependencies"},"helpUri":"https://codehealth.canine.dev/dimensions/D43","relationships":[{"target":{"id":"CWE-506","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-506"],"owasp":"A08:2025"}},{"id":"AC2","name":"Forms \u0026 labels","shortDescription":{"text":"Forms \u0026 labels"},"helpUri":"https://codehealth.canine.dev/dimensions/AC2"},{"id":"AC3","name":"Page structure","shortDescription":{"text":"Page structure"},"helpUri":"https://codehealth.canine.dev/dimensions/AC3"},{"id":"AC6","name":"Visual \u0026 motion safety","shortDescription":{"text":"Visual \u0026 motion safety"},"helpUri":"https://codehealth.canine.dev/dimensions/AC6"},{"id":"AX10","name":"Code composition","shortDescription":{"text":"Code composition"},"helpUri":"https://codehealth.canine.dev/dimensions/AX10"},{"id":"AX3","name":"Project dependency cycles","shortDescription":{"text":"Project dependency cycles"},"helpUri":"https://codehealth.canine.dev/dimensions/AX3"},{"id":"AX4","name":"Dependency direction","shortDescription":{"text":"Dependency direction"},"helpUri":"https://codehealth.canine.dev/dimensions/AX4"},{"id":"AX9","name":"CQS / query purity","shortDescription":{"text":"CQS / query purity"},"helpUri":"https://codehealth.canine.dev/dimensions/AX9"},{"id":"ED5","name":"Idempotency","shortDescription":{"text":"Idempotency"},"helpUri":"https://codehealth.canine.dev/dimensions/ED5"},{"id":"M1","name":"Documentation (README)","shortDescription":{"text":"Documentation (README)"},"helpUri":"https://codehealth.canine.dev/dimensions/M1"},{"id":"M2","name":"Architecture documentation","shortDescription":{"text":"Architecture documentation"},"helpUri":"https://codehealth.canine.dev/dimensions/M2"},{"id":"M3","name":"Folder \u0026 project structure","shortDescription":{"text":"Folder \u0026 project structure"},"helpUri":"https://codehealth.canine.dev/dimensions/M3"},{"id":"M4","name":"Documentation accuracy","shortDescription":{"text":"Documentation accuracy"},"helpUri":"https://codehealth.canine.dev/dimensions/M4"},{"id":"P1","name":"CI/CD gates","shortDescription":{"text":"CI/CD gates"},"helpUri":"https://codehealth.canine.dev/dimensions/P1"},{"id":"P10","name":"Library API \u0026 versioning","shortDescription":{"text":"Library API \u0026 versioning"},"helpUri":"https://codehealth.canine.dev/dimensions/P10"},{"id":"P12","name":"CI test-gate honesty","shortDescription":{"text":"CI test-gate honesty"},"helpUri":"https://codehealth.canine.dev/dimensions/P12"},{"id":"P2","name":"Observability","shortDescription":{"text":"Observability"},"helpUri":"https://codehealth.canine.dev/dimensions/P2"},{"id":"P3","name":"Security \u0026 performance tooling","shortDescription":{"text":"Security \u0026 performance tooling"},"helpUri":"https://codehealth.canine.dev/dimensions/P3"},{"id":"P6","name":"Release Hygiene","shortDescription":{"text":"Release Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/P6"},{"id":"X10","name":"Duplicated predicate","shortDescription":{"text":"Duplicated predicate"},"helpUri":"https://codehealth.canine.dev/dimensions/X10"},{"id":"X14","name":"Bypassable address classification","shortDescription":{"text":"Bypassable address classification"},"helpUri":"https://codehealth.canine.dev/dimensions/X14"},{"id":"X15","name":"Unvalidated length from an untrusted reader","shortDescription":{"text":"Unvalidated length from an untrusted reader"},"helpUri":"https://codehealth.canine.dev/dimensions/X15"},{"id":"X20","name":"Mistyped argument guard","shortDescription":{"text":"Mistyped argument guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X20"},{"id":"X21","name":"Side-effecting pattern guard","shortDescription":{"text":"Side-effecting pattern guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X21"},{"id":"X26","name":"Unsynchronised callback handoff","shortDescription":{"text":"Unsynchronised callback handoff"},"helpUri":"https://codehealth.canine.dev/dimensions/X26"},{"id":"X27","name":"Collection changed while being enumerated","shortDescription":{"text":"Collection changed while being enumerated"},"helpUri":"https://codehealth.canine.dev/dimensions/X27"},{"id":"X28","name":"Index access outside its own emptiness guard","shortDescription":{"text":"Index access outside its own emptiness guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X28"},{"id":"X29","name":"Per-element action decided by a fixed element","shortDescription":{"text":"Per-element action decided by a fixed element"},"helpUri":"https://codehealth.canine.dev/dimensions/X29"},{"id":"X30","name":"Support guard that admits what it rejects","shortDescription":{"text":"Support guard that admits what it rejects"},"helpUri":"https://codehealth.canine.dev/dimensions/X30"},{"id":"X32","name":"Type resolved by simple name across every loaded assembly","shortDescription":{"text":"Type resolved by simple name across every loaded assembly"},"helpUri":"https://codehealth.canine.dev/dimensions/X32"},{"id":"X4","name":"Structured logging","shortDescription":{"text":"Structured logging"},"helpUri":"https://codehealth.canine.dev/dimensions/X4"},{"id":"X6","name":"Hand-rolled structured-format parsing","shortDescription":{"text":"Hand-rolled structured-format parsing"},"helpUri":"https://codehealth.canine.dev/dimensions/X6"},{"id":"X7","name":"Silent fallback defaults","shortDescription":{"text":"Silent fallback defaults"},"helpUri":"https://codehealth.canine.dev/dimensions/X7"},{"id":"X9","name":"Subsumed condition operand","shortDescription":{"text":"Subsumed condition operand"},"helpUri":"https://codehealth.canine.dev/dimensions/X9"}]}},"results":[{"ruleId":"D1","level":"warning","message":{"text":"redox_cookbook::bin::repo::app::run_tui_cook (cyclomatic 74): redox_cookbook::bin::repo::app::run_tui_cook has cyclomatic complexity 74 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/bin/repo/app.rs"},"region":{"startLine":293}}}],"partialFingerprints":{"codehealthFindingId/v1":"df2f39630e214e3de2f29fafb1a3e2c862c5a190309ae1afb5bc098d2029d7df"}},{"ruleId":"D1","level":"warning","message":{"text":"redox_cookbook::bin::repo::main::parse_args (cyclomatic 71): redox_cookbook::bin::repo::main::parse_args has cyclomatic complexity 71 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/bin/repo/main.rs"},"region":{"startLine":467}}}],"partialFingerprints":{"codehealthFindingId/v1":"22d9475a21c3a3776efddd6cc7eeb12b1041124f2a2772387724f382994d7161"}},{"ruleId":"D1","level":"warning","message":{"text":"redox_cookbook::bin::repo_editor::main::handle_input (cyclomatic 58): redox_cookbook::bin::repo_editor::main::handle_input has cyclomatic complexity 58 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/bin/repo_editor/main.rs"},"region":{"startLine":337}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b7714fdbc3df1c07439527ee53878bf01d245cdbfe9ed9e023b8be0d74f5396"}},{"ruleId":"D1","level":"warning","message":{"text":"redox_cookbook::cook::cook_build::build (cyclomatic 58): redox_cookbook::cook::cook_build::build has cyclomatic complexity 58 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/cook/cook_build.rs"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c80d05167635307c5dd0cbf84eaeee20f06191cf255aa0aa67b87230de19898"}},{"ruleId":"D1","level":"warning","message":{"text":"redox_cookbook::cook::fetch::fetch (cyclomatic 55): redox_cookbook::cook::fetch::fetch has cyclomatic complexity 55 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/cook/fetch.rs"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"211954fbed7cc1d04a8314a62d66f155f50a8c75409e47c53da63790656b8bd4"}},{"ruleId":"D1","level":"warning","message":{"text":"redox_cookbook::cook::cook_build::auto_deps_from_dynamic_linking (cyclomatic 35): redox_cookbook::cook::cook_build::auto_deps_from_dynamic_linking has cyclomatic complexity 35 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/cook/cook_build.rs"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"2156975512bf94273946d4f6baf8de5a85bf5759439bcd794deec1f19e9f3fe6"}},{"ruleId":"D1","level":"warning","message":{"text":"redox_cookbook::bin::repo_builder::publish_packages (cyclomatic 34): redox_cookbook::bin::repo_builder::publish_packages has cyclomatic complexity 34 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/bin/repo_builder.rs"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"20bcee96438a6b50830fd151971ad09c7499d98d9f84ed23626ffad52db89eee"}},{"ruleId":"D1","level":"warning","message":{"text":"redox_cookbook::bin::repo::main::main_inner (cyclomatic 27): redox_cookbook::bin::repo::main::main_inner has cyclomatic complexity 27 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/bin/repo/main.rs"},"region":{"startLine":250}}}],"partialFingerprints":{"codehealthFindingId/v1":"56c5abf15fdc064615b4847736cf509dc01bfafc317df6988bdc691a871432b4"}},{"ruleId":"D1","level":"warning","message":{"text":"redox_cookbook::bin::repo::app::handle_inspect_event (cyclomatic 22): redox_cookbook::bin::repo::app::handle_inspect_event has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/bin/repo/app.rs"},"region":{"startLine":828}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6f915ec33e0efb9375e78e0e79c0851082278c673396d0919d4eecaf57ece16"}},{"ruleId":"D1","level":"warning","message":{"text":"redox_cookbook::bin::repo::main::handle_change_rule (cyclomatic 18): redox_cookbook::bin::repo::main::handle_change_rule has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/bin/repo/main.rs"},"region":{"startLine":1151}}}],"partialFingerprints":{"codehealthFindingId/v1":"261bf8ea96056e6741af8791d8f1fe304a2eb87a5407817c55124069bc2efcc0"}},{"ruleId":"D1","level":"warning","message":{"text":"redox_cookbook::config::init_config (cyclomatic 18): redox_cookbook::config::init_config has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/config.rs"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"efd7df0a5ea4ac75736cf8417f9495a9327264c7ab842327dec310519feecb87"}},{"ruleId":"D1","level":"warning","message":{"text":"redox_cookbook::cook::package::package (cyclomatic 18): redox_cookbook::cook::package::package has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/cook/package.rs"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"362ac65eebebb9935535c2132cc9a243c36aa1d4a0e955afe7fe9dda89c0f600"}},{"ruleId":"D1","level":"warning","message":{"text":"redox_cookbook::cook::tree::walk_tree_entry (cyclomatic 18): redox_cookbook::cook::tree::walk_tree_entry has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/cook/tree.rs"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"d35dd160c1dbfad2fbc06b9dd4e5b02f49063b40bc3a77ffdee6c427005890a6"}},{"ruleId":"D1","level":"warning","message":{"text":"redox_cookbook::bin::repo::main::apply_special_rules (cyclomatic 16): redox_cookbook::bin::repo::main::apply_special_rules has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/bin/repo/main.rs"},"region":{"startLine":804}}}],"partialFingerprints":{"codehealthFindingId/v1":"6202c23db1e41c21cb3800bac6670c80d4b46e7ee48cf1df975396b509ab0e91"}},{"ruleId":"D1","level":"warning","message":{"text":"files.html.renderDirTree (cyclomatic 16): files.html.renderDirTree has cyclomatic complexity 16 (threshold 15). Most of this is not in the body itself: 5 of the 16 points are its own statements and the rest belongs to 3 function literals inside it that branch (lines 272, 307, 303). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/web/files.html"},"region":{"startLine":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"779a152a6160bfdcd543a9414b8d4c1c29fc8e2dd6200453d384677a78e65b4b"}},{"ruleId":"D2","level":"warning","message":{"text":"redox_cookbook::bin::repo::app::run_tui_cook (cognitive 178): redox_cookbook::bin::repo::app::run_tui_cook has cognitive complexity 178 (threshold 15). Drivers by points: if/else 48 (123 pts), loops 12 (28 pts), match/switch 4 (16 pts), boolean chains 11 (nesting depth added 103). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/bin/repo/app.rs"},"region":{"startLine":293}}}],"partialFingerprints":{"codehealthFindingId/v1":"381202444631fcc77d745e1bc40e2c87a3f4d82f1e956dda40a56a37f8770264"}},{"ruleId":"D2","level":"warning","message":{"text":"redox_cookbook::cook::fetch::fetch (cognitive 127): redox_cookbook::cook::fetch::fetch has cognitive complexity 127 (threshold 15). Drivers by points: if/else 41 (103 pts), match/switch 6 (18 pts), boolean chains 4, loops 1 (2 pts) (nesting depth added 75). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/cook/fetch.rs"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"63bd0e0208cfb8c134c5ab88b031d98e20a3b71b2a34e80bd24e5c3e1ba650cf"}},{"ruleId":"D2","level":"warning","message":{"text":"redox_cookbook::cook::cook_build::build (cognitive 115): redox_cookbook::cook::cook_build::build has cognitive complexity 115 (threshold 15). Drivers by points: if/else 44 (79 pts), loops 7 (20 pts), boolean chains 8, match/switch 3 (8 pts) (nesting depth added 53). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/cook/cook_build.rs"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"eab9a4afba8d964fc78d7710e01ecdcba7d75acac11c68823f0a6ca7814f7d9e"}},{"ruleId":"D2","level":"warning","message":{"text":"redox_cookbook::bin::repo_editor::main::handle_input (cognitive 109): redox_cookbook::bin::repo_editor::main::handle_input has cognitive complexity 109 (threshold 15). Drivers by points: if/else 28 (83 pts), match/switch 7 (18 pts), boolean chains 4, loops 1 (4 pts) (nesting depth added 69). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/bin/repo_editor/main.rs"},"region":{"startLine":337}}}],"partialFingerprints":{"codehealthFindingId/v1":"f21c7eca03275cbcaee0ed202844af288dfd46d006b8695e1ef346d3f97cd7ee"}},{"ruleId":"D2","level":"warning","message":{"text":"redox_cookbook::bin::repo::main::parse_args (cognitive 108): redox_cookbook::bin::repo::main::parse_args has cognitive complexity 108 (threshold 15). Drivers by points: if/else 51 (75 pts), match/switch 6 (18 pts), loops 6 (9 pts), boolean chains 6 (nesting depth added 39). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/bin/repo/main.rs"},"region":{"startLine":467}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d58feaaa09e7becadad15fd20725b70a540ac5bd0165ed75d3dd03798ab70a7"}},{"ruleId":"D2","level":"warning","message":{"text":"redox_cookbook::cook::cook_build::auto_deps_from_dynamic_linking (cognitive 89): redox_cookbook::cook::cook_build::auto_deps_from_dynamic_linking has cognitive complexity 89 (threshold 15). Drivers by points: if/else 22 (67 pts), loops 10 (19 pts), match/switch 1 (3 pts) (nesting depth added 56). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/cook/cook_build.rs"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"10a32fa30999908b053d868afe5379fc7c0f8b44f3a99030fd51886641993870"}},{"ruleId":"D2","level":"warning","message":{"text":"redox_cookbook::bin::repo_builder::publish_packages (cognitive 65): redox_cookbook::bin::repo_builder::publish_packages has cognitive complexity 65 (threshold 15). Drivers by points: if/else 22 (44 pts), loops 8 (17 pts), match/switch 2 (3 pts), boolean chains 1 (nesting depth added 32). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/bin/repo_builder.rs"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"f14995b72765044e1d111cd3f90f79fde2619559b6e49e3c5868cc93bfa9d216"}},{"ruleId":"D2","level":"warning","message":{"text":"redox_cookbook::bin::repo::main::main_inner (cognitive 46): redox_cookbook::bin::repo::main::main_inner has cognitive complexity 46 (threshold 15). Drivers by points: if/else 15 (30 pts), match/switch 3 (8 pts), boolean chains 4, loops 2 (4 pts) (nesting depth added 22). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/bin/repo/main.rs"},"region":{"startLine":250}}}],"partialFingerprints":{"codehealthFindingId/v1":"203fde4e13bf463e001a4cf8b35fa73258d9d19c6d613f69f3fb4b6d18de9648"}},{"ruleId":"D2","level":"warning","message":{"text":"redox_cookbook::bin::repo::main::handle_change_rule (cognitive 44): redox_cookbook::bin::repo::main::handle_change_rule has cognitive complexity 44 (threshold 15). Drivers by points: if/else 17 (30 pts), match/switch 2 (9 pts), boolean chains 4, loops 1 (nesting depth added 20). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/bin/repo/main.rs"},"region":{"startLine":1151}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbc8a9b79ee3e02259ea6dd133c8eee26e6dda1ff9ef90270602be147a8d1e8a"}},{"ruleId":"D2","level":"warning","message":{"text":"files.html.filterDb (cognitive 41): files.html.filterDb has cognitive complexity 41 (threshold 15). Drivers by points: if/else 13 (37 pts), boolean chains 2, loops 1, ternaries 1 (nesting depth added 24). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/web/files.html"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"36f7579c6c532809b02f619c63785730fff8b5c50b80419d955881a3be7b8adc"}},{"ruleId":"D2","level":"warning","message":{"text":"redox_cookbook::bin::repo::app::handle_inspect_event (cognitive 38): redox_cookbook::bin::repo::app::handle_inspect_event has cognitive complexity 38 (threshold 15). Drivers by points: if/else 17 (36 pts), match/switch 1 (2 pts) (nesting depth added 20). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/bin/repo/app.rs"},"region":{"startLine":828}}}],"partialFingerprints":{"codehealthFindingId/v1":"228e6a7c181d8dd1baaf7e7ebcf6e39100305c4a5ce4fe3e79144cea9dc93658"}},{"ruleId":"D2","level":"warning","message":{"text":"redox_cookbook::cook::package::package (cognitive 37): redox_cookbook::cook::package::package has cognitive complexity 37 (threshold 15). Drivers by points: if/else 12 (24 pts), match/switch 3 (9 pts), boolean chains 3, loops 1 (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/cook/package.rs"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"373d0fce4e61f6b7404bb1d6463d363fa1a13b4d5a7b22ea812fa655cffc9eb1"}},{"ruleId":"D2","level":"warning","message":{"text":"redox_cookbook::cook::tui::render_build_log (cognitive 35): redox_cookbook::cook::tui::render_build_log has cognitive complexity 35 (threshold 15). Drivers by points: if/else 17 (33 pts), boolean chains 2 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/cook/tui.rs"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"d86d42ec9803a3aae3f3b8b4402539fdbf5f57ef13999db1e7eb5338d9429d1d"}},{"ruleId":"D2","level":"warning","message":{"text":"CookRecipe::new_recursive (cognitive 32): CookRecipe::new_recursive has cognitive complexity 32 (threshold 15). Drivers by points: if/else 8 (21 pts), loops 4 (10 pts), boolean chains 1 (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/recipe.rs"},"region":{"startLine":388}}}],"partialFingerprints":{"codehealthFindingId/v1":"454d4bb599e938499ad4efc8add38d3671472a5505fb4a2104ead1c498d01f3e"}},{"ruleId":"D2","level":"warning","message":{"text":"redox_cookbook::cook::fetch::fetch_remote (cognitive 32): redox_cookbook::cook::fetch::fetch_remote has cognitive complexity 32 (threshold 15). Drivers by points: if/else 11 (31 pts), loops 1 (nesting depth added 20). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/cook/fetch.rs"},"region":{"startLine":707}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5f45977827183966d729cddeaafb5a48ac1df683c43939a12167412d5846f46"}},{"ruleId":"D2","level":"warning","message":{"text":"redox_cookbook::staged_pkg::new_recursive_nonstop (cognitive 30): redox_cookbook::staged_pkg::new_recursive_nonstop has cognitive complexity 30 (threshold 15). Drivers by points: if/else 8 (21 pts), loops 3 (7 pts), match/switch 1 (2 pts) (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/staged_pkg.rs"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"001c4e6b6a1403570578c81261c3cca4dcd78a3c12eab3233c634e858ef2bed9"}},{"ruleId":"D2","level":"warning","message":{"text":"redox_cookbook::cook::fs::get_git_remote_tracking (cognitive 26): redox_cookbook::cook::fs::get_git_remote_tracking has cognitive complexity 26 (threshold 15). Drivers by points: if/else 12 (24 pts), loops 2 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/cook/fs.rs"},"region":{"startLine":477}}}],"partialFingerprints":{"codehealthFindingId/v1":"905d8ca4cb1c6db52b436bfe763bfbfeba16b6acd1218c97feaea050cab2d57b"}},{"ruleId":"D2","level":"warning","message":{"text":"redox_cookbook::bin::repo::main::apply_special_rules (cognitive 25): redox_cookbook::bin::repo::main::apply_special_rules has cognitive complexity 25 (threshold 15). Drivers by points: if/else 7 (17 pts), boolean chains 3, loops 2 (3 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":"src/bin/repo/main.rs"},"region":{"startLine":804}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a0a0520a0951ceea510dd51a254fe683fc26fee3684088f5a89e3912ae2971a"}},{"ruleId":"D2","level":"warning","message":{"text":"redox_cookbook::cook::cook_build::build_deps_dir (cognitive 25): redox_cookbook::cook::cook_build::build_deps_dir has cognitive complexity 25 (threshold 15). Drivers by points: if/else 8 (17 pts), loops 3 (5 pts), boolean chains 2, match/switch 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/cook/cook_build.rs"},"region":{"startLine":643}}}],"partialFingerprints":{"codehealthFindingId/v1":"12c4fd8e4f10166910b972da601e78193807ab34f96d7b28eb08d8f3ea0f2d6e"}},{"ruleId":"D2","level":"warning","message":{"text":"redox_cookbook::bin::repo::main::repo_inner (cognitive 23): redox_cookbook::bin::repo::main::repo_inner has cognitive complexity 23 (threshold 15). Drivers by points: if/else 7 (16 pts), match/switch 2 (4 pts), loops 1 (2 pts), boolean chains 1 (nesting depth added 12). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/bin/repo/main.rs"},"region":{"startLine":379}}}],"partialFingerprints":{"codehealthFindingId/v1":"5948c2cc7de358d38c02087c76a819ef9ce0174aa0951c9d50400d09b4307a84"}},{"ruleId":"D2","level":"warning","message":{"text":"redox_cookbook::bin::repo::main::apply_special_rules_by_names (cognitive 23): redox_cookbook::bin::repo::main::apply_special_rules_by_names has cognitive complexity 23 (threshold 15). Drivers by points: if/else 6 (15 pts), boolean chains 3, loops 2 (3 pts), match/switch 1 (2 pts) (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/bin/repo/main.rs"},"region":{"startLine":866}}}],"partialFingerprints":{"codehealthFindingId/v1":"caee8d3099e1e675024c44aeaaae5aed837b0eb438f3203d357149423a665214"}},{"ruleId":"D2","level":"warning","message":{"text":"redox_cookbook::cook::tree::walk_tree_entry (cognitive 23): redox_cookbook::cook::tree::walk_tree_entry has cognitive complexity 23 (threshold 15). Drivers by points: if/else 11 (15 pts), match/switch 3 (5 pts), boolean chains 2, loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/cook/tree.rs"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"05adb92f4c16828ce186d898ee99a1c9b29033c4ed6231532a32d46812b4c423"}},{"ruleId":"D2","level":"warning","message":{"text":"FileIndexBuilder::parse (cognitive 20): FileIndexBuilder::parse has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9 (16 pts), loops 2 (3 pts), boolean chains 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/web/search.rs"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"d74e9db1c99f21b81363565633eab4efadba3ddbae0af635d77e10b421d5092f"}},{"ruleId":"D2","level":"warning","message":{"text":"files.html.cascadeTree (cognitive 20): files.html.cascadeTree has cognitive complexity 20 (threshold 15). Drivers by points: if/else 6 (10 pts), loops 5 (8 pts), boolean chains 2 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/web/files.html"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"309b4c5ec5c909c3038078048c2429a9926599cd33030cb0b4cb71493ae91207"}},{"ruleId":"D2","level":"warning","message":{"text":"redox_cookbook::config::init_config (cognitive 19): redox_cookbook::config::init_config has cognitive complexity 19 (threshold 15). Drivers by points: if/else 18, boolean chains 1. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/config.rs"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"82c5925af1a06f4a61f3302e7f5fc526d379627c154548e5dd7a3b62ed1798dc"}},{"ruleId":"D2","level":"warning","message":{"text":"redox_cookbook::cook::fetch::manual_git_recursive_submodule (cognitive 19): redox_cookbook::cook::fetch::manual_git_recursive_submodule has cognitive complexity 19 (threshold 15). Drivers by points: if/else 4 (11 pts), loops 4 (8 pts) (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/cook/fetch.rs"},"region":{"startLine":503}}}],"partialFingerprints":{"codehealthFindingId/v1":"29c0efc8816e497277477e7d3931e7cda38ca1e3f4432bff3f97cad784c5075c"}},{"ruleId":"D2","level":"warning","message":{"text":"CookRecipe::guess_version (cognitive 17): CookRecipe::guess_version has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (13 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":"src/recipe.rs"},"region":{"startLine":591}}}],"partialFingerprints":{"codehealthFindingId/v1":"85ee5d0c3a657de6b79119e3acee7acf73e4ca54a703941bc333a7b528810e3e"}},{"ruleId":"D2","level":"warning","message":{"text":"redox_cookbook::cook::fetch::fetch_offline (cognitive 17): redox_cookbook::cook::fetch::fetch_offline has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (15 pts), match/switch 2 (nesting depth added 10). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/cook/fetch.rs"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"db633c631c3327df2f6abd99c7750117e9bd4e967b4cf00342a7524de6b9147f"}},{"ruleId":"D2","level":"warning","message":{"text":"redox_cookbook::web::generate_web (cognitive 17): redox_cookbook::web::generate_web has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (11 pts), loops 5 (6 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":"src/web.rs"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"602988c01a592867a67c68783286140fd5bb4c7747311ee18cd76c1e552e7f92"}},{"ruleId":"D2","level":"warning","message":{"text":"redox_cookbook::bin::repo_editor::main::main (cognitive 16): redox_cookbook::bin::repo_editor::main::main has cognitive complexity 16 (threshold 15). Drivers by points: if/else 3 (8 pts), loops 4 (6 pts), match/switch 1 (2 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/bin/repo_editor/main.rs"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f9d10f19284e2bc28a4589d5d7bc3fd86135951240237f94df8f465a590547c"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: redox_cookbook::bin::repo::app::run_tui_cook: FunctionTooLong \u2014 redox_cookbook::bin::repo::app::run_tui_cook runs 330 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 230 over it, 3.30\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/bin/repo/app.rs"},"region":{"startLine":293}}}],"partialFingerprints":{"codehealthFindingId/v1":"5070e8bbe0895f9c156d43f4a09330dd5cc432c8618009182053e5a4c75d0299"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: redox_cookbook::cook::cook_build::build: FunctionTooLong \u2014 redox_cookbook::cook::cook_build::build runs 269 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 169 over it, 2.69\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/cook/cook_build.rs"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bb1b83d73a9cee50f3e99bbfaa217e75071786e3f97ab2cd85e9df3b7ee3c93"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: redox_cookbook::cook::fetch::fetch: FunctionTooLong \u2014 redox_cookbook::cook::fetch::fetch runs 245 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 145 over it, 2.45\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/cook/fetch.rs"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"907c01f3c65fae45f69507424b895581e65fdbb0b7a754c2f87c4b7ca42d617f"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: redox_cookbook::bin::repo::main::parse_args: FunctionTooLong \u2014 redox_cookbook::bin::repo::main::parse_args runs 221 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 121 over it, 2.21\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/bin/repo/main.rs"},"region":{"startLine":467}}}],"partialFingerprints":{"codehealthFindingId/v1":"63e06cab734c5a1a46fd38fa33da96cf5f836dbf6c3fdeac78e7b83e833a700c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: repo/main.rs: FileTooLong \u2014 886 significant 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 386 over it, 1.77\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/bin/repo/main.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f80f2090ca10e6cb7291414f1681810c964eaf2b26cd7b01e934bcd14334b7c4"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: redox_cookbook::bin::repo_editor::main::handle_input: FunctionTooLong \u2014 redox_cookbook::bin::repo_editor::main::handle_input runs 177 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 77 over it, 1.77\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/bin/repo_editor/main.rs"},"region":{"startLine":337}}}],"partialFingerprints":{"codehealthFindingId/v1":"96d7ee06a5a501978f9504f35f454f18a88aff098cd7feff48de006e81fa125f"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: redox_cookbook::web::html::generate_html_pkg: FunctionTooLong \u2014 redox_cookbook::web::html::generate_html_pkg runs 160 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 60 over it, 1.60\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/web/html.rs"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"86dc83acb67ff40626da73d6ef3125b7bd3cc656599ad98dbd315e02e8f1de46"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: repo/app.rs: FileTooLong \u2014 794 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 294 over it, 1.59\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/bin/repo/app.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc94ace057272f4f647431c873a7cb7f010fe2f5bf80841b68c32821238106f4"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: redox_cookbook::bin::repo_builder::publish_packages: FunctionTooLong \u2014 redox_cookbook::bin::repo_builder::publish_packages runs 150 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 50 over it, 1.50\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/bin/repo_builder.rs"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"6808a4f3a8b620223ad8d73b1f45acc69e0ea4ae0ba633b99aa28f90cdef0495"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFunctions: redox_cookbook::cook::fs: TooManyFunctions \u2014 39 free functions. The bar is 30 free functions; this is 9 over it, 1.30\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/cook/fs.rs"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd28c50bc37e1049fd595dde98d688889866d25eb6f735f6fe827146429e78a0"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: cook/fetch.rs: FileTooLong \u2014 642 significant 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 142 over it, 1.28\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/cook/fetch.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e98e5f66fd7232b3235f4cb3c8c5e79f4ff111816202f753dce60d41d9bce78d"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: cook/cook_build.rs: FileTooLong \u2014 618 significant 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 118 over it, 1.24\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/cook/cook_build.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"716c493d0c92abc660cf92fc834df5b4afced8f3a8f3a9e1c3f416a9669f3c5f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/recipe.rs: FileTooLong \u2014 523 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 23 over it, 1.05\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/recipe.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffaa5a55ca0661594f1cb92aae6ec6694a198895110ee0e57097bc31bd8812b5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (41 corresponding lines): src/bin/repo/main.rs:811-864 | src/bin/repo/main.rs:873-913 \u2014 These two members are one piece of code written twice and then edited apart: 41 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/bin/repo/main.rs"},"region":{"startLine":811}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5ca6851f506e7d61a317bbd03a177970004e68d561db7044a8e86d7974de597"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): src/bin/repo/app.rs:1023-1041 | src/bin/repo_editor/jobs.rs:189-211 \u2014 These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/bin/repo/app.rs"},"region":{"startLine":1023}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e24eeafa1f7871212709b658923676146f4ac255c1956680f190678206bc522"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): src/cook/pty.rs:34-52 | src/cook/pty.rs:61-87 \u2014 These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/cook/pty.rs"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8261d812da44fbd956a5a91dc6bf5fc6f3e61ec9ef01a8a4be0a2f9e1b8afee"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): src/cook/fetch_repo.rs:76-85 | src/cook/fetch_repo.rs:86-96 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/cook/fetch_repo.rs"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"88b6d6d09f96f3f647b3ccc6e1cd35199518ebc2bbc158b073b69d5b6eac0b1b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): src/cook/cook_build.rs:634-641 | src/cook/package.rs:208-215 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/cook/cook_build.rs"},"region":{"startLine":634}}}],"partialFingerprints":{"codehealthFindingId/v1":"f008330476da4bb78be495d0d2ebf695f8840d14c6d15f644affb664845a8ab2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): src/cook/package.rs:240-247 | src/cook/tui.rs:119-126 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/cook/package.rs"},"region":{"startLine":240}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1a7ca922ef7a5c0a261696f92ab53872c29400805432f0329c478afef5a6191"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (37\u201338 lines \u00D7 2): src/bin/repo/app.rs:349-386 | src/bin/repo/app.rs:458-494 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/bin/repo/app.rs:349\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/bin/repo/app.rs"},"region":{"startLine":349}}}],"partialFingerprints":{"codehealthFindingId/v1":"26e3909f8214cda5adad9b0d4ff5425e25ddc9b230f77a47ff5ce6dab05a991c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 3): src/recipe.rs:410-429 | src/recipe.rs:434-453 | src/recipe.rs:458-477 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/recipe.rs:410\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/recipe.rs"},"region":{"startLine":410}}}],"partialFingerprints":{"codehealthFindingId/v1":"e92794137a5973fb196d5e6f4326b6053d0787819767fba4c2032e25e711b72a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): src/cook/fs.rs:494-510 | src/cook/fs.rs:527-543 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/cook/fs.rs:494\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/cook/fs.rs"},"region":{"startLine":494}}}],"partialFingerprints":{"codehealthFindingId/v1":"303505b295355099d13aee578c206f1940bf040f28109f40e628911f59d8afd5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201313 lines \u00D7 2): src/cook/fetch.rs:234-246 | src/cook/fetch.rs:361-370 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/cook/fetch.rs"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"91a66049ffda56d3b253d4174cfd49169c761914ef2a351342372ea4c015446e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): src/bin/repo/app.rs:325-336 | src/bin/repo/app.rs:430-441 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/bin/repo/app.rs:325\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/bin/repo/app.rs"},"region":{"startLine":325}}}],"partialFingerprints":{"codehealthFindingId/v1":"9cbe9bc7f85b1a7f5dd080eac3f79703290b2cde77da1c17594bca2e53ff78ab"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/bin/repo/app.rs:770-780 | src/bin/repo/app.rs:901-911 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/bin/repo/app.rs:770\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/bin/repo/app.rs"},"region":{"startLine":770}}}],"partialFingerprints":{"codehealthFindingId/v1":"789d9ee9357cacc92b3658e4f560dfe1ed7e47ce792fc92da21d951e85ad8578"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/cook/tree.rs:167-177 | src/cook/tree.rs:245-255 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/cook/tree.rs:167\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/cook/tree.rs"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"185ce59aa9d1efae7bffbe1cd571a48d11fa89df70d3a91eb636878190eb4173"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 2): src/bin/repo/app.rs:840-848 | src/bin/repo/app.rs:888-895 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/bin/repo/app.rs:840\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/bin/repo/app.rs"},"region":{"startLine":840}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c1fca67383d036d65d73aabc531b184186a84df2f09e1e2b97ee1ba2542d63a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/bin/repo_builder.rs:91-98 | src/bin/repo_builder.rs:186-193 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/bin/repo_builder.rs"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c86d8223db4b0feca544a811b7692d3ea4ceb7588b1ae6f6ae8bd0cd1a8c914"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/cook/fetch.rs:70-76 | src/cook/fetch.rs:156-162 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/cook/fetch.rs:70\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/cook/fetch.rs"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4a8e2c80a099282e80f229a53cefbadb74c7c9707f9cbb20ef1cc24d7f0ba78"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src/bin/repo/app.rs:307-311 | src/bin/repo/app.rs:417-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/bin/repo/app.rs:307\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/bin/repo/app.rs"},"region":{"startLine":307}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a964ff3b99e0a37a8fcda6c316996c18e409253a8dfc277cf58daa5e44e1a0e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src/cook/fetch.rs:757-761 | src/cook/fetch.rs:767-773 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/cook/fetch.rs:757\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/cook/fetch.rs"},"region":{"startLine":757}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbc53cb9676b7a7a8688440636f2b22e5de58f45cc92cc09fd5080ef3c9fcc28"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/bin/repo/main.rs: src/bin/repo/main.rs changed 9 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 71 in redox_cookbook::bin::repo::main::parse_args at line 467. 1 of those changes was a fix/bug commit, and the other 8 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 06:58:33 -07:00\u0027 --until=\u00272026-11-14 06:58:33 -07:00\u0027 --full-history --no-merges -- src/bin/repo/main.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/bin/repo/main.rs"},"region":{"startLine":467}}}],"partialFingerprints":{"codehealthFindingId/v1":"d16d0adeead5cce7210e55299436beab30dee40dd3476c70e0804e973bd2112e"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/cook/cook_build.rs: src/cook/cook_build.rs changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 58 in redox_cookbook::cook::cook_build::build at line 200. 1 of those changes was a fix/bug commit, and the other 6 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 06:58:33 -07:00\u0027 --until=\u00272026-11-14 06:58:33 -07:00\u0027 --full-history --no-merges -- src/cook/cook_build.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":"src/cook/cook_build.rs"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"d68b923e9da7a64054ba7d87c4e9a113f94b9742e52aa2c8b8036894d3722dbc"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/cook/fetch.rs: src/cook/fetch.rs changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 55 in redox_cookbook::cook::fetch::fetch at line 144. 2 of those changes were fix/bug commits, and the other 3 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 06:58:33 -07:00\u0027 --until=\u00272026-11-14 06:58:33 -07:00\u0027 --full-history --no-merges -- src/cook/fetch.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/cook/fetch.rs"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"465b85ed5196889a1f930965aff0be4b2326e400cd0d4f3043bb2fd6000f66ce"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/config.rs: src/config.rs changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 18 in redox_cookbook::config::init_config at line 122. 1 of those changes was a fix/bug commit, and the other 3 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 06:58:33 -07:00\u0027 --until=\u00272026-11-14 06:58:33 -07:00\u0027 --full-history --no-merges -- src/config.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/config.rs"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f83fd10120ed4a917dcfc3ce4ccd0d2541e6e1b7c2e6302da48998a13fd067b"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/cook/package.rs: src/cook/package.rs changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 18 in redox_cookbook::cook::package::package at line 20. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 06:58:33 -07:00\u0027 --until=\u00272026-11-14 06:58:33 -07:00\u0027 --full-history --no-merges -- src/cook/package.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":"src/cook/package.rs"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bf5897cf86f41e4282f22b0b805a940cef6ab321508abe16692d08ced011b17"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #1: If anonymized user #1 becomes unavailable, 10 significant file(s) lose their only recent owner: src/cook/cook_build.rs, src/cook/fetch.rs, src/cook/fs.rs, src/cook/script.rs, src/cook/tree.rs, src/config.rs, src/web/html.rs, src/cook/package.rs (\u002B2 more). Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"774739aa0660837b22abfdf1bb36238c4b49b176e41ca1b9a6e6d83bc74baa24"}},{"ruleId":"D17","level":"warning","message":{"text":"XxxComment: /// When writing IO context, don\u0027t use \u0022Failed at XXX\u0022. Look at impl Display for suitable word to use. \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":"src/lib.rs"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca563a05fa49682606e54735093a789b84f9859c6c40aa5a64dd2352245de7eb"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: change to Option\u003CRecipeRule\u003E \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":"src/recipe.rs"},"region":{"startLine":278}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fa8250c2f9952b166ade4ac4155b99d0c175d7cef62e666853c8ce9be967955"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: print? \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":"src/recipe.rs"},"region":{"startLine":538}}}],"partialFingerprints":{"codehealthFindingId/v1":"b240e9554676a0f6e01970ee1ea37235e5b581a5b404b9dde8cc32e36f05e739"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Note that we\u0027re assuming this being ignored from e.g. metapackages \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":"src/recipe.rs"},"region":{"startLine":572}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8deac0787ac8cb3fb1c2d01f18ccad51c3a00bab19f70fc683be6d507fec3f1"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Will totally broke build if this recipe needed as some other build dependencies \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":"src/recipe.rs"},"region":{"startLine":573}}}],"partialFingerprints":{"codehealthFindingId/v1":"8694c0133a4fcef290a2eeb79d2ff0a6bd84c1291cdebeb45709127842dc4ed4"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: I hope nobody is nesting same_as... \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":"src/recipe.rs"},"region":{"startLine":649}}}],"partialFingerprints":{"codehealthFindingId/v1":"111757dad1e8327e1a3eda911b25ffc6fd487b1c1dc2cbe13b0d04fe89e7c463"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Wrap these vectors in a struct \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":"src/recipe.rs"},"region":{"startLine":669}}}],"partialFingerprints":{"codehealthFindingId/v1":"abd4f101ea4aac8b1255735ef336b6d59fee5718eb66b3218f62cee877cb4cc3"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: This file is previously resides in \u0060pkg\u0060 crate, \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":"src/staged_pkg.rs"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a7dda07e5c7707e43a04c2407c44699d5acbd7f03f1d1fa1a269966e7977a22"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: this check is redundant \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":"src/staged_pkg.rs"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"0777c72e7e9a30c889b9c91a743d3c409d27d11368c8f62e1b95dbf87db292aa"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Hardcoded URL, maybe get this remote-url next time \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":"src/web.rs"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bbc1629c8a490bb127ea9ebe5a87d2fdc4ffd48240498e4256542814bdf1396"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: report failed build \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":"src/web.rs"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"e72ca9e5c3f5806a2c12590d08c7ac819eaddd52f93e3f9a930e87bcdf8e4b7b"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: temporary bug fix in the suffix lost \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":"src/web.rs"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"7349756c13c74a76f104c55083ae3a3351834099adec79c49b42ee6e5d70de93"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: when stage_dirs does not exist due to clean_target was true, extract from stage.pkgar? \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":"src/cook/cook_build.rs"},"region":{"startLine":259}}}],"partialFingerprints":{"codehealthFindingId/v1":"f99765749e5a06c8a0a6d5e8b32950fd54629a029bd4854122020347e958b437"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //TODO: better integration with redoxer (library instead of binary) \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":"src/cook/cook_build.rs"},"region":{"startLine":362}}}],"partialFingerprints":{"codehealthFindingId/v1":"33f695151e7cec0c19c581de22fe99583f70efd2c7bcf033e4873e32cf15df00"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //TODO: configurable target \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":"src/cook/cook_build.rs"},"region":{"startLine":363}}}],"partialFingerprints":{"codehealthFindingId/v1":"a96b56a370655fa6daf9268e950570e72b255568f89a836b4a72754db6e98522"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //TODO: Add more configurability, convert scripts to Rust? \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":"src/cook/cook_build.rs"},"region":{"startLine":364}}}],"partialFingerprints":{"codehealthFindingId/v1":"863e1af6f69bfa6f3b8c65e970275f620779f1686eb53c43607d2008265bbf31"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //TODO: remove unwraps \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":"src/cook/cook_build.rs"},"region":{"startLine":439}}}],"partialFingerprints":{"codehealthFindingId/v1":"50b6f503dbc72d62dd2859c1ab031d5eb6cbc6214718a0621a8620d12d6f430f"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: automatically pass COOKBOOK_CROSS_GNU_TARGET? \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":"src/cook/cook_build.rs"},"region":{"startLine":622}}}],"partialFingerprints":{"codehealthFindingId/v1":"1327fa3354f8834b195db2862c335f0c1afd811ff4877c3e0046cdc32a13ab34"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: automatically pass COOKBOOK_CROSS_GNU_TARGET? \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":"src/cook/cook_build.rs"},"region":{"startLine":637}}}],"partialFingerprints":{"codehealthFindingId/v1":"21e732e8ab0e9e929e4b13eab186a7b863dac4a781ceb983618c7c83fa5e3135"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: automatically pass COOKBOOK_CROSS_GNU_TARGET? \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":"src/cook/package.rs"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"38b02792f9c19cafbca9e7af82120581c9e14af6b7d55b73988be07a79f840b7"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //TODO: use libgit? \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":"src/cook/fetch.rs"},"region":{"startLine":209}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d51c88df7c8a5498cb13f139a0948a2455d49a560f6b58b6a3a56c6a1a96874"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: RedoxFS has a race condition problem with \u0060--recursive\u0060 and running in multi CPU. \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":"src/cook/fetch.rs"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"440c11ef5bd530834ab9492b7f7230936bad92accac5705050b3bd8cd1eaa8a2"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //TODO: set upstream URL (is this needed?) \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":"src/cook/fetch.rs"},"region":{"startLine":299}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb853c317081a5d003192020bf9dbfbc2cf7299cdb3bb5d04e4fd7d39b927b20"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Reuse default branch name from get_git_remote_tracking? \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":"src/cook/fetch.rs"},"region":{"startLine":325}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b6a510ae08a72c688effada9bd82430b816e31dea4570025f312427c3bdcce3"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //TODO: set blake3 hash on the recipe with something like \u0022cook fix\u0022 \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":"src/cook/fetch.rs"},"region":{"startLine":413}}}],"partialFingerprints":{"codehealthFindingId/v1":"245c785d185a02abc398c8e0b64ce7dcae38c89dbbfab14b7cce5de7582504f6"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: This is a workaround, but as long as whole \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":"src/cook/fetch_repo.rs"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"3df28bf9fc5f5825fd32ed09c949b1d20eb6173a8126756f719bc8b83d37d278"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //TODO: pub(crate) for all of these functions \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":"src/cook/fs.rs"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"d154bff9e2afd16e1de21eb33af4072207ac25a5386f7c2d3715a61298027c26"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: General error rather than from PackageError? \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":"src/cook/fs.rs"},"region":{"startLine":266}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4eda12ebf328fa27a3ee91d4329c607340c7741e3ca807943ecb0e95828e9a0"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: incorrectly handle branch with slashes \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":"src/cook/fs.rs"},"region":{"startLine":591}}}],"partialFingerprints":{"codehealthFindingId/v1":"59aa0fada8225323fbb385a8539380573713401c1ba6dfda625a92e46fc9e8a9"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Handle manual \u0026 dependents \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":"src/cook/package.rs"},"region":{"startLine":272}}}],"partialFingerprints":{"codehealthFindingId/v1":"1987e469b1b754e29b98997e76ff919f4712b9aee57c2d855be9739083637b74"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Check if we need to inject remote key \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":"src/cook/package.rs"},"region":{"startLine":293}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7004772af541af5ca2e517986cee200515c9c642fe6d676b0413968a24f2383"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: check dirty build by checking source ident \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":"src/cook/tree.rs"},"region":{"startLine":334}}}],"partialFingerprints":{"codehealthFindingId/v1":"facff4592910fdafc014699c428ed4a5be5df59eb469c6b05bed11a62a3db46a"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: multibyte-aware line split? \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":"src/cook/tui.rs"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"998d6bdadb7db9abd986143788ad05ad1209bfe3e23f3165098e2e7ebbf28307"}},{"ruleId":"D20","level":"note","message":{"text":"No ADRs found: No ADRs found. No recognised ADR directory (\u0060docs/adr/\u0060, \u0060docs/decisions/\u0060, \u0060adr/\u0060, \u0060docs/rfcs/\u0060, an \u0060ADR0001/\u0060 folder, or their siblings) exists anywhere in this tree. What was searched, so you can tell an empty log from a search that missed one: every directory under the tree (build output, dependencies and VCS metadata excepted), for a document that is either any non-index page inside a recognised ADR directory, whatever its name and however deeply nested (\u0060docs/adr/use-postgres.md\u0060, \u0060docs/adr/2024/0001-x.md\u0060); or a file anywhere whose name is ADR-shaped (\u00600001-use-postgres.md\u0060, \u0060adr-012-caching.md\u0060); or, when neither turned anything up, a document carrying the decision-record signature (an \u0022Architecture Decision Record\u0022 heading, or Status / Context / Decision / Consequences as section headings). A decision log that clears none of these \u2014 unnumbered files outside any recognised directory, without those headings \u2014 is not seen by this check and this row is then wrong. If that is your case, say so rather than renaming anything; otherwise, consider recording architectural decisions in \u0060docs/adr/\u0060. ADRs are expected here because \u0060Cargo.toml\u0060 makes this repository a deployable product (line 10)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Cargo.toml"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3a1f320edebd162aecb630322055fab9fa4bd5274ac8a03cd339206970700a5"}},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"5e72d3671648b2428132bb1176a981b58da8336e7d8080fc2490cc460d95e88a"},"taxa":[{"id":"CWE-494","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"6ffb40c7c77d740c357bdd0ae218b4a75622ee95630b79eed0ca82ac9f4f93df"},"taxa":[{"id":"CWE-191","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-248","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A10:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"759d36a63e8483c4a467399ff199fa57fa2e02d89ef311720974588edb9516d4"},"properties":{"dependency":{"package":"anyhow","version":"1.0.102","advisory":"RUSTSEC-2026-0190","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.16.4","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":"d38736f2611cc8a68dd6d9310c78b5d2d83dfcca00f3553b710b7486c0d08717"},"properties":{"dependency":{"package":"ruzstd","version":"0.8.2","advisory":"RUSTSEC-2026-0344","reachability":{"kind":"unknown"}}}},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"cc682cd7167c2c692b624e54d299d32b2ea2b5b3eb72f5516f0dfab9c0ce991d"},"taxa":[{"id":"CICD-SEC-3","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"ace515990e7ee0f17b5c17e44dd168a5bdecf90804a3a3dd845cf05540978013"},"taxa":[{"id":"CICD-SEC-3","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"AC3","level":"warning","message":{"text":"Page without a main landmark: No \u003Cmain\u003E (or role=\u0022main\u0022) means no \u0022skip to content\u0022 target and a weaker landmark map. Wrap the primary content in \u003Cmain\u003E."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/web/files.html"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"561a5e3e6246cb8fc0eb732db0dbf3b6b288052fe5a561d3bd41eaa3103810c0"}},{"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":"P2","level":"warning","message":{"text":"No structured logging: No logging or diagnostics emission found. This repository ships a binary its users launch rather than a service you operate, so there is no operator to page \u2014 but when a run fails on a user\u0027s machine, neither they nor you have anything to read."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"9f10d71351c6778ebe84e761f82a90d4f9ed6c64f5e01975ede8fda7e4e2ebc5"}},{"ruleId":"P3","level":"note","message":{"text":"No SAST: No static application security testing detected. For this repository\u0027s stack, add cargo-audit / cargo-deny (or clippy) (or \u0060semgrep --config=auto\u0060, which runs on any language) as a CI step. What was searched, so you can tell an absence from a miss: the 1 CI workflow file(s) in this repository, and the scanner and linter configuration checked in beside them. A scan that runs outside CI, one configured in your forge\u0027s web UI rather than in a committed file, or a tool whose name is none of those this check carries, is not seen \u2014 if that is your case the row is wrong, and saying so is more useful than adding a second scanner."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"6e54424179c892f03ef2fd003130ac4bd43f39bbf3b1ca0a0143e25acb80ec87"}},{"ruleId":"P6","level":"note","message":{"text":"No changelog: No CHANGELOG/HISTORY/RELEASES file \u2014 what shipped when isn\u0027t easy to reconstruct for support or audit. (Versioning/tagging makes releases traceable, but a changelog records the what.)"},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"dda5aa5aed8cbb292c3ef2b733bc138f614293ae6426c85e98bf31ef330d9415"}}],"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-191","guid":"31b5d115-a84b-875f-a016-48689827db3c","name":"CWE-191","shortDescription":{"text":"CWE-191"},"helpUri":"https://cwe.mitre.org/data/definitions/191.html"},{"id":"CWE-248","guid":"64b58946-d244-a556-a48a-f82fcd4f4186","name":"Uncaught Exception","shortDescription":{"text":"Uncaught Exception"},"helpUri":"https://cwe.mitre.org/data/definitions/248.html"},{"id":"CWE-259","guid":"ae9ad959-fbb6-9d5e-892d-3dca66da0b69","name":"Use of Hard-coded Password","shortDescription":{"text":"Use of Hard-coded Password"},"helpUri":"https://cwe.mitre.org/data/definitions/259.html"},{"id":"CWE-494","guid":"b8a65e0d-e459-4a55-a931-fc1136482375","name":"Download of Code Without Integrity Check","shortDescription":{"text":"Download of Code Without Integrity Check"},"helpUri":"https://cwe.mitre.org/data/definitions/494.html"},{"id":"CWE-506","guid":"401d6455-56e3-0552-9a39-f77461673e3f","name":"Embedded Malicious Code","shortDescription":{"text":"Embedded Malicious Code"},"helpUri":"https://cwe.mitre.org/data/definitions/506.html"},{"id":"CWE-77","guid":"332c8ade-6612-9f56-a06b-d8d90b1a8750","name":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/77.html"},{"id":"CWE-78","guid":"2e31ceaf-c7ae-2e5e-9661-cfb1362789cf","name":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/78.html"},{"id":"CWE-79","guid":"fd45580b-e8c4-fc5e-8c2f-aa8fab0b4dbf","name":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)","shortDescription":{"text":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/79.html"},{"id":"CWE-798","guid":"5e8f057d-fee3-995a-a0cb-9fc5b0d174d1","name":"Use of Hard-coded Credentials","shortDescription":{"text":"Use of Hard-coded Credentials"},"helpUri":"https://cwe.mitre.org/data/definitions/798.html"},{"id":"CWE-89","guid":"6d08fdad-37eb-c150-bbf0-d7d946863407","name":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/89.html"},{"id":"CWE-937","guid":"16f316ae-415c-b354-a59b-1f7905f756e9","name":"Using Components with Known Vulnerabilities","shortDescription":{"text":"Using Components with Known Vulnerabilities"},"helpUri":"https://cwe.mitre.org/data/definitions/937.html"},{"id":"CWE-94","guid":"75e7f50c-6c2f-dd52-bf40-bf6c52b861fd","name":"Improper Control of Generation of Code (\u0027Code Injection\u0027)","shortDescription":{"text":"Improper Control of Generation of Code (\u0027Code Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/94.html"}]},{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61","version":"2025","organization":"OWASP Foundation","informationUri":"https://top10.owasp.org/2025/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10:2025 web application security risks."},"taxa":[{"id":"A03:2025","guid":"168e227c-7735-2e57-bc6e-997affe644c5","name":"Software Supply Chain Failures","shortDescription":{"text":"Software Supply Chain Failures"},"helpUri":"https://top10.owasp.org/2025/A03_2025-Software_Supply_Chain_Failures/"},{"id":"A05:2025","guid":"87e86033-3231-8458-8e4a-5cb82743553a","name":"Injection","shortDescription":{"text":"Injection"},"helpUri":"https://top10.owasp.org/2025/A05_2025-Injection/"},{"id":"A07:2025","guid":"334ddd78-539d-d35c-83dd-253647eb7eaf","name":"Authentication Failures","shortDescription":{"text":"Authentication Failures"},"helpUri":"https://top10.owasp.org/2025/A07_2025-Authentication_Failures/"},{"id":"A08:2025","guid":"84b0c297-710e-9a5f-9335-936ecb260c36","name":"Software or Data Integrity Failures","shortDescription":{"text":"Software or Data Integrity Failures"},"helpUri":"https://top10.owasp.org/2025/A08_2025-Software_or_Data_Integrity_Failures/"},{"id":"A10:2025","guid":"9ca3ab55-ca61-fd5e-b9ab-3dad2efa59d0","name":"Mishandling of Exceptional Conditions","shortDescription":{"text":"Mishandling of Exceptional Conditions"},"helpUri":"https://top10.owasp.org/2025/A10_2025-Mishandling_of_Exceptional_Conditions/"}]},{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35","organization":"OWASP Foundation","informationUri":"https://owasp.org/www-project-top-10-ci-cd-security-risks/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10 CI/CD Security Risks."},"taxa":[{"id":"CICD-SEC-3","guid":"458c83a6-ebf7-cf55-8cc3-b4d949bbf271","name":"Dependency Chain Abuse","shortDescription":{"text":"Dependency Chain Abuse"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-03-Dependency-Chain-Abuse"}]}],"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":7,"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."]}]}