{"$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":"D8","name":"Code Coverage","shortDescription":{"text":"Code Coverage"},"helpUri":"https://codehealth.canine.dev/dimensions/D8"},{"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"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D14","name":"License Compliance","shortDescription":{"text":"License Compliance"},"helpUri":"https://codehealth.canine.dev/dimensions/D14"},{"id":"D15","name":"Churn \u00D7 Complexity Hotspots","shortDescription":{"text":"Churn \u00D7 Complexity Hotspots"},"helpUri":"https://codehealth.canine.dev/dimensions/D15"},{"id":"D16","name":"Bus Factor","shortDescription":{"text":"Bus Factor"},"helpUri":"https://codehealth.canine.dev/dimensions/D16"},{"id":"D17","name":"Explicit Debt","shortDescription":{"text":"Explicit Debt"},"helpUri":"https://codehealth.canine.dev/dimensions/D17"},{"id":"D19","name":"Documentation Quality","shortDescription":{"text":"Documentation Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D19"},{"id":"D28","name":"Secrets (history)","shortDescription":{"text":"Secrets (history)"},"helpUri":"https://codehealth.canine.dev/dimensions/D28","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D29","name":"Static Analysis (SAST)","shortDescription":{"text":"Static Analysis (SAST)"},"helpUri":"https://codehealth.canine.dev/dimensions/D29","relationships":[{"target":{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-94","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-77","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-79","CWE-89","CWE-78","CWE-94","CWE-77"],"owasp":"A05:2025"}},{"id":"D30","name":"Dependency Vulnerabilities","shortDescription":{"text":"Dependency Vulnerabilities"},"helpUri":"https://codehealth.canine.dev/dimensions/D30","relationships":[{"target":{"id":"CWE-1395","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-937","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1395","CWE-937"],"owasp":"A03:2025"}},{"id":"D31","name":"IaC \u0026 Container Security","shortDescription":{"text":"IaC \u0026 Container Security"},"helpUri":"https://codehealth.canine.dev/dimensions/D31","relationships":[{"target":{"id":"CWE-1032","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-732","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-16","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A02:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1032","CWE-732","CWE-16"],"owasp":"A02:2025"}},{"id":"D34","name":"Knowledge Freshness","shortDescription":{"text":"Knowledge Freshness"},"helpUri":"https://codehealth.canine.dev/dimensions/D34"},{"id":"D35","name":"Change Coupling","shortDescription":{"text":"Change Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D35"},{"id":"D36","name":"Supply-chain Provenance \u0026 Signing","shortDescription":{"text":"Supply-chain Provenance \u0026 Signing"},"helpUri":"https://codehealth.canine.dev/dimensions/D36","relationships":[{"target":{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-494","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1357","CWE-494"],"owasp":"A03:2025"}},{"id":"D37","name":"Vulnerability-disclosure Policy","shortDescription":{"text":"Vulnerability-disclosure Policy"},"helpUri":"https://codehealth.canine.dev/dimensions/D37","relationships":[{"target":{"id":"CWE-1059","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A02:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1059"],"owasp":"A02:2025"}},{"id":"D43","name":"Malicious Dependencies","shortDescription":{"text":"Malicious Dependencies"},"helpUri":"https://codehealth.canine.dev/dimensions/D43","relationships":[{"target":{"id":"CWE-506","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-506"],"owasp":"A08:2025"}},{"id":"D44","name":"Platform End-of-Life","shortDescription":{"text":"Platform End-of-Life"},"helpUri":"https://codehealth.canine.dev/dimensions/D44"},{"id":"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":"AX8","name":"Test isolation","shortDescription":{"text":"Test isolation"},"helpUri":"https://codehealth.canine.dev/dimensions/AX8"},{"id":"AX9","name":"CQS / query purity","shortDescription":{"text":"CQS / query purity"},"helpUri":"https://codehealth.canine.dev/dimensions/AX9"},{"id":"AXB2","name":"Runtime readiness","shortDescription":{"text":"Runtime readiness"},"helpUri":"https://codehealth.canine.dev/dimensions/AXB2"},{"id":"ED5","name":"Idempotency","shortDescription":{"text":"Idempotency"},"helpUri":"https://codehealth.canine.dev/dimensions/ED5"},{"id":"GD1","name":"Unfinished \u0026 placeholder code","shortDescription":{"text":"Unfinished \u0026 placeholder code"},"helpUri":"https://codehealth.canine.dev/dimensions/GD1"},{"id":"M1","name":"Documentation (README)","shortDescription":{"text":"Documentation (README)"},"helpUri":"https://codehealth.canine.dev/dimensions/M1"},{"id":"M2","name":"Architecture documentation","shortDescription":{"text":"Architecture documentation"},"helpUri":"https://codehealth.canine.dev/dimensions/M2"},{"id":"M3","name":"Folder \u0026 project structure","shortDescription":{"text":"Folder \u0026 project structure"},"helpUri":"https://codehealth.canine.dev/dimensions/M3"},{"id":"M4","name":"Documentation accuracy","shortDescription":{"text":"Documentation accuracy"},"helpUri":"https://codehealth.canine.dev/dimensions/M4"},{"id":"P1","name":"CI/CD gates","shortDescription":{"text":"CI/CD gates"},"helpUri":"https://codehealth.canine.dev/dimensions/P1"},{"id":"P10","name":"Library API \u0026 versioning","shortDescription":{"text":"Library API \u0026 versioning"},"helpUri":"https://codehealth.canine.dev/dimensions/P10"},{"id":"P12","name":"CI test-gate honesty","shortDescription":{"text":"CI test-gate honesty"},"helpUri":"https://codehealth.canine.dev/dimensions/P12"},{"id":"P2","name":"Observability","shortDescription":{"text":"Observability"},"helpUri":"https://codehealth.canine.dev/dimensions/P2"},{"id":"P3","name":"Security \u0026 performance tooling","shortDescription":{"text":"Security \u0026 performance tooling"},"helpUri":"https://codehealth.canine.dev/dimensions/P3"},{"id":"P4","name":"Deployment \u0026 Rollback","shortDescription":{"text":"Deployment \u0026 Rollback"},"helpUri":"https://codehealth.canine.dev/dimensions/P4"},{"id":"P5","name":"DR \u0026 Backup","shortDescription":{"text":"DR \u0026 Backup"},"helpUri":"https://codehealth.canine.dev/dimensions/P5"},{"id":"P6","name":"Release Hygiene","shortDescription":{"text":"Release Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/P6"},{"id":"PF1","name":"Benchmark discipline","shortDescription":{"text":"Benchmark discipline"},"helpUri":"https://codehealth.canine.dev/dimensions/PF1"},{"id":"PF3","name":"Async \u0026 latency hygiene","shortDescription":{"text":"Async \u0026 latency hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/PF3"},{"id":"X10","name":"Duplicated predicate","shortDescription":{"text":"Duplicated predicate"},"helpUri":"https://codehealth.canine.dev/dimensions/X10"},{"id":"X13","name":"Undrained process stream","shortDescription":{"text":"Undrained process stream"},"helpUri":"https://codehealth.canine.dev/dimensions/X13"},{"id":"X14","name":"Bypassable address classification","shortDescription":{"text":"Bypassable address classification"},"helpUri":"https://codehealth.canine.dev/dimensions/X14"},{"id":"X15","name":"Unvalidated length from an untrusted reader","shortDescription":{"text":"Unvalidated length from an untrusted reader"},"helpUri":"https://codehealth.canine.dev/dimensions/X15"},{"id":"X17","name":"Uncapped recursion over a caller-supplied document","shortDescription":{"text":"Uncapped recursion over a caller-supplied document"},"helpUri":"https://codehealth.canine.dev/dimensions/X17"},{"id":"X18","name":"Disposal-pattern correctness","shortDescription":{"text":"Disposal-pattern correctness"},"helpUri":"https://codehealth.canine.dev/dimensions/X18"},{"id":"X19","name":"Unrestored process-global state","shortDescription":{"text":"Unrestored process-global state"},"helpUri":"https://codehealth.canine.dev/dimensions/X19"},{"id":"X20","name":"Mistyped argument guard","shortDescription":{"text":"Mistyped argument guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X20"},{"id":"X21","name":"Side-effecting pattern guard","shortDescription":{"text":"Side-effecting pattern guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X21"},{"id":"X22","name":"Contradicted release guard","shortDescription":{"text":"Contradicted release guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X22"},{"id":"X23","name":"Unguarded diagnostic materialisation","shortDescription":{"text":"Unguarded diagnostic materialisation"},"helpUri":"https://codehealth.canine.dev/dimensions/X23"},{"id":"X24","name":"Document value interpolated into markup unescaped","shortDescription":{"text":"Document value interpolated into markup unescaped"},"helpUri":"https://codehealth.canine.dev/dimensions/X24"},{"id":"X25","name":"Inert configuration knob","shortDescription":{"text":"Inert configuration knob"},"helpUri":"https://codehealth.canine.dev/dimensions/X25"},{"id":"X26","name":"Unsynchronised callback handoff","shortDescription":{"text":"Unsynchronised callback handoff"},"helpUri":"https://codehealth.canine.dev/dimensions/X26"},{"id":"X28","name":"Index access outside its own emptiness guard","shortDescription":{"text":"Index access outside its own emptiness guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X28"},{"id":"X29","name":"Per-element action decided by a fixed element","shortDescription":{"text":"Per-element action decided by a fixed element"},"helpUri":"https://codehealth.canine.dev/dimensions/X29"},{"id":"X30","name":"Support guard that admits what it rejects","shortDescription":{"text":"Support guard that admits what it rejects"},"helpUri":"https://codehealth.canine.dev/dimensions/X30"},{"id":"X32","name":"Type resolved by simple name across every loaded assembly","shortDescription":{"text":"Type resolved by simple name across every loaded assembly"},"helpUri":"https://codehealth.canine.dev/dimensions/X32"},{"id":"X5","name":"Nullable reference types","shortDescription":{"text":"Nullable reference types"},"helpUri":"https://codehealth.canine.dev/dimensions/X5"},{"id":"X6","name":"Hand-rolled structured-format parsing","shortDescription":{"text":"Hand-rolled structured-format parsing"},"helpUri":"https://codehealth.canine.dev/dimensions/X6"},{"id":"X7","name":"Silent fallback defaults","shortDescription":{"text":"Silent fallback defaults"},"helpUri":"https://codehealth.canine.dev/dimensions/X7"},{"id":"X9","name":"Subsumed condition operand","shortDescription":{"text":"Subsumed condition operand"},"helpUri":"https://codehealth.canine.dev/dimensions/X9"}]}},"results":[{"ruleId":"D1","level":"warning","message":{"text":"HyperlightVm::run (cyclomatic 27): HyperlightVm::run has cyclomatic complexity 27 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hyperlight_host/src/hypervisor/hyperlight_vm/mod.rs"},"region":{"startLine":622}}}],"partialFingerprints":{"codehealthFindingId/v1":"db9c2346b5913c5201cb4c0003316a9b9351a0597972e0242cc2eaf9d0adedba"}},{"ruleId":"D1","level":"warning","message":{"text":"hyperlight_component_util::rtypes::emit_value (cyclomatic 25): hyperlight_component_util::rtypes::emit_value has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hyperlight_component_util/src/rtypes.rs"},"region":{"startLine":317}}}],"partialFingerprints":{"codehealthFindingId/v1":"b43e65b5b7e2ef7b161f9fe09cbde1be273c9bb659059a38fae6e162ec697fab"}},{"ruleId":"D1","level":"warning","message":{"text":"Ctx::subtype_value (cyclomatic 24): Ctx::subtype_value has cyclomatic complexity 24 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hyperlight_component_util/src/subtype.rs"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"95e16a64e36acc77d5f618686d433cc0e8d6af3113d041278293e1efaee2f6d4"}},{"ruleId":"D1","level":"warning","message":{"text":"hyperlight_component_util::hl::emit_hl_unmarshal_value (cyclomatic 24): hyperlight_component_util::hl::emit_hl_unmarshal_value has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This shape REPEATS in the file: one other method here (hyperlight_component_util::hl::emit_hl_marshal_value) 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":"src/hyperlight_component_util/src/hl.rs"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c0d671a192a6a6ac6ab1f47b4ccd9cbea811c8a014b73936287ada787ba6f0a"}},{"ruleId":"D1","level":"warning","message":{"text":"hyperlight_component_util::hl::emit_hl_marshal_value (cyclomatic 24): hyperlight_component_util::hl::emit_hl_marshal_value has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This shape REPEATS in the file: one other method here (hyperlight_component_util::hl::emit_hl_unmarshal_value) 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":"src/hyperlight_component_util/src/hl.rs"},"region":{"startLine":523}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb051fcb18fea9af2163e8636c1a964432225ab2532958d6b266c8d72453b71c"}},{"ruleId":"D1","level":"warning","message":{"text":"MshvVm::run_vcpu (cyclomatic 23): MshvVm::run_vcpu has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hyperlight_host/src/hypervisor/virtual_machine/mshv/x86_64.rs"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"c170e32ef1ecf75a6babd333fe9318d81003661e77287b89313911929e099893"}},{"ruleId":"D1","level":"warning","message":{"text":"hyperlight_component_util::component::read_component_single_exported_type (cyclomatic 20): hyperlight_component_util::component::read_component_single_exported_type 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":"src/hyperlight_component_util/src/component.rs"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"931d36c60013eb57976f00fc0b6192610dd4c3b3a1d54f05993e2e32b77a1bc3"}},{"ruleId":"D1","level":"warning","message":{"text":"hyperlight_component_csharp::codec::write (cyclomatic 19): hyperlight_component_csharp::codec::write has cyclomatic complexity 19 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hyperlight_component_csharp/src/codec.rs"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"41bfb5dd88fe0360c95dd407738a02c75e5c3cbea7f08cee95c3e3404ac8106a"}},{"ruleId":"D1","level":"warning","message":{"text":"hyperlight_component_csharp::codec::read (cyclomatic 18): hyperlight_component_csharp::codec::read has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hyperlight_component_csharp/src/codec.rs"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed49dcbe3d1705f010b5595d23693ac399a7a9c72d56654499113fa3fbaebc13"}},{"ruleId":"D1","level":"warning","message":{"text":"WhpVm::run_vcpu (cyclomatic 18): WhpVm::run_vcpu has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This is NOT this file\u0027s highest cyclomatic complexity: hyperlight_host::hypervisor::virtual_machine::whp::x86_64::msr_to_whv_register_name (cyclomatic 76) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded function is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hyperlight_host/src/hypervisor/virtual_machine/whp/x86_64.rs"},"region":{"startLine":530}}}],"partialFingerprints":{"codehealthFindingId/v1":"069b7b495181360128ec86e94f5bb8d3d0f8a12f7d714bd459272ca232f24f37"}},{"ruleId":"D1","level":"warning","message":{"text":"hyperlight_common::virtq::ring::canonical::validate_canon_image (cyclomatic 16): hyperlight_common::virtq::ring::canonical::validate_canon_image has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hyperlight_common/src/virtq/ring/canonical.rs"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"2dde9209542db32054b9f7e2af10f66366eb40fff6ebe7a4028afcda8fce2ef9"}},{"ruleId":"D1","level":"warning","message":{"text":"hyperlight_component_csharp::host::emit_component (cyclomatic 16): hyperlight_component_csharp::host::emit_component has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hyperlight_component_csharp/src/host.rs"},"region":{"startLine":436}}}],"partialFingerprints":{"codehealthFindingId/v1":"02f3efdca3f1890393ae785be0c07a5ce498134d3677bfd2e05bc1ce8f04b5fd"}},{"ruleId":"D2","level":"warning","message":{"text":"hyperlight_component_util::component::read_component_single_exported_type (cognitive 54): hyperlight_component_util::component::read_component_single_exported_type has cognitive complexity 54 (threshold 15). Drivers by points: if/else 6 (25 pts), match/switch 7 (19 pts), loops 4 (10 pts) (nesting depth added 37). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hyperlight_component_util/src/component.rs"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b14831bbbb95d739e13c3f352c01bc828ef39ab8c43a24cc9fac8348b77e948"}},{"ruleId":"D2","level":"warning","message":{"text":"MshvVm::run_vcpu (cognitive 52): MshvVm::run_vcpu has cognitive complexity 52 (threshold 15). Drivers by points: if/else 10 (34 pts), match/switch 5 (16 pts), boolean chains 1, loops 1 (nesting depth added 35). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hyperlight_host/src/hypervisor/virtual_machine/mshv/x86_64.rs"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"028b76f27ecfd779178010c9fe210250168052c950d0e9ffa2a7b75719e04419"}},{"ruleId":"D2","level":"warning","message":{"text":"HyperlightVm::run (cognitive 43): HyperlightVm::run has cognitive complexity 43 (threshold 15). Drivers by points: if/else 11 (30 pts), match/switch 4 (9 pts), boolean chains 3, loops 1 (nesting depth added 24). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hyperlight_host/src/hypervisor/hyperlight_vm/mod.rs"},"region":{"startLine":622}}}],"partialFingerprints":{"codehealthFindingId/v1":"2cf234489397b40d0f85b00398fe685bcf89c21eec3082ef2686e7949082aeba"}},{"ruleId":"D2","level":"warning","message":{"text":"hyperlight_component_util::rtypes::emit_value (cognitive 33): hyperlight_component_util::rtypes::emit_value has cognitive complexity 33 (threshold 15). Drivers by points: if/else 12 (28 pts), match/switch 3 (5 pts) (nesting depth added 18). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hyperlight_component_util/src/rtypes.rs"},"region":{"startLine":317}}}],"partialFingerprints":{"codehealthFindingId/v1":"2cbe38d5e0dfedf91c4ec8128e6e1ae708c490d718eed0c3f6c013c7565ac287"}},{"ruleId":"D2","level":"warning","message":{"text":"WhpVm::run_vcpu (cognitive 31): WhpVm::run_vcpu has cognitive complexity 31 (threshold 15). Drivers by points: if/else 8 (24 pts), match/switch 2 (5 pts), boolean chains 1, loops 1 (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hyperlight_host/src/hypervisor/virtual_machine/whp/x86_64.rs"},"region":{"startLine":530}}}],"partialFingerprints":{"codehealthFindingId/v1":"75673d5f889b98965c61982ccf64ee3059ef6bb57bdfbb4bdd1dd81c833d822d"}},{"ruleId":"D2","level":"warning","message":{"text":"hyperlight_common::virtq::ring::canonical::validate_canon_image (cognitive 30): hyperlight_common::virtq::ring::canonical::validate_canon_image has cognitive complexity 30 (threshold 15). Drivers by points: if/else 10 (24 pts), loops 4 (5 pts), boolean chains 1 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hyperlight_common/src/virtq/ring/canonical.rs"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"77d74a3f7811785d73031f3b39d59e4992ccd1a0fd10c8652489251b846bbc07"}},{"ruleId":"D2","level":"warning","message":{"text":"hyperlight_component_util::rtypes::try_find_local_var_id (cognitive 30): hyperlight_component_util::rtypes::try_find_local_var_id has cognitive complexity 30 (threshold 15). Drivers by points: if/else 10 (19 pts), match/switch 2 (6 pts), loops 1 (4 pts), boolean chains 1 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hyperlight_component_util/src/rtypes.rs"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"e281deebfcb4f91473eb88fa8f2e02ba2f09b2b75624eaa6d5eadd5075b3d2a7"}},{"ruleId":"D2","level":"warning","message":{"text":"HvfCpu::run (cognitive 27): HvfCpu::run has cognitive complexity 27 (threshold 15). Drivers by points: if/else 9 (23 pts), match/switch 2 (3 pts), boolean chains 1 (nesting depth added 15). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hyperlight_host/src/hypervisor/virtual_machine/hvf/mod.rs"},"region":{"startLine":610}}}],"partialFingerprints":{"codehealthFindingId/v1":"34a1c53b19c9daf252ba04fda95254f107fe146a47b40f148f3f6760a37fd0df"}},{"ruleId":"D2","level":"warning","message":{"text":"hyperlight_component_util::hl::emit_hl_unmarshal_value (cognitive 25): hyperlight_component_util::hl::emit_hl_unmarshal_value has cognitive complexity 25 (threshold 15). Drivers by points: if/else 14 (24 pts), match/switch 1 (nesting depth added 10). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident. This shape REPEATS in the file: one other method here (hyperlight_component_util::hl::emit_hl_marshal_value) 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":"src/hyperlight_component_util/src/hl.rs"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"469fd32a9f96b88910048e0f982acc1556aa210aeb032cb78a75eb3237ca3f85"}},{"ruleId":"D2","level":"warning","message":{"text":"hyperlight_component_util::hl::emit_hl_marshal_value (cognitive 25): hyperlight_component_util::hl::emit_hl_marshal_value has cognitive complexity 25 (threshold 15). Drivers by points: if/else 14 (24 pts), match/switch 1 (nesting depth added 10). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident. This shape REPEATS in the file: one other method here (hyperlight_component_util::hl::emit_hl_unmarshal_value) 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":"src/hyperlight_component_util/src/hl.rs"},"region":{"startLine":523}}}],"partialFingerprints":{"codehealthFindingId/v1":"959569d042d8897de39dcfa17fe8cbf1e44ef43315549168a5924322a8a80e4a"}},{"ruleId":"D2","level":"warning","message":{"text":"HyperlightVm::handle_debug (cognitive 25): HyperlightVm::handle_debug has cognitive complexity 25 (threshold 15). Drivers by points: match/switch 4 (11 pts), if/else 4 (10 pts), loops 2 (4 pts) (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hyperlight_host/src/hypervisor/hyperlight_vm/x86_64.rs"},"region":{"startLine":377}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0d4e0e0632c75e386e21aef0e02f931cb13c356cccc309de6396c2eacf3b041"}},{"ruleId":"D2","level":"warning","message":{"text":"hyperlight_component_util::rtypes::emit_value_toplevel (cognitive 24): hyperlight_component_util::rtypes::emit_value_toplevel has cognitive complexity 24 (threshold 15). Drivers by points: if/else 14 (21 pts), match/switch 2 (3 pts) (nesting depth added 8). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hyperlight_component_util/src/rtypes.rs"},"region":{"startLine":407}}}],"partialFingerprints":{"codehealthFindingId/v1":"79bcbe9dd8dc0dece8e0a974640aa8afa96a7dcb7886e5f75dbde935dc6a90ff"}},{"ruleId":"D2","level":"warning","message":{"text":"WhpVm::run_vcpu (cognitive 22): WhpVm::run_vcpu has cognitive complexity 22 (threshold 15). Drivers by points: if/else 9 (20 pts), boolean chains 1, match/switch 1 (nesting depth added 11). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hyperlight_host/src/hypervisor/virtual_machine/whp/aarch64.rs"},"region":{"startLine":566}}}],"partialFingerprints":{"codehealthFindingId/v1":"385ae7ae349a55a7401e68bad91969c28c04f84660db147ea40a96650273ad89"}},{"ruleId":"D2","level":"warning","message":{"text":"hyperlight_component_csharp::host::emit_component (cognitive 21): hyperlight_component_csharp::host::emit_component has cognitive complexity 21 (threshold 15). Drivers by points: if/else 11 (13 pts), loops 4 (5 pts), match/switch 1 (3 pts) (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, 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":"src/hyperlight_component_csharp/src/host.rs"},"region":{"startLine":436}}}],"partialFingerprints":{"codehealthFindingId/v1":"5aeb73017c4992072097a3be3f514d82d579693758ae4f61b983506a801cb70f"}},{"ruleId":"D2","level":"warning","message":{"text":"hyperlight_component_util::rtypes::emit_resource_ref (cognitive 21): hyperlight_component_util::rtypes::emit_resource_ref has cognitive complexity 21 (threshold 15). Drivers by points: if/else 12 (17 pts), boolean chains 3, loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hyperlight_component_util/src/rtypes.rs"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1c9621c4b899bc69abeeac77bfbd8e7db927499880bffac0a41f16ee290b2c5"}},{"ruleId":"D2","level":"warning","message":{"text":"BindgenInputParams::parse (cognitive 19): BindgenInputParams::parse has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (12 pts), match/switch 2 (5 pts), loops 1 (2 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hyperlight_component_macro/src/lib.rs"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d5c0e2daef53e62150609a7f36175da60a73b3c936f53ddc724b9760520fbb8"}},{"ruleId":"D2","level":"warning","message":{"text":"KvmVm::run_vcpu_hw_interrupts (cognitive 19): KvmVm::run_vcpu_hw_interrupts has cognitive complexity 19 (threshold 15). Drivers by points: if/else 4 (13 pts), match/switch 2 (5 pts), loops 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hyperlight_host/src/hypervisor/virtual_machine/kvm/x86_64.rs"},"region":{"startLine":268}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b8919b7548e2b912ad440a837ab0bc7738d189e5657aa0b9fd013a5e333aa40"}},{"ruleId":"D2","level":"warning","message":{"text":"MshvVm::handle_hw_io_out (cognitive 19): MshvVm::handle_hw_io_out has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (19 pts) (nesting depth added 12). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hyperlight_host/src/hypervisor/virtual_machine/mshv/x86_64.rs"},"region":{"startLine":951}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9da7c5a70d93cf997d211e2bacc730488b4244815e3b424c5995ec29c811379"}},{"ruleId":"D2","level":"warning","message":{"text":"hyperlight_component_util::rtypes::emit_extern_decl (cognitive 18): hyperlight_component_util::rtypes::emit_extern_decl has cognitive complexity 18 (threshold 15). Drivers by points: match/switch 4 (9 pts), if/else 4 (6 pts), loops 1 (3 pts) (nesting depth added 9). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hyperlight_component_util/src/rtypes.rs"},"region":{"startLine":679}}}],"partialFingerprints":{"codehealthFindingId/v1":"429300d1ae99dfaec41be44a17ebc1c655fc32ce2d4fbbf2c900e5b451884bed"}},{"ruleId":"D2","level":"warning","message":{"text":"KvmVm::run_vcpu (cognitive 18): KvmVm::run_vcpu has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (12 pts), match/switch 2 (3 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":"src/hyperlight_host/src/hypervisor/virtual_machine/kvm/aarch64.rs"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"71ee9dd533ae724d7eb21a8097377cf5b23fdadeb3f4cbbfafba36dafde9ac65"}},{"ruleId":"D2","level":"warning","message":{"text":"EventsBatchEncoderGeneric::encode (cognitive 17): EventsBatchEncoderGeneric::encode has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (10 pts), loops 3 (6 pts), match/switch 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hyperlight_common/src/flatbuffer_wrappers/guest_trace_data.rs"},"region":{"startLine":357}}}],"partialFingerprints":{"codehealthFindingId/v1":"92d67c4020cc8c823b3b2dda6f1824ebf1ca58438e68655c83e2156f666fa3b7"}},{"ruleId":"D2","level":"warning","message":{"text":"hyperlight_component_csharp::codec::read (cognitive 17): hyperlight_component_csharp::codec::read has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (13 pts), match/switch 2 (3 pts), boolean chains 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hyperlight_component_csharp/src/codec.rs"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa564f1773f2555bc009f50963c0639543781cdfa3d0380510b679a9165e5951"}},{"ruleId":"D2","level":"warning","message":{"text":"hyperlight_component_csharp::codec::emit_decl (cognitive 17): hyperlight_component_csharp::codec::emit_decl has cognitive complexity 17 (threshold 15). Drivers by points: loops 4 (8 pts), if/else 2 (5 pts), match/switch 2 (4 pts) (nesting depth added 9). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hyperlight_component_csharp/src/codec.rs"},"region":{"startLine":381}}}],"partialFingerprints":{"codehealthFindingId/v1":"5757a81fd735217a175f8e237797ab87d16a1b641d02cead3d607e6423154071"}},{"ruleId":"D2","level":"warning","message":{"text":"hyperlight_guest_bin::arch::amd64::exception::handle::try_handle_internal_pagefault (cognitive 17): hyperlight_guest_bin::arch::amd64::exception::handle::try_handle_internal_pagefault has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (13 pts), boolean chains 4 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hyperlight_guest_bin/src/arch/amd64/exception/handle.rs"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec1e52746f5daecb991ed4d6d6f5e92f6dfd949d049ae11eb69288dbe7e9d5a5"}},{"ruleId":"D2","level":"warning","message":{"text":"GuestEvent::try_from (cognitive 16): GuestEvent::try_from has cognitive complexity 16 (threshold 15). Drivers by points: loops 3 (9 pts), if/else 3 (6 pts), match/switch 1 (nesting depth added 9). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hyperlight_common/src/flatbuffer_wrappers/guest_trace_data.rs"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"81c7f44d9f163dcfa91cd72919bd871c31f433b4ccf13bb3d1ddb37076df82dd"}},{"ruleId":"D2","level":"warning","message":{"text":"hyperlight_component_csharp::codec::write (cognitive 16): hyperlight_component_csharp::codec::write has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (8 pts), match/switch 3 (5 pts), loops 1 (2 pts), boolean chains 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hyperlight_component_csharp/src/codec.rs"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"1553f323af35b0f787408c7bcbffef05d7a8de133af509bcca7600655f7cc0f9"}},{"ruleId":"D2","level":"warning","message":{"text":"SurrogateProcess::map (cognitive 16): SurrogateProcess::map has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (12 pts), match/switch 3 (4 pts) (nesting depth added 8). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hyperlight_host/src/hypervisor/surrogate_process.rs"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"8586083868e1757719423c84c664f288e9c97cc2cea9aec5dd1f622d7e93740b"}},{"ruleId":"D2","level":"warning","message":{"text":"trace_dump::read_file (cognitive 16): trace_dump::read_file has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (13 pts), match/switch 1 (2 pts), loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/trace_dump/main.rs"},"region":{"startLine":532}}}],"partialFingerprints":{"codehealthFindingId/v1":"f164954fe0972b0287202b9939757947c1fa68dc3889045d243cf7fc8a116dba"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: WhpVm: ClassTooLong \u2014 720 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 11 methods, 6 blocks, lines 237-1451. The bar is 400 significant lines; this is 320 over it, 1.80\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hyperlight_host/src/hypervisor/virtual_machine/whp/x86_64.rs"},"region":{"startLine":237}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d530b0eb0f7718ca887de456d29e02ef1e1b51aa70f3362e42f3d69d20ac9a5"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: whp/x86_64.rs: FileTooLong \u2014 888 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 81% of them inside a single declaration: WhpVm (6 blocks, 237-1451). The bar is 500 significant lines; this is 388 over it, 1.78\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hyperlight_host/src/hypervisor/virtual_machine/whp/x86_64.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b509fb5cbafc72c29a28969ea0057e807c80d5e7a0b291626b9672fcae4f149a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: mem/shared_mem.rs: FileTooLong \u2014 887 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 387 over it, 1.77\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hyperlight_host/src/mem/shared_mem.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d27b34b728b3d57f19caa0b6e70aaf014039487bbcd301bdddfca7fa084a5566"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Ctx: TooManyMethods \u2014 53 methods, declared across 5 files: src/elaborate.rs (20), src/wf.rs (14), src/subtype.rs (11), src/tv.rs (6), \u002B1 more file(s). The bar is 30 methods; this is 23 over it, 1.77\u00D7 the bar. That list is where to read them, not a suggestion to split the file: the members belong to the type wherever they are declared, so moving them between files leaves the count unchanged. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hyperlight_component_util/src/etypes.rs"},"region":{"startLine":430}}}],"partialFingerprints":{"codehealthFindingId/v1":"555a2da2cb3ba89fe72a6b6efbd3207a9e427f3bf8014e65c864be639518971d"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: mem/mgr.rs: FileTooLong \u2014 842 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 62% of them inside a single declaration: SandboxMemoryManager (5 blocks, 370-1305). The bar is 500 significant lines; this is 342 over it, 1.68\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hyperlight_host/src/mem/mgr.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c88a59e75cbdb9f05d527bcfe7313d59209a9cfb8f61d67b578b012ff5b4fcd"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: hvf/mod.rs: FileTooLong \u2014 786 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 286 over it, 1.57\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hyperlight_host/src/hypervisor/virtual_machine/hvf/mod.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"92154d7a89dc59477c88b9e20a381735322d33622808fee1eafceb0cd898c948"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: virtq/ring.rs: FileTooLong \u2014 738 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 238 over it, 1.48\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hyperlight_common/src/virtq/ring.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c1619d8ef8c54069056b70f93b161a55f22d67a02d692a0e747ba166705a52f"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: hyperlight_component_util::hl::emit_hl_unmarshal_value: FunctionTooLong \u2014 hyperlight_component_util::hl::emit_hl_unmarshal_value runs 145 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 45 over it, 1.45\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hyperlight_component_util/src/hl.rs"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e9681e6869107112c5c1297ffcac285ff9b14b3a245f8e6f87bcfb108bd7446"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: MshvVm: ClassTooLong \u2014 543 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 4 methods, 5 blocks, lines 150-1018. The bar is 400 significant lines; this is 143 over it, 1.36\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hyperlight_host/src/hypervisor/virtual_machine/mshv/x86_64.rs"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"b34e3b1eb4e50c8e69737e29bf7b7156fd705406f7e2893def91d1e3fe3d5479"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: hyperlight_component_util::hl::emit_hl_marshal_value: FunctionTooLong \u2014 hyperlight_component_util::hl::emit_hl_marshal_value runs 134 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 34 over it, 1.34\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hyperlight_component_util/src/hl.rs"},"region":{"startLine":523}}}],"partialFingerprints":{"codehealthFindingId/v1":"27a5bc9f1e8db5aa860cb7913cc1c136678dd2e426a251263b2591df94bc9b73"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: trace_dump/main.rs: FileTooLong \u2014 660 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 160 over it, 1.32\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/trace_dump/main.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"47fb268ddb8877d77b76077b927413f88c8b0cd1a2aa3b17d3030645f4ab5ccf"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: SandboxMemoryManager: ClassTooLong \u2014 524 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 30 methods, 5 blocks, lines 370-1305. The bar is 400 significant lines; this is 124 over it, 1.31\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hyperlight_host/src/mem/mgr.rs"},"region":{"startLine":370}}}],"partialFingerprints":{"codehealthFindingId/v1":"3038e5e6edf4287a97cd78f07d52afae9cfdb98836569bf50362a008658decc4"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: mshv/x86_64.rs: FileTooLong \u2014 642 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 85% of them inside a single declaration: MshvVm (5 blocks, 150-1018). The bar is 500 significant lines; this is 142 over it, 1.28\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hyperlight_host/src/hypervisor/virtual_machine/mshv/x86_64.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"512785e38d99118c637881e3f623d2aac15cc0dad5771a723909f3317728f766"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: FunctionCall.encode: MethodTooLong \u2014 encode runs 127 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 27 over it, 1.27\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hyperlight_common/src/flatbuffer_wrappers/function_call.rs"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbb7c743d23a9065b3d2109fdcb9b5a6da2011f4725ccea6c53ddfcddec5f3af"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: MshvVm.run_vcpu: MethodTooLong \u2014 run_vcpu runs 126 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 26 over it, 1.26\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hyperlight_host/src/hypervisor/virtual_machine/mshv/x86_64.rs"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef350accbd0d7063f4143c38a763a3cb10a782c1c16f9e2594dc1bb747059824"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: HyperlightVm: TooManyMethods \u2014 37 methods, declared across 4 files: hyperlight_vm/mod.rs (15), hyperlight_vm/x86_64.rs (13), hyperlight_vm/aarch64.rs (7), hyperlight_vm/test_support.rs (2). The bar is 30 methods; this is 7 over it, 1.23\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":"src/hyperlight_host/src/hypervisor/hyperlight_vm/mod.rs"},"region":{"startLine":358}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a60bc2ce3a08f4df67edf83ce331688350308076b0c74cbc2de27fb32ca4762"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/rtypes.rs: FileTooLong \u2014 612 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 112 over it, 1.22\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hyperlight_component_util/src/rtypes.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"83e2a251ac8330d6eba467abd92f35ed88c1c7e9e3bc2519c68fa45b948304f3"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: EventsBatchEncoderGeneric.encode: MethodTooLong \u2014 encode runs 121 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 21 over it, 1.21\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hyperlight_common/src/flatbuffer_wrappers/guest_trace_data.rs"},"region":{"startLine":357}}}],"partialFingerprints":{"codehealthFindingId/v1":"d217cd946b4f5c9832437cfdf18513293b2e4d8808a49d0c458b8ab064e659d5"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: SandboxMemoryLayout: TooManyMethods \u2014 36 methods. The bar is 30 methods; this is 6 over it, 1.20\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hyperlight_host/src/mem/layout.rs"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"84ba6345a831d1acd4483f150743bbecbeb579a34c5ca1696c6b43cb02a970b3"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: whp/aarch64.rs: FileTooLong \u2014 599 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 64% of them inside a single declaration: WhpVm (4 blocks, 324-878). The bar is 500 significant lines; this is 99 over it, 1.20\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hyperlight_host/src/hypervisor/virtual_machine/whp/aarch64.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a90c131a53ebef1d82b44bfb1d2987ea245eb9ff80fe2b29aabf18e6e34e87d"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: hyperlight_component_util::rtypes::emit_value_toplevel: FunctionTooLong \u2014 hyperlight_component_util::rtypes::emit_value_toplevel runs 119 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 19 over it, 1.19\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hyperlight_component_util/src/rtypes.rs"},"region":{"startLine":407}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcb7209231f6a45049fd7dea9d3346c9995e6130dff370e02eb5e78f8e49dfb1"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: flatbuffer_wrappers/function_types.rs: FileTooLong \u2014 575 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 75 over it, 1.15\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hyperlight_common/src/flatbuffer_wrappers/function_types.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"416704db96fad1e2f85ca775e84a9420ffe46f9b956462049de9e81c7216e948"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: MshvVm.set_batched_registers: MethodTooLong \u2014 set_batched_registers 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":"src/hyperlight_host/src/hypervisor/virtual_machine/mshv/x86_64.rs"},"region":{"startLine":620}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f61d267f521c67e16385ff4d57a61a02068e0753e45b99205acf0c14ecf0ba5"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: WhpVm.run_vcpu: MethodTooLong \u2014 run_vcpu 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":"src/hyperlight_host/src/hypervisor/virtual_machine/whp/x86_64.rs"},"region":{"startLine":530}}}],"partialFingerprints":{"codehealthFindingId/v1":"45a1857d58fde90a1176ff4e37a48d2d436f7223a12115ce857fe5cc8e8b2542"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: virtq/producer.rs: FileTooLong \u2014 549 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 49 over it, 1.10\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hyperlight_common/src/virtq/producer.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6f4b28f3e9392870b03d041ab59d291657e6b3a3af969bca9f0424f705150d2"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/emit.rs: FileTooLong \u2014 542 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 42 over it, 1.08\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hyperlight_component_util/src/emit.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d953d7f8acb150cca5cf717757dbec84869f3cb0d1a2b82712a98aadd39cfa1"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: hyperlight_vm/x86_64.rs: FileTooLong \u2014 542 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 42 over it, 1.08\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hyperlight_host/src/hypervisor/hyperlight_vm/x86_64.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6855dd32471b0823eeeb434625b3c1a58f8a5d3c3b504106d464c3f351d0571c"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: HyperlightVm.run: MethodTooLong \u2014 run runs 108 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 8 over it, 1.08\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hyperlight_host/src/hypervisor/hyperlight_vm/mod.rs"},"region":{"startLine":622}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b667672a66572bafa3cf64870d4d0ae1eeac4492271526bfcf1c4a12800ccc0"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: hyperlight_vm/mod.rs: FileTooLong \u2014 539 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 39 over it, 1.08\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hyperlight_host/src/hypervisor/hyperlight_vm/mod.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b615892b7144e26732c4c3def1350ffa1423765377de79782e961366c543a4a9"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: KvmVm: ClassTooLong \u2014 419 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 6 methods, 5 blocks, lines 94-809. The bar is 400 significant lines; this is 19 over it, 1.05\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hyperlight_host/src/hypervisor/virtual_machine/kvm/x86_64.rs"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9442994a93ac1e27748a41b44a526dac830e1a06409e9d46e0363335d7b8ae6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): src/hyperlight_testing/src/logger.rs:74-103 | src/hyperlight_testing/src/simplelogger.rs:79-104 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hyperlight_testing/src/logger.rs"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"81319bde055706a131901181cf638d71645b98fb4b3a13b38debb1e144710b41"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): src/hyperlight_host/src/hypervisor/gdb/x86_64_target.rs:337-357 | src/hyperlight_host/src/hypervisor/gdb/x86_64_target.rs:363-383 | src/hyperlight_host/src/hypervisor/gdb/x86_64_target.rs:391-411 | src/hyperlight_host/src/hypervisor/gdb/x86_64_target.rs:417-437 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hyperlight_host/src/hypervisor/gdb/x86_64_target.rs"},"region":{"startLine":337}}}],"partialFingerprints":{"codehealthFindingId/v1":"556cb0be6afd05cab62d43207b72513bd87612caac85b8208f49b02d0174b6f0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (60 corresponding lines): src/hyperlight_host/src/hypervisor/regs/x86_64/special_regs.rs:305-366 | src/hyperlight_host/src/hypervisor/regs/x86_64/standard_regs.rs:263-322 \u2014 These two members are one piece of code written twice and then edited apart: 60 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hyperlight_host/src/hypervisor/regs/x86_64/special_regs.rs"},"region":{"startLine":305}}}],"partialFingerprints":{"codehealthFindingId/v1":"e497d7d69f0075c971fb1d708ee3ea0daa0c2d180a353cdafd40d4ef9cec52d3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (68 corresponding lines): src/hyperlight_host/src/hypervisor/virtual_machine/whp/aarch64.rs:464-531 | src/hyperlight_host/src/hypervisor/virtual_machine/whp/x86_64.rs:401-495 \u2014 These two members are one piece of code written twice and then edited apart: 68 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hyperlight_host/src/hypervisor/virtual_machine/whp/aarch64.rs"},"region":{"startLine":464}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c1fb4e20adc2556e6a31e9b67906ff6a9a23ab9aceb2f65f5be4d8d06140474"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (36 corresponding lines): src/hyperlight_ci/src/remote.rs:341-376 | src/hyperlight_ci/src/remote.rs:407-448 \u2014 These two members are one piece of code written twice and then edited apart: 36 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hyperlight_ci/src/remote.rs"},"region":{"startLine":341}}}],"partialFingerprints":{"codehealthFindingId/v1":"466506c5bd1af9550e6ad8f90c7ea1bf5881ca76be957747fa43b16cdf731f47"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): src/hyperlight_common/src/arch/aarch64/vmem.rs:475-499 | src/hyperlight_common/src/arch/amd64/vmem.rs:411-435 \u2014 These two members are one piece of code written twice and then edited apart: 25 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hyperlight_common/src/arch/aarch64/vmem.rs"},"region":{"startLine":475}}}],"partialFingerprints":{"codehealthFindingId/v1":"51da83f576797ad75d5cf821ea8e17b20d020908b03e86675a5b2d0c74b7c77e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 42\u002B corresponding lines): src/hyperlight_host/src/mem/shared_mem.rs:1369-1413 | src/hyperlight_host/src/mem/shared_mem.rs:1417-1461 | src/hyperlight_host/src/mem/shared_mem.rs:1465-1506 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 42 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hyperlight_host/src/mem/shared_mem.rs"},"region":{"startLine":1369}}}],"partialFingerprints":{"codehealthFindingId/v1":"12d0bf7c32af753658f4f20a04ee79063bf40c6c8bc7e0d7138e9f3beb682e92"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/hyperlight_host/src/hypervisor/virtual_machine/whp/aarch64.rs:536-564 | src/hyperlight_host/src/hypervisor/virtual_machine/whp/x86_64.rs:500-527 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hyperlight_host/src/hypervisor/virtual_machine/whp/aarch64.rs"},"region":{"startLine":536}}}],"partialFingerprints":{"codehealthFindingId/v1":"111d644613c44a1d69448a81f1779dbc543b69328a212b47cadc6b96cb9806a1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): src/hyperlight_common/src/virtq/consumer.rs:78-109 | src/hyperlight_common/src/virtq/consumer.rs:302-330 \u2014 These two members are one piece of code written twice and then edited apart: 29 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hyperlight_common/src/virtq/consumer.rs"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f906391b6651ab9319c7b67cb5f2b0a48508ceae77d64b1bf6610a260e90ac1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (34 corresponding lines): src/hyperlight_guest_bin/src/arch/aarch64/exception/handle.rs:48-85 | src/hyperlight_guest_bin/src/arch/amd64/exception/handle.rs:81-114 \u2014 These two members are one piece of code written twice and then edited apart: 34 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hyperlight_guest_bin/src/arch/aarch64/exception/handle.rs"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6239f42f55d88097112ce6f49c6a44c71c214f8740c0a62cc621eb0a271fe8c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/hyperlight_host/src/mem/shared_mem.rs:1303-1323 | src/hyperlight_host/src/mem/shared_mem.rs:1331-1352 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hyperlight_host/src/mem/shared_mem.rs"},"region":{"startLine":1303}}}],"partialFingerprints":{"codehealthFindingId/v1":"2efb308f736d87e99776ab2f80561c917e150e7105d4eb88669a326eaf684dbf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): src/hyperlight_host/src/hypervisor/virtual_machine/mshv/x86_64.rs:515-541 | src/hyperlight_host/src/hypervisor/virtual_machine/whp/x86_64.rs:814-838 \u2014 These two members are one piece of code written twice and then edited apart: 25 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hyperlight_host/src/hypervisor/virtual_machine/mshv/x86_64.rs"},"region":{"startLine":515}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc1fff3175aa74f16a7499f42161d87730eab394fa01e9200f4ec360ea50a452"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): src/hyperlight_common/src/arch/aarch64/exn.rs:21-35 | src/hyperlight_common/src/arch/aarch64/exn.rs:80-94 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hyperlight_common/src/arch/aarch64/exn.rs"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3fd123e8d5b04e4d9b88d937c27990ceb3bb11df4f2028fcfc8acbadbed7b11"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): src/hyperlight_common/src/arch/aarch64/vmem.rs:311-337 | src/hyperlight_common/src/arch/amd64/vmem.rs:208-231 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hyperlight_common/src/arch/aarch64/vmem.rs"},"region":{"startLine":311}}}],"partialFingerprints":{"codehealthFindingId/v1":"673331b5aa6a14a438559058e41d03ee88ab7ee56968f720d4c039c6e3e51d75"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/hyperlight_host/src/hypervisor/hyperlight_vm/x86_64.rs:762-781 | src/hyperlight_host/src/hypervisor/hyperlight_vm/x86_64.rs:790-812 \u2014 These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hyperlight_host/src/hypervisor/hyperlight_vm/x86_64.rs"},"region":{"startLine":762}}}],"partialFingerprints":{"codehealthFindingId/v1":"3241387f7b323fbdea981004d89d770d37e25f6c723444c8a96f97c9805e5160"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/hyperlight_guest/src/arch/aarch64/prim_alloc.rs:11-35 | src/hyperlight_guest/src/arch/amd64/prim_alloc.rs:11-32 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hyperlight_guest/src/arch/aarch64/prim_alloc.rs"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"85f682df0e8ce83dbf64f7f469352faddae026bbb56b10504a897c01133aede2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): src/hyperlight_common/src/virtq/ring.rs:541-568 | src/hyperlight_common/src/virtq/ring.rs:1046-1069 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hyperlight_common/src/virtq/ring.rs"},"region":{"startLine":541}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f076e9a1b55c7e2945bce96b25149891ac2db4665d84056de2e44f309af63fd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): src/hyperlight_component_macro/src/lib.rs:56-69 | src/hyperlight_component_macro/src/lib.rs:79-98 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hyperlight_component_macro/src/lib.rs"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"f59608be730f0ab42719b6ed7029373c26acff5a4728ebcffb98c1ad75daf5ac"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): src/hyperlight_host/src/hypervisor/virtual_machine/whp/aarch64.rs:884-899 | src/hyperlight_host/src/hypervisor/virtual_machine/whp/aarch64.rs:910-925 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hyperlight_host/src/hypervisor/virtual_machine/whp/aarch64.rs"},"region":{"startLine":884}}}],"partialFingerprints":{"codehealthFindingId/v1":"91da4ee1256717856a0981d3995d73fb4e5dd289f231a1d88c541602472bc5b8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 20\u002B corresponding lines): src/hyperlight_host/src/hypervisor/virtual_machine/whp/x86_64.rs:703-722 | src/hyperlight_host/src/hypervisor/virtual_machine/whp/x86_64.rs:732-751 | src/hyperlight_host/src/hypervisor/virtual_machine/whp/x86_64.rs:761-780 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 20 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hyperlight_host/src/hypervisor/virtual_machine/whp/x86_64.rs"},"region":{"startLine":703}}}],"partialFingerprints":{"codehealthFindingId/v1":"fade4c27db310004d54f45f17b52a49d0b8a54ecef94efa4eaa6681152e3cc5d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 17\u002B corresponding lines): src/hyperlight_common/src/virtq/ring.rs:887-904 | src/hyperlight_common/src/virtq/ring.rs:907-923 | src/hyperlight_common/src/virtq/ring.rs:1346-1362 | src/hyperlight_common/src/virtq/ring.rs:1365-1381 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 17 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hyperlight_common/src/virtq/ring.rs"},"region":{"startLine":887}}}],"partialFingerprints":{"codehealthFindingId/v1":"35f7a30018cc750fe7639ccbe60508cc815541349fb82de2b1b4d83f1975e6bc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): src/hyperlight_common/src/virtq/ring.rs:935-950 | src/hyperlight_common/src/virtq/ring.rs:1390-1406 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hyperlight_common/src/virtq/ring.rs"},"region":{"startLine":935}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a2c12629029eff3c4672f91f503d18a9c21d9f9e1018f5ca1d4d161938e29b7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): src/hyperlight_host/src/hypervisor/virtual_machine/kvm/aarch64.rs:262-274 | src/hyperlight_host/src/hypervisor/virtual_machine/kvm/aarch64.rs:288-299 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hyperlight_host/src/hypervisor/virtual_machine/kvm/aarch64.rs"},"region":{"startLine":262}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6d63ad23ed724fb70aac18552fcf421892bfc28342b83664a12f24a34ccce11"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): src/hyperlight_component_util/src/substitute.rs:441-452 | src/hyperlight_component_util/src/substitute.rs:453-464 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hyperlight_component_util/src/substitute.rs"},"region":{"startLine":441}}}],"partialFingerprints":{"codehealthFindingId/v1":"cea641d26316de89cd5e2501c3eb2bafffd99457148ef4f3786ef43ab2ec1eb3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): src/hyperlight_guest_bin/src/transport.rs:73-84 | src/hyperlight_guest_bin/src/transport.rs:86-97 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hyperlight_guest_bin/src/transport.rs"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"106e7e028b1d08ac20e4d725b938a33e196bade04ab74927a4e44454a45a89d2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/hyperlight_guest_tracing/src/state.rs:130-157 | src/hyperlight_guest_tracing/src/state.rs:160-179 \u2014 These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hyperlight_guest_tracing/src/state.rs"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d6e5e38b67c9f2b7a979bbb74dd0af875572c6b5ba925e6ca70fe640ad87474"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): src/hyperlight_component_util/src/guest.rs:243-253 | src/hyperlight_component_util/src/host.rs:313-325 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hyperlight_component_util/src/guest.rs"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"25e812ad6d7e9733c7379efee165b965dd1b7e5b82ab73d22cbd14173abbbd14"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): src/hyperlight_host/src/hypervisor/gdb/x86_64_target.rs:145-163 | src/hyperlight_host/src/hypervisor/gdb/x86_64_target.rs:169-190 \u2014 These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hyperlight_host/src/hypervisor/gdb/x86_64_target.rs"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"71ebb5eceb5aedbd0c647ac3f5778292e6fa3899b145bca445956b5f6dd4591f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): src/hyperlight_component_util/src/elaborate.rs:134-148 | src/hyperlight_component_util/src/elaborate.rs:195-212 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hyperlight_component_util/src/elaborate.rs"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"57e1ed88eb0333beac90e8f735d9e4d6f40f6dedb65ea16a31000522b80215ac"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): src/hyperlight_host/src/func/host_functions.rs:30-44 | src/hyperlight_host/src/func/host_functions.rs:71-90 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hyperlight_host/src/func/host_functions.rs"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"99dbe74923bc00fd0d8f6589288e3ec8670898a23981cffb1d4e3206861b7898"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): src/hyperlight_common/src/flatbuffer_wrappers/function_types.rs:360-374 | src/hyperlight_common/src/flatbuffer_wrappers/function_types.rs:382-396 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hyperlight_common/src/flatbuffer_wrappers/function_types.rs"},"region":{"startLine":360}}}],"partialFingerprints":{"codehealthFindingId/v1":"806f51b1b557d3a23bf948d69c2ffdf30e15b472b8bdd1ca583948abb8aaff6e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): src/hyperlight_guest/src/transport/mem.rs:129-143 | src/hyperlight_guest/src/transport/mem.rs:145-159 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hyperlight_guest/src/transport/mem.rs"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5d0761c30beaa69172ed30a940494366a70e8fff0680abbd6e6118bf2e1676a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): src/hyperlight_host/src/metrics/mod.rs:34-50 | src/hyperlight_host/src/metrics/mod.rs:61-77 \u2014 These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hyperlight_host/src/metrics/mod.rs"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a7c23ec7f51f416d88f58b545c9b9dccf4b96ef8a420917ab2345791c1a36ab"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): src/hyperlight_component_util/src/tv.rs:77-86 | src/hyperlight_component_util/src/tv.rs:96-105 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hyperlight_component_util/src/tv.rs"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7d75824e3899ce50af9bde8614e4d043ecea063822dd6476d1cd75a9346c9e7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): src/hyperlight_host/src/mem/mgr.rs:720-729 | src/hyperlight_host/src/mem/mgr.rs:732-741 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hyperlight_host/src/mem/mgr.rs"},"region":{"startLine":720}}}],"partialFingerprints":{"codehealthFindingId/v1":"26b01ff6e0842871dab83e31c403a0503f863267a3ac9a2eb75742f9003c38f9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): src/hyperlight_component_util/src/wf.rs:142-151 | src/hyperlight_component_util/src/wf.rs:156-165 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hyperlight_component_util/src/wf.rs"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"96ea6405fa508545d66b2e884b6eafbd908a793ee3c7d611f280369778061247"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): src/hyperlight_common/src/virtq/consumer.rs:113-124 | src/hyperlight_common/src/virtq/producer.rs:971-986 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hyperlight_common/src/virtq/consumer.rs"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e158bfd5df9f7a153e21cd0540ab33d0c937ac413c87392b953f9ed5f523cee"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): src/trace_dump/main.rs:500-507 | src/trace_dump/main.rs:516-530 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/trace_dump/main.rs"},"region":{"startLine":500}}}],"partialFingerprints":{"codehealthFindingId/v1":"b545c3cde3b22e8c2f7fba57adbafabfd4d64de172888a89367977b790f09205"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 15\u002B corresponding lines): src/hyperlight_host/src/hypervisor/gdb/x86_64_target.rs:66-82 | src/hyperlight_host/src/hypervisor/gdb/x86_64_target.rs:92-106 | src/hyperlight_host/src/hypervisor/gdb/x86_64_target.rs:455-474 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 15 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hyperlight_host/src/hypervisor/gdb/x86_64_target.rs"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"40178869954611ec846b0daa248761bb5d7ed6935c274e2da1588a172251f90a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): src/hyperlight_host/src/hypervisor/virtual_machine/whp/aarch64.rs:863-877 | src/hyperlight_host/src/hypervisor/virtual_machine/whp/x86_64.rs:1430-1450 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hyperlight_host/src/hypervisor/virtual_machine/whp/aarch64.rs"},"region":{"startLine":863}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d243e8fb739327c0c9c0eaf15536554a11d8461ee5c6ccfd2af62d4347350e7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): src/hyperlight_common/src/virtq/consumer.rs:697-706 | src/hyperlight_common/src/virtq/producer.rs:475-484 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hyperlight_common/src/virtq/consumer.rs"},"region":{"startLine":697}}}],"partialFingerprints":{"codehealthFindingId/v1":"de84c78d3eda6819f58b63a532c48dc90ca921bcd9e55c6b18beeee52ec2998e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/hyperlight_guest_bin/src/arch/aarch64/exception/handle.rs:25-46 | src/hyperlight_guest_bin/src/arch/amd64/exception/handle.rs:56-79 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hyperlight_guest_bin/src/arch/aarch64/exception/handle.rs"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"371beb3e045c10e7615598e9a2096459bd962b1fef158234ec7ac67e3e7625f4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): src/hyperlight_component_util/src/substitute.rs:392-400 | src/hyperlight_component_util/src/substitute.rs:401-409 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hyperlight_component_util/src/substitute.rs"},"region":{"startLine":392}}}],"partialFingerprints":{"codehealthFindingId/v1":"c976b06917dc26c45d630da6869f3471ca26c55942655d21fa52077c962d36a1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): src/hyperlight_guest_bin/src/lib.rs:61-70 | src/hyperlight_guest_bin/src/lib.rs:80-89 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hyperlight_guest_bin/src/lib.rs"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e0b7d6eec8d32d1e4b6f01f9aea139643d0f21a498c1fcc1ab3d12315fc6a8e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): src/hyperlight_host/src/mem/shared_mem.rs:266-276 | src/hyperlight_host/src/mem/shared_mem.rs:279-294 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hyperlight_host/src/mem/shared_mem.rs"},"region":{"startLine":266}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b54acee85e6f696f7ba9fc56cc7eec5b02a0c6ca291fdf71fb83be895e3f2de"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): src/hyperlight_host/src/hypervisor/virtual_machine/kvm/x86_64.rs:507-513 | src/hyperlight_host/src/hypervisor/virtual_machine/mshv/x86_64.rs:491-497 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hyperlight_host/src/hypervisor/virtual_machine/kvm/x86_64.rs"},"region":{"startLine":507}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fddde9e31df4db49bf4b27654ab387e5279a173bb98eeb4d9aab39d11900234"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 7\u002B corresponding lines): src/hyperlight_host/src/hypervisor/virtual_machine/kvm/x86_64.rs:468-474 | src/hyperlight_host/src/hypervisor/virtual_machine/mshv/x86_64.rs:456-462 | src/hyperlight_host/src/hypervisor/virtual_machine/whp/x86_64.rs:724-730 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 7 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hyperlight_host/src/hypervisor/virtual_machine/kvm/x86_64.rs"},"region":{"startLine":468}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b75f7b3ad393a067b62b80c48a2a272bbf703bfe0fff9da023821adfd3d42b6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 7\u002B corresponding lines): src/hyperlight_host/src/hypervisor/virtual_machine/kvm/x86_64.rs:486-494 | src/hyperlight_host/src/hypervisor/virtual_machine/mshv/x86_64.rs:472-478 | src/hyperlight_host/src/hypervisor/virtual_machine/whp/x86_64.rs:753-759 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 7 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hyperlight_host/src/hypervisor/virtual_machine/kvm/x86_64.rs"},"region":{"startLine":486}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e111e123088dfc6bc7f35b28a615026722dc986a595dceb4b6810b814e3a0f4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 7\u002B corresponding lines): src/hyperlight_host/src/hypervisor/virtual_machine/kvm/x86_64.rs:523-529 | src/hyperlight_host/src/hypervisor/virtual_machine/mshv/x86_64.rs:507-513 | src/hyperlight_host/src/hypervisor/virtual_machine/whp/x86_64.rs:882-888 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 7 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hyperlight_host/src/hypervisor/virtual_machine/kvm/x86_64.rs"},"region":{"startLine":523}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c01ef61b522556cdab906caa392e1c99e2177295811bd3a6870bbc4a8122d2c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): src/hyperlight_host/src/hypervisor/virtual_machine/kvm/x86_64.rs:615-625 | src/hyperlight_host/src/hypervisor/virtual_machine/mshv/x86_64.rs:572-578 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hyperlight_host/src/hypervisor/virtual_machine/kvm/x86_64.rs"},"region":{"startLine":615}}}],"partialFingerprints":{"codehealthFindingId/v1":"d20e291cf6d4dbc10762f8285436ee1af64f9fdbde7a140dda0005ee622a3320"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): src/hyperlight_guest/src/arch/aarch64/paging.rs:65-85 | src/hyperlight_guest/src/arch/amd64/paging.rs:83-90 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hyperlight_guest/src/arch/aarch64/paging.rs"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"b08c00669f029ed3fe522ad2646f6053ee8c901f21ea96335e6917c1c6f7919c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23\u201324 lines \u00D7 2): src/hyperlight_host/src/hypervisor/virtual_machine/mshv/x86_64.rs:854-876 | src/hyperlight_host/src/hypervisor/virtual_machine/whp/x86_64.rs:1217-1240 \u2014 \u0060src/hyperlight_host/src/hypervisor/virtual_machine/mshv/x86_64.rs\u0060 and \u0060src/hyperlight_host/src/hypervisor/virtual_machine/whp/x86_64.rs\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 4 separate duplicated blocks between them, totalling at least 60 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hyperlight_host/src/hypervisor/virtual_machine/mshv/x86_64.rs"},"region":{"startLine":854}}}],"partialFingerprints":{"codehealthFindingId/v1":"6543a3ae7a80a20b1ace784550c7c227a58f39a7919a87f1bf904ca439ffb963"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201323 lines \u00D7 2): src/hyperlight_component_util/src/hl.rs:316-325 | src/hyperlight_component_util/src/hl.rs:344-366 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/hyperlight_component_util/src/hl.rs:316\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hyperlight_component_util/src/hl.rs"},"region":{"startLine":316}}}],"partialFingerprints":{"codehealthFindingId/v1":"eba8e98a1e48711000cffa4cf1ef642b669ecfe4c993e10d02168128d5ddf2b1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201321 lines \u00D7 2): src/hyperlight_guest_bin/src/arch/aarch64/exception/handle.rs:55-72 | src/hyperlight_guest_bin/src/arch/amd64/exception/handle.rs:89-109 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/hyperlight_guest_bin/src/arch/aarch64/exception/handle.rs:55\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hyperlight_guest_bin/src/arch/aarch64/exception/handle.rs"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fc0a343dfc20446528b4754ea6c98d72cd67fb664a50e3cb227fd7eb8e23899"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): src/hyperlight_host/src/hypervisor/regs/x86_64/special_regs.rs:106-126 | src/hyperlight_host/src/hypervisor/regs/x86_64/special_regs.rs:158-178 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hyperlight_host/src/hypervisor/regs/x86_64/special_regs.rs"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffe40543fe87621c1e55c1112ae7e2fa07e3edd498f6739571704d8d031633f7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): src/hyperlight_host/src/hypervisor/regs/x86_64/standard_regs.rs:35-55 | src/hyperlight_host/src/hypervisor/regs/x86_64/standard_regs.rs:89-109 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hyperlight_host/src/hypervisor/regs/x86_64/standard_regs.rs"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"529124ad16ac379a6adb1cc3a774b9a2d45573860f751a0ab37107c7d779a612"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20\u201321 lines \u00D7 2): src/hyperlight_host/src/hypervisor/virtual_machine/mshv/x86_64.rs:879-898 | src/hyperlight_host/src/hypervisor/virtual_machine/whp/x86_64.rs:1244-1264 \u2014 \u0060src/hyperlight_host/src/hypervisor/virtual_machine/mshv/x86_64.rs\u0060 and \u0060src/hyperlight_host/src/hypervisor/virtual_machine/whp/x86_64.rs\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 4 separate duplicated blocks between them, totalling at least 60 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hyperlight_host/src/hypervisor/virtual_machine/mshv/x86_64.rs"},"region":{"startLine":879}}}],"partialFingerprints":{"codehealthFindingId/v1":"c78a60547cde5f95cf87b2a4c857a2fea462fe9511471cce8b33568089d62402"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201320 lines \u00D7 3): src/hyperlight_common/src/flatbuffer_wrappers/guest_trace_data.rs:382-401 | src/hyperlight_common/src/flatbuffer_wrappers/guest_trace_data.rs:449-467 | src/hyperlight_common/src/flatbuffer_wrappers/guest_trace_data.rs:489-508 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/hyperlight_common/src/flatbuffer_wrappers/guest_trace_data.rs:378\u0060 calls \u0060create_string\u0060 and \u0060src/hyperlight_common/src/flatbuffer_wrappers/guest_trace_data.rs:444\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hyperlight_common/src/flatbuffer_wrappers/guest_trace_data.rs"},"region":{"startLine":382}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd229e5d47c69ff7ed2eaaa1d2ae14bed27050ff65edd3b50bea936ab130197e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): src/hyperlight_common/src/arch/aarch64/vmem.rs:181-199 | src/hyperlight_common/src/arch/amd64/vmem.rs:284-302 \u2014 \u0060src/hyperlight_common/src/arch/aarch64/vmem.rs\u0060 and \u0060src/hyperlight_common/src/arch/amd64/vmem.rs\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 5 separate duplicated blocks between them, totalling at least 60 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/hyperlight_common/src/arch/aarch64/vmem.rs:181\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hyperlight_common/src/arch/aarch64/vmem.rs"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"88bd0853b26306c6a1b8d2780c3b6f5c511348b1a6d3180e22005fc1d822cf27"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201319 lines \u00D7 2): src/hyperlight_host/src/hypervisor/virtual_machine/whp/aarch64.rs:547-564 | src/hyperlight_host/src/hypervisor/virtual_machine/whp/x86_64.rs:509-527 \u2014 before extracting anything, compare \u0060src/hyperlight_host/src/hypervisor/virtual_machine/whp/aarch64.rs\u0060 and \u0060src/hyperlight_host/src/hypervisor/virtual_machine/whp/x86_64.rs\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 43 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/hyperlight_host/src/hypervisor/virtual_machine/whp/aarch64.rs:547\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hyperlight_host/src/hypervisor/virtual_machine/whp/aarch64.rs"},"region":{"startLine":547}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5ae4bbebe477b79fa9a8968b71a743919af20f97e4799a536891b7af01da14a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): src/trace_dump/main.rs:324-342 | src/trace_dump/main.rs:422-440 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/trace_dump/main.rs"},"region":{"startLine":324}}}],"partialFingerprints":{"codehealthFindingId/v1":"b46917c2568a6d90a08a8cd6c38e8b2c67fe2cc343ab4cbf41744ccbb7249dce"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201317 lines \u00D7 3): src/hyperlight_host/src/hypervisor/regs/x86_64/debug_regs.rs:174-190 | src/hyperlight_host/src/hypervisor/regs/x86_64/special_regs.rs:356-366 | src/hyperlight_host/src/hypervisor/regs/x86_64/standard_regs.rs:312-322 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 3 call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/hyperlight_host/src/hypervisor/regs/x86_64/debug_regs.rs:174\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/hyperlight_host/src/hypervisor/regs/x86_64/special_regs.rs:348\u0060 calls \u0060default\u0060 and \u0060src/hyperlight_host/src/hypervisor/regs/x86_64/standard_regs.rs:304\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hyperlight_host/src/hypervisor/regs/x86_64/debug_regs.rs"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b76062d1dafb3b65ce8d5182b23bcec9e6c6b3f6520a441316646a89226ed39"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 4): src/hyperlight_host/src/hypervisor/gdb/x86_64_target.rs:342-357 | src/hyperlight_host/src/hypervisor/gdb/x86_64_target.rs:368-383 | src/hyperlight_host/src/hypervisor/gdb/x86_64_target.rs:396-411 | src/hyperlight_host/src/hypervisor/gdb/x86_64_target.rs:422-437 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/hyperlight_host/src/hypervisor/gdb/x86_64_target.rs:342\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hyperlight_host/src/hypervisor/gdb/x86_64_target.rs"},"region":{"startLine":342}}}],"partialFingerprints":{"codehealthFindingId/v1":"401754afb7f049f0ea9819b4606241f78ef8a49bebbf96d11c9061164549651f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): src/hyperlight_host/src/hypervisor/gdb/x86_64_target.rs:175-190 | src/hyperlight_host/src/hypervisor/gdb/x86_64_target.rs:280-295 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/hyperlight_host/src/hypervisor/gdb/x86_64_target.rs:175\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hyperlight_host/src/hypervisor/gdb/x86_64_target.rs"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5e3387c6f35fe9d04e5bf2c46620f3cf44256f15574b3924034340c225215f1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): src/hyperlight_host/src/hypervisor/regs/x86_64/special_regs.rs:392-407 | src/hyperlight_host/src/hypervisor/regs/x86_64/special_regs.rs:434-449 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hyperlight_host/src/hypervisor/regs/x86_64/special_regs.rs"},"region":{"startLine":392}}}],"partialFingerprints":{"codehealthFindingId/v1":"72b6f4d6bb603016c28bcedcef84edccbf7d4e76c72d01857b4e84aba287cfa3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): src/hyperlight_host/src/hypervisor/virtual_machine/whp/x86_64.rs:895-910 | src/hyperlight_host/src/hypervisor/virtual_machine/whp/x86_64.rs:946-961 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/hyperlight_host/src/hypervisor/virtual_machine/whp/x86_64.rs:895\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hyperlight_host/src/hypervisor/virtual_machine/whp/x86_64.rs"},"region":{"startLine":895}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc7bd8f2c83083f47530bff14708479ff165f52c7d623a95ed735f5df225dfe5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): src/hyperlight_host/src/mem/shared_mem.rs:1370-1385 | src/hyperlight_host/src/mem/shared_mem.rs:1418-1433 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/hyperlight_host/src/mem/shared_mem.rs:1370\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060slice\u0060 to \u0060\u0026mut [u8]\u0060 in one and \u0060\u0026[u8]\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hyperlight_host/src/mem/shared_mem.rs"},"region":{"startLine":1370}}}],"partialFingerprints":{"codehealthFindingId/v1":"f353ffff7c1b88f6914f520d88ea90cceb4e9afb07a5f9f13e82fe2f554edcb1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 2): src/hyperlight_testing/src/logger.rs:85-99 | src/hyperlight_testing/src/simplelogger.rs:86-99 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/hyperlight_testing/src/logger.rs:85\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hyperlight_testing/src/logger.rs"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"044c7f85420388e98f11b37153cfca2e1b5073b5a399a3409b75722f41dff8fa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): src/hyperlight_component_util/src/hl.rs:641-653 | src/hyperlight_component_util/src/hl.rs:662-674 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/hyperlight_component_util/src/hl.rs:641\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/hyperlight_component_util/src/hl.rs:675\u0060 calls \u0060lend\u0060, \u0060push\u0060 and \u0060src/hyperlight_component_util/src/hl.rs:654\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hyperlight_component_util/src/hl.rs"},"region":{"startLine":641}}}],"partialFingerprints":{"codehealthFindingId/v1":"022645aaa88152abd88629386bb837ce45fec12f7ddc38864e703d2d9c3e2b08"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): src/hyperlight_guest/src/arch/aarch64/prim_alloc.rs:23-35 | src/hyperlight_guest/src/arch/amd64/prim_alloc.rs:20-32 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/hyperlight_guest/src/arch/aarch64/prim_alloc.rs:23\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hyperlight_guest/src/arch/aarch64/prim_alloc.rs"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"df06e1c4444477dd82465266642a71802192bff041cc5bceae023da3b443a868"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): src/hyperlight_guest_macro/src/lib.rs:81-93 | src/hyperlight_guest_macro/src/lib.rs:210-222 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hyperlight_guest_macro/src/lib.rs"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"375387723563e7d623c5f40d8951a18a9741dcbbfaacce11a3d14650e82ab182"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): src/hyperlight_host/src/hypervisor/virtual_machine/whp/aarch64.rs:465-477 | src/hyperlight_host/src/hypervisor/virtual_machine/whp/x86_64.rs:402-414 \u2014 before extracting anything, compare \u0060src/hyperlight_host/src/hypervisor/virtual_machine/whp/aarch64.rs\u0060 and \u0060src/hyperlight_host/src/hypervisor/virtual_machine/whp/x86_64.rs\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 43 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hyperlight_host/src/hypervisor/virtual_machine/whp/aarch64.rs"},"region":{"startLine":465}}}],"partialFingerprints":{"codehealthFindingId/v1":"007ed19707026019d60ffd486e74abfac1cb1bf65807aa28e5d3e43da9982cd2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): src/hyperlight_host/src/mem/shared_mem.rs:1308-1321 | src/hyperlight_host/src/mem/shared_mem.rs:1336-1349 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hyperlight_host/src/mem/shared_mem.rs"},"region":{"startLine":1308}}}],"partialFingerprints":{"codehealthFindingId/v1":"2820379ea398ece897681af6d50beaf857d5070030245d8aebfdf192c3a9265e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): src/hyperlight_component_util/src/hl.rs:375-386 | src/hyperlight_component_util/src/hl.rs:682-693 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/hyperlight_component_util/src/hl.rs:375\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hyperlight_component_util/src/hl.rs"},"region":{"startLine":375}}}],"partialFingerprints":{"codehealthFindingId/v1":"c17a276d52df0d49919192135fc80481cb7152c4ee9830401d96b9c19eee67b4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): src/hyperlight_host/src/func/host_functions.rs:31-42 | src/hyperlight_host/src/func/host_functions.rs:72-83 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hyperlight_host/src/func/host_functions.rs"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e0cb337027333fed1980ffed567cc30509325282eae5f7654a7dd8b10642781"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): src/hyperlight_host/src/hypervisor/regs/x86_64/debug_regs.rs:146-157 | src/hyperlight_host/src/hypervisor/regs/x86_64/standard_regs.rs:268-279 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/hyperlight_host/src/hypervisor/regs/x86_64/debug_regs.rs:146\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hyperlight_host/src/hypervisor/regs/x86_64/debug_regs.rs"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c93bef0c41420b473662f2268b191537c855d577c212c14a057d43f9595cb21"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): src/hyperlight_host/src/hypervisor/surrogate_process.rs:135-146 | src/hyperlight_host/src/hypervisor/surrogate_process.rs:151-162 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hyperlight_host/src/hypervisor/surrogate_process.rs"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"8eff7250cc1c48666f6f1f12e29e9de736f6c1b4d8451956acbdb49841395e36"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 2): src/hyperlight_host/src/hypervisor/virtual_machine/kvm/aarch64.rs:250-260 | src/hyperlight_host/src/hypervisor/virtual_machine/kvm/x86_64.rs:345-356 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/hyperlight_host/src/hypervisor/virtual_machine/kvm/aarch64.rs:250\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hyperlight_host/src/hypervisor/virtual_machine/kvm/aarch64.rs"},"region":{"startLine":250}}}],"partialFingerprints":{"codehealthFindingId/v1":"c30cbad47d8530f8c7927c73a5b8fa9a9a5000846e3a52980a25d8414f0f132d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/hyperlight_component_util/src/guest.rs:33-43 | src/hyperlight_component_util/src/host.rs:31-41 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/hyperlight_component_util/src/host.rs:29\u0060 calls \u0060kebab_to_fn\u0060, \u0060Plain\u0060 and \u0060src/hyperlight_component_util/src/guest.rs:32\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hyperlight_component_util/src/guest.rs"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b0eb9955b9f8a3d4a6435362f022909890b1b52d66757dfedcda3b75e45d1b0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 2): src/hyperlight_host/src/hypervisor/virtual_machine/whp/aarch64.rs:488-497 | src/hyperlight_host/src/hypervisor/virtual_machine/whp/x86_64.rs:437-447 \u2014 before extracting anything, compare \u0060src/hyperlight_host/src/hypervisor/virtual_machine/whp/aarch64.rs\u0060 and \u0060src/hyperlight_host/src/hypervisor/virtual_machine/whp/x86_64.rs\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 43 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/hyperlight_host/src/hypervisor/virtual_machine/whp/aarch64.rs:488\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hyperlight_host/src/hypervisor/virtual_machine/whp/aarch64.rs"},"region":{"startLine":488}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbaf46388d682979529dcc3660482a2087b6c71fbd4b58ecf8ee4edd77bff272"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src/hyperlight_common/src/arch/aarch64/vmem.rs:490-499 | src/hyperlight_common/src/arch/amd64/vmem.rs:426-435 \u2014 \u0060src/hyperlight_common/src/arch/aarch64/vmem.rs\u0060 and \u0060src/hyperlight_common/src/arch/amd64/vmem.rs\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 5 separate duplicated blocks between them, totalling at least 60 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/hyperlight_common/src/arch/aarch64/vmem.rs:490\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hyperlight_common/src/arch/aarch64/vmem.rs"},"region":{"startLine":490}}}],"partialFingerprints":{"codehealthFindingId/v1":"6bc66b93b9c5591deb91f70077db4cdb6152854978da7feb9fcb3020e49790a6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 2): src/hyperlight_common/src/virtq/consumer.rs:81-90 | src/hyperlight_common/src/virtq/consumer.rs:304-312 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/hyperlight_common/src/virtq/consumer.rs:81\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/hyperlight_common/src/virtq/consumer.rs:91\u0060 calls \u0060split_at_mut\u0060 and \u0060src/hyperlight_common/src/virtq/consumer.rs:314\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hyperlight_common/src/virtq/consumer.rs"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"f70e564a469cc2e0f57bc3feaead25a6b123d561b9dc9256860d7feb3732c6cb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src/hyperlight_common/src/virtq/ring.rs:614-623 | src/hyperlight_common/src/virtq/ring.rs:742-752 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hyperlight_common/src/virtq/ring.rs"},"region":{"startLine":614}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b388f0fb7daa52b6b949ef7d705bfacc67f86fdecd76784b055581d555fb118"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u201310 lines \u00D7 2): src/hyperlight_host/src/hypervisor/hyperlight_vm/x86_64.rs:766-772 | src/hyperlight_host/src/hypervisor/hyperlight_vm/x86_64.rs:794-803 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/hyperlight_host/src/hypervisor/hyperlight_vm/x86_64.rs:766\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hyperlight_host/src/hypervisor/hyperlight_vm/x86_64.rs"},"region":{"startLine":766}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8db7a604822e39369c1afda9c19d3420815f2bbe3ee3d6214d8099ee516f341"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): src/hyperlight_component_util/src/rtypes.rs:425-433 | src/hyperlight_component_util/src/rtypes.rs:503-511 | src/hyperlight_component_util/src/rtypes.rs:537-545 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/hyperlight_component_util/src/rtypes.rs:425\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/hyperlight_component_util/src/rtypes.rs:422\u0060 calls \u0060emit_value\u0060 and \u0060src/hyperlight_component_util/src/rtypes.rs:534\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hyperlight_component_util/src/rtypes.rs"},"region":{"startLine":425}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6e57c915a91bba26faa97889b2bf5b6a5791daffc94664d89891c00c6886bc4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): src/hyperlight_guest_macro/src/lib.rs:78-86 | src/hyperlight_guest_macro/src/lib.rs:207-215 | src/hyperlight_guest_macro/src/lib.rs:281-289 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/hyperlight_guest_macro/src/lib.rs:78\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hyperlight_guest_macro/src/lib.rs"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"3db9d36e94edc4f29baa19b11ac1ac656f1e680c2fe5404679710c8bf9b4d918"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/hyperlight_ci/src/remote.rs:352-360 | src/hyperlight_ci/src/remote.rs:418-426 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/hyperlight_ci/src/remote.rs:352\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hyperlight_ci/src/remote.rs"},"region":{"startLine":352}}}],"partialFingerprints":{"codehealthFindingId/v1":"041f4eaeabd68e80339a8ac994d58c7cd47d8cef8b023a79b229364a9a2ee6ba"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 2): src/hyperlight_common/src/arch/aarch64/vmem.rs:280-288 | src/hyperlight_common/src/arch/amd64/vmem.rs:453-460 \u2014 \u0060src/hyperlight_common/src/arch/aarch64/vmem.rs\u0060 and \u0060src/hyperlight_common/src/arch/amd64/vmem.rs\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 5 separate duplicated blocks between them, totalling at least 60 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/hyperlight_common/src/arch/aarch64/vmem.rs:280\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hyperlight_common/src/arch/aarch64/vmem.rs"},"region":{"startLine":280}}}],"partialFingerprints":{"codehealthFindingId/v1":"0104804b01ada12a803579a3c72d49ca50a5ea83d349d76e8138de60078f34c5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/hyperlight_component_util/src/hl.rs:43-51 | src/hyperlight_component_util/src/hl.rs:408-416 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/hyperlight_component_util/src/hl.rs:43\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hyperlight_component_util/src/hl.rs"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5fd883d85e6f08ce529724bfa71e05d32c3998d66ced5b162a0ba6bd6759804"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/hyperlight_guest/src/transport/mem.rs:130-138 | src/hyperlight_guest/src/transport/mem.rs:146-154 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hyperlight_guest/src/transport/mem.rs"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c9c20f1902071978b3fbbe166682f1ffd925c02a276193bc9b5f0ee6e1a8e44"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/hyperlight_host/src/hypervisor/regs/x86_64/fpu.rs:260-268 | src/hyperlight_host/src/hypervisor/regs/x86_64/fpu.rs:283-291 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/hyperlight_host/src/hypervisor/regs/x86_64/fpu.rs:260\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hyperlight_host/src/hypervisor/regs/x86_64/fpu.rs"},"region":{"startLine":260}}}],"partialFingerprints":{"codehealthFindingId/v1":"a495aa0018fe0be8b83d397b7c2b786f1d7f29a30a4cd666af04205ac9822f21"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/hyperlight_common/src/virtq/ring.rs:774-781 | src/hyperlight_common/src/virtq/ring.rs:1087-1094 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hyperlight_common/src/virtq/ring.rs"},"region":{"startLine":774}}}],"partialFingerprints":{"codehealthFindingId/v1":"381cc8248b0ec325befa597d6cc692491f0d08c36893768abc61fd28f0b7ea52"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/hyperlight_component_util/src/elaborate.rs:529-536 | src/hyperlight_component_util/src/elaborate.rs:634-641 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/hyperlight_component_util/src/elaborate.rs:529\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hyperlight_component_util/src/elaborate.rs"},"region":{"startLine":529}}}],"partialFingerprints":{"codehealthFindingId/v1":"35f11ecf777f6e33c3539eaa2fbeb80170fc82efa21ce267c9a0fcad17568a57"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 2): src/hyperlight_component_util/src/guest.rs:139-145 | src/hyperlight_component_util/src/host.rs:284-291 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hyperlight_component_util/src/guest.rs"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"208c270b2201e303a7ac0702a1d2248abb915f7345e948f94d67ea0c166d38fc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): src/hyperlight_common/src/flatbuffer_wrappers/guest_trace_data.rs:195-201 | src/hyperlight_common/src/flatbuffer_wrappers/guest_trace_data.rs:237-243 | src/hyperlight_common/src/flatbuffer_wrappers/guest_trace_data.rs:259-265 \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":"src/hyperlight_common/src/flatbuffer_wrappers/guest_trace_data.rs"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fe99cf4278853b786507dd7690381309afea2f788731e2f6e3f4b212da47a5e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/hyperlight_guest_bin/src/memory.rs:128-136 | src/hyperlight_guest_bin/src/memory.rs:162-168 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/hyperlight_guest_bin/src/memory.rs:128\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hyperlight_guest_bin/src/memory.rs"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"1769d02561f749670c062d2297ea34345775374905272f6a8c2fd4a183443fef"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/hyperlight_host/src/hypervisor/virtual_machine/whp/x86_64.rs:842-848 | src/hyperlight_host/src/hypervisor/virtual_machine/whp/x86_64.rs:1056-1062 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/hyperlight_host/src/hypervisor/virtual_machine/whp/x86_64.rs:842\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hyperlight_host/src/hypervisor/virtual_machine/whp/x86_64.rs"},"region":{"startLine":842}}}],"partialFingerprints":{"codehealthFindingId/v1":"6031cce80bb82e855e5c3862e35ca7f211becc8f2cc0f80dff0d8d5f0caff46c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/hyperlight_component_macro/src/lib.rs:57-62 | src/hyperlight_component_macro/src/lib.rs:80-85 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/hyperlight_component_macro/src/lib.rs:57\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hyperlight_component_macro/src/lib.rs"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0355e4a54f5e4bc07ee71b6e237329603f0965cbd28df5240b77d7ef515ed89"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/hyperlight_component_util/src/rtypes.rs:354-359 | src/hyperlight_component_util/src/rtypes.rs:376-381 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/hyperlight_component_util/src/rtypes.rs:354\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hyperlight_component_util/src/rtypes.rs"},"region":{"startLine":354}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd084d3754790ef8e3cbbc08504fca3ff88e2b5577827adc074d183eb0e6c13a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/hyperlight_host/src/mem/mgr.rs:202-207 | src/hyperlight_host/src/mem/mgr.rs:244-249 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/hyperlight_host/src/mem/mgr.rs:202\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hyperlight_host/src/mem/mgr.rs"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ea6e5a071fc113209d2796c0cd79e00dd794c6cf2f50763a9c0d48eb195012a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src/hyperlight_component_util/src/hl.rs:309-313 | src/hyperlight_component_util/src/hl.rs:337-341 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/hyperlight_component_util/src/hl.rs:309\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hyperlight_component_util/src/hl.rs"},"region":{"startLine":309}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc01009ce8d80684da59a878778cc4e0a9438cd27ff3de65eef3298fd2b0362f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src/hyperlight_host/src/hypervisor/virtual_machine/mshv/x86_64.rs:398-402 | src/hyperlight_host/src/hypervisor/virtual_machine/whp/x86_64.rs:639-643 \u2014 \u0060src/hyperlight_host/src/hypervisor/virtual_machine/mshv/x86_64.rs\u0060 and \u0060src/hyperlight_host/src/hypervisor/virtual_machine/whp/x86_64.rs\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 4 separate duplicated blocks between them, totalling at least 60 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/hyperlight_host/src/hypervisor/virtual_machine/mshv/x86_64.rs:398\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hyperlight_host/src/hypervisor/virtual_machine/mshv/x86_64.rs"},"region":{"startLine":398}}}],"partialFingerprints":{"codehealthFindingId/v1":"970f374ced3eefc415e1c4e0be8467cd474db59a8d367207415cc8d2d0533d36"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): src/hyperlight_common/src/arch/aarch64/vmem.rs:450-465 | src/hyperlight_common/src/arch/amd64/vmem.rs:388-403 \u2014 \u0060src/hyperlight_common/src/arch/aarch64/vmem.rs\u0060 and \u0060src/hyperlight_common/src/arch/amd64/vmem.rs\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 5 separate duplicated blocks between them, totalling at least 60 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hyperlight_common/src/arch/aarch64/vmem.rs"},"region":{"startLine":450}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed050e51b9d18f637491ba621b8a98a96a796df742f0e95fb19bc1fbb9f6ffd5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/hyperlight_guest/src/arch/aarch64/paging.rs:22-28 | src/hyperlight_guest/src/arch/amd64/paging.rs:30-36 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hyperlight_guest/src/arch/aarch64/paging.rs"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c21413e7f70613d3a2f326aa6fd7132650598de152e5208bd71e0386ee047a9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): src/hyperlight_guest/src/arch/aarch64/paging.rs:108-120 | src/hyperlight_guest/src/arch/amd64/paging.rs:114-126 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hyperlight_guest/src/arch/aarch64/paging.rs"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ed850b90c14a9ca1c7a37e749b87a164e4df43bbd801b9d08fd216eff163e17"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/hyperlight_host/src/hypervisor/virtual_machine/kvm/aarch64.rs:112-117 | src/hyperlight_host/src/hypervisor/virtual_machine/kvm/x86_64.rs:423-428 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/hyperlight_host/src/hypervisor/virtual_machine/kvm/aarch64.rs:112\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hyperlight_host/src/hypervisor/virtual_machine/kvm/aarch64.rs"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b4d72faab5057dd537fedf1f1208f08b486582781ee5df0188947ae31ec5110"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src/hyperlight_host/src/hypervisor/virtual_machine/kvm/aarch64.rs:122-131 | src/hyperlight_host/src/hypervisor/virtual_machine/kvm/x86_64.rs:433-442 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/hyperlight_host/src/hypervisor/virtual_machine/kvm/aarch64.rs:122\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hyperlight_host/src/hypervisor/virtual_machine/kvm/aarch64.rs"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"001b5537ee5827addf7b768ad49f7da4e4376a90a3e719858d5141056202f457"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/hyperlight_host/src/hypervisor/virtual_machine/kvm/x86_64.rs:460-466 | src/hyperlight_host/src/hypervisor/virtual_machine/mshv/x86_64.rs:448-454 \u2014 \u0060src/hyperlight_host/src/hypervisor/virtual_machine/kvm/x86_64.rs\u0060 and \u0060src/hyperlight_host/src/hypervisor/virtual_machine/mshv/x86_64.rs\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 4 separate duplicated blocks between them, totalling at least 30 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hyperlight_host/src/hypervisor/virtual_machine/kvm/x86_64.rs"},"region":{"startLine":460}}}],"partialFingerprints":{"codehealthFindingId/v1":"811a90ceda8145d6c49504e8dc4fe761be17ec28f469ad8badff51d3fb58b86a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/hyperlight_host/src/hypervisor/virtual_machine/kvm/x86_64.rs:476-484 | src/hyperlight_host/src/hypervisor/virtual_machine/mshv/x86_64.rs:464-470 \u2014 \u0060src/hyperlight_host/src/hypervisor/virtual_machine/kvm/x86_64.rs\u0060 and \u0060src/hyperlight_host/src/hypervisor/virtual_machine/mshv/x86_64.rs\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 4 separate duplicated blocks between them, totalling at least 30 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hyperlight_host/src/hypervisor/virtual_machine/kvm/x86_64.rs"},"region":{"startLine":476}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0f2a8cd8a92f95678a9e104fe9552e27cc615127a5a5a22e7fec4893a8eb6d0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/hyperlight_host/src/hypervisor/virtual_machine/kvm/x86_64.rs:496-502 | src/hyperlight_host/src/hypervisor/virtual_machine/mshv/x86_64.rs:480-486 \u2014 \u0060src/hyperlight_host/src/hypervisor/virtual_machine/kvm/x86_64.rs\u0060 and \u0060src/hyperlight_host/src/hypervisor/virtual_machine/mshv/x86_64.rs\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 4 separate duplicated blocks between them, totalling at least 30 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hyperlight_host/src/hypervisor/virtual_machine/kvm/x86_64.rs"},"region":{"startLine":496}}}],"partialFingerprints":{"codehealthFindingId/v1":"44695089457cb2da7a48cac61f3db22300808ddb9480e9a40168ec388fcfbc4b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/hyperlight_host/src/hypervisor/virtual_machine/kvm/x86_64.rs:515-521 | src/hyperlight_host/src/hypervisor/virtual_machine/mshv/x86_64.rs:499-505 \u2014 \u0060src/hyperlight_host/src/hypervisor/virtual_machine/kvm/x86_64.rs\u0060 and \u0060src/hyperlight_host/src/hypervisor/virtual_machine/mshv/x86_64.rs\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 4 separate duplicated blocks between them, totalling at least 30 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hyperlight_host/src/hypervisor/virtual_machine/kvm/x86_64.rs"},"region":{"startLine":515}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee1b6a36bba2d248bab37f1413a0f7d6bfcb8ddc94323a1522c93b14d46ca0e6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src/hyperlight_host/src/hypervisor/virtual_machine/mshv/x86_64.rs:842-851 | src/hyperlight_host/src/hypervisor/virtual_machine/whp/x86_64.rs:1205-1214 \u2014 \u0060src/hyperlight_host/src/hypervisor/virtual_machine/mshv/x86_64.rs\u0060 and \u0060src/hyperlight_host/src/hypervisor/virtual_machine/whp/x86_64.rs\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 4 separate duplicated blocks between them, totalling at least 60 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hyperlight_host/src/hypervisor/virtual_machine/mshv/x86_64.rs"},"region":{"startLine":842}}}],"partialFingerprints":{"codehealthFindingId/v1":"0cccda09c12894fb1bb6adfa5f201c9291c9e6af2330a8bcf1ff02f342a6033a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/hyperlight_testing/src/logger.rs:33-38 | src/hyperlight_testing/src/simplelogger.rs:31-36 \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":"src/hyperlight_testing/src/logger.rs"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"255048ffd69fcde8a55f9fd8c6c75bdb32df1710d70cf74baafe25686947be9a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/hyperlight_common/src/arch/aarch64/vmem.rs:44-49 | src/hyperlight_common/src/arch/amd64/vmem.rs:166-171 \u2014 \u0060src/hyperlight_common/src/arch/aarch64/vmem.rs\u0060 and \u0060src/hyperlight_common/src/arch/amd64/vmem.rs\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 5 separate duplicated blocks between them, totalling at least 60 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hyperlight_common/src/arch/aarch64/vmem.rs"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc10a9b5f6ef9139d02bd6d4c43f837e6e2babd354a12674c3ca3051f2684cb9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/hyperlight_component_util/src/rtypes.rs:364-370 | src/hyperlight_component_util/src/rtypes.rs:386-392 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/hyperlight_component_util/src/rtypes.rs:364\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hyperlight_component_util/src/rtypes.rs"},"region":{"startLine":364}}}],"partialFingerprints":{"codehealthFindingId/v1":"f485e7aeb9e9e046cb03a93f9a2ae66d2575b12bbdb40addae924e1126a2c10b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src/hyperlight_component_util/src/emit.rs:975-979 | src/hyperlight_component_util/src/emit.rs:982-988 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/hyperlight_component_util/src/emit.rs:975\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hyperlight_component_util/src/emit.rs"},"region":{"startLine":975}}}],"partialFingerprints":{"codehealthFindingId/v1":"49cf503d550b71858fefb598409893e91b26f43bb390cc48c30029fb76f8469b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src/hyperlight_host/src/hypervisor/virtual_machine/whp/aarch64.rs:886-890 | src/hyperlight_host/src/hypervisor/virtual_machine/whp/aarch64.rs:912-916 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/hyperlight_host/src/hypervisor/virtual_machine/whp/aarch64.rs:886\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hyperlight_host/src/hypervisor/virtual_machine/whp/aarch64.rs"},"region":{"startLine":886}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d9dacecb7ff11abd221fe02318122b5cdfeba8bb6f1fa254d2d369d771a2e54"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/hyperlight_component_csharp/src/types.rs:179-185 | src/hyperlight_component_csharp/src/types.rs:256-262 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hyperlight_component_csharp/src/types.rs"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"2975d80ffe3879af4fad0fc8d9f60647b5e811ec9536ceacddb38a68c1bbca49"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src/hyperlight_host/src/hypervisor/hyperlight_vm/mod.rs:67-71 | src/hyperlight_host/src/hypervisor/hyperlight_vm/mod.rs:76-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/hyperlight_host/src/hypervisor/hyperlight_vm/mod.rs:67\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hyperlight_host/src/hypervisor/hyperlight_vm/mod.rs"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"05f022ad41ceb7a4dad936c014ebdec58472d468e247f8fadf3fbba209ffda90"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src/hyperlight_component_util/src/hl.rs:547-551 | src/hyperlight_component_util/src/hl.rs:561-565 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/hyperlight_component_util/src/hl.rs:547\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hyperlight_component_util/src/hl.rs"},"region":{"startLine":547}}}],"partialFingerprints":{"codehealthFindingId/v1":"aaa84a509390a8305a45697e51b89be343f6a7ec5ad8c2919539b23af0334d30"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): src/hyperlight_host/src/sandbox/snapshot/memory/backing.rs:144-157 | src/hyperlight_host/src/sandbox/snapshot/memory/backing.rs:196-207 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hyperlight_host/src/sandbox/snapshot/memory/backing.rs"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"1691831373b5d929e2e33506d9c794078f21d224ec0269212daff23e597f2940"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): fuzz/fuzz_targets/virtq_memory.rs:90-98 | fuzz/fuzz_targets/virtq_memory.rs:100-110 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fuzz/fuzz_targets/virtq_memory.rs"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a94946459120b50d0fb24797afdcba8231ef81673ea17826ac73ae9f99ee318"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/hyperlight_host/src/sandbox/file_mapping.rs:224-229 | src/hyperlight_host/src/sandbox/file_mapping.rs:300-305 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/hyperlight_host/src/sandbox/file_mapping.rs:224\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hyperlight_host/src/sandbox/file_mapping.rs"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"6857f18797903489179f9fb8180b8a0433c68df5b558be74e52b2ddb435e60bc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/hyperlight_host/src/sandbox/initialized.rs:1076-1084 | src/hyperlight_host/src/sandbox/uninitialized.rs:256-262 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/hyperlight_host/src/sandbox/initialized.rs:1076\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hyperlight_host/src/sandbox/initialized.rs"},"region":{"startLine":1076}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0f756f7ab74386aadaf257c2db5ded2f1f0e1d68c8fac983b2093b9316ba9f9"}},{"ruleId":"D5","level":"warning","message":{"text":"Unstable project hyperlight-guest-bin: hyperlight-guest-bin has instability 0.83 with 1 dependents."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"1a6055fd92c92e480abe047880cd8ecbedf1d050ab90af358be8d2d978e7945d"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: hyperlight-component-util: hyperlight-component-util: abstractness 0.09, instability 0.00, distance 0.91 \u2014 zone of pain \u2014 concrete and depended on by 2 project(s), so it\u0027s rigid to change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"1a5d42fc68c87811bbf1efc976188f57e9da094c32a530b2490043977cc4e162"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: hyperlight-guest-tracing: hyperlight-guest-tracing: abstractness 0.00, instability 0.25, distance 0.75 \u2014 zone of pain \u2014 concrete and depended on by 3 project(s), so it\u0027s rigid to change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"8d0f5cf726b352e4535922df82ec45a7cd5c57a460e79e25dfd813abb8f50234"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: HvfVm (LCOM4 5): HvfVm\u0027s methods fall into 5 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 5 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hyperlight_host/src/hypervisor/virtual_machine/hvf/mod.rs"},"region":{"startLine":701}}}],"partialFingerprints":{"codehealthFindingId/v1":"735fd6d5e2598bdabd8f6a563e9ec31f65a3e8b0afda78b3fc502ec01cf89512"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: Offset (LCOM4 4): Offset\u0027s methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hyperlight_host/src/mem/ptr_offset.rs"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"708e4253d4d0ccee951459292205b136a2d2df7994fa121ac0f627e68e1579af"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/hyperlight_host/src/sandbox/snapshot/mod.rs: src/hyperlight_host/src/sandbox/snapshot/mod.rs changed 12 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 31 in Snapshot::new at line 726. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-14 22:43:40 \u002B00:00\u0027 --until=\u00272026-11-12 22:43:40 \u002B00:00\u0027 --full-history --no-merges -- src/hyperlight_host/src/sandbox/snapshot/mod.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hyperlight_host/src/sandbox/snapshot/mod.rs"},"region":{"startLine":726}}}],"partialFingerprints":{"codehealthFindingId/v1":"92238f1404ca22da5e42e7af622de1ba28fa21fb7f5779ae87d5c504f0807484"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/hyperlight_host/src/sandbox/snapshot/file/mod.rs: src/hyperlight_host/src/sandbox/snapshot/file/mod.rs changed 11 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 24 in Snapshot::load_inner at line 764. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-14 22:43:40 \u002B00:00\u0027 --until=\u00272026-11-12 22:43:40 \u002B00:00\u0027 --full-history --no-merges -- src/hyperlight_host/src/sandbox/snapshot/file/mod.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hyperlight_host/src/sandbox/snapshot/file/mod.rs"},"region":{"startLine":764}}}],"partialFingerprints":{"codehealthFindingId/v1":"89f6b945cd684c784f074f840eb8a48325f8bffeb33ad1c096499d12e98d21f2"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/hyperlight_host/src/hypervisor/hyperlight_vm/mod.rs: src/hyperlight_host/src/hypervisor/hyperlight_vm/mod.rs changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 27 in HyperlightVm::run at line 622. 1 of those changes was a fix/bug commit, and the other 6 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-14 22:43:40 \u002B00:00\u0027 --until=\u00272026-11-12 22:43:40 \u002B00:00\u0027 --full-history --no-merges -- src/hyperlight_host/src/hypervisor/hyperlight_vm/mod.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hyperlight_host/src/hypervisor/hyperlight_vm/mod.rs"},"region":{"startLine":622}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc0946961b8540aad6647152bc1026318db5b983f5532c6d01a164ba56b908bd"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #1: If anonymized user #1 becomes unavailable, 7 significant file(s) lose their only recent owner: src/hyperlight_common/src/virtq/producer.rs, src/hyperlight_common/src/virtq/consumer.rs, src/hyperlight_common/src/virtq/pool/slot.rs, src/hyperlight_common/src/virtq/pool/tests.rs, src/hyperlight_common/src/virtq/desc.rs, src/hyperlight_guest/src/transport/backing.rs, src/hyperlight_guest_bin/src/transport.rs. Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"340b2b7e041724b05f8cba3785bf7f8ceaa3f3abe571d9841b80c4b872a30d30"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #2: If anonymized user #2 becomes unavailable, 5 significant file(s) lose their only recent owner: src/hyperlight_ci/src/bench_report.rs, src/hyperlight_ci/src/remote.rs, src/hyperlight_ci/src/config.rs, src/hyperlight_ci/src/baseline.rs, src/hyperlight_ci/src/manifest.rs. Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"13a64cdef89b10fc740c212e0001da1f9b2c457d13461baa669cd64fd062c175"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #3: If anonymized user #3 becomes unavailable, 3 significant file(s) lose their only recent owner: src/hyperlight_guest_bin/src/arch/amd64/machine.rs, src/hyperlight_common/src/arch/aarch64/exn.rs, src/hyperlight_common/src/component.rs. Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"0d8df1c5bdeda932538085165462f9ed2ac3168cda1d2b82063f8264f3989ceb"}},{"ruleId":"D16","level":"note","message":{"text":"Further sole-owners (lower concentration): 1 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 (17 single-owned of 155 analysed files in total, counted over production source files of roughly 2,400 bytes or more, excluding vendored, generated, example/demo and scaffolding-template trees and test files identified by path convention, largest first; 155 of the 223 production source files in this repository met that bar). They are anonymized user #4 (2 file(s)) \u2014 spread or document their files in the same way, at lower priority than the named off-boarding risks above. The files folded here: src/hyperlight_host/src/hypervisor/regs/x86_64/msrs.rs, src/hyperlight_host/src/hypervisor/hyperlight_vm/test_support.rs."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"6eac528f2429e724e1a97ed868f79eefbcf1888dab4af9a9e673429369bb5b2f"}},{"ruleId":"D17","level":"error","message":{"text":"FileScopedPragmaDisable: #pragma warning disable CS1591 \u2014 the disable has no matching restore anywhere in this file, so it does not end with the construct that needed it: it runs to the end of the file and silences the rule for everything written below, including code added years later that nobody weighed against it. Close it with the matching restore directive immediately after the construct it covers \u2014 that alone turns a standing exemption into a scoped one \u2014 or fix the cause and drop the directive entirely."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hyperlight_component_csharp/src/Runtime.cs"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2192c05026ee3c16c9ffcc9c87c4ff20d674dbb06a8e8924432cfc6409094e1"}},{"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":"5bd171e6422feaf0262af7f174eb914bb0cc68e56ee373091dbd27f016543764"},"taxa":[{"id":"CWE-250","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A01:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"c773dee01d7ecc86dde40b1a45cced045299754c79ec783d66a6fb88692ad0c8"},"taxa":[{"id":"CWE-250","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A01:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"67bae993a6197ec63bb2ab001a05231943020309cb40b39a67c8e80b88567873"},"taxa":[{"id":"CWE-250","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A01:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"c4fc3e12beee5c7550fee6bf3b048e48d9815fe9016ee4fbfc45ff14d8100210"},"taxa":[{"id":"CWE-250","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A01:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"3bb8ed27c264d56f87fdb724cb146d879abb72b5812954332339f2a73523004b"},"taxa":[{"id":"CWE-250","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A01:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"a95669a8a2d08e5f0ee4ca5b67d1ed8f05255b41190537255d62b080d1ce361c"},"taxa":[{"id":"CWE-250","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A01:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"89a591530bbaba27da8b9d102e069d1dc143d4c494d5223bc051b59ff6926c92"},"taxa":[{"id":"CWE-250","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A01:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"7c856041ac1c277d4aa051c60cee97981cd563d1ce519b6d57befbc54b8f2a6d"},"taxa":[{"id":"CWE-250","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A01:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"e999c99f91c21f13d82948ee6799d5f5308df3829d9e57bab21f982fcfd47096"},"taxa":[{"id":"CWE-250","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A01:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"8bb95e103fc2b5604a02c7a82137f29f4dfc13556868a03ffeaf54c1f964d1b9"},"taxa":[{"id":"CWE-250","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A01:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"71503eac53de5ec552bd4f7f631f36d2b81398c20f6c24efc2d43291636e687c"},"taxa":[{"id":"CWE-250","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A01:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"7b81a9463f526b9e939f00c2ead4d396d4b53972e338bcfaa635cbedbdb76c8d"},"taxa":[{"id":"CWE-250","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A01:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"f5cb42797017b72ada6b2572a71a757ec403fbbd64e1366f8de18733be57677d"},"taxa":[{"id":"CWE-250","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A01:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"9e14d8abc0b7366a288e40b77260e35e128307b6b449d123524074adc7c33638"},"taxa":[{"id":"CWE-250","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A01:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"32dc745c7d0c475c42aa106e5ccece45022dd89dc1f2d139e8c9656e8f9d98fb"},"taxa":[{"id":"CWE-250","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A01:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"4d6e11e67e366af1cbbb61d4a4a4c734ce50c5af8838ef9d140b06a1cf5048bf"},"taxa":[{"id":"CWE-250","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A01:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"4e59bbf1447aafc48d964315b8f410580a18e3571bea02f5b3fb3f1c63d8141c"},"taxa":[{"id":"CWE-250","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A01:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"0d8adea458ec0be0e9e529b6330f9ad190f656c9af41b1b6579e6f2d547449b4"},"taxa":[{"id":"CWE-250","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A01:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"eb95e87cae6775d8381eab0e6ae4a4557904f17c5a8161d74b6238f2fa8fd625"},"taxa":[{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"90823855f7e4c967d68a33d5bba62011b0a8252c3ce16782f0e51e00abb8c342"},"taxa":[{"id":"CWE-250","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A01:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"1e2d5e2afdeb8bffb2edfe59f7f6f3567be09c1d8d723838fd083bc22831ed3e"},"taxa":[{"id":"CWE-250","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A01:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"c3e43ed4ab2edf758ab1eef29256938e1be03129a557aa2c7bbb4e86c6783e56"},"taxa":[{"id":"CWE-250","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A01:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"b853c19f4ef2920857296f497ad276c31f554d7de36718ff99a8e3830681f940"},"taxa":[{"id":"CWE-250","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A01:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"c992d16b213cd9cc8724420f3b0dc25e15eacdacd8163d43ade3dcda4bedb9ca"},"taxa":[{"id":"CWE-250","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A01:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"a9a08858bd8ff23a49efe7425fd65b9d775099e8f726b259ad4740f3f02adab3"},"taxa":[{"id":"CWE-250","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A01:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"9ab293d7c495f57e9d810edc71fda75aa0f69ad9067edc6a5fc436415a1e5486"},"taxa":[{"id":"CWE-250","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A01:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"c3a9727284344d6fde5fb0877003c8e7ee2c816d39b370d868e0a86975bfa188"},"taxa":[{"id":"CWE-250","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A01:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"9e4d6bd58a48ada049796015b239ba97d1c650591346b1c5ad6ac94fa26da94b"},"taxa":[{"id":"CWE-250","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A01:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"e03e1259f655aacbfda71ca4b2ede3fc81444a231dc06a0e7ffdae0513dc6cad"},"taxa":[{"id":"CWE-250","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A01:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"2ec68773e9ffe311f783659f26ceeff8ed957d16dcf13fb18d241c5ff2559baf"},"taxa":[{"id":"CWE-250","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A01:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"7be6eb65768dd5628e7d28aaa2b0c8de49e47552281dacdd7f5a07438b9480db"},"taxa":[{"id":"CWE-250","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A01:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"d3966f21e5bbcf52b91abd2247624bff92713ba5ac6d68e6daac240c5ec9fb78"},"taxa":[{"id":"CWE-250","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A01:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"15981cb7ac2e97799ebc29c62f7eae89b9af3ae8d3d4d9ea1fa6b04ff7a729dd"},"taxa":[{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"b665d1221770de32a613cd6870462d9b771b76f4c64c8e232622b2aa2081fb43"},"taxa":[{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"4eac4acac09d5ed0ef0fc3c79e6b7d67e310a9249f3875cf38bfb59d8871f497"},"taxa":[{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"444a2a1c9904a713c82e3c5a6be1e31c85d53682cd8785f89d7b864b478da48f"},"taxa":[{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"b908c07e961546d2cffea82a9fc9a5852d827861632d5cd440e4d3c51032b695"},"taxa":[{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"c21ff76fb36b3f29cd4c93246ea14e730fb035e7d74332d1e8f58e7274ad6b18"},"taxa":[{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"a273167f796d2ca45136c5f6d2d85e9ea1131a4c26a19b74cc40a466a7d7d7f9"},"taxa":[{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"15bd18bb0bf102ad13071d0a9dfbded502347cb409fb9c7a511d5e361ff5d750"},"taxa":[{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"0e04aad5130d83cf70c6770d837bd4762227a9c64efa3352873b0aee5eb9d69a"},"taxa":[{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"cf825c69349b5a31fc2c944bfa24456d1454407f8c236ba9b4cad62ba78cc78f"},"taxa":[{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"9f06affe659c96f2e85d716a03478ba2c0e9b1907005b45dc907df38b93ed719"},"taxa":[{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"e4629bc313ab45d2959017211cb9831c7d94203ccca00bd40349cde81f59ce81"},"taxa":[{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"94265ddf3e59798068c0e138929b0a6dcc5dcafdde58dee47ed6d306f6ae5adc"},"taxa":[{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"677a0c0a341655906737dee0115ba8194a8d2752871258c5472a8cfa8768ebb1"},"taxa":[{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"95fddef1434a3b4e80da18f3622d9a26d1e64fc088598f74e9d69f2f79a302e2"},"taxa":[{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"2660981d8c4b568fb819cd03d398637e62e1a0a141ca34381d2b6d9dd97e63ff"},"taxa":[{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"a42ae009f8e5bc31b3e9d7f09ceb630f2c2eac6d8fa6e08dc5c733ef3aa0f78f"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"7769be4932904efce1d3b2013c24fb9e2b434310f82465b6694d80691f378512"},"taxa":[{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"82d734cd7a94971773cb7d3e72804f25bc5602edaf757c11488361348d62cf17"},"taxa":[{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"8fb611c34576acf3980968f0a6aa6d75084036d210ef7ccebdd518abbad994a9"},"taxa":[{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"7d9ca7c4e742c88bd5b23963894a042845424b5cc2a61ce473554b42798686e3"},"taxa":[{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"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":"a1c64913edcc752aa781e3ac28364ceea507cf96a9ed83e75c0b15005dba7b53"},"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"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"705e8761c5e609601c0419d94a8bad1aeb6aee434f48ec4660c92e8bf534c9de"},"properties":{"dependency":{"package":"number_prefix","version":"0.4.0","advisory":"RUSTSEC-2025-0119","reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"e9cf74773a6e34d2f2cd5f4cc024a1a57cb07e5917cf84c703df779cadb57013"},"properties":{"dependency":{"package":"rustix","version":"1.1.4","advisory":"RUSTSEC-2026-0486","aliases":["[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D31","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"46defe36beb4b05403c0b3517d089f01f68e6ede55a12e758c9bd4da96c48966"}},{"ruleId":"D31","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"3b1568673c97a5ce9b1ec5a08dba083d705b7ca92047378b6f33333438b27491"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D31","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"c790f76cf70ef3b7e11b2b2e046aa998549442297137ee1873617b41f8d8e165"}},{"ruleId":"D31","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"3260ff93174f49ae10f5552a0329814b77c91960ca91a54cd36b784f53bff409"}},{"ruleId":"D31","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"cd1e1916692d4d5f458efae18df368376314f217f352881cf1d4fa6cc083eb6d"}},{"ruleId":"D31","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"f5221b8e0ef802d5c20cba673b1336298744f8b2081e1880165abb136c5f2fa9"},"taxa":[{"id":"CWE-494","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},{"id":"CICD-SEC-3","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D31","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"e907ee1026f27d03b789d140179616295fcb7c077e1e0d6a2872cba6d1894c64"},"taxa":[{"id":"CWE-494","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},{"id":"CICD-SEC-3","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D31","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"46eb56ca90f14ff58240ac181de64c98cab210a78b41d8e834bd882a2763a646"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},{"id":"CICD-SEC-3","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away, so if it breaks, no one currently understands it. It does carry its own tests, so the behaviour is pinned even though the understanding is gone: schedule a read-through, using those tests as the specification, before the next change lands here."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hyperlight_common/src/flatbuffer_wrappers/guest_trace_data.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b28a2008c8a864cafa1a13f70a12556dda025120265fd765f333314580614dfe"}},{"ruleId":"D34","level":"note","message":{"text":"Further orphaned files (smaller): 3 smaller file(s) also have no living knowledge \u2014 folded into the freshness score and metrics rather than raised one row each \u2014 most significant first: src/hyperlight_common/src/log_level.rs, src/hyperlight_host/src/hypervisor/gdb/event_loop.rs, fuzz/fuzz_targets/guest_estimate_trace_event.rs (4 orphaned of 155 analysed files in total, counted over production source files of roughly 2,400 bytes or more, excluding vendored, generated, example/demo and scaffolding-template trees and test files identified by path convention, largest first; 155 of the 223 production source files in this repository met that bar). Attach the read to the next change that touches one of them: have a second person review that change, and leave behind a short comment or test recording what the file is for, so the knowledge comes back at the cost of a change you were making anyway."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"ce861fd78f6935114d3a342cb90ad25870f984e1042954fcbbe27c0e23be3658"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hyperlight_common/src/log_level.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d478631aa289276da748bd5606fca1918a44a86a751ef0ae91ccb9b4dcecfbe4"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hyperlight_host/src/hypervisor/gdb/event_loop.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"48bbbf4dcd4ffe299df962ef50e807761076745fbf310948650c50540dfcc35f"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fuzz/fuzz_targets/guest_estimate_trace_event.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5763873adc9cc3892351cd2e1712ef0d8b11755378e6c6b5e517887ca326b07"}},{"ruleId":"D35","level":"error","message":{"text":"Boundary-crossing change coupling: exit.rs \u2194 call.rs: \u0060src/hyperlight_guest/src/exit.rs\u0060 (context hyperlight_guest) and \u0060src/hyperlight_guest_bin/src/guest_function/call.rs\u0060 (context hyperlight_guest_bin) sit in DIFFERENT parts of the tree yet 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) \u2014 the bounded-context boundary may be in the wrong place, or one context is leaking into the other. This is the behavioural boundary violation a static scan can\u0027t see. You can check this without leaving the row: of the 6 shared commits counted here, the most recent 3 are \u0060c61769a0\u0060 amd64: slightly improve TLB flushing; \u0060f83a04ff\u0060 Fix guest call to \u0060halt\u0060 not dropping allocated trace data leading to\u2026; \u0060a11b54ed\u0060 [trace-guest] update guest crates to add trace instrumentation \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hyperlight_guest/src/exit.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f43d0b7d0a9a0f2cf10167e89ab4bb0fa1e0882a01871e7f76dadee69862d2b"}},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"1b213f6eedd4b140d0bc37bdf1496f72811a643f34064f12518b32e9e83bcfc7"},"taxa":[{"id":"CICD-SEC-9","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"0e17f71490e4d120a48b2b2881ab866c93b272bef2febb673a3e8e42b2c288ab"},"taxa":[{"id":"CICD-SEC-9","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"759dca709f1a032fb6f624ce672e6afb5558fce53ecf01fb73618c4d33923164"},"taxa":[{"id":"CICD-SEC-9","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"eb00976a698a5d68999b7ee6d27206fd374e916853e7ff1ead5eed42386f043f"},"taxa":[{"id":"CICD-SEC-9","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"c3f474fcd6c75d58cb82174c157003bddcfaf1ffce2b77ea2f49a2c148553fb6"},"taxa":[{"id":"CICD-SEC-4","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"4f1e7684f8281bd255ddef97105c7055c2ebae06964c8745716b83e174debe83"}},{"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: docs/README.md links to \u0060./debugging-hyperlight.md\u0060, but \u0060docs/debugging-hyperlight.md\u0060 does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents\u0027 own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"docs/README.md"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"267cda189601ed79f891e7b3e50dcb566bf793e8892bfbfeef006f5e26f7430b"}},{"ruleId":"P12","level":"warning","message":{"text":"Coverage collected but not gated: CI collects a coverage report but no step enforces a minimum \u2014 coverage could halve and CI stays green. Add a step that fails the build when coverage drops below a floor (your coverage tool\u0027s minimum-threshold flag, or a coverage-gate action) so the number guards something. What was searched, so you can tell an absence from a miss: this repository\u0027s CI files AND its coverage configuration \u2014 the well-known coverage and test-runner config files, read at the repository root and inside workspace package directories two levels down, so a floor declared beside the tests rather than in the pipeline is credited \u2014 matched against the threshold settings this check knows by name. A floor set in your coverage service\u0027s web UI rather than in a committed file, or under a setting whose name is not one of those, is not seen here."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"7f63c06044cf998d9a0698692df30d8873e29bc9b0c98ee829255017c1193d33"}},{"ruleId":"P2","level":"note","message":{"text":"Logging is not universal: Only 8/11 runnable modules use logging (modules with no entry point or server are excluded \u2014 they are libraries a runnable module hosts). Silent: \u0060src/hyperlight_ci\u0060, \u0060src/hyperlight_guest_macro\u0060, \u0060src/trace_dump\u0060."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"91a94e21d6d4d0e6a2003f94505b0b02b157176f0b24c4820f3f82b4447a97fe"}},{"ruleId":"P3","level":"note","message":{"text":"Dependabot does not watch nuget/gitsubmodule: \u0060.github/dependabot.yml\u0060 schedules updates, but no \u0060package-ecosystem\u0060 entry covers \u0060nuget\u0060, \u0060gitsubmodule\u0060, which this tree depends on \u2014 so those dependencies get no update pull requests and no advisory pressure, however complete the dep-scan credit looks. Add the missing entries to the \u0060updates:\u0060 list."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":".github/dependabot.yml"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"7310d15f71759f963bfa76ab4f82c6833991557c91e33f169a80618282f22e4f"}},{"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"}},{"ruleId":"X5","level":"note","message":{"text":"Null-forgiving operator (\u0060!\u0060) suppressions override nullable warnings: ~1.0 \u0060!\u0060 suppressions per 1k syntax nodes \u2014 2 suppression(s) across the 2026 syntax node(s) in code where nullable warnings are ENABLED, which is the only code a \u0060!\u0060 can suppress anything in (a \u0060!\u0060 under \u0060#nullable disable\u0060 is inert and is not counted, and its file\u0027s nodes are not in the denominator). Each one tells the compiler to trust you about null, suppressing the very safety NRTs provide. Many are correct: each is a claim the checker could not verify, and it is wrong only where the value can in fact be missing, so review the densest places first."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"4ae9a4afaefbfeb512a0b9a87d1bd44cd285ab1e804e4b89c8cf80f255687dfd"}},{"ruleId":"X9","level":"note","message":{"text":"Subsumed condition operand: \u0060msg.contains(\u0022architecture\u0022)\u0060 can never decide this \u0060||\u0060 \u2014 every value satisfying \u0060msg.contains(\u0022architecture\u0022)\u0060 also satisfies \u0060msg.contains(\u0022arch\u0022)\u0060, so the \u0060||\u0060 chain is already decided by the latter. The expression is equivalent to the chain without it, which means it is wider than it reads. Delete the dead operand, or narrow the surviving one if IT is the accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hyperlight_host/src/sandbox/snapshot/file_tests.rs"},"region":{"startLine":981}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e4449145a9234ccc32fd3b43489283b7e7c2e9318691fd8eb706cd9306078ec"}},{"ruleId":"X9","level":"note","message":{"text":"Subsumed condition operand: \u0060msg.contains(\u0022architecture\u0022)\u0060 can never decide this \u0060||\u0060 \u2014 every value satisfying \u0060msg.contains(\u0022architecture\u0022)\u0060 also satisfies \u0060msg.contains(\u0022arch\u0022)\u0060, so the \u0060||\u0060 chain is already decided by the latter. The expression is equivalent to the chain without it, which means it is wider than it reads. Delete the dead operand, or narrow the surviving one if IT is the accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hyperlight_host/src/sandbox/snapshot/file_tests.rs"},"region":{"startLine":2694}}}],"partialFingerprints":{"codehealthFindingId/v1":"dcf264a7221efe6805d995ce7373c70d6829ea3cb96cfdddf4cd9ec291ddd937"}}],"taxonomies":[{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d","organization":"MITRE","informationUri":"https://cwe.mitre.org/","isComprehensive":false,"shortDescription":{"text":"The MITRE Common Weakness Enumeration (CWE)."},"taxa":[{"id":"CWE-1032","guid":"5f21e517-68aa-a650-9a25-5771ef024637","name":"OWASP Top Ten \u2014 Security Misconfiguration category","shortDescription":{"text":"OWASP Top Ten \u2014 Security Misconfiguration category"},"helpUri":"https://cwe.mitre.org/data/definitions/1032.html"},{"id":"CWE-1059","guid":"a2381a08-60f6-9554-a8b8-f3018cfaaca5","name":"Insufficient Technical Documentation","shortDescription":{"text":"Insufficient Technical Documentation"},"helpUri":"https://cwe.mitre.org/data/definitions/1059.html"},{"id":"CWE-1357","guid":"e4d2e772-757e-0a5c-bd7d-77052949d866","name":"Reliance on Insufficiently Trustworthy Component","shortDescription":{"text":"Reliance on Insufficiently Trustworthy Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1357.html"},{"id":"CWE-1395","guid":"800e09e7-c11a-8654-9fa6-86f398995fed","name":"Dependency on Vulnerable Third-Party Component","shortDescription":{"text":"Dependency on Vulnerable Third-Party Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1395.html"},{"id":"CWE-16","guid":"659db3ea-affc-8453-8add-c1218fbfcb92","name":"Configuration","shortDescription":{"text":"Configuration"},"helpUri":"https://cwe.mitre.org/data/definitions/16.html"},{"id":"CWE-250","guid":"52ee12e8-390a-7351-b1e6-388afa694e54","name":"CWE-250","shortDescription":{"text":"CWE-250"},"helpUri":"https://cwe.mitre.org/data/definitions/250.html"},{"id":"CWE-259","guid":"ae9ad959-fbb6-9d5e-892d-3dca66da0b69","name":"Use of Hard-coded Password","shortDescription":{"text":"Use of Hard-coded Password"},"helpUri":"https://cwe.mitre.org/data/definitions/259.html"},{"id":"CWE-353","guid":"09d7e902-d4ee-f05d-ae6c-0a1554d0c18f","name":"Missing Support for Integrity Check","shortDescription":{"text":"Missing Support for Integrity Check"},"helpUri":"https://cwe.mitre.org/data/definitions/353.html"},{"id":"CWE-494","guid":"b8a65e0d-e459-4a55-a931-fc1136482375","name":"Download of Code Without Integrity Check","shortDescription":{"text":"Download of Code Without Integrity Check"},"helpUri":"https://cwe.mitre.org/data/definitions/494.html"},{"id":"CWE-506","guid":"401d6455-56e3-0552-9a39-f77461673e3f","name":"Embedded Malicious Code","shortDescription":{"text":"Embedded Malicious Code"},"helpUri":"https://cwe.mitre.org/data/definitions/506.html"},{"id":"CWE-522","guid":"71fb233e-ce6a-ae57-9419-ef8373540b09","name":"Insufficiently Protected Credentials","shortDescription":{"text":"Insufficiently Protected Credentials"},"helpUri":"https://cwe.mitre.org/data/definitions/522.html"},{"id":"CWE-552","guid":"3492436b-eca2-9c54-9ba3-5dade427c903","name":"Files or Directories Accessible to External Parties","shortDescription":{"text":"Files or Directories Accessible to External Parties"},"helpUri":"https://cwe.mitre.org/data/definitions/552.html"},{"id":"CWE-732","guid":"1da27e8f-b330-7650-ab63-bd61953eae5d","name":"Incorrect Permission Assignment for Critical Resource","shortDescription":{"text":"Incorrect Permission Assignment for Critical Resource"},"helpUri":"https://cwe.mitre.org/data/definitions/732.html"},{"id":"CWE-77","guid":"332c8ade-6612-9f56-a06b-d8d90b1a8750","name":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/77.html"},{"id":"CWE-78","guid":"2e31ceaf-c7ae-2e5e-9661-cfb1362789cf","name":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/78.html"},{"id":"CWE-79","guid":"fd45580b-e8c4-fc5e-8c2f-aa8fab0b4dbf","name":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)","shortDescription":{"text":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/79.html"},{"id":"CWE-798","guid":"5e8f057d-fee3-995a-a0cb-9fc5b0d174d1","name":"Use of Hard-coded Credentials","shortDescription":{"text":"Use of Hard-coded Credentials"},"helpUri":"https://cwe.mitre.org/data/definitions/798.html"},{"id":"CWE-829","guid":"13c33925-97fb-5a5e-b40c-56d328b8a4d7","name":"Inclusion of Functionality from Untrusted Control Sphere","shortDescription":{"text":"Inclusion of Functionality from Untrusted Control Sphere"},"helpUri":"https://cwe.mitre.org/data/definitions/829.html"},{"id":"CWE-89","guid":"6d08fdad-37eb-c150-bbf0-d7d946863407","name":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/89.html"},{"id":"CWE-937","guid":"16f316ae-415c-b354-a59b-1f7905f756e9","name":"Using Components with Known Vulnerabilities","shortDescription":{"text":"Using Components with Known Vulnerabilities"},"helpUri":"https://cwe.mitre.org/data/definitions/937.html"},{"id":"CWE-94","guid":"75e7f50c-6c2f-dd52-bf40-bf6c52b861fd","name":"Improper Control of Generation of Code (\u0027Code Injection\u0027)","shortDescription":{"text":"Improper Control of Generation of Code (\u0027Code Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/94.html"}]},{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61","version":"2025","organization":"OWASP Foundation","informationUri":"https://top10.owasp.org/2025/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10:2025 web application security risks."},"taxa":[{"id":"A01:2025","guid":"df693558-c822-0452-8f7b-4d53cb6bcc59","name":"Broken Access Control","shortDescription":{"text":"Broken Access Control"},"helpUri":"https://top10.owasp.org/2025/A01_2025-Broken_Access_Control/"},{"id":"A02:2025","guid":"668dee9e-41bc-6354-97d0-fdf8f40c50c1","name":"Security Misconfiguration","shortDescription":{"text":"Security Misconfiguration"},"helpUri":"https://top10.owasp.org/2025/A02_2025-Security_Misconfiguration/"},{"id":"A03:2025","guid":"168e227c-7735-2e57-bc6e-997affe644c5","name":"Software Supply Chain Failures","shortDescription":{"text":"Software Supply Chain Failures"},"helpUri":"https://top10.owasp.org/2025/A03_2025-Software_Supply_Chain_Failures/"},{"id":"A05:2025","guid":"87e86033-3231-8458-8e4a-5cb82743553a","name":"Injection","shortDescription":{"text":"Injection"},"helpUri":"https://top10.owasp.org/2025/A05_2025-Injection/"},{"id":"A06:2025","guid":"491554d7-b8e4-9652-91a9-53700dc92ece","name":"Insecure Design","shortDescription":{"text":"Insecure Design"},"helpUri":"https://top10.owasp.org/2025/A06_2025-Insecure_Design/"},{"id":"A07:2025","guid":"334ddd78-539d-d35c-83dd-253647eb7eaf","name":"Authentication Failures","shortDescription":{"text":"Authentication Failures"},"helpUri":"https://top10.owasp.org/2025/A07_2025-Authentication_Failures/"},{"id":"A08:2025","guid":"84b0c297-710e-9a5f-9335-936ecb260c36","name":"Software or Data Integrity Failures","shortDescription":{"text":"Software or Data Integrity Failures"},"helpUri":"https://top10.owasp.org/2025/A08_2025-Software_or_Data_Integrity_Failures/"}]},{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35","organization":"OWASP Foundation","informationUri":"https://owasp.org/www-project-top-10-ci-cd-security-risks/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10 CI/CD Security Risks."},"taxa":[{"id":"CICD-SEC-3","guid":"458c83a6-ebf7-cf55-8cc3-b4d949bbf271","name":"Dependency Chain Abuse","shortDescription":{"text":"Dependency Chain Abuse"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-03-Dependency-Chain-Abuse"},{"id":"CICD-SEC-4","guid":"c859d8ea-8b24-a157-9406-94929c10397a","name":"Poisoned Pipeline Execution (PPE)","shortDescription":{"text":"Poisoned Pipeline Execution (PPE)"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-04-Poisoned-Pipeline-Execution"},{"id":"CICD-SEC-9","guid":"b3d36727-0395-5b51-94c4-5e173d62eab3","name":"Improper Artifact Integrity Validation","shortDescription":{"text":"Improper Artifact Integrity Validation"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-09-Improper-Artifact-Integrity-Validation"}]}],"properties":{"codehealthPublication":{"public":true,"notice":"This is the PUBLIC form of this artifact. Findings are listed in full, but the details of SECURITY findings \u2014 which rule fired, in which file, on which line, and how to fix it \u2014 are deliberately withheld, and any secret-scanner results are excluded entirely. Where detail is absent here it was REMOVED FOR PUBLICATION; it is not missing from the analysis. The complete artifact is available from the repository owner.","securityFindingsRedacted":70,"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."]}]}