{"$schema":"https://json.schemastore.org/sarif-2.1.0.json","version":"2.1.0","runs":[{"tool":{"driver":{"name":"codehealth","informationUri":"https://codehealth.canine.dev","rules":[{"id":"D1","name":"Cyclomatic Complexity","shortDescription":{"text":"Cyclomatic Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/D1"},{"id":"D2","name":"Cognitive Complexity","shortDescription":{"text":"Cognitive Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/D2"},{"id":"D3","name":"God Classes","shortDescription":{"text":"God Classes"},"helpUri":"https://codehealth.canine.dev/dimensions/D3"},{"id":"D4","name":"Code Duplication","shortDescription":{"text":"Code Duplication"},"helpUri":"https://codehealth.canine.dev/dimensions/D4"},{"id":"D5","name":"Coupling","shortDescription":{"text":"Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D5"},{"id":"D6","name":"Cohesion (LCOM4)","shortDescription":{"text":"Cohesion (LCOM4)"},"helpUri":"https://codehealth.canine.dev/dimensions/D6"},{"id":"D9","name":"Test Distribution","shortDescription":{"text":"Test Distribution"},"helpUri":"https://codehealth.canine.dev/dimensions/D9"},{"id":"D11","name":"Test Reliability","shortDescription":{"text":"Test Reliability"},"helpUri":"https://codehealth.canine.dev/dimensions/D11"},{"id":"D12","name":"Dependency Hygiene","shortDescription":{"text":"Dependency Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/D12"},{"id":"D13","name":"Secret Scanning","shortDescription":{"text":"Secret Scanning"},"helpUri":"https://codehealth.canine.dev/dimensions/D13","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"]}},{"id":"D15","name":"Churn \u00D7 Complexity Hotspots","shortDescription":{"text":"Churn \u00D7 Complexity Hotspots"},"helpUri":"https://codehealth.canine.dev/dimensions/D15"},{"id":"D16","name":"Bus Factor","shortDescription":{"text":"Bus Factor"},"helpUri":"https://codehealth.canine.dev/dimensions/D16"},{"id":"D17","name":"Explicit Debt","shortDescription":{"text":"Explicit Debt"},"helpUri":"https://codehealth.canine.dev/dimensions/D17"},{"id":"D19","name":"Documentation Quality","shortDescription":{"text":"Documentation Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D19"},{"id":"D20","name":"ADR Quality","shortDescription":{"text":"ADR Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D20"},{"id":"D21","name":"Naming Consistency","shortDescription":{"text":"Naming Consistency"},"helpUri":"https://codehealth.canine.dev/dimensions/D21"},{"id":"D22","name":"Internal API Consistency","shortDescription":{"text":"Internal API Consistency"},"helpUri":"https://codehealth.canine.dev/dimensions/D22"},{"id":"D26","name":"Project Cohesion","shortDescription":{"text":"Project Cohesion"},"helpUri":"https://codehealth.canine.dev/dimensions/D26"},{"id":"D28","name":"Secrets (history)","shortDescription":{"text":"Secrets (history)"},"helpUri":"https://codehealth.canine.dev/dimensions/D28","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"]}},{"id":"D29","name":"Static Analysis (SAST)","shortDescription":{"text":"Static Analysis (SAST)"},"helpUri":"https://codehealth.canine.dev/dimensions/D29","relationships":[{"target":{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-94","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-77","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-79","CWE-89","CWE-78","CWE-94","CWE-77"]}},{"id":"D30","name":"Dependency Vulnerabilities","shortDescription":{"text":"Dependency Vulnerabilities"},"helpUri":"https://codehealth.canine.dev/dimensions/D30","relationships":[{"target":{"id":"CWE-1395","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-937","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1395","CWE-937"]}},{"id":"D34","name":"Knowledge Freshness","shortDescription":{"text":"Knowledge Freshness"},"helpUri":"https://codehealth.canine.dev/dimensions/D34"},{"id":"D35","name":"Change Coupling","shortDescription":{"text":"Change Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D35"},{"id":"D36","name":"Supply-chain Provenance \u0026 Signing","shortDescription":{"text":"Supply-chain Provenance \u0026 Signing"},"helpUri":"https://codehealth.canine.dev/dimensions/D36","relationships":[{"target":{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-494","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1357","CWE-494"]}},{"id":"D43","name":"Malicious Dependencies","shortDescription":{"text":"Malicious Dependencies"},"helpUri":"https://codehealth.canine.dev/dimensions/D43","relationships":[{"target":{"id":"CWE-506","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-506"]}},{"id":"D44","name":"Platform End-of-Life","shortDescription":{"text":"Platform End-of-Life"},"helpUri":"https://codehealth.canine.dev/dimensions/D44"},{"id":"AX10","name":"Code composition","shortDescription":{"text":"Code composition"},"helpUri":"https://codehealth.canine.dev/dimensions/AX10"},{"id":"AX3","name":"Project dependency cycles","shortDescription":{"text":"Project dependency cycles"},"helpUri":"https://codehealth.canine.dev/dimensions/AX3"},{"id":"AX4","name":"Dependency direction","shortDescription":{"text":"Dependency direction"},"helpUri":"https://codehealth.canine.dev/dimensions/AX4"},{"id":"AX9","name":"CQS / query purity","shortDescription":{"text":"CQS / query purity"},"helpUri":"https://codehealth.canine.dev/dimensions/AX9"},{"id":"AXB2","name":"Runtime readiness","shortDescription":{"text":"Runtime readiness"},"helpUri":"https://codehealth.canine.dev/dimensions/AXB2"},{"id":"M1","name":"Documentation (README)","shortDescription":{"text":"Documentation (README)"},"helpUri":"https://codehealth.canine.dev/dimensions/M1"},{"id":"M2","name":"Architecture documentation","shortDescription":{"text":"Architecture documentation"},"helpUri":"https://codehealth.canine.dev/dimensions/M2"},{"id":"M3","name":"Folder \u0026 project structure","shortDescription":{"text":"Folder \u0026 project structure"},"helpUri":"https://codehealth.canine.dev/dimensions/M3"},{"id":"M4","name":"Documentation accuracy","shortDescription":{"text":"Documentation accuracy"},"helpUri":"https://codehealth.canine.dev/dimensions/M4"},{"id":"P1","name":"CI/CD gates","shortDescription":{"text":"CI/CD gates"},"helpUri":"https://codehealth.canine.dev/dimensions/P1"},{"id":"P12","name":"CI test-gate honesty","shortDescription":{"text":"CI test-gate honesty"},"helpUri":"https://codehealth.canine.dev/dimensions/P12"},{"id":"P2","name":"Observability","shortDescription":{"text":"Observability"},"helpUri":"https://codehealth.canine.dev/dimensions/P2"},{"id":"P3","name":"Security \u0026 performance tooling","shortDescription":{"text":"Security \u0026 performance tooling"},"helpUri":"https://codehealth.canine.dev/dimensions/P3"},{"id":"P4","name":"Deployment \u0026 Rollback","shortDescription":{"text":"Deployment \u0026 Rollback"},"helpUri":"https://codehealth.canine.dev/dimensions/P4"},{"id":"P6","name":"Release Hygiene","shortDescription":{"text":"Release Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/P6"},{"id":"PF3","name":"Async \u0026 latency hygiene","shortDescription":{"text":"Async \u0026 latency hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/PF3"},{"id":"SC1","name":"Supply-chain hygiene","shortDescription":{"text":"Supply-chain hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/SC1"},{"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":"zb_cli::commands::upgrade::execute (cyclomatic 38): zb_cli::commands::upgrade::execute has cyclomatic complexity 38 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"zb_cli/src/commands/upgrade.rs"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"44a28d6930cb539627e2be31714411b1eb00a5b1be5ec6639aa2689d627428f3"}},{"ruleId":"D1","level":"warning","message":{"text":"zb_io::extraction::patch::macos::patch_homebrew_placeholders (cyclomatic 34): zb_io::extraction::patch::macos::patch_homebrew_placeholders 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":"zb_io/src/extraction/patch/macos.rs"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"343b7e1055b8fba813190f2be841f6985998cb0cbb15a358a04021b0b10cd6ad"}},{"ruleId":"D1","level":"warning","message":{"text":"zb_cli::commands::install::execute_formula_plan (cyclomatic 29): zb_cli::commands::install::execute_formula_plan has cyclomatic complexity 29 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"zb_cli/src/commands/install.rs"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"66080f6562888b7c3131f149f3fbb047d8c7f8da611d77b72ea7739358286b33"}},{"ruleId":"D1","level":"warning","message":{"text":"zb_cli::commands::migrate::execute (cyclomatic 28): zb_cli::commands::migrate::execute has cyclomatic complexity 28 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"zb_cli/src/commands/migrate.rs"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b99c88b0b1df758071ae736d158a797f397a59170d0c29dff3f88a0abe30708"}},{"ruleId":"D1","level":"warning","message":{"text":"Downloader::download_with_racing (cyclomatic 24): Downloader::download_with_racing has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"zb_io/src/network/download/single.rs"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5d1196692dee35cf61bb3c4ee166d03a33628fd139f95df21bc9873f1db17b3"}},{"ruleId":"D1","level":"warning","message":{"text":"zb_io::extraction::patch::linux::patch_elf_placeholders (cyclomatic 24): zb_io::extraction::patch::linux::patch_elf_placeholders has cyclomatic complexity 24 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"zb_io/src/extraction/patch/linux.rs"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bad2ff194df192827b83df8014c81f77a500fd217c9ee3a5dac0c40b9e10c08"}},{"ruleId":"D1","level":"warning","message":{"text":"Installer::install_from_source (cyclomatic 21): Installer::install_from_source has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"zb_io/src/installer/install/source.rs"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"17d8103482d0b0d9e6a6feda4c4c4eaad28d4751b5d0f8f78fc27e3c044618f6"}},{"ruleId":"D1","level":"warning","message":{"text":"Installer::doctor (cyclomatic 20): Installer::doctor has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"zb_io/src/installer/install/doctor.rs"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"2964fda174d5b602299c97d64e3f70ce143d505ecb0e763acff6c1202e215fc1"}},{"ruleId":"D1","level":"warning","message":{"text":"zb_cli::commands::doctor::execute (cyclomatic 17): zb_cli::commands::doctor::execute has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"zb_cli/src/commands/doctor.rs"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ec24e1bb5ac163240b3cdb89d4a4942cd2a2a16c189949f4f467f9209787900"}},{"ruleId":"D1","level":"warning","message":{"text":"Error::fmt (cyclomatic 17): Error::fmt has cyclomatic complexity 17 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"zb_core/src/errors.rs"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"72b08c546dbac2d583087099130d07e2d7f86e129b05da83bc4a9b8fcbc839c9"}},{"ruleId":"D1","level":"warning","message":{"text":"Linker::link_recursive (cyclomatic 16): Linker::link_recursive 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":"zb_io/src/cellar/link.rs"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb0d36bb708337378edb7e246f9725c055660f4238c72f6e171bed924edfed36"}},{"ruleId":"D1","level":"warning","message":{"text":"zb_io::network::download::chunked::download_chunk (cyclomatic 16): zb_io::network::download::chunked::download_chunk 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":"zb_io/src/network/download/chunked.rs"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"9504c01786ebbab599e7273ac46f43bc19254205268dd16154ee25104b7ea3d8"}},{"ruleId":"D2","level":"warning","message":{"text":"zb_io::extraction::patch::macos::patch_homebrew_placeholders (cognitive 55): zb_io::extraction::patch::macos::patch_homebrew_placeholders has cognitive complexity 55 (threshold 15). Drivers by points: if/else 25 (41 pts), boolean chains 9, loops 2 (4 pts), match/switch 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":"zb_io/src/extraction/patch/macos.rs"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"adc73096d6abe9545396f30b01ac131f93a8ba21fce02b7d0eb85ba870612834"}},{"ruleId":"D2","level":"warning","message":{"text":"zb_cli::commands::upgrade::execute (cognitive 53): zb_cli::commands::upgrade::execute has cognitive complexity 53 (threshold 15). Drivers by points: if/else 20 (36 pts), loops 6 (9 pts), match/switch 3 (6 pts), boolean chains 2 (nesting depth added 22). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"zb_cli/src/commands/upgrade.rs"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b9d439825354926ef7f1c9659d02737d7615b1b4942e483cb5a7798d23884bc"}},{"ruleId":"D2","level":"warning","message":{"text":"zb_io::network::download::chunked::download_chunk (cognitive 44): zb_io::network::download::chunked::download_chunk has cognitive complexity 44 (threshold 15). Drivers by points: if/else 9 (29 pts), match/switch 3 (10 pts), loops 2 (4 pts), boolean chains 1 (nesting depth added 29). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"zb_io/src/network/download/chunked.rs"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"c81df71ad2378ae58debdaeded530f54b0daa7778127e9d791c58d0b72f28eee"}},{"ruleId":"D2","level":"warning","message":{"text":"Linker::link_recursive (cognitive 43): Linker::link_recursive has cognitive complexity 43 (threshold 15). Drivers by points: if/else 18 (41 pts), boolean chains 1, loops 1 (nesting depth added 23). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"zb_io/src/cellar/link.rs"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"81efc1d523af2fad98799d9fa8f6ba2dd7761e2b9b79648190c24104c96baa63"}},{"ruleId":"D2","level":"warning","message":{"text":"Downloader::download_with_racing (cognitive 42): Downloader::download_with_racing has cognitive complexity 42 (threshold 15). Drivers by points: if/else 13 (24 pts), loops 5 (8 pts), match/switch 4 (8 pts), boolean chains 2 (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"zb_io/src/network/download/single.rs"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c6412bc12318486f088ef0b470cb3aeff25f4410d8267507f4990f52abf9f33"}},{"ruleId":"D2","level":"warning","message":{"text":"zb_cli::commands::install::execute_formula_plan (cognitive 40): zb_cli::commands::install::execute_formula_plan has cognitive complexity 40 (threshold 15). Drivers by points: if/else 15 (30 pts), loops 4 (7 pts), match/switch 2, boolean chains 1 (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"zb_cli/src/commands/install.rs"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ccbbd213656e05cd27ba0e513df4d747f8ea6db61df5e000f8024dca804c7d5"}},{"ruleId":"D2","level":"warning","message":{"text":"Installer::install_from_source (cognitive 35): Installer::install_from_source has cognitive complexity 35 (threshold 15). Drivers by points: if/else 12 (23 pts), loops 2 (5 pts), match/switch 2 (4 pts), boolean chains 3 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"zb_io/src/installer/install/source.rs"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f80887de6f2143e9b98661c4d6f46e758b2fde9d9ed1118d9450150f35b941e"}},{"ruleId":"D2","level":"warning","message":{"text":"zb_cli::commands::migrate::execute (cognitive 34): zb_cli::commands::migrate::execute has cognitive complexity 34 (threshold 15). Drivers by points: if/else 15 (17 pts), loops 7 (12 pts), boolean chains 4, match/switch 1 (nesting depth added 7). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"zb_cli/src/commands/migrate.rs"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3b54a41c22c3bb3a673b6117160058c6306a1cbcc5736901a7e252d225c746c"}},{"ruleId":"D2","level":"warning","message":{"text":"Linker::collect_conflicts (cognitive 34): Linker::collect_conflicts has cognitive complexity 34 (threshold 15). Drivers by points: if/else 12 (31 pts), boolean chains 1, loops 1, match/switch 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":"zb_io/src/cellar/link.rs"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf38070bdaac38d3c26b1497eb4f9e180884067faf15b1406d842db47f8032a2"}},{"ruleId":"D2","level":"warning","message":{"text":"zb_cli::commands::reset::execute (cognitive 33): zb_cli::commands::reset::execute has cognitive complexity 33 (threshold 15). Drivers by points: if/else 12 (26 pts), loops 2 (4 pts), boolean chains 2, match/switch 1 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"zb_cli/src/commands/reset.rs"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0e43a4c9667ce0ae8bab411852d71f40574af5eed7d539e2a823860503720b8"}},{"ruleId":"D2","level":"warning","message":{"text":"zb_io::extraction::patch::linux::patch_elf_placeholders (cognitive 33): zb_io::extraction::patch::linux::patch_elf_placeholders has cognitive complexity 33 (threshold 15). Drivers by points: if/else 20 (26 pts), boolean chains 5, match/switch 2 (nesting depth added 6). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"zb_io/src/extraction/patch/linux.rs"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"61c6ce992f656232adf310018cd3173b6a02ef7e2e3c0fc7453ab49c530d4571"}},{"ruleId":"D2","level":"warning","message":{"text":"Installer::doctor (cognitive 31): Installer::doctor has cognitive complexity 31 (threshold 15). Drivers by points: if/else 8 (18 pts), loops 8 (10 pts), boolean chains 3 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"zb_io/src/installer/install/doctor.rs"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a9224c53afe3c2fa2b45d1d89d38860bcb2211a05e50ed0880f1b1f718a9ebd"}},{"ruleId":"D2","level":"warning","message":{"text":"Installer::check_outdated (cognitive 27): Installer::check_outdated has cognitive complexity 27 (threshold 15). Drivers by points: if/else 8 (16 pts), match/switch 3 (8 pts), loops 2, boolean chains 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"zb_io/src/installer/install/outdated.rs"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c2f9a70adcfcd66118e5a8d48fc7a9b99a759c65cbf3caefaf27c9a8dac056b"}},{"ruleId":"D2","level":"warning","message":{"text":"ApiClient::get_tap_formula (cognitive 25): ApiClient::get_tap_formula has cognitive complexity 25 (threshold 15). Drivers by points: if/else 6 (14 pts), loops 3 (6 pts), match/switch 1 (4 pts), boolean chains 1 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"zb_io/src/network/api.rs"},"region":{"startLine":515}}}],"partialFingerprints":{"codehealthFindingId/v1":"37f1fe78d956e0cd6be7f7d9d629cb34d4c896f24a7cfa4561ed786b2e34cae0"}},{"ruleId":"D2","level":"warning","message":{"text":"zb_io::network::tap_formula::resolve_on_platform_blocks_inner (cognitive 25): zb_io::network::tap_formula::resolve_on_platform_blocks_inner has cognitive complexity 25 (threshold 15). Drivers by points: if/else 7 (15 pts), loops 3 (8 pts), boolean chains 2 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"zb_io/src/network/tap_formula.rs"},"region":{"startLine":237}}}],"partialFingerprints":{"codehealthFindingId/v1":"374f2f93157bc6967bfb2e27da5185d40a109cfb674727e11bf48fe299818505"}},{"ruleId":"D2","level":"warning","message":{"text":"zb_io::network::download::auth::fetch_range_response_internal (cognitive 24): zb_io::network::download::auth::fetch_range_response_internal has cognitive complexity 24 (threshold 15). Drivers by points: if/else 6 (16 pts), match/switch 2 (6 pts), boolean chains 1, loops 1 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"zb_io/src/network/download/auth.rs"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"55815855a1273fd628ad14acfdafca17b3cd5a2d3949c3b3d5818154656d1f27"}},{"ruleId":"D2","level":"warning","message":{"text":"zb_cli::init::add_to_path (cognitive 22): zb_cli::init::add_to_path has cognitive complexity 22 (threshold 15). Drivers by points: if/else 14 (18 pts), match/switch 3 (4 pts) (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"zb_cli/src/init.rs"},"region":{"startLine":246}}}],"partialFingerprints":{"codehealthFindingId/v1":"85f0abcd4414a668dd75852ffbf0e6abd523a9d07a05924859d6bd7c2cd0e24b"}},{"ruleId":"D2","level":"warning","message":{"text":"Installer::fetch_all_formulas_best_effort (cognitive 22): Installer::fetch_all_formulas_best_effort has cognitive complexity 22 (threshold 15). Drivers by points: if/else 3 (9 pts), loops 4 (8 pts), match/switch 1 (3 pts), boolean chains 2 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: one other method here (Installer::fetch_all_formulas) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"zb_io/src/installer/install/plan.rs"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d5990d695627a1f5db182b4c3f29c33d5b10f614901bbe700656ffb071059b6"}},{"ruleId":"D2","level":"warning","message":{"text":"Installer::fetch_all_formulas (cognitive 22): Installer::fetch_all_formulas has cognitive complexity 22 (threshold 15). Drivers by points: if/else 3 (9 pts), loops 4 (8 pts), match/switch 1 (3 pts), boolean chains 2 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: one other method here (Installer::fetch_all_formulas_best_effort) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"zb_io/src/installer/install/plan.rs"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"603719ad5ea87fa6aac798a1ae2d0980639feb021dbf0810045d9c28c48788a7"}},{"ruleId":"D2","level":"warning","message":{"text":"Installer::execute_inner (cognitive 21): Installer::execute_inner has cognitive complexity 21 (threshold 15). Drivers by points: match/switch 3 (9 pts), if/else 6 (8 pts), loops 2 (3 pts), boolean chains 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"zb_io/src/installer/install/mod.rs"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"273be5a1d1242bc6ab23a10e6282cb14cedd21efe3d667a5a9f9a9679bd77102"}},{"ruleId":"D2","level":"warning","message":{"text":"zb_io::extraction::patch::macos::patch_macho_binary_strings (cognitive 21): zb_io::extraction::patch::macos::patch_macho_binary_strings has cognitive complexity 21 (threshold 15). Drivers by points: if/else 7 (13 pts), boolean chains 3, loops 2 (3 pts), match/switch 1 (2 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"zb_io/src/extraction/patch/macos.rs"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d452d2e44d26895bb7442a931455a5e8a58f74dd1385870c68d10499c39d7d9"}},{"ruleId":"D2","level":"warning","message":{"text":"zb_cli::init::run_init (cognitive 20): zb_cli::init::run_init has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9 (14 pts), loops 2 (4 pts), boolean chains 1, match/switch 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"zb_cli/src/init.rs"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"e398e12ccad249274ee3eb079e6dcd117087c765fcc3c3a425843e172d1b1747"}},{"ruleId":"D2","level":"warning","message":{"text":"zb_io::extraction::patch::linux::detect_zerobrew_glibc (cognitive 20): zb_io::extraction::patch::linux::detect_zerobrew_glibc has cognitive complexity 20 (threshold 15). Drivers by points: if/else 6 (9 pts), match/switch 3 (6 pts), loops 2 (3 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":"zb_io/src/extraction/patch/linux.rs"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2c55dab617c54efef24840884ad6d2036925d9d8e0f102e2070edc66bf0518b"}},{"ruleId":"D2","level":"warning","message":{"text":"Linker::unlink_recursive (cognitive 19): Linker::unlink_recursive has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (15 pts), boolean chains 3, loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"zb_io/src/cellar/link.rs"},"region":{"startLine":447}}}],"partialFingerprints":{"codehealthFindingId/v1":"54163c11b71257be1e612c9b582a6565ac5c5d47e30fc6e865a3835ec7829fd6"}},{"ruleId":"D2","level":"warning","message":{"text":"Installer::plan_best_effort (cognitive 19): Installer::plan_best_effort has cognitive complexity 19 (threshold 15). Drivers by points: if/else 5 (9 pts), match/switch 2 (6 pts), loops 2 (4 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"zb_io/src/installer/install/plan.rs"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"07b9ad30b136908b016b3f02079f8c3aed4eb5a685a25f7b5d5e848ac58afc77"}},{"ruleId":"D2","level":"warning","message":{"text":"zb_cli::commands::install::execute (cognitive 18): zb_cli::commands::install::execute has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (9 pts), loops 2 (5 pts), match/switch 2 (4 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"zb_cli/src/commands/install.rs"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce25089d14432eecb1813c411b385f8a7c371abce14233ca0e2e763bfdde918a"}},{"ruleId":"D2","level":"warning","message":{"text":"zb_cli::commands::doctor::execute (cognitive 18): zb_cli::commands::doctor::execute has cognitive complexity 18 (threshold 15). Drivers by points: if/else 12 (13 pts), loops 5 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"zb_cli/src/commands/doctor.rs"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8e692bad59209de56d643914da21c338a789aa33b7e9afc20902fd964d0aaf5"}},{"ruleId":"D2","level":"warning","message":{"text":"zb_cli::commands::uninstall::execute (cognitive 17): zb_cli::commands::uninstall::execute has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (8 pts), loops 3 (6 pts), match/switch 1 (3 pts) (nesting depth added 6). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"zb_cli/src/commands/uninstall.rs"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"97d7ddeeaf27c4854d57049c6c1637b8f9c79017150041de433fb4017036d180"}},{"ruleId":"D2","level":"warning","message":{"text":"Linker::collect_conflicts_merged (cognitive 17): Linker::collect_conflicts_merged has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (13 pts), boolean chains 2, loops 1, match/switch 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"zb_io/src/cellar/link.rs"},"region":{"startLine":266}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd2975246d69eda8b70cbcbc34271514cd59e3d7c5549a8522a935b6bf547b36"}},{"ruleId":"D2","level":"warning","message":{"text":"Linker::collect_linked_recursive (cognitive 17): Linker::collect_linked_recursive has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (14 pts), boolean chains 2, loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"zb_io/src/cellar/link.rs"},"region":{"startLine":482}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2f8b531335fb9ba3c5bcc05c71afed8ccb3fcdf60517984004daca639aaefb9"}},{"ruleId":"D2","level":"warning","message":{"text":"Linker::is_linked (cognitive 16): Linker::is_linked has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (14 pts), loops 1 (2 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"zb_io/src/cellar/link.rs"},"region":{"startLine":568}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2763d12d8cb8a8d561996a1c38eccc4bb74e60c0b8062b1178e93fc6b22db6b"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: zb_cli::init::add_to_path: FunctionTooLong \u2014 zb_cli::init::add_to_path runs 213 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 113 over it, 2.13\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"zb_cli/src/init.rs"},"region":{"startLine":246}}}],"partialFingerprints":{"codehealthFindingId/v1":"208ef23ad3efd0eecc12dd4d1d3a026b0bbbec0131bcc925b1b1a253d62a7d94"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: zb_cli::commands::migrate::execute: FunctionTooLong \u2014 zb_cli::commands::migrate::execute runs 162 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 62 over it, 1.62\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"zb_cli/src/commands/migrate.rs"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"980c1f94bc841d8615c6ded4f1a406151ee3a01d82df724e67c94c56c5bcdc09"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: zb_cli::commands::upgrade::execute: FunctionTooLong \u2014 zb_cli::commands::upgrade::execute runs 152 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 52 over it, 1.52\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"zb_cli/src/commands/upgrade.rs"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"72068fbfd509460e235acb42f16fa02eed0acc05ed55ba2860ab0402111f2ffc"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: zb_io::extraction::patch::macos::patch_homebrew_placeholders: FunctionTooLong \u2014 zb_io::extraction::patch::macos::patch_homebrew_placeholders runs 139 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 39 over it, 1.39\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"zb_io/src/extraction/patch/macos.rs"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"045c91b2506a50d1e86bbcb69b857aeea2d52890f4e23b4a09fd07e063fc3161"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Downloader.download_with_racing: MethodTooLong \u2014 download_with_racing runs 139 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 39 over it, 1.39\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"zb_io/src/network/download/single.rs"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"e498b5abcaafd31967bc9049cb2e9a53f6323bc37e28ce98dbeb295293917dd1"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: zb_io::network::download::chunked::download_with_chunks: FunctionTooLong \u2014 zb_io::network::download::chunked::download_with_chunks runs 129 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 29 over it, 1.29\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"zb_io/src/network/download/chunked.rs"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"903a07d4f345300aa06628c335201a61c57efd581fa7958e4436f63bd39aed84"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Installer: TooManyMethods \u2014 38 methods, declared across 8 files: install/mod.rs (12), install/plan.rs (6), install/bottle.rs (5), install/source.rs (5), \u002B4 more file(s). The bar is 30 methods; this is 8 over it, 1.27\u00D7 the bar. That list is where to read them, not a suggestion to split the file: the members belong to the type wherever they are declared, so moving them between files leaves the count unchanged. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"zb_io/src/installer/install/mod.rs"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"c29595baf6e40c3b78a8daa9e7680126a03e2221417f64e231582c9919da5e3c"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: zb_cli::commands::install::execute_formula_plan: FunctionTooLong \u2014 zb_cli::commands::install::execute_formula_plan runs 124 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 24 over it, 1.24\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"zb_cli/src/commands/install.rs"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"f78dc364e7f6bb880600ccc4a92f47723179a3db8590ad3ec0504ada674f6279"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: zb_cli::commands::doctor::execute: FunctionTooLong \u2014 zb_cli::commands::doctor::execute runs 114 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 14 over it, 1.14\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"zb_cli/src/commands/doctor.rs"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5bde0c753658149609ed28cdd9cdaf463fd93d0ab7ed23deaa75addeeefa886"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: zb_io::extraction::patch::linux::patch_elf_placeholders: FunctionTooLong \u2014 zb_io::extraction::patch::linux::patch_elf_placeholders runs 110 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 10 over it, 1.10\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"zb_io/src/extraction/patch/linux.rs"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"20c4609619451d454ba8bab9612811c7efd7c51bb0b905bc5805c0bbbab8eba3"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: zb_cli::init::run_init: FunctionTooLong \u2014 zb_cli::init::run_init runs 105 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 5 over it, 1.05\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"zb_cli/src/init.rs"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"10a06f60b64a80a6c91ffe612501f2468e635bd5c63d54e6830c5684a78d3226"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Installer.install_from_source: MethodTooLong \u2014 install_from_source runs 105 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 5 over it, 1.05\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"zb_io/src/installer/install/source.rs"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3c5650d9b3170706ac958350c969d1211fc97a30a5c7fdf2d462352a41b9203"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (7 members, 50\u002B identical tokens): zb_io/src/cellar/link.rs:201-261 | zb_io/src/cellar/link.rs:328-420 | zb_io/src/cellar/link.rs:447-480 | zb_io/src/cellar/link.rs:482-517 | zb_io/src/cellar/link.rs:519-538 | zb_io/src/cellar/link.rs:540-566 | zb_io/src/cellar/link.rs:568-589 \u2014 These 7 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 7 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 7 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"zb_io/src/cellar/link.rs"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6bae467afab19f184c39c7934bec0bd38628c52784504339648e0955278ad9b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): zb_io/src/installer/install/plan.rs:141-165 | zb_io/src/installer/install/plan.rs:212-236 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"zb_io/src/installer/install/plan.rs"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"d141812600fcca8b88acf57225dd938606c180b7a4f83790d79d9fbb1dc593fb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): zb_io/src/network/api.rs:326-342 | zb_io/src/network/api.rs:360-376 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"zb_io/src/network/api.rs"},"region":{"startLine":326}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fa0b1d51a1ca30b3a50ce974a803028060bdbc4b268d7cec6d95d5a67ab77e7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201315 lines \u00D7 2): zb_io/src/cellar/link.rs:207-221 | zb_io/src/cellar/link.rs:336-347 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"zb_io/src/cellar/link.rs"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"0063be20bfd54a64aa54506b76e8ce24db3253c03ff8ec5d3385ee852bb1e51f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): zb_io/src/network/tap_formula.rs:547-561 | zb_io/src/network/tap_formula.rs:601-615 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"zb_io/src/network/tap_formula.rs"},"region":{"startLine":547}}}],"partialFingerprints":{"codehealthFindingId/v1":"df88dc22ea4283bb3c2a6f6e617455cc2a212d19567b69f222319263d5bba079"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): zb_io/src/cellar/link.rs:202-213 | zb_io/src/cellar/link.rs:272-283 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"zb_io/src/cellar/link.rs"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c9e88a59535982c5bece6897f4b19b94a196acd24e6700562294c992ec941bb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): zb_io/src/network/cache.rs:53-64 | zb_io/src/storage/db.rs:76-87 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"zb_io/src/network/cache.rs"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"40329f2310d2f5efa2d59455d6c800cd7f4515cabf5476f0fadf0a968cb6a797"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): zb_cli/src/init.rs:151-160 | zb_cli/src/init.rs:163-172 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"zb_cli/src/init.rs"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"51ed05d27073e17485f836b6fbb6a033b74d3ee1eb3269c472525f3e26d09ceb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): zb_cli/src/commands/install.rs:130-139 | zb_cli/src/commands/upgrade.rs:84-93 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"zb_cli/src/commands/install.rs"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"148646c2bff593d24be483c8310ed65266dff4106f9bb94a1fa088b9ae782bc3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): zb_io/src/network/tap_formula.rs:425-434 | zb_io/src/network/tap_formula.rs:451-460 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"zb_io/src/network/tap_formula.rs"},"region":{"startLine":425}}}],"partialFingerprints":{"codehealthFindingId/v1":"68ef546865dabe110f4978af685b9a55c03b6ae26e0e50cd86c754bcb405cc9a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): zb_io/src/network/tap_formula.rs:536-545 | zb_io/src/network/tap_formula.rs:590-599 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"zb_io/src/network/tap_formula.rs"},"region":{"startLine":536}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7c8ab8b183a8ffc3f3ff0d9bef76284356fd443a28718cebfe63ccb6a97db5d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 2): zb_io/src/storage/store.rs:63-72 | zb_io/src/storage/store.rs:104-112 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"zb_io/src/storage/store.rs"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"ded1f3780b420bf79834d864c1e96dab061e4dbf2c97747cde8ee45580c7fe53"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): zb_io/src/cellar/link.rs:464-472 | zb_io/src/cellar/link.rs:499-507 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"zb_io/src/cellar/link.rs"},"region":{"startLine":464}}}],"partialFingerprints":{"codehealthFindingId/v1":"7cd749a6fc71e31dd4274b44bdd3ee69f28a56ab0a090533ffbbf604a3c34ce6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): zb_io/src/network/download/auth.rs:93-101 | zb_io/src/network/download/chunked.rs:156-164 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"zb_io/src/network/download/auth.rs"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"3330fa46218904cc0fbb9b882a0cbfef478df697e43e4a084eca14ccfa703eea"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): zb_io/src/extraction/patch/macos.rs:75-83 | zb_io/src/extraction/patch/macos.rs:102-110 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"zb_io/src/extraction/patch/macos.rs"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"c916bdc8330a3788b42d927fba1a2b70b767427a5ee72154aa54b371ef68dad0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): zb_io/src/cellar/link.rs:334-341 | zb_io/src/cellar/link.rs:487-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"zb_io/src/cellar/link.rs"},"region":{"startLine":334}}}],"partialFingerprints":{"codehealthFindingId/v1":"42042ce760e9151a3637a235daf337619bcf74d4edd8b78564b9545181b9180a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): zb_io/src/cellar/link.rs:236-242 | zb_io/src/cellar/link.rs:367-373 | zb_io/src/cellar/link.rs:549-555 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"zb_io/src/cellar/link.rs"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"e17cec505e4ad569b4f2bb66dd71799f76dd8057ddcc955772b60c21978dfcb3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): zb_io/src/extraction/patch/linux.rs:322-328 | zb_io/src/extraction/patch/macos.rs:290-296 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"zb_io/src/extraction/patch/linux.rs"},"region":{"startLine":322}}}],"partialFingerprints":{"codehealthFindingId/v1":"e13afb429e09b177dfee5f46b0ba330ae5ea91b0f2213e7a2e7f6ab414d457fe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 7): zb_io/src/cellar/link.rs:237-242 | zb_io/src/cellar/link.rs:368-373 | zb_io/src/cellar/link.rs:467-472 | zb_io/src/cellar/link.rs:502-507 | zb_io/src/cellar/link.rs:526-531 | zb_io/src/cellar/link.rs:550-555 | zb_io/src/cellar/link.rs:576-581 \u2014 all 7 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"zb_io/src/cellar/link.rs"},"region":{"startLine":237}}}],"partialFingerprints":{"codehealthFindingId/v1":"0021969c1c2581675453159679fa50c9fa7c4ca3dadfc4f8db6a68e4ddb90113"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): zb_io/src/cellar/link.rs:448-453 | zb_io/src/cellar/link.rs:483-488 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"zb_io/src/cellar/link.rs"},"region":{"startLine":448}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c8f2a29758817d1f0a8adc2b35596d58554f7e5ab2f8827cec29c3818f6ef89"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): zb_io/src/network/tap_formula.rs:238-243 | zb_io/src/network/tap_formula.rs:292-297 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"zb_io/src/network/tap_formula.rs"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"b555fcef4ff19b5771adb447afc3d7f0d59c6bcbb6bf9f623767e92217666fd0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): zb_cli/src/commands/migrate.rs:122-133 | zb_cli/src/commands/migrate.rs:215-226 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"zb_cli/src/commands/migrate.rs"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"599e4c2543283481ca3f179c5c537590db3be8065ec746045cd4433da445dc2f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): zb_io/src/network/tap_formula.rs:437-448 | zb_io/src/network/tap_formula.rs:462-473 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"zb_io/src/network/tap_formula.rs"},"region":{"startLine":437}}}],"partialFingerprints":{"codehealthFindingId/v1":"7cc1a05c08ed40f79755531172a3f588277fa93d70254dea264aab3e29a25df4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): zb_io/src/cellar/materialize.rs:55-64 | zb_io/src/cellar/materialize.rs:71-80 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"zb_io/src/cellar/materialize.rs"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a5678a126f9ff64b2d6e6933a1bf6db1660a69a83624084a4052cc61a29f9ba"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): zb_cli/src/commands/install.rs:200-207 | zb_cli/src/commands/upgrade.rs:159-166 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"zb_cli/src/commands/install.rs"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"f533c111ad3a6f98bfd1b84fee7b71f47c21644be4ebf1515733f7d4b6c0441e"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: zb_core: zb_core: abstractness 0.00, instability 0.00, distance 1.00 \u2014 zone of pain \u2014 concrete and depended on by 2 project(s), so it\u0027s rigid to change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"c7e15eba44a3747ca908f401349f9d047558e3fb78627fbdfadf85033c8de30d"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #1: If anonymized user #1 becomes unavailable, 13 significant file(s) lose their only recent owner: zb_io/src/network/download/chunked.rs, zb_io/src/installer/install/plan.rs, zb_io/src/network/download/single.rs, zb_io/src/cellar/materialize.rs, zb_io/src/network/download/parallel.rs, zb_io/src/installer/install/doctor.rs, zb_core/src/build/plan.rs, zb_io/src/build/environment.rs (\u002B5 more). Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"4b7040f5c9ca55a044a21255dcb916d2317d9d718ba0938a450754a0ede1318f"}},{"ruleId":"D16","level":"note","message":{"text":"Further sole-owners (lower concentration): 2 other contributor(s) are each the sole owner of a small amount of code below the off-boarding threshold \u2014 folded into the bus-factor score and metrics (15 single-owned of 50 analysed files in total, counted over production source files of roughly 2,400 bytes or more, excluding vendored, generated and example/demo trees and test files identified by path convention, largest first; 50 of the 75 production source files in this repository met that bar). They are anonymized user #2 (1 file(s)), anonymized user #3 (1 file(s)) \u2014 spread or document their files in the same way, at lower priority than the named off-boarding risks above."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"6eac528f2429e724e1a97ed868f79eefbcf1888dab4af9a9e673429369bb5b2f"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // Return just the first error up. TODO: don\u0027t return errors from this fn? \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":"zb_cli/src/commands/uninstall.rs"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ecbd148fb8bceec3e25eb63480cde594bdd17921021024704e440b399f44eaf"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Abstract this return type to a more structured type (e.g., 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":"zb_cli/src/commands/migrate.rs"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"83b02e932c19c2639de09b627af902e6427ee6c38765fd9520f8df1cbf115259"}},{"ruleId":"D20","level":"note","message":{"text":"No ADRs found: No ADRs found. No recognised ADR directory (\u0060docs/adr/\u0060, \u0060docs/decisions/\u0060, \u0060adr/\u0060, \u0060docs/rfcs/\u0060, an \u0060ADR0001/\u0060 folder, or their siblings) exists anywhere in this tree. What was searched, so you can tell an empty log from a search that missed one: every directory under the tree (build output, dependencies and VCS metadata excepted), for a document that is either any non-index page inside a recognised ADR directory, whatever its name and however deeply nested (\u0060docs/adr/use-postgres.md\u0060, \u0060docs/adr/2024/0001-x.md\u0060); or a file anywhere whose name is ADR-shaped (\u00600001-use-postgres.md\u0060, \u0060adr-012-caching.md\u0060); or, when neither turned anything up, a document carrying the decision-record signature (an \u0022Architecture Decision Record\u0022 heading, or Status / Context / Decision / Consequences as section headings). A decision log that clears none of these \u2014 unnumbered files outside any recognised directory, without those headings \u2014 is not seen by this check and this row is then wrong. If that is your case, say so rather than renaming anything; otherwise, consider recording architectural decisions in \u0060docs/adr/\u0060."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"d2bea044ff79d7d275f5a91a6e2f548586178eaf480274c33960ad020c854631"}},{"ruleId":"D22","level":"warning","message":{"text":"Signature mismatch in parameter type. \u0060download_all\u0060 takes a single \u0060DownloadRequest\u0060 (likely a typo for a slice or vec), while \u0060download_all_with_progress\u0060 also takes a single \u0060DownloadRequest\u0060. However, the method name \u0060download_all\u0060 implies multiple items, and the other method \u0060download_single\u0060 takes a single item. It is highly probable that \u0060download_all\u0060 should accept a collection (e.g., \u0060\u0026[DownloadRequest]\u0060) to be consistent with the semantic intent of \u0027all\u0027 and to match the pattern of \u0060download_all_with_progress\u0060 if it also intends to handle multiple, or if \u0060download_all_with_progress\u0060 is the correct multi-item handler, \u0060download_all\u0060 is ambiguous. More critically, looking at \u0060download_single\u0060, it takes a single request. If \u0060download_all\u0060 is meant to take multiple, the type \u0060DownloadRequest\u0060 is likely incorrect (should be a slice/vec). If it takes a single request, it is redundant with \u0060download_single\u0060 but without progress, which is a minor inconsistency in naming vs utility. Given \u0060download_all_with_progress\u0060 exists, \u0060download_all\u0060 likely intends to be the non-progress multi-download, but the type signature \u0060DownloadRequest\u0060 (singular) contradicts the name \u0060all\u0060.: Clarify if \u0060download_all\u0060 is intended for single or multiple requests. If multiple, change parameter to \u0060\u0026[DownloadRequest]\u0060. If single, rename to \u0060download\u0060 or \u0060download_simple\u0060 to distinguish from \u0060download_single\u0060 and \u0060download_all_with_progress\u0060. (signatures: zb_io.network.download.parallel.ParallelDownloader.download_all(requests: DownloadRequest): Result | zb_io.network.download.parallel.ParallelDownloader.download_all_with_progress(requests: DownloadRequest, progress: DownloadProgressCallback): Result)"},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"b15968863537c345786728714447cb8a36638fa7ae0db15f87ff0f2ac42c35bd"}},{"ruleId":"D22","level":"warning","message":{"text":"Inconsistent naming convention for progress variants. \u0060ParallelDownloader\u0060 uses \u0060download_all_with_progress\u0060, while \u0060Downloader\u0060 uses \u0060download_with_progress\u0060. While the scope differs (all vs single), the prefix \u0060with_progress\u0060 is used in one and implied/absent in the other\u0027s base method. More importantly, \u0060ParallelDownloader\u0060 has \u0060download_single\u0060 and \u0060download_all_with_progress\u0060, but lacks a \u0060download_single_with_progress\u0060 or a generic \u0060download_with_progress\u0060 that handles single items, creating an asymmetry in the API surface between the two downloader implementations.: Standardize the naming of progress-enabled methods. Either use \u0060download_with_progress\u0060 for both single and multi (overloaded or distinct names like \u0060download_with_progress\u0060 and \u0060download_all_with_progress\u0060) or ensure both classes have symmetric \u0060download\u0060 and \u0060download_with_progress\u0060 pairs. (signatures: zb_io.network.download.single.Downloader.download(url: str, expected_sha256: str): Result | zb_io.network.download.single.Downloader.download_with_progress(url: str, expected_sha56: str, name: String, progress: DownloadProgressCallback): Result)"},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"4fe1f4619127ae2dc3a815bece52ef163e520ec82ad396a0e9ff7f959da19af7"}},{"ruleId":"D22","level":"warning","message":{"text":"Inconsistent return type naming and intent. \u0060get_formula\u0060 likely returns a single \u0060Formula\u0060 or \u0060Result\u003CFormula\u003E\u0060, while \u0060get_all_formulas_raw\u0060 returns raw data. The naming \u0060get_all_formulas_raw\u0060 is verbose and inconsistent with \u0060get_formula\u0060. If \u0060get_formula\u0060 returns a parsed object, \u0060get_all_formulas\u0060 should likely return a collection of parsed objects, or \u0060get_all_formulas_raw\u0060 should be renamed to \u0060get_all_formulas\u0060 if it returns parsed data, or \u0060get_formula_raw\u0060 if it returns raw data. The current mix of \u0027raw\u0027 and non-\u0027raw\u0027 suggests an inconsistency in whether the API returns parsed or raw data.: Align naming and return types. If both return parsed data, use \u0060get_formula\u0060 and \u0060get_all_formulas\u0060. If both return raw data, use \u0060get_formula_raw\u0060 and \u0060get_all_formulas_raw\u0060. If one is parsed and one is raw, document clearly, but consider providing a consistent pair (e.g., \u0060get_formula\u0060 and \u0060get_all_formulas\u0060 both parsed, with \u0060_raw\u0060 variants if needed). (signatures: zb_io.network.api.ApiClient.get_formula(name: str): Result | zb_io.network.api.ApiClient.get_all_formulas_raw(): Result)"},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"ab3759ba6affdb04cdee431e021b03709157ba3e551db1fe8a9ef40916913d4a"}},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"a1f31e3fc38e806c632551480508ae27b2701acddad0a9d80c648ba1fc9463b3"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"0063c758847f616c2c3e785572b6a1fc100eeb5784b319de72c4dbd9d1efdce9"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"c1bb7814097052b3b9e49cf20adb5ffa3c94da3abc00863955683dc4725b2e91"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"5bf66f5e7d68d560e31890595924148a2f29517a30395ef5653442821cb20e6d"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"240e021f035e6626dad8abda6dbc1c2b8a182c1bdf23494a243ca6d44b8de55f"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"ae4b19a624088a80ae967fa19fc6e2d3b4d86bf95f6afb9918729adad8224e32"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"566fa5a4701f42cbfbeadbdb214c10316393b2e6bc1b27f09f55637870380d8a"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"96f88121b035a898a6759141862415469563ae4858d3bd2449d90d5e5ba04a57"},"taxa":[{"id":"CWE-522","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"14a9cfdb39241550d24c72572bb8b6297bbbda096276233895c9b1a114b087ca"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"c5b03b7c3c03864107de878ef1a3a6cf4be82037eb97d0af0a4671518d634047"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"0b7b0f6379057837f6e98551d80397ec59f14460af6dd1dfc78c7b79d04c8f4a"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"c56b865ca7a9a4ce29e7d9bc9876dd8299267e8b4edac7978642ac1f339a48e7"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"58f873761f96f9df8f4e644a8b92d75c8b6f058a6e8e5487df6bfc9be59b455b"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"693249723480b7d3690fbc9002e4acaa2fd5c4f5277d52948268b51530c89d1e"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"8dfabd57851c7bcb37baa8e9aafb9e1c51d861648a6ef22c4073e3d726c8c5f1"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"5a3785f7900b67512b8c4737e8fb5418bda1bbc7a88dcc71d61802984b33a7cd"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"6819b36024d45f5f0e1d43e74427f1e72c7d8dae5d09101e0f966a51bf6829ab"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"ae59d5e9dd2c30e110a21be3f2f3e4339df91ffb4154cfcf5f17bedb858ec684"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"64aee044c1f4dd4bb7a77441c8cfb2ad1960dbe2c5bbb6dcc4a3af1fa08e7b62"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"a38828c4bcb7a6090c355e52037137f3256c09724683ca7433a766a1657c28d7"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"957b150e90b8de065e3fab913d6db8aa84cc38085b4826b482eaabde0c4cf347"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"b923d2a6d4bf9f3d17a069114b8d29dce8e6bc49ce4ae2931de0efd9a515de40"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"1597cb6e125e16bcb40e806c82e73f45222913928a462f1a3a12b761c92de8c8"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"101aea76057fce59420cb6c212119cd272b66eb0842832e04d83b6a6cb33ede3"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"63778fa624412affc09bbae17ed4e235deee47c1e8fbbd49594e08c2f223c987"},"taxa":[{"id":"CWE-522","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-552","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"1a641278a6a3af72daec1f2b98f20d348dc56973468c108f4172404c38c74299"},"properties":{"dependency":{"package":"liquidjs","version":"10.24.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"02c30f85ca700280e0c5342eb2ae2193d6796d56a6232621aaea1e3452594a52"},"properties":{"dependency":{"package":"linkify-it","version":"5.0.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"507e96270b331ba91e66fea89dac75519ab1f29de191636ff9ccf1c1ce92e8b8"},"properties":{"dependency":{"package":"minimatch","version":"3.1.2","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"5054b5ef6ca88a19b2a4fa2689cbae2481aef2a2d7596f87501f3e8c2e3f051d"},"properties":{"dependency":{"package":"js-yaml","version":"3.14.2","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"35ff55f5b4737c5a1dadfbbe51d7af1ce638a968db6ae1d67816a15ba74b6827"},"properties":{"dependency":{"package":"js-yaml","version":"4.1.1","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"f588ba6e4f41a2e77c5d93d2be433719feee9459bb9161971769da850e2a8671"},"properties":{"dependency":{"package":"brace-expansion","version":"1.1.12","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"102e181e60cd77b565bd189e20fb4a6b1258c7bac0e0a88ca77b467a7681b3d1"},"properties":{"dependency":{"package":"undici","version":"7.18.2","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"19a500186c68cc1e7a14b8f33939e57607200f0ca2b511e0ad320d6beae8a7f3"},"properties":{"dependency":{"package":"ws","version":"8.18.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"2f76fa433e6ae3f4fa472fd57984cff5a6bc82c647ec22ad0df7d75f9a535406"},"properties":{"dependency":{"package":"ws","version":"8.19.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"c365a72f08c5b08b10b1623af43c9503dad638a00d17253819dc7fb7c133302d"},"properties":{"dependency":{"package":"picomatch","version":"2.3.1","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"97c7dfa4706b777239185bf10f3c5e512359b6cb9059b01ee60a624f5076987e"},"properties":{"dependency":{"package":"picomatch","version":"4.0.3","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"c8e874e2a33eb761ed2888f1451f63bd342d24f2906513ccc2ee42fb445610eb"},"properties":{"dependency":{"package":"sharp","version":"0.34.5","advisory":"[GHSA redacted]","aliases":["[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"80b5c22beae306eb623d7a60ec13361ab89285e1cc30fcf5b8daa2e87ffb5c69"},"properties":{"dependency":{"package":"h2","version":"0.4.14","advisory":"RUSTSEC-2026-0258","aliases":["[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"3035e85b1a9c0c33df37dc333f490439b3fa52aefda24a401e2e75a177cdf778"},"properties":{"dependency":{"package":"rustls","version":"0.23.40","advisory":"RUSTSEC-2026-0285","aliases":["[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"f63fd196ede01c29c87dd558c2725b702ce394329b1ba976b32b603420f18c90"},"properties":{"dependency":{"package":"markdown-it","version":"14.1.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: bottle.rs \u2194 resolve.rs: \u0060zb_core/src/formula/bottle.rs\u0060 and \u0060zb_core/src/formula/resolve.rs\u0060 change together 50% of the time (6 of the 12 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency between them. They sit in the same directory, but in this ecosystem each file is its own module \u2014 a sibling reference still needs an import \u2014 so the missing import edge is real: the coupling runs through shared behaviour, not a declared dependency. If they duplicate structure, extract the common part into one unit; otherwise the coupling is hidden and worth breaking. You can check this without leaving the row: of the 6 shared commits counted here, the most recent 3 are \u006023cbd57b\u0060 fix(zb_core): fix Linux bottle/runtime dep test build; \u00605b6a98ec\u0060 fix(zb_core): resolve Linux uses_from_macos deps; \u0060a1e50012\u0060 fix(zb_core): \u0060KegOnlyReaason\u0060 parsing; made \u0060is_keg_only()\u0060 ignore m\u2026 \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"zb_core/src/formula/bottle.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd4376650af92a637ff1e2dcde0f4530acfa999b510e4576786bf3c7bc7f7912"}},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"eb00976a698a5d68999b7ee6d27206fd374e916853e7ff1ead5eed42386f043f"}},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"90f83b4fa27db32740afe9540c905f3c0499caed87f61049a8a903ecc95b41c3"}},{"ruleId":"D36","level":"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":"0752d0df7434000fcabf1048e2de30a7a1a8b982b3db9a19898c4dec199856b4"}},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"c593d4dbd23724f337bfb8d2c1653812f143ae255bd9b59d4b3e9c37779fa6f4"}},{"ruleId":"D44","level":"warning","message":{"text":"End-of-life runtime: Rust 1.96: rust-toolchain.toml declares Rust 1.96 as this project\u0027s toolchain file, and Rust 1.96, superseded by 1.97 on 2026-07-09 (the Rust project patches only the current stable). An unsupported runtime receives no security patches, so every vulnerability disclosed in it since 2026-07-09 is present and unfixable without moving off it. This is a migration rather than an upgrade: there is no newer release of a runtime that has ended."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"b4d8e9b51cd4b2493b326110bfe409c9598039c510d25150fcc40f653a675ac1"}},{"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":"M4","level":"note","message":{"text":"README/code drift: README omits the site package (site/eleventy) and its deploy workflow entirely \u2014 reported by the model that read the README against this repository; no term search was run for this one, so nothing here has been checked against the tree. Treat it as a reading to confirm, not as a measured contradiction: verify it against the code before acting on it, and if the footprint it describes does exist, this row is wrong."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"343bbbd51ceb8de7a9ff88d79f7c797abf9b5921f8727b67b4d0f4f8a22c5e49"}},{"ruleId":"P4","level":"note","message":{"text":"No release approval gate: The release is automated and no gate that pauses it for a human is DECLARED IN THIS REPOSITORY\u0027S PIPELINE FILES. What was read: every file under \u0060.github/workflows/\u0060, \u0060.forgejo/workflows/\u0060, \u0060.gitea/workflows/\u0060, \u0060.azuredevops/\u0060 and \u0060.azure-pipelines/\u0060, plus \u0060.gitlab-ci*\u0060 and \u0060azure-pipelines*\u0060 \u2014 with comment text stripped, so documenting a gate is not declaring one. What would have counted: GitLab\u0027s \u0060when: manual\u0060, CircleCI\u0027s \u0060type: approval\u0060, an Azure \u0060ManualValidation@\u0060 task or an \u0060approvals:\u0060 block, a Jenkins \u0060input\u0060 step, a \u0060uses:\u0060 step naming an approval action, an \u0060environment:\u0060 paired with \u0060reviewers\u0060 / \u0060required_reviewers\u0060 / \u0060protection\u0060 / \u0060wait-timer\u0060 / \u0060deployment_branch_policy\u0060, a draft-release step, a \u0060workflow_dispatch\u0060 promotion, or a release-event gate. \u2605 What this cannot see, because none of it is a file: a GitHub environment whose required reviewers are configured in repo SETTINGS, a branch protection rule, or an organisation deployment policy \u2014 all of them real, enforced gates that live outside the repository. If yours is one of those, this row is wrong and nothing in the tree could have told us. Otherwise: whatever the release trigger points at is published to users unreviewed, so a mistagged or unverified commit ships and the only remedy is a follow-up release."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"6c11e2dbd483b4b423b95ac61bfcc7af1d55351b28a20d2b1105b31cfe38cc60"}}],"taxonomies":[{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d","organization":"MITRE","informationUri":"https://cwe.mitre.org/","isComprehensive":false,"shortDescription":{"text":"The MITRE Common Weakness Enumeration (CWE)."},"taxa":[{"id":"CWE-1357","guid":"e4d2e772-757e-0a5c-bd7d-77052949d866","name":"Reliance on Insufficiently Trustworthy Component","shortDescription":{"text":"Reliance on Insufficiently Trustworthy Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1357.html"},{"id":"CWE-1395","guid":"800e09e7-c11a-8654-9fa6-86f398995fed","name":"Dependency on Vulnerable Third-Party Component","shortDescription":{"text":"Dependency on Vulnerable Third-Party Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1395.html"},{"id":"CWE-259","guid":"ae9ad959-fbb6-9d5e-892d-3dca66da0b69","name":"Use of Hard-coded Password","shortDescription":{"text":"Use of Hard-coded Password"},"helpUri":"https://cwe.mitre.org/data/definitions/259.html"},{"id":"CWE-353","guid":"09d7e902-d4ee-f05d-ae6c-0a1554d0c18f","name":"CWE-353","shortDescription":{"text":"CWE-353"},"helpUri":"https://cwe.mitre.org/data/definitions/353.html"},{"id":"CWE-494","guid":"b8a65e0d-e459-4a55-a931-fc1136482375","name":"Download of Code Without Integrity Check","shortDescription":{"text":"Download of Code Without Integrity Check"},"helpUri":"https://cwe.mitre.org/data/definitions/494.html"},{"id":"CWE-506","guid":"401d6455-56e3-0552-9a39-f77461673e3f","name":"CWE-506","shortDescription":{"text":"CWE-506"},"helpUri":"https://cwe.mitre.org/data/definitions/506.html"},{"id":"CWE-522","guid":"71fb233e-ce6a-ae57-9419-ef8373540b09","name":"CWE-522","shortDescription":{"text":"CWE-522"},"helpUri":"https://cwe.mitre.org/data/definitions/522.html"},{"id":"CWE-552","guid":"3492436b-eca2-9c54-9ba3-5dade427c903","name":"CWE-552","shortDescription":{"text":"CWE-552"},"helpUri":"https://cwe.mitre.org/data/definitions/552.html"},{"id":"CWE-77","guid":"332c8ade-6612-9f56-a06b-d8d90b1a8750","name":"Command Injection","shortDescription":{"text":"Command Injection"},"helpUri":"https://cwe.mitre.org/data/definitions/77.html"},{"id":"CWE-78","guid":"2e31ceaf-c7ae-2e5e-9661-cfb1362789cf","name":"OS Command Injection","shortDescription":{"text":"OS Command Injection"},"helpUri":"https://cwe.mitre.org/data/definitions/78.html"},{"id":"CWE-79","guid":"fd45580b-e8c4-fc5e-8c2f-aa8fab0b4dbf","name":"Cross-site Scripting (XSS)","shortDescription":{"text":"Cross-site Scripting (XSS)"},"helpUri":"https://cwe.mitre.org/data/definitions/79.html"},{"id":"CWE-798","guid":"5e8f057d-fee3-995a-a0cb-9fc5b0d174d1","name":"Use of Hard-coded Credentials","shortDescription":{"text":"Use of Hard-coded Credentials"},"helpUri":"https://cwe.mitre.org/data/definitions/798.html"},{"id":"CWE-829","guid":"13c33925-97fb-5a5e-b40c-56d328b8a4d7","name":"CWE-829","shortDescription":{"text":"CWE-829"},"helpUri":"https://cwe.mitre.org/data/definitions/829.html"},{"id":"CWE-89","guid":"6d08fdad-37eb-c150-bbf0-d7d946863407","name":"SQL Injection","shortDescription":{"text":"SQL Injection"},"helpUri":"https://cwe.mitre.org/data/definitions/89.html"},{"id":"CWE-937","guid":"16f316ae-415c-b354-a59b-1f7905f756e9","name":"Using Components with Known Vulnerabilities","shortDescription":{"text":"Using Components with Known Vulnerabilities"},"helpUri":"https://cwe.mitre.org/data/definitions/937.html"},{"id":"CWE-94","guid":"75e7f50c-6c2f-dd52-bf40-bf6c52b861fd","name":"Code Injection","shortDescription":{"text":"Code Injection"},"helpUri":"https://cwe.mitre.org/data/definitions/94.html"}]}],"properties":{"codehealthPublication":{"public":true,"notice":"This is the PUBLIC form of this artifact. Findings are listed in full, but the details of SECURITY findings \u2014 which rule fired, in which file, on which line, and how to fix it \u2014 are deliberately withheld, and any secret-scanner results are excluded entirely. Where detail is absent here it was REMOVED FOR PUBLICATION; it is not missing from the analysis. The complete artifact is available from the repository owner.","securityFindingsRedacted":44,"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."]}]}